joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f333
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x44f33c
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004da928
test eax, eax
je 0x44f44d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x8018], edx
xor ecx, ecx
mov dword [ebp - 0x8014], ecx
mov dword [ebp - 0x8010], 0x717356
lea eax, [ebp - 0x8018]
push eax
push 1
push dword [ebp - 4]
call fcn.004da934
test eax, eax
je 0x44f43e
push dword [ebp - 4]
call fcn.004da93a
test eax, eax
je 0x44f42f
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call fcn.004da4c8
mov esi, eax
cmp esi, 0xffffffff
je 0x44f420
jmp 0x44f3f1
mov eax, dword [ebp - 8]
cmp byte [ebp + eax - 0x800d], 0x1a
jne 0x44f3db
dec dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 8]
lea ecx, [ebp - 0x800c]
push ecx
push dword [ebp - 4]
call fcn.004da940
push 0
lea eax, [ebp - 8]
push eax
push 0x8000
lea edx, [ebp - 0x800c]
push edx
push esi
call fcn.004da708
test eax, eax
je 0x44f413
cmp dword [ebp - 8], 0
ja 0x44f3cb
mov ebx, 1
push esi
call fcn.004da4b6
jmp 0x44f425
mov ebx, 0xfffffffa
push dword [ebp - 4]
call fcn.004da916
jmp 0x44f434
mov ebx, 0xfffffffc
push dword [ebp - 4]
call fcn.004da910
jmp 0x44f443
mov ebx, 0xfffffffd
push dword [ebp - 4]
call fcn.004da904
jmp 0x44f452
mov ebx, 0xfffffffe
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4681f4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
movzx eax, word [ebp + 8]
cmp eax, 0x68
jg 0x468255
je 0x468344
cmp eax, 4
jg 0x468239
je 0x468302
sub eax, 1
jb 0x4682a7
je 0x4682bb
dec eax
je 0x4682da
dec eax
je 0x4682ee
jmp 0x4683ae
sub eax, 0x65
je 0x468309
dec eax
je 0x468323
dec eax
je 0x46832d
jmp 0x4683ae
cmp eax, 0x3ec
jg 0x468289
je 0x46836c
sub eax, 0x69
je 0x468348
sub eax, 0x380
je 0x46834c
dec eax
je 0x468354
dec eax
je 0x468358
jmp 0x4683ae
sub eax, 0x3ed
je 0x468386
dec eax
je 0x4683aa
dec eax
je 0x468350
jmp 0x4683ae
lea edx, [ebp - 0x20]
push edx
call fcn.004da678
mov eax, dword [ebp - 0x14]
shr eax, 0xa
jmp 0x4683b0
lea edx, [ebp - 0x40]
push edx
call fcn.004da678
cmp dword [ebp - 0x34], 0xffffffff
jae 0x4682cf
mov eax, dword [ebp - 0x34]
jmp 0x4682d2
or eax, 0xffffffff
shr eax, 0xa
jmp 0x4683b0
lea edx, [ebp - 0x60]
push edx
call fcn.004da678
mov eax, dword [ebp - 0x54]
shr eax, 0xa
jmp 0x4683b0
lea edx, [ebp - 0x80]
push edx
call fcn.004da678
mov eax, dword [ebp - 0x64]
shr eax, 0xa
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
lea edx, [ebp - 0xa0]
push edx
call fcn.004da678
mov eax, dword [ebp - 0x98]
shr eax, 0xa
jmp 0x4683b0
mov eax, 1
jmp 0x4683b0
lea edx, [ebp - 0xc0]
push edx
call fcn.004da678
mov eax, dword [ebp - 0xac]
shr eax, 0xa
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
cmp dword [0x73c978], 0
je 0x468368
mov eax, dword [0x75af6c]
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
cmp dword [0x73c978], 0
je 0x468382
mov eax, dword [0x75af6c]
shl eax, 3
lea eax, [eax + eax*2]
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
cmp dword [0x73c978], 0
je 0x4683a6
mov eax, dword [0x75af64]
sub eax, dword [0x75af60]
test eax, eax
jns 0x4683a1
add eax, 3
sar eax, 2
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
xor eax, eax
jmp 0x4683b0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46cfd2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
call fcn.0046c9c6
add esp, 8
mov esi, eax
push 0
push esi
call sym.SISCOM.EXE__hb_fsOpen
add esp, 8
mov ebx, eax
push esi
call sym.SISCOM.EXE__hb_xfree
pop ecx
cmp ebx, 0xffffffff
jne 0x46d0f1
push str.I18N
push edi
push 0
call fcn.004da51c
test eax, eax
jne 0x46d023
xor eax, eax
jmp 0x46d1ae
push eax
push 0
call fcn.004da6ba
test eax, eax
jne 0x46d036
xor eax, eax
jmp 0x46d1ae
push eax
call fcn.004da6d8
mov ebx, eax
push 0xac
push ebx
lea eax, [ebp - 0xac]
push eax
call fcn.004cf9ec
add esp, 0xc
push 0x73cece
lea edx, [ebp - 0xac]
push edx
call fcn.004cfb90
add esp, 8
test eax, eax
je 0x46d08a
push 0x73ced3
lea ecx, [ebp - 0xac]
push ecx
call fcn.004cfb90
add esp, 8
test eax, eax
je 0x46d08a
xor eax, eax
jmp 0x46d1ae
push dword [ebp - 4]
add ebx, 0xac
push ebx
call fcn.0046cd97
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x46d0ea
push 0xf
push edi
push 0x75c760
call fcn.004bb464
add esp, 0xc
push 0x32
lea eax, [ebp - 0x75]
push eax
push 0x75c770
call fcn.004bb464
add esp, 0xc
cmp dword [0x73ce94], 0
je 0x46d0da
push dword [0x73ce94]
call fcn.00482f5e
pop ecx
mov dword [0x73ce94], ebx
mov eax, 1
jmp 0x46d1ae
xor eax, eax
jmp 0x46d1ae
push 0xac
lea edx, [ebp - 0xac]
push edx
push ebx
call sym.SISCOM.EXE__hb_fsRead
add esp, 0xc
cmp ax, 0xac
je 0x46d11a
push ebx
call sym.SISCOM.EXE__hb_fsClose
pop ecx
xor eax, eax
jmp 0x46d1ae
push 0x73cece
lea edx, [ebp - 0xac]
push edx
call fcn.004cfb90
add esp, 8
test eax, eax
je 0x46d155
push 0x73ced3
lea ecx, [ebp - 0xac]
push ecx
call fcn.004cfb90
add esp, 8
test eax, eax
je 0x46d155
push ebx
call sym.SISCOM.EXE__hb_fsClose
pop ecx
xor eax, eax
jmp 0x46d1ae
push dword [ebp - 4]
push ebx
call fcn.0046cc25
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x46d1ac
push 0xf
push edi
push 0x75c760
call fcn.004bb464
add esp, 0xc
push 0x32
lea edx, [ebp - 0x75]
push edx
push 0x75c770
call fcn.004bb464
add esp, 0xc
cmp dword [0x73ce94], 0
je 0x46d19f
push dword [0x73ce94]
call fcn.00482f5e
pop ecx
mov dword [0x73ce94], ebx
mov eax, 1
jmp 0x46d1ae
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba72a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4ba73f
xor eax, eax
jmp 0x4ba775
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00439a04
add esp, 8
push eax
call fcn.004da588
cmp eax, 0xffffffff
je 0x4ba75b
test al, 0x50
je 0x4ba75f
xor ebx, ebx
jmp 0x4ba764
mov ebx, 1
cmp dword [ebp - 4], 0
je 0x4ba773
push dword [ebp - 4]
call sym.SISCOM.EXE__hb_xfree
pop ecx
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret
Function at 0x4cf63c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call fcn.004da678
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4d0e3f
mov eax, dword [0x755c98]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4d0e4c
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4d0e79
je 0x4d0e8b
sub ecx, 0x100
je 0x4d0e99
sub ecx, 0x100
je 0x4d0ea0
sub ecx, 0x100
je 0x4d0e92
jmp 0x4d0ea7
sub ecx, 0x600
je 0x4d0ea0
sub ecx, 0x100
je 0x4d0e8b
jmp 0x4d0ea7
mov edi, 1
jmp 0x4d0eac
mov edi, 2
jmp 0x4d0eac
mov edi, 4
jmp 0x4d0eac
mov edi, 5
jmp 0x4d0eac
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4d0ed3
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x755710]
test al, 0x80
je 0x4d0ecc
mov ebx, 0x80
jmp 0x4d0ee5
mov ebx, 1
jmp 0x4d0ee5
mov eax, dword [ebp + 8]
push eax
call fcn.004da588
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d0ee5
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4d0ef7
je 0x4d0f00
dec eax
je 0x4d0f09
jmp 0x4d0f12
mov dword [ebp - 4], 0x80000000
jmp 0x4d0f21
mov dword [ebp - 4], 0x40000000
jmp 0x4d0f21
mov dword [ebp - 4], 0xc0000000
jmp 0x4d0f21
push 1
call fcn.004d1fa4
pop ecx
mov ebx, eax
jmp 0x4d1011
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4d0f3d
sub eax, 0x10
je 0x4d0f44
sub eax, 0x10
je 0x4d0f4d
sub eax, 0x10
je 0x4d0f56
jmp 0x4d0f56
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4d0f5d
mov dword [ebp - 8], 1
jmp 0x4d0f5d
mov dword [ebp - 8], 2
jmp 0x4d0f5d
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004da4c8
mov esi, eax
cmp eax, 0xffffffff
jne 0x4d0fca
call fcn.004da5a0
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4d0fbf
test byte [ebp + 0xd], 1
je 0x4d0fba
mov ebx, 0x50
jmp 0x4d0fbf
mov ebx, 2
push ebx
call fcn.004d1fa4
pop ecx
mov ebx, eax
jmp 0x4d1011
mov edi, esi
push edi
call fcn.004d0d90
pop ecx
test eax, eax
je 0x4d0fde
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4d0fea
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004d1ce8
add esp, 8
mov ebx, eax
inc eax
jne 0x4d1011
push 4
call fcn.004d1fa4
pop ecx
push esi
call fcn.004da4b6
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1478
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
lea edx, [ebp - 3]
add al, 0x40
mov byte [ebp - 3], al
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push edx
call fcn.004da732
dec eax
je 0x4d14a0
call fcn.004d2008
pop ecx
pop ebp
ret
xor eax, eax
pop ecx
pop ebp
ret
Function at 0x4d14a8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.004cebf4
pop ecx
mov esi, eax
test eax, eax
jne 0x4d14cb
mov dword [0x756c4c], 8
or eax, 0xffffffff
jmp 0x4d150f
push esi
push 0x104
call fcn.004da558
test eax, eax
je 0x4d14bc
cmp eax, 0x104
jg 0x4d14bc
movsx ebx, byte [esi]
cmp byte [esi + 1], 0x3a
jne 0x4d1506
mov edi, ebx
push edi
call fcn.004d3554
pop ecx
mov ebx, eax
cmp ebx, 0x41
jl 0x4d1504
cmp ebx, 0x5a
jg 0x4d1504
add ebx, 0xffffffc0
jmp 0x4d1506
xor ebx, ebx
push esi
call fcn.004cec04
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4d1ad4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004cebf4
pop ecx
mov ebx, eax
test eax, eax
jne 0x4d1af8
xor eax, eax
jmp 0x4d1ba1
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004da59a
mov esi, eax
test esi, esi
je 0x4d1b19
cmp esi, 0x104
jb 0x4d1b24
push ebx
call fcn.004cec04
pop ecx
xor eax, eax
jmp 0x4d1ba1
cmp byte [ebx + 1], 0x3a
jne 0x4d1b54
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call fcn.004da570
cmp eax, 2
jae 0x4d1b54
push ebx
call fcn.004cec04
pop ecx
xor eax, eax
jmp 0x4d1ba1
inc esi
test edi, edi
je 0x4d1b97
cmp esi, dword [ebp + 0x10]
jbe 0x4d1b69
push ebx
call fcn.004cec04
pop ecx
xor eax, eax
jmp 0x4d1ba1
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004cec04
pop ecx
mov eax, edi
jmp 0x4d1ba1
push esi
push ebx
call fcn.004cec14
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4d1ba8
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4d1bed
lea eax, [ebp - 0x10c]
push eax
push 0x103
call fcn.004da558
test eax, eax
je 0x4d1bdc
cmp eax, dword [ebp + 0x10]
jle 0x4d1c76
mov dword [0x756c4c], 8
xor eax, eax
jmp 0x4d1ce1
cmp dword [0x762524], 1
jne 0x4d1c32
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4d1c76
xor eax, eax
jmp 0x4d1ce1
call fcn.004da5ac
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4d1c72
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call fcn.004da59a
jmp 0x4d1c76
xor eax, eax
jmp 0x4d1ce1
lea edx, [ebp - 0x10c]
push edx
call fcn.004cfc0c
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4d1c96
mov dword [0x756c4c], 0x22
xor eax, eax
jmp 0x4d1ce1
test edi, edi
jne 0x4d1cb8
mov edx, dword [ebp + 0x10]
push edx
call fcn.004cebf4
pop ecx
mov edi, eax
test eax, eax
jne 0x4d1cb8
mov dword [0x756c4c], 8
xor eax, eax
jmp 0x4d1ce1
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d6640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call fcn.004da4c8
mov ebx, eax
test eax, eax
je 0x4d66a2
call fcn.004d65f0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004cfc0c
pop ecx
push eax
push esi
push ebx
call fcn.004da7ce
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004cfc0c
pop ecx
push eax
push edi
push ebx
call fcn.004da7ce
push ebx
call fcn.004da4b6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d6700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x756c54], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4d67da
cmp dword [0x756c50], 0
jne 0x4d67da
cmp dword [0x756eb8], 0
je 0x4d6794
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call fcn.004da5b2
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004d64d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d677a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004d64d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d677a
lea ebx, [ebp - 0x84]
jmp 0x4d677b
inc ebx
call fcn.004d66bc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call fcn.004daee6
jmp 0x4d6815
push 0xfffffffffffffff4
call fcn.004da5fa
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x756c58
push ebx
call fcn.004da7ce
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004cfc0c
pop ecx
push eax
push esi
push ebx
call fcn.004da7ce
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x756c5b
push ebx
call fcn.004da7ce
jmp 0x4d6815
cmp dword [0x756c50], 0
je 0x4d67f4
cmp dword [0x756c50], 0xffffffff
je 0x4d6815
push esi
call dword [0x756c50]
pop ecx
mov eax, dword [0x756c54]
test eax, eax
je 0x4d6815
cmp dword [0x756c54], 0xffffffff
je 0x4d6815
cmp byte [eax], 0
je 0x4d6815
push esi
push eax
call fcn.004d6640
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xf86332a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x53d5411a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4031d0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x409570]
je 0x4031f2
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x4031e0
cmp esi, 0x13
je 0x40332e
mov eax, dword [0x409bd4]
cmp eax, 1
push ebx
je 0x4032fd
test eax, eax
jne 0x40321b
cmp dword [0x409284], 1
je 0x4032fd
cmp ecx, 0xfc
je 0x40332d
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x409d50
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x409d6a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x409e6e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403269
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x409d6a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40326e
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4032a1
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403282
sub eax, edx
push 3
lea eax, [eax + 0x409d2f]
push 0x4077bc
push eax
call fcn.00403e60
add esp, 0xc
mov edx, 0x409d50
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4032a9
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x409574]
mov esi, 0x4077b8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032c5
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4032d1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004059f6
add esp, 0xc
pop edi
jmp 0x40332d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40332d
mov edx, dword [esi*8 + 0x409574]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x403315
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x4037d8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40a170]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x403824
call esi
mov edi, eax
cmp edi, ebx
je 0x40380a
mov dword [0x40a170], 1
jmp 0x403829
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40381f
push 2
pop eax
mov dword [0x40a170], eax
jmp 0x403824
mov eax, dword [0x40a170]
cmp eax, 1
jne 0x4038a1
cmp edi, ebx
jne 0x403835
call esi
mov edi, eax
cmp edi, ebx
je 0x4038aa
cmp word [edi], bx
mov eax, edi
je 0x40384a
inc eax
inc eax
cmp word [eax], bx
jne 0x40383c
inc eax
inc eax
cmp word [eax], bx
jne 0x40383c
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x403898
call fcn.00402d25
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403898
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x403895
push dword [ebp - 4]
call fcn.00402da5
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4038f9
cmp eax, 2
je 0x4038ae
cmp eax, ebx
je 0x4038ae
xor eax, eax
jmp 0x4038fb
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4038aa
cmp byte [esi], bl
je 0x4038cb
inc eax
cmp byte [eax], bl
jne 0x4038c1
inc eax
cmp byte [eax], bl
jne 0x4038c1
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.00402d25
cmp eax, ebx
je 0x4038f2
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40488d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4048be
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x4048c5
cmp ebx, dword [ebp + 8]
jae 0x4048c5
xor eax, eax
jmp 0x404ab5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4048d6
xor eax, eax
inc eax
jmp 0x404ab4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4048ec
cmp ecx, edx
jae 0x404a31
cmp dword [eax + 4], 0
je 0x4048f5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4048dd
cmp dword [ebp + 8], 0
je 0x404917
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404a31
cmp eax, esi
jae 0x404a31
mov eax, dword [0x40a1f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40493c
cmp dword [esi*4 + 0x40a1f8], edi
je 0x404a35
inc esi
cmp esi, eax
jl 0x40492a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404ab1
cmp dword [ebp - 8], 0x1000000
jne 0x404ab1
test byte [ebp - 0xc], 0xcc
je 0x4049ba
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404ab1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404ab1
cmp word [eax + 0x18], 0x10b
jne 0x404ab1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404ab1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4049ba
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4049ba
test byte [ecx + 0x27], 0x80
jne 0x404a31
push 1
push 0x40a238
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4048ce
mov ecx, dword [0x40a1f0]
test ecx, ecx
mov edx, ecx
jle 0x4049ee
lea eax, [ecx*4 + 0x40a1f4]
cmp dword [eax], edi
je 0x4049ee
dec edx
sub eax, 4
test edx, edx
jg 0x4049e2
test edx, edx
jne 0x404a1f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4049fb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404a13
lea eax, [edx*4 + 0x40a1f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404a01
cmp ecx, 0x10
jge 0x404a1f
inc ecx
mov dword [0x40a1f0], ecx
push 0
push 0x40a238
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4048ce
xor eax, eax
jmp 0x404ab4
test esi, esi
jle 0x4048ce
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40a238
call ebx
test eax, eax
jne 0x4048ce
cmp dword [esi*4 + 0x40a1f8], edi
je 0x404a8b
mov eax, dword [0x40a1f0]
lea esi, [eax - 1]
test esi, esi
jl 0x404a79
cmp dword [esi*4 + 0x40a1f8], edi
je 0x404a75
dec esi
jns 0x404a69
test esi, esi
jge 0x404a89
cmp eax, 0x10
jge 0x404a84
inc eax
mov dword [0x40a1f0], eax
lea esi, [eax - 1]
jmp 0x404a8b
je 0x404aa3
xor ecx, ecx
test esi, esi
jl 0x404aa3
lea eax, [ecx*4 + 0x40a1f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404a91
push 0
push 0x40a238
call ebx
jmp 0x4048ce
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret