joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e1b
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push edi
jne 0x425ec1
cmp dword [esi + 4], 0xffffffff
jne 0x425ec1
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004274a8
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x425e7c
cmp ax, 0x2f
je 0x425e7c
push edi
call fcn.004274a8
pop ecx
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x4415e8
push edi
call fcn.0042c0b4
add esp, 0xc
push 0x30
call fcn.00411865
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov byte [eax], bl
mov byte [eax + 1], 1
mov byte [eax + 0x18], bl
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
call fcn.0042543a
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x425ec6
mov eax, 0x1000000
pop edi
pop ebx
pop ecx
ret 8

Function at 0x426481
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44d104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x4264b5
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4264b5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x426577
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4264d4
cmp cx, 0x5c
jne 0x4264d6
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4264c8
cmp eax, esi
push edi
je 0x426514
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00427e50
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00426481
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x426536
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c0f1
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.004274a8
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c0b4
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x426577
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004279c4
leave
ret
Function at 0x426fc8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44d104]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00426f07
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042af20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x427017
cmp dword [ebp - 0x1c], 5
jb 0x42702f
jmp 0x42702b
cmp dword [ebp - 0x10], 1
jne 0x42702f
cmp dword [ebp - 0x1c], 4
ja 0x42702b
jne 0x42702f
cmp dword [ebp - 0x18], 0
jbe 0x42702f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43f308
call fcn.00426dba
test eax, eax
jge 0x427050
mov byte [0x450cc4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004279c4
add ebp, 0x78
leave
ret

Function at 0x4278f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x427924
call fcn.0042d489
mov dword [eax], esi
call fcn.0042d476
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042a95d
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x427900
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427953
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d49c
pop ecx
call fcn.0042d476
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42797a
test al, 1
je 0x42797a
test byte [esp + 0xc], 2
je 0x42797a
call fcn.0042d489
mov dword [eax], 5
call fcn.0042d476
mov dword [eax], 0xd
jmp 0x42794a
xor eax, eax
pop esi
ret

Function at 0x4279c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d104]
jne 0x4279ce
repz ret
jmp fcn.0042f682
Function at 0x4334b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44dad8]
je 0x4334cb
inc edi
cmp edi, 0x17
jb 0x4334bc
cmp edi, 0x17
jae 0x43364b
push ebp
push 3
call fcn.004381e9
cmp eax, 1
pop ecx
je 0x433617
push 3
call fcn.004381e9
test eax, eax
pop ecx
jne 0x4334ff
cmp dword [0x44d100], 1
je 0x433617
cmp ebx, 0xfc
je 0x43364a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4503e8
push ebp
call fcn.0042e42b
add esp, 0xc
test eax, eax
je 0x433535
push esi
push esi
push esi
push esi
push esi
call fcn.0042a861
add esp, 0x14
push 0x104
mov esi, 0x450401
push esi
push 0
mov byte [0x450505], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433579
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042e42b
add esp, 0xc
test eax, eax
je 0x433579
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a861
add esp, 0x14
push esi
call fcn.00427600
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4335be
push esi
call fcn.00427600
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4506fc
push 0x440c4c
sub ecx, eax
push ecx
push eax
call fcn.00431e13
add esp, 0x14
test eax, eax
je 0x4335be
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a861
add esp, 0x14
jmp 0x4335c0
xor esi, esi
push 0x440c48
push ebx
push ebp
call fcn.00431da2
add esp, 0xc
test eax, eax
je 0x4335e0
push esi
push esi
push esi
push esi
push esi
call fcn.0042a861
add esp, 0x14
push dword [edi*8 + 0x44dadc]
push ebx
push ebp
call fcn.00431da2
add esp, 0xc
test eax, eax
je 0x433602
push esi
push esi
push esi
push esi
push esi
call fcn.0042a861
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043802c
add esp, 0xc
jmp 0x43364a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43364a
cmp ebp, 0xffffffff
je 0x43364a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44dadc]
push dword [esi]
call fcn.00427600
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43802c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042e56a
xor ebx, ebx
cmp dword [0x450a50], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x438102
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4381e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4381e2
push eax
call fcn.0042e4fc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x450a50], eax
call esi
push eax
call fcn.0042e4fc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x450a54], eax
call esi
push eax
call fcn.0042e4fc
mov dword [0x450a58], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042ec35
test eax, eax
pop ecx
pop ecx
je 0x4380d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a861
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x438102
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042e4fc
cmp eax, ebx
pop ecx
mov dword [0x450a60], eax
je 0x438102
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e4fc
pop ecx
mov dword [0x450a5c], eax
mov eax, dword [0x450a5c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x438187
cmp dword [0x450a60], ecx
je 0x438187
push eax
call fcn.0042e573
push dword [0x450a60]
mov esi, eax
call fcn.0042e573
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x438187
cmp edi, ebx
je 0x438187
call esi
cmp eax, ebx
je 0x438154
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x438154
test byte [ebp - 0x18], 1
jne 0x438187
lea eax, [ebp - 0x10]
push eax
call fcn.0042ec6c
test eax, eax
pop ecx
je 0x43816f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a861
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43817e
or dword [ebp + 0x10], 0x200000
jmp 0x4381c2
or dword [ebp + 0x10], 0x40000
jmp 0x4381c2
mov eax, dword [0x450a54]
cmp eax, dword [ebp - 8]
je 0x4381c2
push eax
call fcn.0042e573
cmp eax, ebx
pop ecx
je 0x4381c2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4381c2
mov eax, dword [0x450a58]
cmp eax, dword [ebp - 8]
je 0x4381c2
push eax
call fcn.0042e573
cmp eax, ebx
pop ecx
je 0x4381c2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450a50]
call fcn.0042e573
cmp eax, ebx
pop ecx
je 0x4381e2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4381e4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401970
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x412cc0]
sub esp, 0x20c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x401af3
mov ebx, dword [esp + 0x220]
push ebx
push eax
call fcn.00402b40
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401af3
mov eax, dword [0x412cc0]
push 0x104
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00403710
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
lea eax, [esp + ecx + 0x13]
cmp edx, eax
ja 0x4019e2
cmp byte [eax], 0x5c
je 0x4019e2
dec eax
lea ecx, [esp + 0x14]
cmp ecx, eax
jbe 0x4019d4
lea edx, [eax + 1]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x1000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x412cc0]
mov edi, eax
push edi
push ebx
push edx
call fcn.00402fc0
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x14]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x401acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x401abb
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push str._s_exists._Override_
push 0x104
push edx
call fcn.00403620
mov ecx, dword [0x412ccc]
add esp, 0x10
lea eax, [esp + 0x118]
push 4
push str.Pack_Extracter
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401af3
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x28]
push 0x40000000
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x401acb
call fcn.00401b00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x402a60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x210]
test eax, eax
je 0x402b05
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402b36
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x14]
push 0
lea ebx, [esi + 0x214]
push eax
push 4
push ebx
push edi
call ebp
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x402adc
mov ecx, dword [ebx]
mov eax, dword [esi + 0x218]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push eax
call fcn.004030a0
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push eax
mov eax, dword [ebx]
mov edx, dword [esi + 0x218]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
push edx
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, dword [esi + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x402b2c
push 0x8000
push 0
push eax
call edi
push 0x8000
push 0
push esi
call edi
pop edi
pop esi
ret
Function at 0x402b80
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push ebx
push 0x14
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00403710
mov ebx, dword [esp + 0x34]
push 0x403080
push 0x1c
lea ecx, [esp + 0x1c]
mov edx, dword [ebx + 0x214]
mov eax, dword [ebx + 0x218]
push edx
push eax
push ecx
call fcn.00403bca
add esp, 0x20
mov dword [esp + 0x2c], eax
test eax, eax
je 0x402d70
mov edx, dword [ebx + 0x208]
push ebp
push esi
push edi
mov ecx, 7
mov esi, eax
lea edi, [esp + 0x14]
push 0
rep movsd dword es:[edi], dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x208]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov eax, dword [esp + 0x2c]
push 0
add eax, ecx
push 0
push eax
push edx
call ebp
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov eax, esi
push 4
sub eax, ecx
push 0x1000
sub eax, edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x34]
mov edx, esi
mov edi, eax
mov eax, dword [esp + 0x1c]
sub edx, ecx
sub edx, eax
mov eax, dword [ebx + 0x208]
push edx
push edi
push eax
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x208]
push 0
push 0
push ecx
push edx
call ebp
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x208]
sub esi, ebp
lea eax, [esp + 0x10]
push 0
sub esi, edx
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebx + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [ebx + 0x218]
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
xor ebp, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x402cf1
xor edi, edi
mov eax, dword [edi + esi]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jae 0x402cc6
sub eax, dword [esp + 0x2c]
mov dword [edi + esi], eax
mov esi, dword [ebx + 0x218]
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
inc ebp
sar edx, 4
mov ecx, edx
add edi, 0x1c
shr ecx, 0x1f
add edx, ecx
cmp ebp, edx
jb 0x402cb4
mov edi, dword [esp + 0x34]
mov ecx, dword [ebx + 0x214]
dec ecx
mov eax, ecx
mov dword [ebx + 0x214], ecx
cmp ebp, eax
jae 0x402d4e
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
mov ecx, dword [ebx + 0x218]
lea esi, [eax + ecx + 0x1c]
lea edi, [eax + ecx]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x218]
mov esi, dword [esp + 0x14]
add edx, eax
mov ecx, dword [edx]
cmp esi, ecx
jae 0x402d3c
sub ecx, dword [esp + 0x2c]
mov dword [edx], ecx
mov ecx, dword [ebx + 0x214]
inc ebp
add eax, 0x1c
cmp ebp, ecx
jb 0x402d10
mov edi, dword [esp + 0x34]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov dword [ebx + 0x210], 1
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x402fc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push edi
call fcn.00402b40
mov esi, eax
add esp, 8
test esi, esi
jne 0x402fe2
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esi]
mov edx, dword [edi + 0x208]
push ebx
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 0x208]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x40302c
mov eax, dword [esi + 0x18]
push eax
push ebx
push ebx
call fcn.00403100
add esp, 0xc
pop ebx
pop edi
xor eax, eax
pop esi
ret

Function at 0x4052dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410308
cmp edx, dword [eax]
je 0x4052ff
add eax, 8
inc ecx
cmp eax, 0x410398
jl 0x4052f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410308]
jne 0x40542d
mov eax, dword [0x412af8]
cmp eax, 1
je 0x405407
test eax, eax
jne 0x405330
cmp dword [0x410254], 1
je 0x405407
cmp edx, 0xfc
je 0x40542d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405367
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004060d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004057a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4053aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.004057a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094e4
push edi
call fcn.00403710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004060d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004060e0
lea eax, [ebp - 0xa0]
push 0x4094c4
push eax
call fcn.004060e0
push dword [esi + 0x41030c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004060e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407814
add esp, 0x2c
pop edi
jmp 0x40542d
lea eax, [ebp + 8]
lea esi, [esi + 0x41030c]
push 0
push eax
push dword [esi]
call fcn.004057a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x132db00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x132db22
xor eax, eax
jmp 0x132db10
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 3
jb 0x132db10
mov byte [esi + 4], 0
mov eax, esi
pop esi
ret

Function at 0x132db30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 6], 0
je 0x132db52
xor eax, eax
jmp 0x132db40
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 5
jb 0x132db40
mov byte [esi + 6], 0
mov eax, esi
pop esi
ret

Function at 0x132e1a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov dword [ebp - 0x31], 0x97b09491
mov dword [ebp - 0x2d], 0xb59c9686
mov dword [ebp - 0x29], 0x8f9d9b9e
mov dword [ebp - 0x25], 0x8883a586
mov dword [ebp - 0x21], 0x939c8280
mov dword [ebp - 0x1d], 0x989a9d87
mov word [ebp - 0x19], 0x100
jmp 0x132e1e0
lea eax, [ecx - 0x21]
xor byte [ebp + ecx - 0x31], al
inc ecx
cmp ecx, 0x18
jb 0x132e1e0
mov byte [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x17], 0x8e8594b1
mov dword [ebp - 0x13], 0x8a81ca8f
mov word [ebp - 0xf], 0x8b
mov byte [ebp - 0xd], 1
jmp 0x132e210
lea eax, [ecx - 0x21]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 9
jb 0x132e210
push ebx
push esi
push edi
lea eax, [ebp - 0x17]
mov byte [ebp - 0xd], 0
push eax
call fcn.01541f06
ret

Function at 0x132e2f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xa], 0
je 0x132e312
xor eax, eax
jmp 0x132e300
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 9
jb 0x132e300
mov byte [esi + 0xa], 0
mov eax, esi
pop esi
ret

Function at 0x132e320
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x19], 0
je 0x132e342
xor eax, eax
jmp 0x132e330
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 0x18
jb 0x132e330
mov byte [esi + 0x19], 0
mov eax, esi
pop esi
ret

Function at 0x132e470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xe], 0
je 0x132e492
xor eax, eax
jmp 0x132e480
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 0xd
jb 0x132e480
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
ret

Function at 0x132e4a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x16], 0
je 0x132e4c2
xor eax, eax
jmp 0x132e4b0
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 0x15
jb 0x132e4b0
mov byte [esi + 0x16], 0
mov eax, esi
pop esi
ret
Function at 0x132e4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdb409d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x7c], ecx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x53], 0x97a59491
mov dword [ebp - 0x4f], 0x858c8893
mov dword [ebp - 0x4b], 0xa58c9c86
mov dword [ebp - 0x47], 0x8d888689
mov word [ebp - 0x43], 0x9b
mov byte [ebp - 0x41], 1
lea eax, [ecx - 0x21]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x11
jb 0x132e528
mov byte [ebp - 0x41], 0
xor ecx, ecx
mov dword [ebp - 0x1f], 0x8e8594b1
mov dword [ebp - 0x1b], 0x8a81ca8f
mov word [ebp - 0x17], 0x8b
mov byte [ebp - 0x15], 1
lea eax, [ecx - 0x21]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 9
jb 0x132e553
push ecx
call fcn.014a760d
lea eax, [ebp - 0x1f]
push eax
mov byte [ebp - 0x15], 0
call esi
mov edi, dword [0xdbd0dc]
lea ecx, [ebp - 0x53]
push ecx
push eax
call edi
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov dword [ebp - 0x39], 0x97b09491
mov dword [ebp - 0x35], 0xa99c9686
mov dword [ebp - 0x31], 0x898c8285
mov word [ebp - 0x2d], 0x9f
mov byte [ebp - 0x2b], 1
lea eax, [ecx - 0x21]
xor byte [ebp + ecx - 0x39], al
inc ecx
cmp ecx, 0xd
jb 0x132e5a1
mov byte [ebp - 0x2b], 0
xor ecx, ecx
mov dword [ebp - 0x2a], 0x8e8594b1
mov dword [ebp - 0x26], 0x8a81ca8f
mov word [ebp - 0x22], 0x8b
mov byte [ebp - 0x20], 1
lea esp, [esp]
lea eax, [ecx - 0x21]
xor byte [ebp + ecx - 0x2a], al
inc ecx
cmp ecx, 9
jb 0x132e5d0
lea eax, [ebp - 0x2a]
mov byte [ebp - 0x20], 0
push eax
call esi
lea ecx, [ebp - 0x39]
push ecx
push eax
call edi
push dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
push 0
push 0x40
push ebp
call fcn.01512733
mov dword [ebp - 0x70], eax
test eax, eax
je 0x132e883
cmp dword [ebx], 0
mov ebx, dword [0xdbd0bc]
mov dword [ebp - 0x84], 0
jbe 0x132e880
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 8
mov dword [ebp - 0x88], esi
mov ecx, 7
mov dword [ebp - 0x10], 0
lea edi, [ebp - 0xbc]
mov dword [ebp - 0x40], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0xb8], ecx
jne 0x132e859
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.015e9da8
ret
mov ecx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x88]
inc ecx
add esi, 0x1c
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
cmp ecx, dword [eax]
jb 0x132e634
mov eax, dword [ebp - 0x70]
push eax
call ebx
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x132e8b3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x132e8a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x132e8c4
push ecx
push edx
call fcn.01403731
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.014089d0
int3
Function at 0x132e8d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x12], 0
je 0x132e8f2
xor eax, eax
jmp 0x132e8e0
lea edx, [eax + esi]
lea ecx, [eax - 0x21]
inc eax
xor byte [edx], cl
cmp eax, 0x11
jb 0x132e8e0
mov byte [esi + 0x12], 0
mov eax, esi
pop esi
ret