joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496ea6
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004ca396
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x496fc9
push ecx
lea ecx, [esi + 0x18]
call fcn.004b66c6
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x496fe0
push ecx
lea ecx, [esi + 0x24]
call fcn.004b65d6
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e0306
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call int.005137f6
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x4e0429
push ecx
lea ecx, [esi + 0x18]
call fcn.004ffb26
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x4e0440
push ecx
lea ecx, [esi + 0x24]
call fcn.004ffa36
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e8a76
Capabilities:
Encode data using xor

Disassembly:
jle 0x4e8ac2
scasb al, byte es:[edi]
xor dword [edx + 0x5087eeff], ecx
aaa
inc dword [ebp - 0x54e68f3d]
mov byte [0x57ceb5e], al
cli
in eax, 0xe1
inc esi
salc
jne 0x4e8ac6
pop es
and esi, dword [ecx + 0x3fc4c57]
jns 0x4e8b17
cwde
out dx, eax
add al, 0xbe
cld
xchg dword [eax + 0x6a4b8200], ebp
dec esi
in eax, dx
sahf
rol byte [esi], 0x25
push ds
dec eax
xchg edx, eax
push es
iretd
and dword fs:[ecx + ecx*2 - 0x71], esi
leave
inc edi
rcl ch, cl
pop ebx
imul ecx, dword [edx - 0x57faba9f], 0xe804d374
mov ah, byte [ecx + 0x45]
add eax, 0x4d374a8
call 0xcc4c5a7e
shl byte [ebp + 0x270cc50c], 1
dec ebp
xchg edi, eax
xor cl, dh
sbb byte [ecx], dl
xchg esi, eax
test al, 0x74
rol dword [eax + ebp*8], cl
scasd eax, dword es:[edi]
iretd
or eax, 0xc13e0a6b
mov dword [ebx + edx*4 - 0x751a5074], 0x9b5ccf79
adc eax, 0x7ec1cdf
aas
xor al, 0x11
xchg ebp, eax
dec ebp
cli
fimul word [ecx + ebx*2 + 0x2c]
out 0x61, eax
sahf
inc esp
sbb byte [ebp - 0x7c], al
shr dword [esi], 0x1e
mov ch, 0xbe
int1
out 0x23, al
lds ebx, [ebx]
xor al, 2
loopne 0x4e8a90
xchg ebx, eax
pushal
sub dword [esi], edx
leave
mov al, 0x94
jnp 0x4e8b1a
jo 0x4e8ab6
wait
cmp eax, 0xefc5dd98
pop esi
pushfd
inc ebp
js 0x4e8adc
lea ecx, [edx + 0x5a871934]
aad 0xd6
adc byte [edx + 0x6466b2c], 0x9b
wait
xor dword [ecx + 0x20], edx
cmp byte [esi - 0x59], ah
lodsb al, byte [esi]
cli
inc ebx
xor byte [ebp + ebp*2 - 5], bh
push esp
sub dword [edi - 0x4f5400c8], eax
mov ah, 0x71
sbb bh, byte [ecx + 0x1fca2f24]
pop edx
cld
in al, dx
and esi, dword [0xfdf1f554]
outsd dx, dword [esi]
test byte [ecx - 0xb50d673], ch
cmc
sbb al, 0x1a
cmp ebp, ecx
inc ebp
jg 0x4e8b33
invalid

Function at 0x5137f6
Capabilities:
Encode data using xor

Disassembly:
in eax, 0x2b
adc al, 1
inc ebp
cmovo ebp, dword [edi]
outsb dx, byte [esi]
jle 0x513825
iretd
wait
daa
cwde
loopne 0x51388f
ror dword [ebx + 0x14eaea75], 0xb1
invalid
pop esi
adc eax, 0x20deae04
and byte [esi + 0x6e], 7
jnp 0x51389f
ficomp word [eax + 0x5f]
pop edi
inc ebp
jno 0x5138e5
jp 0x5138cd
dec esi
mov ebp, 0xd00ba0ef
iretd
ror byte [edi + 0x7eb4cb84], 1
stc
jle 0x5138c8
cli
sub byte [edx - 0x39], bl
sub esp, dword [eax + 0x149f2d6f]
into
push eax
pop ds
xor eax, 0x572535a0
mov ebx, esi
bswap ebx
add eax, 0x6ec07ef9
push ebp
salc
loopne 0x51389d
scasd eax, dword es:[edi]
movsb byte es:[edi], byte [esi]
jmp 0x5138f9
call [esi - 0x32]
cmc
mov byte [ebx + 0x2b], ah
cmp eax, 0x71ab0747
out dx, eax
mov eax, dword [0x65db952a]
jle 0x5138ed
mov edx, 0x3b54cb27
or ebx, edx
pop edi
scasd eax, dword es:[edi]
mov al, byte [0x4dfd854]
pop esi
lodsb al, byte [esi]
cli
outsb dx, byte [esi]
add eax, 0x2786b00c
xor eax, 0x4325a08a
mov al, byte [0x95874325]
dec esi
in al, 0xfe
in eax, 0xf0
Function at 0x525d50
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0xe80047ba]
add al, ch
lodsd eax, dword [esi]
lodsb al, byte [esi]
add al, 0
pop ecx
ret
lodsb al, byte [esi]
add al, 0
pop ecx
ret
ret
scasb al, byte es:[edi]
push ds
clc
jns 0x525d07
ja 0x525d8d
jnp 0x525d04
loop 0x525d09
loopne 0x525d70
cmp al, 0xab
cli
jb 0x525d2a
loopne 0x525dd5
or eax, dword [edi]
push esi
sal byte [ebp - 5], cl
leave
je 0x525de3
int3
xchg edi, eax
sbb al, 0x69
adc dl, ch
inc edi
pop ecx
cmpsb byte [esi], byte es:[edi]
mov byte [edi + 0x3a47765d], al
mov bl, 0xf9
or ebp, dword [esi - 0x8270a25]
sub eax, 0xdd6b0dfc
or ah, dh
and dh, byte [edi + 0x71177e0f]
adc edi, ebx
out 0xd2, al
in al, dx
cmc
and byte [ebx], bh
dec edi
add dword [ebx - 6], esp
hlt
arpl dx, di
jo 0x525d3e
pop ss
xor dl, ah
push esi
imul ebp, dword [ecx + 0x7d13f327], 0xcbde6a32
jnp 0x525d9e
adc eax, 0xe5242b93
push esp
imul cl
push eax
fmul dword [ebx - 0x71665fbb]
mov bl, byte [edi + 0x3b847ab4]
xor dword [ecx - 0x76], esi
pop esp
jbe 0x525dd4
cmp eax, 0x6a041b2a
adc al, 0xfa
rol dword [ebx], cl
out dx, al
add ebp, esi
cmpsb byte [esi], byte es:[edi]
lock xchg dword [esi], esp
xor eax, 0x11477182
lea ebx, [edi]
inc ebp
hlt

Function at 0x529a36
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0055cf26
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x529b59
push ecx
lea ecx, [esi + 0x18]
call fcn.00549256
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x529b70
push ecx
lea ecx, [esi + 0x24]
call fcn.00549166
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5bca96
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
jmp [eax + 0x54]
daa
inc edi
add byte [ecx], ah
add byte [eax], al
add byte [eax + 0x51], dl
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005eff86
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x5bcbb9
push ecx
lea ecx, [esi + 0x18]
call fcn.005dc2b6
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x5bcbd0
push ecx
lea ecx, [esi + 0x24]
call fcn.005dc1c6
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x60b777
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
aam 0x94
ja 0x60b7df
fdiv dword [0x244bec51]
add eax, 0x1dfe8bbc
xor al, dl
movsb byte es:[edi], byte [esi]
stosb byte es:[edi], al
retf 0x1b90
pop edx
pop ds
push 0x2282241a
xor edi, dword [ebp + 0x66d61247]
and byte [edx], 0x33
mov ebp, 0x66d61247
inc ecx
in al, 0xb1
adc dh, ch
pushfd
jl 0x60b7da
inc edx
dec edx
mov ah, 0xa7
xor al, 0xb
inc edx
out dx, al
push esp
or eax, 0x4c5afee
xchg esi, eax
ljmp 0x3d1a
Function at 0x638ff6
Capabilities:
Encode data using xor

Disassembly:
adc edi, dword [esi]
inc edi
push 0x21
pop ebx
xor edi, dword [ebp + 0x3459cb8]
pop edx
cli
or dword [edi - 0x47be753f], ebx
lds edi, [edx + 0x4b]
or ebx, esp
push ebp
lds ebp, [0x67c6c3d5]
jns 0x638f90
sub byte [edx - 0x7f], 0x1f
lds ebp, [edx + 0x7b47d436]
in eax, 0x3f
mov dword [ebx], edi
adc dword [ecx], edi
daa
pop esi
and al, 0x5e
lahf
adc al, 0xf
add eax, dword [edx + esi*4]
js 0x638f90
invalid
mov dl, 0x7d
jb 0x639063
fmul qword [ecx - 0x75]
xchg ebx, eax
stosd dword es:[edi], eax
mov dl, 0x29
mov al, 0x79
jge 0x638f8d
jle 0x9fcbf70c
insd dword es:[edi], dx
pop es
std
xchg ecx, eax
and dword [ebx - 0x7e5a6521], ebx
shl byte [edi + 3], 1
dec edi
or ebp, dword [edx + ecx*2 - 0x61]
fistp word [edx + 0x67d081a5]
add ecx, dword [edi + 0xb]
insb byte es:[edi], dx
dec edx
lahf
or eax, 0x332830ec
call 0x5aa65d29
pop esp
je 0x638ffd
sal dword [eax - 0x7ae8eb25], cl
stosb byte es:[edi], al
std
or esi, dword [edi]
dec eax
adc eax, 0xb3e8351a
invalid
invalid
invalid
mov bl, 0xc5
mov bl, 0xc5
loop 0x639011
mov ah, 0xf1
fldenv [edi + 0x55c5b353]
mov dword [edi + 0x7a9f7a6d], edi
push esp
dec eax
and ecx, dword [edi - 0x41]
imul esi, dword [esp + esi*8 + 0x53], 0x2b282385
cli
shl dword [0x55642116], cl
mov byte [ecx - 0xb], 0x72
dec edx
mov bh, 0x1a
neg esi
jne 0x639109
xchg ecx, eax
xchg esp, eax
jne 0x639039
add dword [edi], edi
iretd
push eax
adc al, 0x16
add dword [ebx], eax
fsub st(0), st(0)
inc ebx
lcall 0x9f07, 0x9bcd8511
add byte [ecx - 0x148306ca], cl
stc
jl 0x6390a4
sub esp, ebp
imul ebp, dword [ebx + 0x47], 0x5dd56ab6
inc ebx
aam 0xe0
lodsb al, byte [esi]
sbb al, 0x97
push 0x13
inc eax
fstp qword [ecx + 0x50]
and edx, dword [esi + 0x75eedca9]
lodsb al, byte [esi]
cmpsd dword [esi], dword es:[edi]
test byte fs:[ecx + 0x37], ch
in eax, dx
push esi
pop ds
pop esi
push es
sub eax, 0xd09b9366
mov al, ah
adc bh, dl
xchg byte [ebp + 0x58], ah
fiadd dword [edi - 0xc4eabf5]
in al, 0xf8
into
clc
loopne 0x6390b6
inc edi
or dword [edx - 0x4bb313ae], edi
fisub word [edx + ebx*8 + 0x7b]
popfd
xchg ebp, eax
mov ch, byte [edx - 0x2539a17c]
sbb edi, dword [ecx]
push 0xffffffffffffffe9
outsb dx, byte [esi]
mov cl, 0xee
mov eax, dword [0xba73ccab]
pop ebx
xchg byte [edx - 0x67aa54b], ch
jl 0x6390cb
or eax, dword [esi - 0x54f2080]
movsb byte es:[edi], byte [esi]
sub dl, byte [ecx - 0x256d5c2a]
push 0x814a3e74
xchg ecx, eax
push 0x9c1480c4
lds esp, [eax - 0x30]
adc byte [ebx + 0x365558fc], ah
lcall 0x1ba0, 0x2a545841
int 0x93
pushfd
test dword [eax + 0x70], 0x3c253fa9
mov bh, 0x97
xchg edi, eax
Function at 0x64d24d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x655338
cmp edx, dword [eax]
je 0x64d26f
add eax, 8
inc ecx
cmp eax, 0x6553c8
jl 0x64d260
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x655338]
jne 0x64d39d
mov eax, dword [0xa58c90]
cmp eax, 1
je 0x64d377
test eax, eax
jne 0x64d2a0
cmp dword [0x655264], 1
je 0x64d377
cmp edx, 0xfc
je 0x64d39d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64d2d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064dc30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064e0c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64d31a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064e0c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6527e4
push edi
call fcn.0064ff90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064dc30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064dc40
lea eax, [ebp - 0xa0]
push 0x6527c4
push eax
call fcn.0064dc40
push dword [esi + 0x65533c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064dc40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0064ff04
add esp, 0x2c
pop edi
jmp 0x64d39d
lea eax, [ebp + 8]
lea esi, [esi + 0x65533c]
push 0
push eax
push dword [esi]
call fcn.0064e0c0
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 0x401090
Capabilities:
Query environment variable

Disassembly:
push str.console_exe
call fcn.00401970
add esp, 4
test eax, eax
jne 0x4010ab
call fcn.00402850
jmp 0x401ac0
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057b4]
push 1
call dword [0x40581c]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401b20
call dword [0x40568c]
push eax
call dword [0x40579c]
add esp, 4
test eax, eax
je 0x401b17
push eax
push 0
push esi
call dword [0x405824]
add esp, 0xc
test eax, eax
jne 0x401b17
push esi
push 0x405254
call dword [0x40578c]
add esp, 8
push esi
call fcn.00401b70
add esp, 4
call fcn.004019d0
push 0x405234
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401b65
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405244
call esi
push eax
call dword [0x4057a4]
add esp, 8
test eax, eax
je 0x401b65
push 0x40524c
call esi
push eax
call dword [0x4057ac]
add esp, 8
call dword [0x405684]
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 [0x406420], 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 [0x406524], eax
mov dword [0x40664c], 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 [0x406644], ecx
lea ecx, [eax + 0x10]
mov dword [0x406524], 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 [0x406524], edx
cmp byte [ecx], 0
je 0x40125e
push ecx
push 0x406420
push 0x4050c0
push 0x304
push 0x405de0
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x304
push 0x405de0
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401470
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 0x4014dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401584
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x405158
call fcn.00402450
add esp, 8
test eax, eax
je 0x401584
push 0x405164
push eax
call fcn.00402160
add esp, 8
test eax, eax
je 0x401584
pop esi
add esp, 0x304
jmp eax
push str.zlib.pyd
push 0x406420
push 0x405188
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401527
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401527
call eax
pop esi
add esp, 0x304
ret
push edi
push 0
mov eax, 0x405de0
call fcn.00401280
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x401583
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40155e
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
pop ebx
test eax, eax
jne 0x40157c
add edi, 0xe
push edi
call fcn.00401440
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x401810
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401150
add esp, 4
test eax, eax
jne 0x401829
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.00401310
add esp, 4
test eax, eax
je 0x401822
mov eax, dword [0x40664c]
cmp dword [eax + 8], 0
push esi
je 0x401874
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 0x405204
call esi
add esp, 4
test eax, eax
je 0x4018a3
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x4057f4]
add esp, 8
mov dword [ecx], eax
jmp 0x4018af
mov edx, dword [0x4057f4]
mov dword [edx], 0
mov eax, dword [0x40580c]
mov dword [eax], 1
mov ecx, dword [0x4057fc]
mov dword [ecx], 1
mov edx, dword [0x40664c]
mov eax, dword [edx + 4]
mov ecx, dword [0x405804]
push 0x406100
mov dword [ecx], eax
call dword [0x40569c]
add esp, 4
call fcn.00401590
call dword [0x40570c]
test eax, eax
jne 0x401905
call fcn.00401620
test eax, eax
jne 0x40196b
call dword [0x405674]
jmp 0x40190e
call fcn.00401700
test eax, eax
jne 0x40196b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40193b
push 1
call dword [0x4057ec]
push eax
push 0x405224
call dword [0x40578c]
add esp, 0xc
push ebx
call fcn.00401470
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x40579c]
mov esi, eax
add esp, 4
test esi, esi
je 0x401960
push esi
push 0x40522c
call dword [0x40578c]
push esi
call fcn.00401b70
add esp, 0xc
push ebx
call fcn.00401470
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401be0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x405670
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bf1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401c0a
cmp byte [eax], 0x5c
je 0x401c0f
dec eax
cmp eax, edi
jne 0x401c00
cmp byte [eax], 0x5c
jne 0x401c10
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401c2a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401c84
cmp dword [0x405670], 0
je 0x401c55
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 0x401c5e
add esi, 8
cmp dword [esi], 0
jne 0x401c40
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40583c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x40584c
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