joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402648
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push 0x244
push 0x4013a0
call fcn.00401637
xor edi, edi
mov dword [ebp - 0x1c], edi
mov ebx, 0x80
push ebx
push edi
lea eax, [ebp - 0xa8]
push eax
call fcn.0040384d
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x24], edi
dec dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
dec eax
je 0x4026ed
dec eax
je 0x4026ad
dec eax
je 0x402676
dec eax
jne 0x40277b
lea eax, [ebp - 0x254]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40277b
inc dword [ebp - 0x1c]
jmp 0x402676
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push dword [ecx + 4]
lea ecx, [eax + 2]
push ecx
add eax, 6
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00402cc7
cmp eax, edi
jle 0x40277b
push edi
push 0x12
push 0x12
push edi
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402676
jmp 0x40277b
push 0x4464
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x402769
mov dword [esi + 0x6c], 1
or dword [esi + 0x70], 0xffffffff
or byte [esi + 0x5c], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3ba8], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi + 0x3c58]
push eax
call fcn.00403834
mov dword [esi + 0x6c], 3
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push 0x403722
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esi + 0x3ba4]
mov dword [ecx], eax
cmp eax, edi
je 0x402769
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x74], edi
push 0xfffffffffffffff1
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x24]
push esi
call fcn.00401abc
cmp dword [ebp - 0x24], edi
jne 0x402676
lea eax, [ebp - 0xa8]
push eax
call fcn.004015a3
cmp dword [ebp - 0x1c], edi
je 0x4027ac
dec dword [ebp - 0x1c]
mov dword [ebp - 4], edi
call sub.WSOCK32.dll_WSACleanup
or dword [ebp - 4], 0xffffffff
jmp 0x402787
push 2
push 1
push 0x400
push dword [0x4050c0]
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.0040173e
ret 4
Function at 0x4027e6
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
push 0x4013d0
call fcn.00401637
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
push 0xfffffffffffffff4
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call ebx
mov dword [ebp - 0x20], eax
push 0x40
push edi
lea eax, [ebp - 0xb4]
push eax
call fcn.0040384d
mov word [ebp - 0xb4], 0x3c
push 0x40
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00403834
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00403864
mov dword [ebp - 0x40], 0x403c08
mov dword [ebp - 0x3c], 0x403c9a
mov dword [ebp - 0x38], 0x401c6d
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [esi], 0x238
mov dword [esi + 4], 6
cmp dword [ebp - 0x20], edi
je 0x4028c0
push 0xfffffffffffffff6
call ebx
cmp dword [ebp - 0x20], eax
jne 0x4028c0
mov dword [ebp - 0x28], 1
or byte [esi + 0x1bbc], 4
push 0x402997
call fcn.00401722
lea ecx, [ebp - 0x2c]
push ecx
push 4
push esi
push eax
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4028c0
and byte [esi + 0x1bbc], 0xfb
mov dword [ebp - 0x24], 0x4017d0
mov ecx, 0x401cfd
mov eax, dword [esi + 0x6c]
sub eax, 3
je 0x4028da
dec eax
jne 0x4028dc
mov dword [ebp - 0x24], edi
xor ecx, ecx
lea ebx, [esi + 0x1bc8]
push 2
push ecx
push ebx
push esi
call fcn.00401e99
test eax, eax
je 0x402954
push 1
push dword [ebp - 0x24]
lea eax, [esi + 0x78]
push eax
push esi
call fcn.00401e99
test eax, eax
je 0x402954
mov dword [ebp - 4], edi
cmp dword [ebp - 0x28], edi
jne 0x402912
push edi
push ebx
call fcn.00402f13
cmp dword [ebp - 0x1c], edi
je 0x40293a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402950
lea eax, [ebp - 0x74]
push eax
call fcn.00402522
test eax, eax
jne 0x40293a
jmp 0x402950
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x74]
push eax
call fcn.004038f2
call fcn.0040173e
ret 4
Function at 0x402b08
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [0x405044]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402c01
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 0x4011c8
je 0x402b45
mov dword [ebp - 4], 0x4011c4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 4]
lea ebx, [eax + edi - 3]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402bfe
push dword [ebp - 4]
push ebx
call esi
xor esi, esi
push esi
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402bfe
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402bfe
mov eax, dword [0x405044]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov edx, ecx
sub edx, eax
add edx, 0x16
xor eax, eax
cmp dword [ebp + 0xc], esi
mov dword [ebp + 8], edx
mov ax, word [ecx + 0x16]
jne 0x402bd3
or eax, 0x2000
jmp 0x402bd8
and eax, 0xdfff
push esi
push esi
push edx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x40308d
cmp dword [ebp + 0x1c], esi
jne 0x40305f
mov dword [ebx], 1
jmp 0x403084
cmp edi, esi
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
je 0x40306e
push 2
jmp 0x403070
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jne 0x403084
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40348d
Capabilities:
Create thread
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
cmp dword [0x4050b0], ebx
mov dword [0x405070], eax
jne 0x40337c
test eax, eax
jns 0x40337c
or dword [0x40506c], 0xffffffff
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x10], eax
call fcn.00402a43
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, ebx
je 0x4033fb
mov eax, dword [0x4050b4]
mov byte [0x405048], bl
cmp dword [eax + 0x28], ebx
jne 0x4033e5
mov dword [0x40506c], 2
call fcn.00402de5
mov edi, eax
mov eax, dword [0x4050b4]
push edi
mov dword [eax + 0x28], 1
call fcn.00403094
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp edi, ebx
je 0x4033dc
push edi
call ebp
cmp esi, ebx
jne 0x4033fb
jmp 0x403470
push dword [esp + 0x10]
mov dword [0x40506c], 1
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [0x40506c]
cmp eax, ebx
jne 0x40340f
cmp esi, ebx
jne 0x40341d
call fcn.00401626
jmp 0x403476
cmp eax, 2
je 0x403476
cmp esi, ebx
jne 0x40341d
cmp eax, 0xffffffff
jne 0x40342c
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4050c8], eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x402c05
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x403470
mov eax, dword [0x4050c8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x403468
push 0xffffffffffffffff
push eax
call esi
push dword [0x4050c8]
call ebp
mov dword [0x4050c8], ebx
push 0xffffffffffffffff
push edi
call esi
push edi
call ebp
push ebx
call fcn.00402fa0
cmp dword [esp + 0x10], ebx
pop edi
pop esi
je 0x403484
push dword [esp + 8]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebp
mov ebp, esp
push esi
mov esi, 0x405044
xor eax, eax
cmp dword [esi], eax
jne 0x4034c9
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp + 8]
jecxz 0x4034d8
cmp eax, ecx
je 0x4034d8
mov dword [esi], ecx
push eax
push dword [0x405008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, sym.rpcnetp.exe_rpcnetp
pop eax
jne 0x4034d8
call fcn.00401763
mov eax, 1
mov dword [0x4050b0], eax
pop esi
leave
ret 0xc
mov dword [esi], eax
pop esi
leave
jmp 0x403358
Function at 0x4034e1
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
xor esi, esi
push esi
push esi
xor ebp, ebp
inc ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x402fde
push 0x4011bc
mov dword [0x40504c], eax
mov dword [0x405050], 0x10
mov dword [0x40505c], 0x42a
mov dword [0x405060], ebp
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
cmp eax, esi
mov dword [0x4050b8], eax
je 0x4035d5
push ebx
push edi
push esi
push 0x1388
push 2
pop ebx
push ebx
mov dword [0x405058], ebp
call fcn.00402619
push esi
push esi
push 4
mov dword [0x405058], 5
call fcn.00402619
call fcn.004035db
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x402c05
push esi
push esi
mov dword [0x40505c], esi
mov dword [0x405060], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x40358c
mov dword [0x405060], ebx
jmp 0x4035bf
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x40504c]
call ebx
mov eax, dword [0x4050c0]
cmp eax, esi
je 0x4035b0
push esi
push esi
push 0x11
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x7530
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x40504c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push ebp
call fcn.00402619
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4035db
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [0x405004]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403641
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0x20
pop ebx
jmp 0x40361d
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x403610
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x403734
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [0x40506c], edi
jne 0x40376e
push esi
push dword [ebp + 8]
push 0x401218
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40376e
push 0x4012e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x4037b1
lea eax, [ebp + 0xc]
push eax
push 0x401328
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4037af
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4037a6
xor edi, edi
inc edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x4039e7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call fcn.004025bb
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x403a6d
cmp ebx, dword [esi]
jne 0x403a13
cmp ebx, edi
jge 0x403a13
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x403a30
dec eax
je 0x403a2b
dec eax
je 0x403a26
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x403a3f
mov bl, byte [esi + 0x1a]
jmp 0x403a49
mov bl, byte [esi + 0x1b]
jmp 0x403a49
mov bl, byte [esi + 0x18]
test edi, edi
je 0x403a3f
cmp edi, dword [ebp + 0x10]
jne 0x403a3f
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.004039c0
movzx eax, bl
bt dword [0x405144], eax
jae 0x403a60
push 0x7d
push esi
call fcn.004025bb
xor bl, 0x20
movzx eax, bl
push eax
push esi
call fcn.004025bb
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x403a09
push 0x7e
push esi
call fcn.004025bb
push esi
call fcn.00401c06
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00403df8
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408970
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
xor edx, eax
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
shr ecx, 8
mov edx, dword [edx*4 + 0x4464fc]
xor edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
imul ecx, ecx, 0x8088405
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shr ecx, 0x18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
shr edx, 8
mov eax, dword [eax*4 + 0x4464fc]
xor eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x40a12b
mov esi, esp
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00419880
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a121
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40a185
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40a14b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419a30
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x50
cmp ebp, esp
call fcn.00419880
mov esp, ebp
pop ebp
ret
Function at 0x40c6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x58]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c70e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
je 0x40c718
mov eax, 0x1000000
jmp 0x40c807
mov edx, dword [ebp - 4]
add edx, 0x140
mov esi, esp
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call fcn.00419880
mov eax, dword [ebp - 4]
add eax, 0x140
push eax
call fcn.004199b0
add esp, 4
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + eax + 0x13f]
mov byte [ebp - 8], dl
movsx eax, byte [ebp - 8]
cmp eax, 0x5c
je 0x40c77d
movsx ecx, byte [ebp - 8]
cmp ecx, 0x2f
je 0x40c77d
push 0x4470e8
mov edx, dword [ebp - 4]
add edx, 0x140
push edx
call fcn.0041aa50
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x40c7bf
mov esi, esp
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00419880
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp - 0xc], 0xffffffff
setne cl
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x10]
and edx, 0xff
test edx, edx
jne 0x40c7bf
mov eax, 0x2000000
jmp 0x40c807
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004010af
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40c7e5
mov eax, dword [ebp - 0x14]
jmp 0x40c807
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004013de
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c805
mov eax, 0x200
jmp 0x40c807
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x58
cmp ebp, esp
call fcn.00419880
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea edi, [ebp - 0x254]
mov ecx, 0x95
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
je 0x40d7b1
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.00419880
cmp eax, 0xffffffff
jne 0x40d7b1
mov esi, esp
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, esp
call fcn.00419880
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x40d7c0
jmp 0x40d8b5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d7fd
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x40d7ec
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40d7f2
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40d7cc
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x40d84f
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00419a30
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
mov byte [ebp + ecx - 0x110], 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040113b
add esp, 8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x214], 0
cmp dword [ebp + 8], 0
je 0x40d86f
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0041aa40
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.0041aa50
add esp, 8
mov esi, esp
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.00419880
cmp eax, 0xffffffff
jne 0x40d8b5
mov esi, esp
push 0
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, esp
call fcn.00419880
pop edi
pop esi
pop ebx
add esp, 0x254
cmp ebp, esp
call fcn.00419880
mov esp, ebp
pop ebp
ret
Function at 0x413210
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47721b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046b945
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413292
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004690fd
mov eax, dword [eax]
push 0x4901c0
push eax
call fcn.0045bee4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046bbd0
test bl, bl
je 0x413292
push 0x4901c0
lea ecx, [esp + 0xc]
call fcn.0046bf60
push 0x493d3c
lea ecx, [esp + 0xc]
call fcn.0046bf60
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4132ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046bbd0
jmp 0x413399
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x413352
lea edx, [esp + 0x7c]
push 0x493d38
push edx
call fcn.0045bee4
add esp, 8
test eax, eax
je 0x413352
lea eax, [esp + 0x7c]
push 0x493d34
push eax
call fcn.0045bee4
add esp, 8
test eax, eax
je 0x413352
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4132e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046bbd0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4145f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414652
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc