joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f20
Capabilities:
Initialize winsock library

Disassembly:
inc ebx
nop
nop
les edi, [esi]
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x410388]
mov ecx, eax
in eax, 0x85
leave
mov dword [0x5d2e030e], eax
mov esi, 0x8bc08406
in eax, 0xb1
push ecx
lea edx, [ebp - 8]
add eax, ebp
sbb eax, 0x65000047
stosb byte es:[edi], al
add al, 0x85
ror byte [edi], 0x85
add byte [eax], 0
adc eax, 0xc06037ff
inc eax
pushfd
mov dword [0x2541093c], eax
call fcn.00404940
test eax, eax
jne 0x405f18
push eax
push eax
and dword [ebp - 0x17af03bb], ecx
in al, dx
push esi
cmp edi, edi
cdq
sal byte [ecx + ecx - 0x48], 0x22
mov ss, word [eax + 0x31]
std
in eax, 0x1d
push cs
mov esp, dword [ebx + 0x13]
push 0xe540f424
push ecx
call 0xa33fe7f0
lea edx, [ebp - 0xdbe0]
scasb al, byte es:[edi]
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x405f9f
sal byte [ebp - 3], 0x16
push ss
mov eax, dword [ebp - 0x9b98]
cmp al, 2
jne 0x405fd0
movsb byte es:[edi], byte [esi]
leave
mov al, byte [edx - 0x7c]
leave
jne 0x405f58
mov edx, dword [ebp - 4]
push edx
sub byte [edx + 0x44], ah
add byte [eax], al
mov eax, dword [ebp - 4]
push eax
dec ebx
imul eax, dword [eax + eax], 0xb408c4fe
ror byte [ebx + 0x72c35de5], 0x15
jb 0x405fe7
in al, dx
rol dword [eax], 0xb8
adc dword [eax], eax
rol dword [eax], 0xbd
daa
pop ebp
ret
mov byte [ebx], al
inc ecx
adc esi, dword [ebp + 0x17]
dec edi
ljmp 0xc1d4
Function at 0x45292d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x45296a
cmp dword [ebp + 0x14], edi
je 0x45296a
cmp ecx, edi
jne 0x452971
call fcn.00455e1c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00455dbd
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x452985
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4529a6
cmp ebx, 0xffffffff
je 0x452995
push ebx
push edi
push ecx
call fcn.004512d0
add esp, 0xc
cmp esi, edi
je 0x452952
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x452952
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4529c2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4529c9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x452aba
test word [esi + 0xc], 0x10c
je 0x452a1d
mov eax, dword [esi + 4]
test eax, eax
je 0x452a1d
jl 0x452b1b
cmp ebx, eax
mov edi, ebx
jb 0x4529ee
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x452ac2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045b0f4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x452ab2
cmp ebx, dword [ebp - 0xc]
jb 0x452a8a
cmp dword [ebp - 0xc], 0
je 0x452a47
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x452a3c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x452a43
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x452a52
mov eax, SysReAllocString
cmp ebx, eax
ja 0x452a52
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x452aee
push eax
push dword [ebp - 8]
push esi
call fcn.00453a4b
pop ecx
push eax
call fcn.0045aff7
add esp, 0xc
test eax, eax
je 0x452b2d
cmp eax, 0xffffffff
je 0x452b1b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x452ab2
push esi
call fcn.0045a916
cmp eax, 0xffffffff
pop ecx
je 0x452b1f
cmp dword [ebp - 4], 0
je 0x452aee
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4529d1
mov eax, dword [ebp + 0x14]
jmp 0x45296c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x452ad9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004512d0
add esp, 0xc
call fcn.00455e1c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x452962
cmp dword [ebp + 0xc], 0xffffffff
je 0x452b04
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004512d0
add esp, 0xc
call fcn.00455e1c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x452962
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x45296c
or dword [esi + 0xc], 0x10
jmp 0x452b1f
Function at 0x455f83
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x472b50]
je 0x455f9e
inc edi
cmp edi, 0x17
jb 0x455f8f
cmp edi, 0x17
jae 0x45611e
push ebp
push 3
call fcn.004605c3
cmp eax, 1
pop ecx
je 0x4560ea
push 3
call fcn.004605c3
test eax, eax
pop ecx
jne 0x455fd2
cmp dword [0x472388], 1
je 0x4560ea
cmp ebx, 0xfc
je 0x45611d
push 0x468704
mov ebx, 0x314
push ebx
mov ebp, 0x474a90
push ebp
call fcn.00460329
add esp, 0xc
test eax, eax
je 0x456008
push esi
push esi
push esi
push esi
push esi
call fcn.00455cc1
add esp, 0x14
push 0x104
mov esi, 0x474aa9
push esi
push 0
mov byte [0x474bad], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x45604c
push 0x4686ec
push 0x2fb
push esi
call fcn.00460329
add esp, 0xc
test eax, eax
je 0x45604c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00455cc1
add esp, 0x14
push esi
call fcn.00451750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x456091
push esi
call fcn.00451750
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x474da4
push 0x4686e8
sub ecx, eax
push ecx
push eax
call fcn.00460276
add esp, 0x14
test eax, eax
je 0x456091
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00455cc1
add esp, 0x14
jmp 0x456093
xor esi, esi
push 0x46d3c4
push ebx
push ebp
call fcn.004601b8
add esp, 0xc
test eax, eax
je 0x4560b3
push esi
push esi
push esi
push esi
push esi
call fcn.00455cc1
add esp, 0x14
push dword [edi*8 + 0x472b54]
push ebx
push ebp
call fcn.004601b8
add esp, 0xc
test eax, eax
je 0x4560d5
push esi
push esi
push esi
push esi
push esi
call fcn.00455cc1
add esp, 0x14
push 0x12010
push 0x4686c0
push ebp
call fcn.00460406
add esp, 0xc
jmp 0x45611d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45611d
cmp ebp, 0xffffffff
je 0x45611d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x472b54]
push dword [esi]
call fcn.00451750
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45b66e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472df4]
jne 0x45b678
repz ret
jmp fcn.00462efb

Function at 0x460406
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00455738
xor ebx, ebx
cmp dword [0x47511c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4604dc
push 0x46a470
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4605bc
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x46a464
push edi
call esi
cmp eax, ebx
je 0x4605bc
push eax
call fcn.004556ca
mov dword [esp], 0x46a454
push edi
mov dword [0x47511c], eax
call esi
push eax
call fcn.004556ca
mov dword [esp], 0x46a440
push edi
mov dword [0x475120], eax
call esi
push eax
call fcn.004556ca
mov dword [0x475124], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044f5ce
test eax, eax
pop ecx
pop ecx
je 0x4604aa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455cc1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4604dc
push 0x46a424
push edi
call esi
push eax
call fcn.004556ca
cmp eax, ebx
pop ecx
mov dword [0x47512c], eax
je 0x4604dc
push 0x46b03c
push edi
call esi
push eax
call fcn.004556ca
pop ecx
mov dword [0x475128], eax
mov eax, dword [0x475128]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x460561
cmp dword [0x47512c], ecx
je 0x460561
push eax
call fcn.00455741
push dword [0x47512c]
mov esi, eax
call fcn.00455741
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x460561
cmp edi, ebx
je 0x460561
call esi
cmp eax, ebx
je 0x46052e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46052e
test byte [ebp - 0x18], 1
jne 0x460561
lea eax, [ebp - 0x10]
push eax
call fcn.0044f605
test eax, eax
pop ecx
je 0x460549
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455cc1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x460558
or dword [ebp + 0x10], 0x200000
jmp 0x46059c
or dword [ebp + 0x10], 0x40000
jmp 0x46059c
mov eax, dword [0x475120]
cmp eax, dword [ebp - 8]
je 0x46059c
push eax
call fcn.00455741
cmp eax, ebx
pop ecx
je 0x46059c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46059c
mov eax, dword [0x475124]
cmp eax, dword [ebp - 8]
je 0x46059c
push eax
call fcn.00455741
cmp eax, ebx
pop ecx
je 0x46059c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47511c]
call fcn.00455741
cmp eax, ebx
pop ecx
je 0x4605bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4605be
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e8a
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x404e98
and edx, 0x3fff
jmp fcn.00404dfc

Function at 0x404e9d
Capabilities:
Delete directory

Disassembly:
mov eax, 0x434904
call fcn.00433e80
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407627
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x404ecc
push edi
call esi
test eax, eax
je 0x404ecc
mov al, 1
jmp 0x404f10
test ebx, ebx
je 0x404f0e
lea ecx, [ebp - 0x18]
call fcn.00402980
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407730
test al, al
push dword [ebp - 0x18]
je 0x404f08
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401b54
test esi, esi
pop ecx
setne al
jmp 0x404f10
call fcn.00401b54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404f1f
Capabilities:
Move file

Disassembly:
mov eax, 0x434920
call fcn.00433e80
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00407627
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00407627
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x404f68
cmp eax, ebx
je 0x404f68
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x404f68
mov al, bl
jmp 0x404fdf
test esi, esi
jne 0x404f71
cmp dword [ebp - 0x14], esi
je 0x404fdd
lea ecx, [ebp - 0x30]
call fcn.00402980
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402980
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x404f91
cmp dword [ebp - 0x14], ebx
jne 0x404f93
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00407c9c
test al, al
push dword [ebp - 0x24]
je 0x404fce
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401b54
push dword [ebp - 0x30]
call fcn.00401b54
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x404fdf
call fcn.00401b54
push dword [ebp - 0x30]
call fcn.00401b54
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4050ea
Capabilities:
Create directory

Disassembly:
mov eax, 0x434950
call fcn.00433e80
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407627
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405128
push 0
push edi
call esi
test eax, eax
je 0x40511b
mov al, 1
jmp 0x405171
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40516f
test ebx, ebx
je 0x40516f
lea ecx, [ebp - 0x18]
call fcn.00402980
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407730
test al, al
je 0x405166
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401b54
test esi, esi
pop ecx
setne al
jmp 0x405171
push dword [ebp - 0x18]
call fcn.00401b54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4052c1
Capabilities:
Create directory

Disassembly:
mov eax, 0x434993
call fcn.00433e80
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407627
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x405306
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4052f9
mov al, 1
jmp 0x4053e9
call ebx
cmp eax, 0xb7
je 0x40539a
test edi, edi
je 0x40539a
lea ecx, [ebp - 0x18]
call fcn.00402980
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00407730
test al, al
je 0x40538d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405342
mov bl, 1
jmp 0x405388
call ebx
cmp eax, 0xb7
je 0x40534f
xor bl, bl
jmp 0x405388
lea ecx, [ebp - 0x50]
call fcn.00405d47
lea ecx, [ebp - 0x28]
call fcn.00402980
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00405de7
test al, al
jne 0x405376
xor bl, bl
jmp 0x40537f
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401b54
pop ecx
push dword [ebp - 0x18]
jmp 0x4053e1
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401b54
pop ecx
call ebx
cmp eax, 0xb7
je 0x4053a7
xor al, al
jmp 0x4053e9
lea ecx, [ebp - 0x88]
call fcn.00405d47
lea ecx, [ebp - 0x60]
call fcn.00402980
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00405de7
test al, al
jne 0x4053d5
xor bl, bl
jmp 0x4053de
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401b54
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405402
Capabilities:
Delete file

Disassembly:
mov eax, 0x4349a8
call fcn.00433e80
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00405d6a
cmp eax, 0xffffffff
je 0x405436
test al, 0x10
jne 0x405436
test al, 1
je 0x405436
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00404dfc
test al, al
je 0x405497
mov ecx, edi
call fcn.00407627
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x405455
push edi
call esi
test eax, eax
je 0x405455
mov al, 1
jmp 0x405499
test ebx, ebx
je 0x405497
lea ecx, [ebp - 0x18]
call fcn.00402980
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407730
test al, al
push dword [ebp - 0x18]
je 0x405491
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401b54
test esi, esi
pop ecx
setne al
jmp 0x405499
call fcn.00401b54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405d6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x434a60
call fcn.00433e80
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407627
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405d96
push edi
call esi
cmp eax, 0xffffffff
jne 0x405dd8
test ebx, ebx
je 0x405dd5
lea ecx, [ebp - 0x18]
call fcn.00402980
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00407730
test al, al
push dword [ebp - 0x18]
je 0x405dcf
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401b54
pop ecx
mov eax, esi
jmp 0x405dd8
call fcn.00401b54
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4063df
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434b04
call fcn.00433e80
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401591
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4064ad
mov eax, SysReAllocString
cmp ebx, eax
ja 0x40641b
mov eax, ebx
add eax, eax
push eax
call fcn.00401b2d
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4064a6
cmp ebx, dword [ebp - 0x14]
ja 0x4064a6
lea ecx, [ebp - 0x2c]
call fcn.00402980
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x40648e
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x406483
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402abf
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00401515
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406459
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401b54
push esi
call fcn.00401b54
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4064af
push esi
call fcn.00401b54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406590
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x4065b1
cmp byte [ecx + 5], 0
je 0x4065b1
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x4065f0
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4065d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4065d2
xor al, al
jmp 0x4065f2
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004341a0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40cd53
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434f77
call fcn.00433e80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402980
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402980
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402980
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402980
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402980
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402980
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402980
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40d4bc
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43509f
call fcn.00433e80
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402a53
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402a53
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402a53
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00402a53
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00402a53
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402a53
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.00402a53
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x412f23
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x412f50
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x445740]
xor eax, edi
inc esi
cmp esi, edx
jb 0x412f2f
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x415f35
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, ecx
jbe 0x41604c
mov ecx, edx
mov edx, dword [esp + 4]
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
dec ecx
jne 0x415f45
ret 4