joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427f10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47e868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00428a90
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x481508]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x48157c]
test eax, eax
je 0x427fb9
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00427ba0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x481548]
push edi
lea ecx, [esp + 0x4c]
call fcn.0047800f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0043e810
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x481108]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x4815a4]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x48153c]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00478081
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x4284f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00426030
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x428549
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.004233d0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.004233c0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00427ba0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4815a4]
push 0
lea ecx, [esp + 0x4c]
call fcn.0047800f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043e810
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00425a50
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x48110c]
mov ecx, ebx
call fcn.00423340
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x428614
push edi
mov ecx, esi
call fcn.00425b60
push eax
push ebp
mov ecx, esi
call fcn.00425d20
cmp eax, dword [esp + 0x40]
jg 0x428610
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x4285ee
mov eax, ebx
jmp 0x42861a
cmp edi, ebx
jl 0x428618
mov eax, ebx
jmp 0x42861a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x42862b
mov dword [esp + 0x30], eax
jmp 0x428636
cmp edi, ebx
jl 0x428631
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00423300
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x42867d
push edi
mov ecx, esi
call fcn.00425a80
push eax
push ebx
mov ecx, esi
call fcn.00425e50
cmp eax, dword [esp + 0x44]
jg 0x428675
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x42864f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x428687
cmp edi, ebp
jl 0x428681
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x428687
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x428690
mov ecx, eax
jmp 0x428699
cmp edi, ebp
jl 0x428696
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00425a70
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00478081
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x42e7c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ed48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42e7f9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42e90c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42e80d
mov eax, 0xffffffc7
jmp 0x42e90e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42e81e
cmp dword [esi + 8], eax
jne 0x42e80d
cmp dword [esi + 8], eax
jne 0x42e837
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42e837
mov eax, 0xffffffc7
jmp 0x42e90e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42e84b
push eax
mov ecx, ebx
call fcn.0042dff0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402460
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42e87c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402480
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042d760
test eax, eax
mov dword [esp + 0x38], eax
je 0x42e8af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x485800
call fcn.00402660
mov eax, dword [esp + 0x38]
jmp 0x42e90e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042e620
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42e8f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042e640
mov esi, eax
test esi, esi
jne 0x42e923
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042e620
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42e8c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x485800
call fcn.00402660
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x485800
call fcn.00402660
mov eax, esi
jmp 0x42e90e
Function at 0x43eeb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4815a4]
push 0
lea ecx, [esp + 0x20]
call fcn.0047800f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e810
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00477f3d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00474800
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00474800
push 1
push 0
push 0
mov ecx, esi
call fcn.004747a8
push 1
push 0
push 1
mov ecx, esi
call fcn.004747a8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478081
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f030
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047800f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e810
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00477f3d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4815a4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43f0f4
cmp dword [esp + 0x40], 1
jne 0x43f0f2
cmp ecx, eax
jge 0x43f0f4
mov eax, ecx
cmp eax, 0xc8
jge 0x43f100
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043eeb0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4815a0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478081
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f8f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f703
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00472c1c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x487290
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4871d8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4810d8]
push eax
mov ecx, edi
call fcn.004782b7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004797d3
test eax, eax
je 0x43fa0c
mov ecx, dword [esp + 0x3c]
call fcn.004782e4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x481418]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f9d0
push edi
mov ecx, esi
call fcn.00475947
mov ecx, esi
call fcn.0043fbb0
cmp dword [esp + 0x38], 1
jne 0x43fa05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00475a82
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x441bf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441c23
push esi
call fcn.0044ffb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441c1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441ca9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441c92
mov eax, dword [esi + 8]
test eax, eax
je 0x441c47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441c8e
cmp eax, 2
je 0x441c92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441c3a
cmp eax, 3
je 0x441c6d
cmp eax, 1
jne 0x441c3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441c3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441c3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441cd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441cb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441cd0
add esp, 4
pop esi
ret
Function at 0x45dfb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fc50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045db60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045dbe0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045dbe0
lea ecx, [esi + 0xc]
call fcn.004715f5
lea ecx, [esi + 0x10]
call fcn.004715f5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045f170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045f170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045f170
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047166a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047166a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov al, byte [0x405100]
sub esp, 0x308
test al, al
push esi
mov esi, dword [esp + 0x310]
jne 0x4013d0
push esi
call fcn.00401180
add esp, 4
push 0x40410c
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401425
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40411c
call fcn.00401d30
add esp, 8
test eax, eax
jne 0x4014d0
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, 0x404ac0
call fcn.00401320
mov esi, eax
add esp, 4
test esi, esi
je 0x401474
push edi
push 0xb
push 0x404148
push esi
xor edi, edi
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401468
lea ecx, [esi + 0xf]
push ecx
push 0x404154
call fcn.00401d30
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x4014d0
push str.PYTHON25.DLL
push 0x405100
push 0x404174
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401d30
add esp, 0x1c
test eax, eax
jne 0x4014d0
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 0x401510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push str.ZLIB.PYD
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40157d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40161b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40419c
call fcn.00402520
add esp, 8
test eax, eax
je 0x40161b
push 0x4041a8
push eax
call fcn.00402230
add esp, 8
test eax, eax
je 0x40161b
call eax
pop esi
add esp, 0x304
ret
push str.zlib.pyd
push 0x405100
push str._s_s
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4015be
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401573
push edi
push 0
mov eax, 0x404ac0
call fcn.00401320
mov esi, eax
add esp, 4
test esi, esi
mov edi, esi
je 0x40161a
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4015f5
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
test eax, eax
pop ebx
jne 0x401613
add edi, 0xe
push edi
call fcn.004014e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x4018b0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.00401220
add esp, 4
test eax, eax
je 0x4018cf
push edi
call fcn.004013b0
add esp, 4
test eax, eax
jne 0x4018d6
mov eax, 0xff
pop edi
ret
mov eax, dword [0x40532c]
mov ecx, dword [eax + 8]
test ecx, ecx
push esi
je 0x401912
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_setbuf]
push 0
push ecx
call esi
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x20
push 0
push edx
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push 0
push eax
call esi
add esp, 0x18
mov esi, dword [sym.imp.MSVCR71.dll_getenv]
push 0x404248
call esi
add esp, 4
test eax, eax
je 0x401941
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [0x40483c]
add esp, 8
mov dword [ecx], eax
jmp 0x40194d
mov edx, dword [0x40483c]
mov dword [edx], 0
mov eax, dword [0x404854]
mov dword [eax], 1
mov ecx, dword [0x404844]
mov dword [ecx], 1
mov edx, dword [0x40532c]
mov eax, dword [edx + 4]
mov ecx, dword [0x40484c]
push 0x404de0
mov dword [ecx], eax
call dword [0x4046e4]
add esp, 4
call fcn.00401630
call dword [0x404754]
test eax, eax
jne 0x4019a3
call fcn.004016c0
test eax, eax
jne 0x401a09
call dword [0x4046bc]
jmp 0x4019ac
call fcn.004017a0
test eax, eax
jne 0x401a09
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4019d9
push 1
call dword [0x404834]
push eax
push 0x404268
call dword [0x4047d4]
add esp, 0xc
push edi
call fcn.00401510
add esp, 4
pop esi
xor eax, eax
pop edi
ret
push eax
call dword [0x4047e4]
mov esi, eax
add esp, 4
test esi, esi
je 0x4019fe
push esi
push str.frozen
call dword [0x4047d4]
push esi
call fcn.00401c10
add esp, 0xc
push edi
call fcn.00401510
add esp, 4
xor eax, eax
pop esi
pop edi
ret

Function at 0x401b60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push eax
push ecx
call dword [0x4047fc]
push 1
call dword [0x404864]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401bbf
call dword [0x4046d4]
push eax
call dword [0x4047e4]
add esp, 4
test eax, eax
je 0x401bb6
push eax
push 0
push esi
call dword [0x40486c]
add esp, 0xc
test eax, eax
jne 0x401bb6
push esi
push str.path
call dword [0x4047d4]
add esp, 8
push esi
call fcn.00401c10
add esp, 4
call fcn.00401a70
push str.PYTHONINSPECT
mov esi, eax
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
test eax, eax
je 0x401c05
mov edx, dword [sym.imp.MSVCR71.dll__iob]
push 0x404288
push edx
call dword [0x4047ec]
add esp, 8
test eax, eax
je 0x401c05
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push str._stdin_
push eax
call dword [0x4047f4]
add esp, 8
call dword [0x4046cc]
mov eax, esi
pop esi
ret
Function at 0x401c80
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov esi, 0x4046b8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c91
sub eax, edx
add eax, ebx
cmp eax, ebx
je 0x401caa
cmp byte [eax], 0x5c
je 0x401caf
dec eax
cmp eax, ebx
jne 0x401ca0
cmp byte [eax], 0x5c
jne 0x401cb0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x401cca
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401d26
mov eax, dword [str.Py_Initialize]
test eax, eax
je 0x401cf7
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push edi
call ebx
test eax, eax
mov dword [esi + 4], eax
je 0x401d00
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jne 0x401ce0
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x404884
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
mov edx, dword [sym.imp.MSVCR71.dll__iob]
push ecx
add edx, 0x40
push 0x404894
push edx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401d30
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, 0x4046b8
jne 0x401d4d
mov eax, dword [esp + 8]
push eax
call fcn.00401c80
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402520
mov edi, eax
add esp, 8
test edi, edi
je 0x401dbb
mov eax, dword [str.Py_Initialize]
test eax, eax
je 0x401d8d
jmp 0x401d70
mov edx, dword [esi]
push edx
push edi
call fcn.00402230
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x401d95
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jne 0x401d70
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
push eax
add ecx, 0x40
push str.undefined_symbol__s____exit__1__n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
Function at 0x401409
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CWnd::ScreenToClient
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 0
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push ebx
push edx
push 0x50000000
push eax
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Create
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MoveWindow
lea eax, [esp + 0xc]
lea ecx, [esi + 0x40]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x5c], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 0x58], edx
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10