joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442dc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4832d8
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 [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047c153
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442760
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.0047c081
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.00478942
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.00478942
push 1
push 0
push 0
mov ecx, esi
call fcn.004788ea
push 1
push 0
push 1
mov ecx, esi
call fcn.004788ea
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047c1c5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442f40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4832f8
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.0047c153
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442760
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.0047c081
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
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 0x443004
cmp dword [esp + 0x40], 1
jne 0x443002
cmp ecx, eax
jge 0x443004
mov eax, ecx
cmp eax, 0xc8
jge 0x443010
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442dc0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047c1c5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443790
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x483363
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.00476d62
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
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], method.CEdit.virtual_0
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 [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047c3fb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047d917
test eax, eax
je 0x4438ac
mov ecx, dword [esp + 0x3c]
call fcn.0047c428
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443870
push edi
mov ecx, esi
call fcn.00479a8d
mov ecx, esi
call fcn.00443a10
cmp dword [esp + 0x38], 1
jne 0x4438a5
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.00479bc8
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 0x4462d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446303
push esi
call fcn.00454500
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4462fc
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 0x446389
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446372
mov eax, dword [esi + 8]
test eax, eax
je 0x446327
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 0x44636e
cmp eax, 2
je 0x446372
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44631a
cmp eax, 3
je 0x44634d
cmp eax, 1
jne 0x44631a
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 0x44631a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44631a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004463b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446398
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004463b0
add esp, 4
pop esi
ret

Function at 0x446c30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x446c51
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x446c51
mov eax, dword [eax + 0x44]
test eax, eax
je 0x446c51
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x477b58
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x477b90
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475c0f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00475be7
jmp 0x477b9c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47924a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47928c
call fcn.0047ed07
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47928c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479283
xor eax, eax
jmp 0x479294
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047929a
pop edi
pop esi
pop ebx
ret 4
Function at 0x47f237
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f265
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f283
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047f19d
jmp 0x47f283
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f283
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047f19d
test edi, edi
mov eax, edi
jne 0x47f26d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4050f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647c90]

Function at 0x405100
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647ca8]

Function at 0x405150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647d20]

Function at 0x405160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647d38]

Function at 0x405170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647d50]

Function at 0x4051b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647db0]

Function at 0x4051c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647dc8]

Function at 0x4051e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x6530fc]
jmp dword [eax*4 + 0x647df8]

Function at 0x4330a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
sub esp, 8
test ecx, ecx
jbe 0x43316f
mov edi, edx
and edi, 0xf
je 0x4330c9
test edi, 3
jne 0x433176
neg edi
add edi, 0x10
shr edi, 2
lea ebx, [edi + 4]
cmp ecx, ebx
jb 0x433176
mov ebx, ecx
sub ebx, edi
and ebx, 3
neg ebx
add ebx, ecx
test edi, edi
jbe 0x43310a
xor esi, esi
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 4], ecx
mov ecx, dword [edx + esi*4]
test ecx, ecx
cmovl ecx, ebx
sub ecx, eax
cmovs ecx, ebx
mov dword [edx + esi*4], ecx
inc esi
cmp esi, edi
jb 0x4330ee
mov ebx, dword [esp]
mov ecx, dword [esp + 4]
movd xmm0, eax
pshufd xmm0, xmm0, 0
pxor xmm1, xmm1
movdqa xmm2, xmmword [edx + edi*4]
movdqa xmm3, xmm2
pxor xmm2, xmm1
pcmpgtd xmm3, xmm1
pand xmm3, xmm2
pxor xmm3, xmm1
psubd xmm3, xmm0
movdqa xmm4, xmm3
pxor xmm3, xmm1
pcmpgtd xmm4, xmm1
pand xmm4, xmm3
pxor xmm4, xmm1
movdqa xmmword [edx + edi*4], xmm4
add edi, 4
cmp edi, ebx
jb 0x433117
cmp ebx, ecx
jae 0x43316f
xor esi, esi
mov edi, dword [edx + ebx*4]
test edi, edi
cmovl edi, esi
sub edi, eax
cmovs edi, esi
mov dword [edx + ebx*4], edi
inc ebx
cmp ebx, ecx
jb 0x43315a
add esp, 8
pop ebx
pop edi
pop esi
ret
xor ebx, ebx
jmp 0x433154
Function at 0x54fcb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x54fccb
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0054f9dd
mov edi, 0x8d6489a1
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x54fd80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fcmovb st(0), st(6)
inc ebp
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0054f9a2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0054f9ed
push eax
push esi
push dword [ebp + 8]
call fcn.0054f9a2
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0054f9ed
push eax
push esi
push dword [ebp + 8]
call fcn.0054f9a2
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0054f9dd
push es
out dx, al
mov al, byte [0x7c9d88fc]
invalid
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x416666
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x416675
pop dword [ebp - 0x1c]
mov eax, 0x5f81a1a2
sub eax, 0x5f403b2d
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x7e3ff3ce
add dword [ebp - 0x2c], 0xd012517d
mov dword [ebp - 0x28], 0xb7ba0c61
sub dword [ebp - 0x28], 0x8586c01c
mov dword [ebp - 0x24], 0x9ce72e14
add dword [ebp - 0x24], 0xaf65161a
mov dword [ebp - 0x20], 0x38e94df7
sub dword [ebp - 0x20], 0x38e94df7
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x39418a2
sub dword [ebp - 0x2c], 0x8f21af4c
mov dword [ebp - 0x28], 0xb3dccf84
sub dword [ebp - 0x28], 0x72706e0f
mov dword [ebp - 0x24], 0x4d246af9
add dword [ebp - 0x24], 0x164b0173
mov dword [ebp - 0x20], 0x410a9548
add dword [ebp - 0x20], 0xbef56ab8
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xcab64d3b
sub eax, 0xca741c17
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x40425
push 0
call eax
mov ecx, 0x5247
xor edi, edi
add edi, eax
mov esi, 0x434400
add esi, dword [ebp - 0x1c]
mov ebx, 0xe45e9a71
sub ebx, 0xf8e7d7f7
sub dword [ebp - 0x18], 0x2be57b4
mov edx, dword [esi]
xor dword [ebp - 0x10], 0x916e3df7
sub edx, ebx
xor dword [ebp - 0x18], 0xc47d0f3
mov dword [edi], edx
add dword [ebp - 0x18], ecx
add edi, 0xe326dfae
add edi, 0x1cd92056
add esi, 4
loop 0x416788
add eax, 0x13bef
xor ebx, ebx
add ebx, eax
add eax, 0xc74218ac
sub eax, 0xc74218a7
mov ecx, 0x33e18fcc
sub ecx, 0x33a18fcc
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x23534f63
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x2f372e6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1000aeb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000aeb9
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x9b2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009b21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9b207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b206a
add dl, dl
jne 0x9b2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b20dc
xor eax, eax
add dl, dl
jne 0x9b2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b217d
add dl, dl
jne 0x9b20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9b20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9b2075
mov eax, 1
add dl, dl
jne 0x9b20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b20e1
sub eax, ebx
mov ebx, 1
jne 0x9b2128
mov ecx, 1
add dl, dl
jne 0x9b210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9b213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b2136
cmp eax, 0x7d00
jae 0x9b216d
cmp eax, 0x500
jb 0x9b2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b2075
cmp eax, 0x7f
ja 0x9b2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9b219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9b2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401090
Capabilities:
Query environment variable

Disassembly:
push str.console_exe
call fcn.00401960
add esp, 4
test eax, eax
jne 0x4010ab
call fcn.00402840
jmp 0x401ab0
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057cc]
push 1
call dword [0x405834]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401b10
call dword [0x40569c]
push eax
call dword [0x4057b4]
add esp, 4
test eax, eax
je 0x401b07
push eax
push 0
push esi
call dword [0x40583c]
add esp, 0xc
test eax, eax
jne 0x401b07
push esi
push 0x405254
call dword [0x4057a4]
add esp, 8
push esi
call fcn.00401b60
add esp, 4
call fcn.004019c0
push 0x405234
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401b55
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405244
call esi
push eax
call dword [0x4057bc]
add esp, 8
test eax, eax
je 0x401b55
push 0x40524c
call esi
push eax
call dword [0x4057c4]
add esp, 8
call dword [0x405694]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401150
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 [0x406440], 0
mov esi, eax
jne 0x401178
push edi
call fcn.004010b0
add esp, 4
test esi, esi
jne 0x401195
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 0x4011ba
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 [0x406544], eax
mov dword [0x40666c], eax
test eax, eax
jne 0x4011e8
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 [0x406664], ecx
lea ecx, [eax + 0x10]
mov dword [0x406544], ecx
cmp dword [eax], 0x78563412
je 0x401216
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 0x401220
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401220
sub eax, esi
lea edx, [ecx + eax + 1]
mov dword [0x406544], edx
cmp byte [ecx], 0
je 0x40125e
push ecx
push 0x406440
push 0x4050c0
push 0x304
push 0x405e00
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x304
push 0x405e00
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401280
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 0x4012a7
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 0x4012df
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 0x4012fe
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x401310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x308
cmp byte [0x406440], 0
push esi
mov esi, dword [esp + 0x310]
jne 0x401330
push esi
call fcn.004010b0
add esp, 4
push 0x4050c8
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401385
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x4050d8
call fcn.00401c80
add esp, 8
test eax, eax
jne 0x401430
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, 0x405e00
call fcn.00401280
mov esi, eax
add esp, 4
test esi, esi
je 0x4013d4
push edi
push 0xb
push 0x405104
push esi
xor edi, edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4013c8
lea ecx, [esi + 0xf]
push ecx
push 0x405110
call fcn.00401c80
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401430
push str.PYTHON27.DLL
push 0x406440
push 0x405130
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.00401c80
add esp, 0x1c
test eax, eax
jne 0x401430
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