joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e144
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49e28e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049d64c
xor eax, eax
push ebp
push 0x49e271
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49e1a9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49e1a9
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x49e25b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49e1bc
call fcn.00404170
jmp 0x49e278
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49e25b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49e25b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403af4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49e25b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c6d8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49e2a8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b2504]
mov dl, 1
mov eax, dword [0x49c17c]
call fcn.0040d008
call fcn.004040c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e278
mov eax, dword [ebp - 4]
call fcn.0049d658
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e295
lea eax, [ebp - 0x28]
call fcn.0040470c
ret
Function at 0x4a6980
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x400
push 4
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push esp
push ebx
push esi
push 0x10
call sub.ntdll.dll_NtQuerySystemInformation
push 0x8000
push ebx
push esi
call sub.kernel32.dll_VirtualFree_1
mov ebx, dword [esp]
push 4
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push esp
push ebx
push esi
push 0x10
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jne 0x4a69d5
mov eax, esi
jmp 0x4a69d7
xor eax, eax
pop edx
pop esi
pop ebx
ret

Function at 0x4a69dc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a6ae1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040470c
xor eax, eax
push ebp
push 0x4a6abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a6a98
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a6a91
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.004a6910
test eax, eax
je 0x4a6a8a
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x114]
call fcn.00409be0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004098a8
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00404760
jmp 0x4a6a9f
call fcn.00404170
jmp 0x4a6ac6
call fcn.00404170
jmp 0x4a6ac6
call fcn.00404170
jmp 0x4a6ac6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6ac6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6ae8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404730
ret
Function at 0x4a6fd4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4a7193
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov edx, dword [0x4b2388]
mov edx, dword [edx]
lea eax, [ebp - 8]
mov ecx, 0x4a71ac
call fcn.00404a18
mov eax, dword [ebp - 8]
call fcn.00409510
test al, al
je 0x4a70e3
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0040962c
test eax, eax
jne 0x4a7170
mov eax, dword [ebp - 8]
call fcn.004a6f98
mov esi, eax
cmp esi, 0x64
jb 0x4a7170
xor ecx, ecx
push ebp
push 0x4a70d7
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x168]
call fcn.00402e50
mov edx, 1
lea eax, [ebp - 0x168]
call fcn.004032d0
call fcn.00402934
mov edx, esi
sub edx, 0xf
lea eax, [ebp - 0x168]
call fcn.004032ec
call fcn.00402934
push 0
lea edx, [ebp - 0x12]
mov ecx, 0xa
lea eax, [ebp - 0x168]
call fcn.00402fa8
call fcn.00402934
mov edx, 0xa
lea eax, [ebp - 0x12]
cmp byte [eax], 0
je 0x4a70b9
xor ebx, ebx
jmp 0x4a70bd
inc eax
dec edx
jne 0x4a70b0
lea eax, [ebp - 0x168]
call fcn.00402fe8
call fcn.00402934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a70e3
test bl, bl
je 0x4a716c
lea eax, [ebp - 0x18]
mov edx, 0x4a71c0
call fcn.004047a4
push dword [ebp - 0x18]
mov eax, dword [0x4b2388]
push dword [eax]
push 0x4a71d0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404a8c
mov eax, dword [ebp - 0x1c]
call fcn.00409510
test al, al
je 0x4a716c
mov eax, dword [ebp - 8]
call fcn.00404bcc
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x4a714b
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0040962c
test eax, eax
jne 0x4a7170
push ebx
call sub.kernel32.dll_DeleteFileA
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 8]
call fcn.00404bcc
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404bcc
push eax
call sub.kernel32.dll_MoveFileA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a719a
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404730
lea eax, [ebp - 8]
call fcn.0040470c
ret
Function at 0x4a766c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bbc
xor eax, eax
push ebp
push 0x4a77be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4181e0]
call fcn.004038c8
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004929b8
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a7789
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, 0x20
mov eax, dword [ebp - 0xc]
call fcn.0040962c
test eax, eax
jne 0x4a777d
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004098e0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004049cc
mov ecx, eax
dec ecx
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.00404c2c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.004089e8
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x4a77d8
call fcn.004089e8
mov eax, dword [ebp - 0x20]
pop edx
call fcn.00404d10
dec eax
jne 0x4a777d
xor eax, eax
push ebp
push 0x4a776c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00404bcc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a777d
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4a76d4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a77c5
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404730
lea eax, [ebp - 0x14]
call fcn.0040470c
lea eax, [ebp - 0xc]
call fcn.0040470c
lea eax, [ebp - 4]
call fcn.0040470c
ret

Function at 0x4aa2d4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [0x4b52e8]
call fcn.00404bcc
push eax
push 0x800
lea eax, [ebp - 0x800]
push eax
mov eax, edi
call fcn.00404bcc
push eax
mov eax, esi
call fcn.00404bcc
push eax
mov eax, ebx
call fcn.00404bcc
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x800]
mov eax, dword [ebp + 8]
call fcn.004047fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4aa334
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4aa42e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x10000
call fcn.004027cc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4aa411
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041b7a8
xor eax, eax
push ebp
push 0x4aa3f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4b52e8]
call fcn.00404bcc
push eax
push 0x10000
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, ebx
call fcn.00404bcc
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x4aa3de
mov ebx, dword [ebp - 8]
jmp 0x4aa3d9
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404904
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.004099f4
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x4aa3ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa3fb
mov eax, dword [ebp - 4]
call fcn.0041b864
ret
Function at 0x4ab96c
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4abb0b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov ecx, dword [0x4b249c]
mov ecx, dword [ecx]
mov edx, dword [0x4b2388]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
call fcn.00404a18
mov eax, dword [ebp - 0x5c]
call fcn.00409510
test al, al
jne 0x4ab9d8
push 0x30
mov ecx, 0x4abb1c
mov edx, 0x4abb28
mov eax, dword [0x4b23f4]
mov eax, dword [eax]
call fcn.00477df0
jmp 0x4abaf0
mov eax, dword [0x4b249c]
mov eax, dword [eax]
mov edx, 0x4abba8
call fcn.00404b18
jne 0x4aba5f
call fcn.00402b60
mov eax, 0x1388
call fcn.004031ac
add eax, 0x1194
lea edx, [ebp - 0x60]
call fcn.00409008
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4b249c]
mov ecx, 0x4abbbc
call fcn.00404a18
push 0
mov ecx, dword [0x4b249c]
mov ecx, dword [ecx]
mov edx, dword [0x4b2388]
mov edx, dword [edx]
lea eax, [ebp - 0x64]
call fcn.00404a18
mov eax, dword [ebp - 0x64]
call fcn.00404bcc
push eax
mov ecx, 0x4abba8
mov edx, dword [0x4b2388]
mov edx, dword [edx]
lea eax, [ebp - 0x68]
call fcn.00404a18
mov eax, dword [ebp - 0x68]
call fcn.00404bcc
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040318c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [0x4b2388]
mov eax, dword [eax]
call fcn.00404bcc
push eax
push 0
push 0x30
push 0
push 0
push 0
push 0
mov ecx, dword [0x4b249c]
mov ecx, dword [ecx]
mov edx, dword [0x4b2388]
mov edx, dword [edx]
lea eax, [ebp - 0x6c]
call fcn.00404a18
mov eax, dword [ebp - 0x6c]
call fcn.00404bcc
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, esi
call fcn.004746c0
mov eax, dword [ebp - 0x58]
mov dword [0x4b52ec], eax
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4aa180
xor edx, edx
xor eax, eax
call fcn.004046c0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abb12
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.00404730
ret
Function at 0x4abc50
Capabilities:
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4abd46
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
mov eax, dword [0x4b23f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindow
mov edi, eax
test edi, edi
je 0x4abd28
push 0xff
lea eax, [ebp - 0x105]
push eax
push edi
call sub.user32.dll_GetWindowTextA
mov eax, dword [0x4b2540]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4abd16
inc ebx
xor esi, esi
lea ecx, [ebp - 0x10c]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0041bb20
mov eax, dword [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, pe_nt_image_headers32
call fcn.0040497c
mov edx, dword [ebp - 0x110]
pop eax
call fcn.00404d10
dec eax
jne 0x4abd12
push 0
mov eax, dword [0x4b52ec]
push eax
call sub.kernel32.dll_TerminateProcess
mov byte [ebp - 5], 1
jmp 0x4abd28
inc esi
dec ebx
jne 0x4abcc3
push 2
push edi
call sub.user32.dll_GetWindow
mov edi, eax
test edi, edi
jne 0x4abc9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abd4d
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00404730
ret

Function at 0x4abd58
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4abe9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, 1
mov edx, eax
mov eax, 8
call fcn.004a7ed4
mov dword [ebp - 8], eax
mov dword [ebp - 0x22c], 0x224
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 8]
call fcn.004a7ef4
cmp eax, 1
sbb eax, eax
inc eax
xor ebx, ebx
jmp 0x4abe70
lea eax, [ebx + 1]
push eax
lea eax, [esi + 0x380]
mov ecx, 1
mov edx, dword [0x4a984c]
call fcn.00405b5c
add esp, 4
imul eax, ebx, 0x89
mov edx, dword [esi + 0x380]
push esi
lea edi, [edx + eax*4]
lea esi, [ebp - 0x22c]
mov ecx, 0x89
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.0040497c
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.004098a8
mov edx, dword [ebp - 0x234]
lea ecx, [ebp - 0x230]
mov eax, dword [0x4b24d0]
mov eax, dword [eax]
call fcn.0041bd00
cmp dword [ebp - 0x230], 0
je 0x4abe5b
push 0
mov eax, dword [0x4b52ec]
push eax
call sub.kernel32.dll_TerminateProcess
mov byte [ebp - 1], 1
jmp 0x4abe78
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 8]
call fcn.004a7f14
cmp eax, 1
sbb eax, eax
inc eax
inc ebx
test al, al
jne 0x4abdc5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abea6
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.00404730
ret
Function at 0x4af83c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], edx
mov ebx, eax
lea edi, [ebp - 0x119]
xor eax, eax
push ebp
push 0x4afa6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
xor ecx, ecx
mov edx, 0x105
call fcn.0040318c
push 0
mov eax, ebx
call fcn.0045e5f8
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
mov dl, 1
mov eax, dword [0x4181e0]
call fcn.004038c8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
test ebx, ebx
je 0x4af9e7
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0x105
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.004a68e0
lea eax, [ebp - 0x120]
mov edx, edi
mov ecx, 0x105
call fcn.0040497c
mov eax, dword [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
mov eax, dword [0x4b23f4]
mov eax, dword [eax]
call fcn.00478270
mov edx, dword [ebp - 0x124]
pop eax
call fcn.00404b18
je 0x4af9d5
lea edx, [ebp - 0x12c]
xor eax, eax
call fcn.00402b00
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.00409874
mov eax, dword [ebp - 0x128]
push eax
lea eax, [ebp - 0x134]
mov edx, edi
mov ecx, 0x105
call fcn.0040497c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409874
mov edx, dword [ebp - 0x130]
pop eax
call fcn.00404b18
jne 0x4af9d5
lea eax, [ebp - 0x138]
mov edx, edi
mov ecx, 0x105
call fcn.0040497c
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4af9d5
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x13c]
call fcn.004090f4
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4af8d4
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4afa4d
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
xor eax, eax
push ebp
push 0x4afa3b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea ecx, [ebp - 0x140]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x140]
call fcn.00409144
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afa45
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x4af9ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afa72
lea eax, [ebp - 0x140]
mov edx, 9
call fcn.00404730
ret
Function at 0x405140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405169
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 0xc]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x405198
push esi
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4051c5
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
mov dword [edi], ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [0x40ec28]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405627
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405627
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405627
push dword [ebp - 4]
mov edx, edi
mov ecx, ebx
call fcn.00405200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405700
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push 0xf0000000
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax + 0x14]
push 0
mov eax, dword [eax + 0x20]
push 0
push 0x40ec24
mov dword [0x40ec28], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x405740
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa54
lea eax, [esp + 0x654]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0x404ddc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057f9
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x4057f2
cmp word [esp + 0x3c], 0x2e
je 0x4057e6
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x268]
push 0x404de8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x4057cd
lea ecx, [esp + 0x260]
call fcn.00405740
jmp 0x4057e6
lea ecx, [esp + 0x3c]
call fcn.00404f10
test eax, eax
je 0x4057e6
lea ecx, [esp + 0x260]
call fcn.00405630
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x405794
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4014dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014fe
cmp esi, eax
jae 0x4014d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014f0
cmp esi, eax
jae 0x4014d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret