joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408426
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 [0x42914c]
cmp edi, 1
jne 0x4085f2
push ebx
push esi
mov ebx, 0x104
mov eax, ebx
lea esi, [ebp - 4]
call fcn.00408b78
mov edi, eax
test edi, edi
jns 0x408465
push 0x404aac
jmp 0x4085e8
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40849e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40848d
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408494
mov edi, 0x80004005
push 0x404ad4
jmp 0x4085e8
cmp eax, ebx
jbe 0x4084c4
lea esi, [ebp - 4]
mov ebx, eax
call fcn.00408b78
mov edi, eax
test edi, edi
js 0x40845b
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x408473
cmp eax, ebx
ja 0x408473
push dword [ebp - 4]
lea eax, [ebp - 8]
push 0x404af8
push eax
call fcn.00408ee1
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x4084e8
push 0x404b18
jmp 0x4085e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x408522
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x408511
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408518
mov edi, 0x80004005
push 0x404b48
jmp 0x4085e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404b64
push ebx
call esi
mov dword [0x429f44], eax
test eax, eax
je 0x4085c2
push 0x404b70
push ebx
call esi
mov dword [0x429f40], eax
test eax, eax
je 0x4085c2
push 0x404b80
push ebx
call esi
mov dword [0x429f3c], eax
test eax, eax
je 0x4085c2
push 0x404b90
push ebx
call esi
mov dword [0x429f38], eax
test eax, eax
je 0x4085c2
push 0x404ba4
push ebx
call esi
mov dword [0x429f34], eax
test eax, eax
je 0x4085c2
push 0x404bb0
push ebx
call esi
mov dword [0x429f30], eax
test eax, eax
je 0x4085c2
push 0x404bc4
push ebx
call esi
mov dword [0x429f2c], eax
test eax, eax
je 0x4085c2
push 0x404bdc
push ebx
call esi
mov dword [0x429f28], eax
test eax, eax
je 0x4085c2
push 0x404c30
push 1
call fcn.00408870
jmp 0x4085ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4085dc
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x4085e3
mov edi, 0x80004005
push 0x404bf4
push edi
call fcn.004088ec
pop ecx
pop ecx
pop esi
pop ebx
cmp dword [ebp - 4], 0
mov dword [0x42914c], edi
je 0x408606
push dword [ebp - 4]
call fcn.004091af
cmp dword [ebp - 8], 0
je 0x408614
push dword [ebp - 8]
call fcn.004091af
mov eax, edi
pop edi
leave
ret
Function at 0x40894d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [0x429140], 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 0x408a9b
cmp dword [0x42a120], edi
je 0x408a9b
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x4089c3
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041d340
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.00409c23
test eax, eax
jns 0x4089e6
xor ebx, ebx
jmp 0x4089f2
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 0x408a1b
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0041d340
add esp, 0xc
lea esi, [ebp - 0x418]
call fcn.004091d5
mov esi, eax
test esi, esi
js 0x408a75
push dword [ebp - 0x418]
push 0x404dcc
push 1
call fcn.00408870
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 0x404de8
push 1
call fcn.00408870
push 0x404d78
push 0x404d84
push 1
call fcn.00408870
add esp, 0x34
xor edi, edi
pop ebx
cmp dword [ebp - 0x418], edi
je 0x408a8b
push dword [ebp - 0x418]
call fcn.004091af
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418955
leave
ret
xor esi, esi
inc esi
jmp 0x408a78

Function at 0x408aa0
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.00408fef
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x408b39
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 0x408b02
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 [0x429140]
call ebx
test eax, eax
je 0x408b50
add esi, dword [ebp - 8]
cmp esi, dword [ebp + 8]
jb 0x408add
cmp dword [ebp + 0x10], edi
je 0x408b39
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x404d74
push dword [0x429140]
call ebx
test eax, eax
jne 0x408b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408b39
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x408b49
push dword [ebp - 4]
call fcn.004091af
mov eax, dword [ebp + 0xc]
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408b6a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jl 0x408b39
mov dword [ebp + 0xc], 0x80004005
jmp 0x408b39
Function at 0x4094db
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.00409b07
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x4095a9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409512
test al, 0x10
jne 0x4095a9
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4095a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4095a7
movzx eax, word [ebx]
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x409554
cmp ax, 0x5c
jne 0x409545
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x40953d
test esi, esi
jne 0x40955b
mov edi, 0x80070003
jmp 0x4095a9
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004094db
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x4095a9
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4095a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409595
xor edi, edi
inc edi
jmp 0x4095a9
test eax, eax
jle 0x4095a3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4095a9
xor edi, edi
test ebx, ebx
je 0x4095b3
push ebx
call fcn.004091af
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409c23
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.00409b07
mov esi, eax
cmp esi, ebx
jl 0x409d0e
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 0x409c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x409c7c
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x409d0d
mov esi, 0x80004005
jmp 0x409d0d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x409ca2
mov esi, 0x8007000e
jmp 0x409d0d
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409cce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40507c
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x409cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x409ce8
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x409d04
mov esi, 0x80004005
jmp 0x409d04
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 0x409d1b
push dword [ebp - 4]
call fcn.004091af
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409d62
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 0x409dbe
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 0x409d9d
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x409d71
jmp 0x409dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x409db7
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x409dbe
mov edi, 0x80004005
test ebx, ebx
je 0x409dc4
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x409dcc
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.00409b07
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x409e34
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409e34
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x409e34
cmp eax, 3
je 0x409e34
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x409e34
call esi
mov edi, eax
test edi, edi
jle 0x409e2d
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x409e34
mov edi, 0x80004005
test ebx, ebx
je 0x409e3e
push ebx
call fcn.004091af
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a66e
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.00409d23
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40a7dc
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 0x40a6d9
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 0x40a6f5
mov dword [ebp - 4], 0x8007000e
jmp 0x40a7dc
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 0x40a76a
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 0x40a773
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.0040a7e3
mov dword [ebp - 4], eax
cmp eax, 0x8007007a
je 0x40a6aa
test eax, eax
js 0x40a7bf
push dword [ebp - 0x10]
push 8
call esi
push eax
call ebx
mov dword [edi + 8], eax
test eax, eax
je 0x40a76a
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 0x40a79c
mov dword [ebp - 4], 0x8007000e
jmp 0x40a7bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
jle 0x40a78d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40a7bf
mov dword [ebp - 4], 0x80004005
jmp 0x40a7bf
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push ebx
push dword [edi + 8]
call fcn.00420560
add esp, 0xc
push dword [ebx + 0x20]
push dword [ebp - 0x1c]
push dword [edi + 0xc]
call fcn.00420560
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40a7dc
push dword [ebp - 8]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40a7dc
call fcn.00409bf5
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40a7e3
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 0x40a80d
mov dword [edi], 0x138
mov eax, 0x8007007a
jmp 0x40a907
mov ecx, 0x5a4d
cmp cx, word [eax]
je 0x40a821
mov eax, 0x8007000d
jmp 0x40a907
push esi
mov esi, dword [eax + 0x3c]
cmp dword [ebp + 0xc], esi
jae 0x40a83c
add esi, 0xf8
mov dword [edi], esi
mov eax, 0x8007007a
jmp 0x40a906
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
je 0x40a851
mov eax, 0x8007000d
jmp 0x40a906
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 0x40a871
mov dword [edi], esi
jmp 0x40a8e7
lea ebx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
je 0x40a8ce
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
push 8
pop ecx
mov edi, 0x40509c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a894
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a8a2
add dword [ebp - 4], 0x28
inc edx
cmp edx, dword [ebp - 8]
jb 0x40a87e
cmp dword [ebp - 8], edx
jbe 0x40a8ce
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 0x40a8c1
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40a8e7
mov edi, dword [ebp + 8]
add edx, edi
cmp dword [edx], 0xb0c50003
je 0x40a8d5
mov eax, 0x8007000d
jmp 0x40a905
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
add eax, esi
cmp dword [ebp + 0xc], eax
jae 0x40a8ee
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 0x8007007a
jmp 0x40a905
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 0x40a90c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x428050]
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.004099f8
mov esi, eax
cmp esi, ebx
jl 0x40aadd
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408c08
mov esi, eax
cmp esi, ebx
jl 0x40aac8
push ebx
push 0x4050a8
lea eax, [ebp - 0x25c]
call fcn.00408e25
mov esi, eax
cmp esi, ebx
jl 0x40aac8
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 0x40a9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x40a9c6
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40aac8
test byte [ebp - 0x258], 0x10
jne 0x40aa50
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 0x40aa50
cmp eax, dword [edx + 0x14]
jne 0x40aa50
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408c08
mov esi, eax
test esi, esi
js 0x40aa9e
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
call fcn.00408e25
mov esi, eax
test esi, esi
js 0x40aa9e
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.0040ab02
mov esi, eax
test esi, esi
jns 0x40aa6d
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a9cc
jmp 0x40aa83
push dword [ebp - 0x25c]
lea ecx, [edi + 4]
xor eax, eax
call fcn.00408c08
mov esi, eax
test esi, esi
js 0x40aa9e
mov eax, dword [ebp - 0x264]
cmp eax, 0xffffffff
jne 0x40aa95
mov esi, 0x80070002
jmp 0x40aab3
or dword [ebp - 0x264], 0xffffffff
mov dword [edi], eax
cmp dword [ebp - 0x264], 0xffffffff
je 0x40aab3
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x268], 0xffffffff
je 0x40aac8
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp - 0x25c], ebx
je 0x40aadd
push dword [ebp - 0x25c]
call fcn.004091af
cmp dword [ebp - 0x260], ebx
je 0x40aaf0
push dword [ebp - 0x260]
call fcn.004091af
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418955
leave
ret 8
Function at 0x40ab02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x428050]
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.00409e47
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ab6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ab5a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ac45
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ac45
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 0x40abb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40aba2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ac39
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ac39
cmp dword [ebp - 0x30], 0x24
je 0x40abc6
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ac39
mov eax, dword [ebp - 0x28]
cmp dword [ebp + 0xc], eax
je 0x40abf8
cmp dword [ebp + 0xc], edi
jne 0x40abef
cmp eax, 0xb0c50000
je 0x40abf8
cmp eax, 0xb0c50001
je 0x40abf8
cmp eax, 0xb0c50002
je 0x40abf8
cmp eax, 0xb0c50003
je 0x40abf8
mov dword [ebp - 0x2c], 0x8007000d
jmp 0x40ac39
cmp dword [ebp + 0x10], edi
je 0x40ac1a
mov esi, dword [ebp + 0x10]
push 0x10
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40ac11
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40abef
mov esi, dword [ebp - 0x34]
xor edi, edi
cmp esi, edi
je 0x40ac31
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40ac2c
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
jmp 0x40ac31
cmp eax, dword [ebp - 0x14]
jne 0x40abef
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40ac45
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.00418955
leave
ret 0xc
Function at 0x40ac59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x428050]
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.00409d23
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x40ad9c
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 0x40acd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jle 0x40acbc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], esi
jl 0x40ad9c
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ad9c
cmp dword [ebp - 0x30], 0x24
je 0x40ace3
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ad9c
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 0x40ad09
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x40ad9c
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 0x40ad4c
add esi, dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jne 0x40ad19
cmp esi, dword [ebp - 0x10]
je 0x40ad74
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ad7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ad66
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ad7d
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ad7d
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x40ad9c
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 0x40ad9c
call fcn.00409bf5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop esi
call fcn.00418955
leave
ret

Function at 0x40e27e
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 0x40e286
mov dword [ecx*4 + 0x42b300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e281
pop esi
ret
Function at 0x411b2a
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425491
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x428050]
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.00411998
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00411aa2
push 0xf
lea ecx, [esp + 0x14]
call fcn.00411aa2
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.00411a5d
push 0x10
push esi
call fcn.00411a5d
push 9
push esi
call fcn.00411a5d
push 6
push esi
call fcn.00411a5d
push 0x12
push esi
call fcn.00411a5d
push 0x14
push esi
call fcn.00411a5d
push 0x13
push esi
call fcn.00411a5d
push 0x15
push esi
call fcn.00411a5d
push 0xa
push esi
call fcn.00411a5d
push 0x16
push esi
call fcn.00411a5d
mov eax, esi
call fcn.00411a23
push ebx
push 0x61
call fcn.004149dc
push ebx
push 0x62
call fcn.004149dc
push ebx
push 0x63
call fcn.004149dc
push 0x14
pop edi
mov eax, esi
call fcn.00411adb
push 6
pop edi
mov eax, esi
call fcn.00411adb
push 9
pop edi
mov eax, esi
call fcn.00411adb
push 0x11
pop edi
mov eax, esi
call fcn.00411adb
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00412870
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret