joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084d6
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push edi
mov edi, dword [0x42a14c]
cmp edi, 1
jne 0x4086a2
push ebx
push esi
mov ebx, 0x104
mov eax, ebx
lea esi, [ebp - 4]
call fcn.00408c55
mov edi, eax
test edi, edi
jns 0x408515
push 0x404abc
jmp 0x408698
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40854e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40853d
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408544
mov edi, 0x80004005
push 0x404ae4
jmp 0x408698
cmp eax, ebx
jbe 0x408574
lea esi, [ebp - 4]
mov ebx, eax
call fcn.00408c55
mov edi, eax
test edi, edi
js 0x40850b
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x408523
cmp eax, ebx
ja 0x408523
push dword [ebp - 4]
lea eax, [ebp - 8]
push 0x404b08
push eax
call fcn.00408fdc
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x408598
push 0x404b28
jmp 0x408698
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x4085d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4085c1
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x4085c8
mov edi, 0x80004005
push 0x404b58
jmp 0x408698
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404b74
push ebx
call esi
mov dword [0x42af44], eax
test eax, eax
je 0x408672
push 0x404b80
push ebx
call esi
mov dword [0x42af40], eax
test eax, eax
je 0x408672
push 0x404b90
push ebx
call esi
mov dword [0x42af3c], eax
test eax, eax
je 0x408672
push 0x404ba0
push ebx
call esi
mov dword [0x42af38], eax
test eax, eax
je 0x408672
push 0x404bb4
push ebx
call esi
mov dword [0x42af34], eax
test eax, eax
je 0x408672
push 0x404bc0
push ebx
call esi
mov dword [0x42af30], eax
test eax, eax
je 0x408672
push 0x404bd4
push ebx
call esi
mov dword [0x42af2c], eax
test eax, eax
je 0x408672
push 0x404bec
push ebx
call esi
mov dword [0x42af28], eax
test eax, eax
je 0x408672
push 0x404c40
push 1
call fcn.00408939
jmp 0x40869e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40868c
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408693
mov edi, 0x80004005
push 0x404c04
push edi
call fcn.004089ba
pop ecx
pop ecx
pop esi
pop ebx
cmp dword [ebp - 4], 0
mov dword [0x42a14c], edi
je 0x4086b6
push dword [ebp - 4]
call fcn.004092c3
cmp dword [ebp - 8], 0
je 0x4086c4
push dword [ebp - 8]
call fcn.004092c3
mov eax, edi
pop edi
leave
ret
Function at 0x408a20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [0x42a140], 0xffffffff
mov eax, 0x104
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
je 0x408b6e
cmp dword [0x42b120], edi
je 0x408b6e
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x408a96
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041df80
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00409d9b
test eax, eax
jns 0x408ab9
xor ebx, ebx
jmp 0x408ac5
mov edi, dword [ebp - 0x420]
mov ebx, dword [ebp - 0x41c]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x408aee
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0041df80
add esp, 0xc
lea esi, [ebp - 0x418]
call fcn.004092ee
mov esi, eax
test esi, esi
js 0x408b48
push dword [ebp - 0x418]
push 0x404ddc
push 1
call fcn.00408939
movzx eax, bx
push eax
movzx eax, di
shr ebx, 0x10
push ebx
push eax
shr edi, 0x10
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x404df8
push 1
call fcn.00408939
push 0x404d88
push 0x404d94
push 1
call fcn.00408939
add esp, 0x34
xor edi, edi
pop ebx
cmp dword [ebp - 0x418], edi
je 0x408b5e
push dword [ebp - 0x418]
call fcn.004092c3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419318
leave
ret
xor esi, esi
inc esi
jmp 0x408b4b

Function at 0x408b78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
lea ebx, [ebp - 4]
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 8], edi
call fcn.004090f4
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x408c11
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 8], eax
cmp eax, edi
jbe 0x408bda
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [0x42a140]
call ebx
test eax, eax
je 0x408c28
add esi, dword [ebp - 8]
cmp esi, dword [ebp + 8]
jb 0x408bb5
cmp dword [ebp + 0x10], edi
je 0x408c11
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x404d84
push dword [0x42a140]
call ebx
test eax, eax
jne 0x408c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408c11
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x408c21
push dword [ebp - 4]
call fcn.004092c3
mov eax, dword [ebp + 0xc]
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408c42
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jl 0x408c11
mov dword [ebp + 0xc], 0x80004005
jmp 0x408c11
Function at 0x409617
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.00409c66
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x4096e5
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40964e
test al, 0x10
jne 0x4096e5
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4096e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4096e3
movzx eax, word [ebx]
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x409690
cmp ax, 0x5c
jne 0x409681
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x409679
test esi, esi
jne 0x409697
mov edi, 0x80070003
jmp 0x4096e5
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.00409617
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x4096e5
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4096e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4096d1
xor edi, edi
inc edi
jmp 0x4096e5
test eax, eax
jle 0x4096df
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4096e5
xor edi, edi
test ebx, ebx
je 0x4096ef
push ebx
call fcn.004092c3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409d9b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.00409c66
mov esi, eax
cmp esi, ebx
jl 0x409e86
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
jne 0x409e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x409df4
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x409e85
mov esi, 0x80004005
jmp 0x409e85
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x409e1a
mov esi, 0x8007000e
jmp 0x409e85
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409e46
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40508c
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x409e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x409e60
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x409e7c
mov esi, 0x80004005
jmp 0x409e7c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
cmp dword [ebp - 4], ebx
je 0x409e93
push dword [ebp - 4]
call fcn.004092c3
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409ee4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
jbe 0x409f40
and dword [ebp - 4], edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409f1f
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x409ef3
jmp 0x409f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x409f39
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x409f40
mov edi, 0x80004005
test ebx, ebx
je 0x409f46
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x409f53
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.00409c66
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x409fbb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409fbb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x409fbb
cmp eax, 3
je 0x409fbb
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x409fbb
call esi
mov edi, eax
test edi, edi
jle 0x409fb4
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x409fbb
mov edi, 0x80004005
test ebx, ebx
je 0x409fc5
push ebx
call fcn.004092c3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a827
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push esi
push esi
push dword [edi]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call fcn.00409ea0
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40a995
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jne 0x40a892
mov eax, 0x20000
push eax
push 8
mov dword [ebp - 0xc], eax
call esi
push eax
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x40a8ae
mov dword [ebp - 4], 0x8007000e
jmp 0x40a995
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40a923
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
sub ecx, eax
add eax, dword [ebp - 8]
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a92c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0040a9a1
mov dword [ebp - 4], eax
cmp eax, 0x8007007a
je 0x40a863
test eax, eax
js 0x40a978
push dword [ebp - 0x10]
push 8
call esi
push eax
call ebx
mov dword [edi + 8], eax
test eax, eax
je 0x40a923
mov eax, dword [ebp - 0x14]
push dword [eax + 0x20]
push 8
call esi
push eax
call ebx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40a955
mov dword [ebp - 4], 0x8007000e
jmp 0x40a978
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
jle 0x40a946
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40a978
mov dword [ebp - 4], 0x80004005
jmp 0x40a978
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push ebx
push dword [edi + 8]
call fcn.00421250
add esp, 0xc
push dword [ebx + 0x20]
push dword [ebp - 0x1c]
push dword [edi + 0xc]
call fcn.00421250
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40a995
push dword [ebp - 8]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40a995
call fcn.00409d63
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40a9a1
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
cmp dword [ebp + 0xc], 0x40
jae 0x40a9cb
mov dword [edi], 0x138
mov eax, 0x8007007a
jmp 0x40aac5
mov ecx, 0x5a4d
cmp cx, word [eax]
je 0x40a9df
mov eax, 0x8007000d
jmp 0x40aac5
push esi
mov esi, dword [eax + 0x3c]
cmp dword [ebp + 0xc], esi
jae 0x40a9fa
add esi, 0xf8
mov dword [edi], esi
mov eax, 0x8007007a
jmp 0x40aac4
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
je 0x40aa0f
mov eax, 0x8007000d
jmp 0x40aac4
movzx eax, word [ecx + 6]
movzx edx, word [ecx + 0x14]
push ebx
mov ebx, eax
imul ebx, ebx, 0x28
add ebx, esi
lea esi, [ebx + edx + 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], esi
jae 0x40aa2f
mov dword [edi], esi
jmp 0x40aaa5
lea ebx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
je 0x40aa8c
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
push 8
pop ecx
mov edi, 0x4050ac
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40aa52
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40aa60
add dword [ebp - 4], 0x28
inc edx
cmp edx, dword [ebp - 8]
jb 0x40aa3c
cmp dword [ebp - 8], edx
jbe 0x40aa8c
imul edx, edx, 0x28
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
add esi, edx
cmp dword [ebp + 0xc], esi
jae 0x40aa7f
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40aaa5
mov edi, dword [ebp + 8]
add edx, edi
cmp dword [edx], 0xb0c50003
je 0x40aa93
mov eax, 0x8007000d
jmp 0x40aac3
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
add eax, esi
cmp dword [ebp + 0xc], eax
jae 0x40aaac
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 0x8007007a
jmp 0x40aac3
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
add esi, edi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x18
Function at 0x40aacf
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x264], 0xffffffff
push ebx
inc eax
mov dword [ebp - 0x26c], eax
push esi
lea eax, [ebp - 0x260]
xor ebx, ebx
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.00409b4d
mov esi, eax
cmp esi, ebx
jl 0x40aca0
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408cef
mov esi, eax
cmp esi, ebx
jl 0x40ac8b
push ebx
push 0x4050b8
lea eax, [ebp - 0x25c]
call fcn.00408f1b
mov esi, eax
cmp esi, ebx
jl 0x40ac8b
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x40ab8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x40ab89
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40ac8b
test byte [ebp - 0x258], 0x10
jne 0x40ac13
mov eax, dword [ebp - 0x23c]
mov edx, dword [edi + 0x10]
xor ecx, ecx
xor ebx, ebx
add ecx, dword [ebp - 0x238]
adc eax, ebx
cmp ecx, dword [edx + 0x10]
jne 0x40ac13
cmp eax, dword [edx + 0x14]
jne 0x40ac13
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408cef
mov esi, eax
test esi, esi
js 0x40ac61
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
call fcn.00408f1b
mov esi, eax
test esi, esi
js 0x40ac61
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x25c]
lea edx, [ebp - 0x26c]
call fcn.0040acca
mov esi, eax
test esi, esi
jns 0x40ac30
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ab8f
jmp 0x40ac46
push dword [ebp - 0x25c]
lea ecx, [edi + 4]
xor eax, eax
call fcn.00408cef
mov esi, eax
test esi, esi
js 0x40ac61
mov eax, dword [ebp - 0x264]
cmp eax, 0xffffffff
jne 0x40ac58
mov esi, 0x80070002
jmp 0x40ac76
or dword [ebp - 0x264], 0xffffffff
mov dword [edi], eax
cmp dword [ebp - 0x264], 0xffffffff
je 0x40ac76
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x268], 0xffffffff
je 0x40ac8b
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp - 0x25c], ebx
je 0x40aca0
push dword [ebp - 0x25c]
call fcn.004092c3
cmp dword [ebp - 0x260], ebx
je 0x40acb3
push dword [ebp - 0x260]
call fcn.004092c3
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419318
leave
ret 8
Function at 0x40acca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x80
push 3
push 7
push SysReAllocString
mov esi, edx
xor edi, edi
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], edi
call fcn.00409fd3
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ad37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ad22
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ae0d
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ae0d
push edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ad7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ad6a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ae01
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ae01
cmp dword [ebp - 0x30], 0x24
je 0x40ad8e
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ae01
mov eax, dword [ebp - 0x28]
cmp dword [ebp + 0xc], eax
je 0x40adc0
cmp dword [ebp + 0xc], edi
jne 0x40adb7
cmp eax, 0xb0c50000
je 0x40adc0
cmp eax, 0xb0c50001
je 0x40adc0
cmp eax, 0xb0c50002
je 0x40adc0
cmp eax, 0xb0c50003
je 0x40adc0
mov dword [ebp - 0x2c], 0x8007000d
jmp 0x40ae01
cmp dword [ebp + 0x10], edi
je 0x40ade2
mov esi, dword [ebp + 0x10]
push 0x10
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40add9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40adb7
mov esi, dword [ebp - 0x34]
xor edi, edi
cmp esi, edi
je 0x40adf9
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40adf4
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
jmp 0x40adf9
cmp eax, dword [ebp - 0x14]
jne 0x40adb7
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40ae0d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419318
leave
ret 0xc
Function at 0x40ae26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], esi
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebx]
call fcn.00409ea0
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x40af69
push esi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ae9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jle 0x40ae89
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], esi
jl 0x40af69
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40af69
cmp dword [ebp - 0x30], 0x24
je 0x40aeb0
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40af69
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x40aed6
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x40af69
push 9
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x24
xor edi, edi
pop esi
mov dword [ebp - 0x30], edi
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40af19
add esi, dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jne 0x40aee6
cmp esi, dword [ebp - 0x10]
je 0x40af41
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40af4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40af33
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40af4a
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40af4a
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x40af69
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40af69
call fcn.00409d63
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop esi
call fcn.00419318
leave
ret
Function at 0x40e740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e748
mov dword [ecx*4 + 0x42c300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e743
pop esi
ret
Function at 0x412060
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426433
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x429050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x1e8]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x168
push eax
call fcn.00411eb0
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00411fce
push 0xf
lea ecx, [esp + 0x14]
call fcn.00411fce
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.00411f84
push 0x10
push esi
call fcn.00411f84
push 9
push esi
call fcn.00411f84
push 6
push esi
call fcn.00411f84
push 0x12
push esi
call fcn.00411f84
push 0x14
push esi
call fcn.00411f84
push 0x13
push esi
call fcn.00411f84
push 0x15
push esi
call fcn.00411f84
push 0xa
push esi
call fcn.00411f84
push 0x16
push esi
call fcn.00411f84
mov eax, esi
call fcn.00411f45
push ebx
push 0x61
call fcn.00415107
push ebx
push 0x62
call fcn.00415107
push ebx
push 0x63
call fcn.00415107
push 0x14
pop edi
mov eax, esi
call fcn.0041200c
push 6
pop edi
mov eax, esi
call fcn.0041200c
push 9
pop edi
mov eax, esi
call fcn.0041200c
push 0x11
pop edi
mov eax, esi
call fcn.0041200c
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00412df3
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret