joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4915e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4917cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x491788
mov eax, dword [ebp - 4]
call fcn.00492f70
cmp ebx, eax
jge 0x491788
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00487b60
mov edx, dword [0x489694]
call fcn.00403fcc
mov esi, eax
mov eax, esi
call fcn.0048a574
test al, al
je 0x49177e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x491772
xor eax, eax
push ebp
push 0x49176b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00491ba0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041e6b0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405288
mov eax, dword [ebp - 8]
call fcn.00405154
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00491964
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4917b6
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x49176a
mov eax, dword [ebp - 4]
call fcn.00491c24
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a394
jmp 0x4917b6
mov eax, dword [ebp - 8]
call fcn.00404c3c
jmp 0x4917b6
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.004098c0
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41964c]
call fcn.0040d3c8
call fcn.004045b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4917d3
lea eax, [ebp - 0x54]
call fcn.00404c3c
ret
Function at 0x497a8c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x4a01d8
mov eax, ebx
mov edx, 8
test al, 1
je 0x497aa8
shr eax, 1
xor eax, 0xedb88320
jmp 0x497aaa
shr eax, 1
dec edx
jne 0x497a9b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x497a94
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x420620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x420620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x420624], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x420628], eax
call edi
push eax
call esi
mov dword [0x420630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42062c], eax
mov eax, dword [0x42062c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x420630], ecx
je 0x4069c7
push eax
call esi
push dword [0x420630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x420624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x420628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41a4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x421ecc]
mov edx, dword [0x421d18]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41a590
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
cmp ebx, 0x182
jne 0x41a5c5
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x41a5e3
cmp ebx, 0x19f
jne 0x41a5e3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x41a633
push esi
jmp 0x41a5f0
lea esi, [ebp - 0x824]
mov dword [ebp - 0x824], 0
call fcn.0041a580
mov dl, byte [ebp - 0x824]
mov eax, dword [ebp - 0x828]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x41a62d
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x41a5f0
pop esi
pop edi
cmp ebx, 0x2d
jne 0x41a64d
mov dword [0x422000], 0xa62e7790
mov dword [0x422004], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41a660
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x421ecc]
push ebx
push esi
mov esi, dword [0x421d18]
mov ebx, eax
cmp eax, 0x5dd
jne 0x41a682
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x41f1d0]
call fcn.0041a550
cmp dword [0x421ecc], 0x2f
jne 0x41a69d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.0041a590
add esp, 4
cmp dword [0x421ecc], 0x568
pop esi
pop ebx
jne 0x41a6c8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x4015a0
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
movsx eax, byte [ebp + 0x14]
test eax, eax
je 0x4015ba
mov dword [ebp - 0xc], str.__LOADGAME0__SAVESLOT
jmp 0x4015c1
mov dword [ebp - 0xc], str._PrivetDr.unr__SAVESLOT
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x4015d0
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.Game.exe
push str.start__wait__s_s_d
lea eax, [ebp - 0x11c]
push eax
call fcn.004026f0
add esp, 0x14
lea ecx, [ebp - 0x11c]
push ecx
push 0x409734
call fcn.00402160
add esp, 8
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x402020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x409738
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402088
mov ecx, dword [ebp + 8]
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [eax + 0x409834]
push ecx
push 2
call dword [0x400000]
add esp, 4
push eax
call fcn.00401900
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ecx + 0x409834]
push edx
call fcn.00402160
add esp, 8
jmp 0x402138
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 8]
je 0x402126
mov ecx, dword [ebp + 8]
push ecx
mov edx, 4
shl edx, 0
mov eax, dword [edx + 0x409834]
push eax
push 2
call dword [0x400000]
add esp, 4
push eax
call fcn.00401900
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, 4
shl edx, 0
mov eax, dword [edx + 0x409834]
push eax
call fcn.00402160
add esp, 8
jmp 0x402138
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40214d
cmp dword [ebp - 4], 0
je 0x40214b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404cd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 8
mov eax, dword [ebp + 8]
push eax
push 0x23
push 0x19a
push 0x1e5
push 0x1e
push 0x50000000
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [edx + 0x4097e8]
push eax
push 0x40a2b0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40a91c], eax
push 1
mov ecx, dword [0x40a82c]
push ecx
push 0x30
mov edx, dword [0x40a91c]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 9
mov eax, dword [ebp + 8]
push eax
push 0x23
push 0x5a
push 0xb4
push 0x1e
push 0x40000000
push 0
push 0x40a2c0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40a908], eax
push 0
push 0
push 0xa
mov ecx, dword [ebp + 8]
push ecx
push 0x23
push 0x96
push 0xc8
push 0x1e
push 0x40000000
push 0
push 0x40a2d0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40a918], eax
push 0
push 0
push 0xb
mov edx, dword [ebp + 8]
push edx
push 0x23
push 0x96
push 0xc8
push 0x136
push 0x40000000
push 0
push 0x40a2e0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40a914], eax
push 0
push 0
push 0xc
mov eax, dword [ebp + 8]
push eax
push 0x23
push 0x96
push 0x118
push 0x37
push 0x40000000
push 0
push 0x40a2f0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40a910], eax
push 0
push 0
push 0xd
mov ecx, dword [ebp + 8]
push ecx
push 0x23
push 0x96
push 0x154
push 0x37
push 0x40000000
push 0
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40a90c], eax
push 1
mov edx, dword [0x40a82c]
push edx
push 0x30
mov eax, dword [0x40a908]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, dword [0x40a82c]
push ecx
push 0x30
mov edx, dword [0x40a918]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov eax, dword [0x40a82c]
push eax
push 0x30
mov ecx, dword [0x40a914]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov edx, dword [0x40a82c]
push edx
push 0x30
mov eax, dword [0x40a910]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, dword [0x40a82c]
push ecx
push 0x30
mov edx, dword [0x40a90c]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
ret
Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push str.PYTHONSCRIPT
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp byte [0x4066a0], 0
mov esi, eax
jne 0x401248
push edi
call fcn.00401180
add esp, 4
test esi, esi
jne 0x401265
push str.Could_not_locate_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40128a
push str.Could_not_load_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x4067a4], eax
mov dword [0x4068cc], eax
test eax, eax
jne 0x4012b8
push str.Could_not_lock_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0xc]
mov dword [0x4068c4], ecx
lea ecx, [eax + 0x10]
mov dword [0x4067a4], ecx
cmp dword [eax], 0x78563412
je 0x4012e6
push str.Bug:_Invalid_script_resource
push 0
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4012f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012f0
sub eax, esi
lea edx, [ecx + eax + 1]
mov dword [0x4067a4], edx
cmp byte [ecx], 0
je 0x40132e
push ecx
push 0x4066a0
push 0x4050f4
push 0x304
push 0x406060
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x304
push 0x406060
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
ret

Function at 0x401350
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401377
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
cmp edi, 0xffffffff
jne 0x4013af
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebp, eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4013ce
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x308
cmp byte [0x4066a0], 0
push esi
mov esi, dword [esp + 0x310]
jne 0x401400
push esi
call fcn.00401180
add esp, 4
push 0x4050fc
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401455
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40510c
call fcn.00401d50
add esp, 8
test eax, eax
jne 0x401500
push str.Could_not_load_python_dll
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x308
ret
lea eax, [esp + 4]
push eax
mov eax, 0x406060
call fcn.00401350
mov esi, eax
add esp, 4
test esi, esi
je 0x4014a4
push edi
push 0xb
push 0x405138
push esi
xor edi, edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401498
lea ecx, [esi + 0xf]
push ecx
push 0x405144
call fcn.00401d50
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401500
push str.PYTHON27.DLL
push 0x4066a0
push 0x405164
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401d50
add esp, 0x1c
test eax, eax
jne 0x401500
push str.LoadLibrary_pythondll__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
lea ecx, [esp + 0x10]
push ecx
push 0
call section..text
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x308
ret
mov eax, 1
pop esi
add esp, 0x308
ret
Function at 0x4018e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00401220
add esp, 4
test eax, eax
jne 0x4018f9
mov eax, 0xff
pop esi
ret
push esi
call fcn.004013e0
add esp, 4
test eax, eax
je 0x4018f2
mov eax, dword [0x4068cc]
cmp dword [eax + 8], 0
je 0x401943
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405238
call esi
add esp, 4
test eax, eax
je 0x401972
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x405844]
add esp, 8
mov dword [ecx], eax
jmp 0x40197e
mov edx, dword [0x405844]
mov dword [edx], 0
mov eax, dword [0x40585c]
mov dword [eax], 1
mov ecx, dword [0x40584c]
mov dword [ecx], 1
mov edx, dword [0x4068cc]
mov eax, dword [edx + 4]
mov ecx, dword [0x405854]
push 0x406380
mov dword [ecx], eax
call dword [0x4056e4]
add esp, 4
call fcn.00401660
call dword [0x40575c]
test eax, eax
jne 0x4019d4
call fcn.004016f0
test eax, eax
jne 0x401a27
call dword [0x4056bc]
jmp 0x4019dd
call fcn.004017d0
test eax, eax
jne 0x401a27
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x401a00
push 1
call dword [0x40583c]
push eax
push 0x405258
call dword [0x4057dc]
add esp, 0xc
xor eax, eax
pop esi
ret
push eax
call dword [0x4057ec]
mov esi, eax
add esp, 4
test esi, esi
je 0x401a25
push esi
push 0x405260
call dword [0x4057dc]
push esi
call fcn.00401c30
add esp, 0xc
xor eax, eax
pop esi
ret

Function at 0x401b80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x405804]
push 1
call dword [0x40586c]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401be0
call dword [0x4056d4]
push eax
call dword [0x4057ec]
add esp, 4
test eax, eax
je 0x401bd7
push eax
push 0
push esi
call dword [0x405874]
add esp, 0xc
test eax, eax
jne 0x401bd7
push esi
push 0x405288
call dword [0x4057dc]
add esp, 8
push esi
call fcn.00401c30
add esp, 4
call fcn.00401a90
push 0x405268
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401c25
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405278
call esi
push eax
call dword [0x4057f4]
add esp, 8
test eax, eax
je 0x401c25
push 0x405280
call esi
push eax
call dword [0x4057fc]
add esp, 8
call dword [0x4056cc]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401ca0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x4056b8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cb1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401cca
cmp byte [eax], 0x5c
je 0x401ccf
dec eax
cmp eax, edi
jne 0x401cc0
cmp byte [eax], 0x5c
jne 0x401cd0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401cea
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401d44
cmp dword [0x4056b8], 0
je 0x401d15
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401d1e
add esi, 8
cmp dword [esi], 0
jne 0x401d00
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40588c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x40589c
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401d50
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x4056b8
test edi, edi
jne 0x401d6f
mov eax, dword [esp + 0xc]
push eax
call fcn.00401ca0
add esp, 4
pop edi
pop esi
ret
push ebx
call fcn.00402de0
mov ecx, dword [esp + 0x10]
push 0
push edi
push ecx
mov ebx, eax
call fcn.00402be0
push ebx
mov edi, eax
call fcn.00402e20
add esp, 0x10
pop ebx
test edi, edi
je 0x401de9
cmp dword [0x4056b8], 0
je 0x401dbb
lea ecx, [ecx]
mov edx, dword [esi]
push edx
push edi
call fcn.00402a00
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401dc3
add esi, 8
cmp dword [esi], 0
jne 0x401da0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
push str.undefined_symbol__s____exit__1__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
Function at 0x401df0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x401e97
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401e52
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401e7b
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401e78
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401e23
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x401ea0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x401f55
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401ef7
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401f3d
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov edx, dword [ecx*4 + 0x4058f4]
test eax, 0x4000000
je 0x401f11
or edx, 0x200
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x401f2a
test al, 0x40
je 0x401f21
mov ecx, dword [ebx + 0x20]
jmp 0x401f28
test al, al
jns 0x401f3d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401f3d
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x401ec4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret