joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c040
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40e960
push 0x4028f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x410004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, 6
mov esi, str.Usb30Monitor
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], esi
call fcn.0040a7f0
mov dword [0x413570], eax
call 0x40a760
mov dword [0x413574], eax
push str.IUsb3MonMutexString
push 1
push esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
call edi
mov dword [ebp - 0x3c], eax
cmp eax, esi
je 0x40c1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c1e4
push esi
push 1
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
call esi
mov dword [0x413544], eax
test eax, eax
je 0x40c1e4
push 0
push 1
push 1
push 0
call esi
mov dword [0x41355c], eax
xor esi, esi
cmp eax, esi
je 0x40c1e4
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x413548], eax
cmp eax, esi
je 0x40c1e4
mov dword [0x41354c], 1
mov dword [0x413550], 0x2710
mov dword [0x413560], esi
mov dword [0x41356c], esi
push esi
push esi
push 0x413540
push 0x40a370
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x413540], eax
cmp eax, esi
je 0x40c1e4
push str.B2CB09FF_2453_4f85_9F40_21C05BE4CBA8
push esi
push esi
call edi
mov dword [0x413584], eax
cmp eax, esi
je 0x40c1e4
push str.B6D22F93_22FB_4db9_9F39_42AFED80B597
push esi
push esi
call edi
mov dword [0x413588], eax
cmp eax, esi
je 0x40c1e4
call fcn.0040b090
test eax, eax
je 0x40c1e4
call 0x40a8d0
mov dword [0x413554], eax
cmp eax, esi
je 0x40c1e4
lea eax, [ebp - 0x38]
push eax
mov eax, ebx
call fcn.0040bfc0
add esp, 4
test eax, eax
je 0x40c1e4
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040b590
add esp, 4
test eax, eax
je 0x40c1e4
push esi
push esi
push esi
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, esi
je 0x40c1e4
cmp eax, 0xffffffff
je 0x40c1b8
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c1b8
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c210
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c210
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x413554]
test eax, eax
je 0x40c22a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x413554], 0
mov esi, dword [0x413540]
xor edi, edi
test esi, esi
je 0x40c269
mov dword [0x413540], edi
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x40c255
mov ecx, dword [0x413548]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x40c26f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x413548]
cmp eax, edi
je 0x40c281
push eax
call esi
mov dword [0x413548], edi
mov eax, dword [0x41355c]
cmp eax, edi
je 0x40c293
push eax
call esi
mov dword [0x41355c], edi
mov eax, dword [0x413544]
cmp eax, edi
je 0x40c2a5
push eax
call esi
mov dword [0x413544], edi
mov eax, dword [0x413588]
cmp eax, edi
je 0x40c2d3
cmp dword [0x41358c], 1
jne 0x40c2c4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [0x41358c], edi
mov edx, dword [0x413588]
push edx
call esi
mov dword [0x413588], edi
mov eax, dword [0x413584]
cmp eax, edi
je 0x40c2e5
push eax
call esi
mov dword [0x413584], edi
mov ebx, dword [ebp - 0x3c]
cmp ebx, edi
je 0x40c2f6
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call esi
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x71011046
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x4cf86289
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402954
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040406c
test esi, esi
jne 0x40298a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040415c
jmp 0x4029a8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402868
mov edi, eax
test esi, esi
je 0x4029a8
cmp dword [ebx], 0
je 0x4029a8
dec esi
jmp 0x402991
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x429008], 0x8088405
inc edx
mov dword [ebx + 0x429008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4033dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x429024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403474
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403454
xor eax, eax
push ebp
push 0x40344d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403490
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403454
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x429024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x429024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42a044], 0
je 0x403ed5
cmp word [0x42a218], 0xd7b2
jne 0x403e9d
cmp dword [0x42a220], 0
jbe 0x403e9d
mov eax, 0x42a214
call dword [0x42a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x429090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403efc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x429030], 0
jne 0x403ef1
push 0
push 0x429088
push 0x429090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404028
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402694
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x42a045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ff0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4051fc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40542c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40527f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40542c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40527f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405448
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405308
xor eax, eax
push ebp
push 0x405301
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405044
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405468
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052e6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405308
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405422
cmp byte [ebp - 0xd], 0
jne 0x40534f
cmp byte [ebp - 0x12], 0
je 0x405422
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405368
dec ebx
cmp byte [ebx], 0x2e
je 0x405377
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405367
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405422
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053b4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405422
cmp byte [ebp - 0xd], 0
je 0x405422
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405422
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405308
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40542c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40527f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40542c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40527f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405448
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405308
xor eax, eax
push ebp
push 0x405301
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405044
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405468
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052e6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405308
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405422
cmp byte [ebp - 0xd], 0
jne 0x40534f
cmp byte [ebp - 0x12], 0
je 0x405422
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405368
dec ebx
cmp byte [ebx], 0x2e
je 0x405377
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405367
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405422
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053b4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405422
cmp byte [ebp - 0xd], 0
je 0x405422
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405422
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ab8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405b1e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fd0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b08
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b25
lea eax, [ebp - 0x10]
call fcn.0040406c
ret

Function at 0x4061e8
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4290e8], 0
jne 0x4062ba
mov byte [0x4290e8], 1
xor eax, eax
mov dword [0x4290e0], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x406230
cmp dword [esp + 0x1c], 3
jne 0x406290
cmp dword [esp + 0x20], 0x33
jbe 0x406290
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x4062c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4062ba
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4062f4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4062ba
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x4062ba
cmp byte [esp + 9], 0
jne 0x4062ba
jmp 0x4062a5
push 0
push 0x4062f4
push 0x4062fc
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x4062ba
mov eax, dword [0x4290dc]
call fcn.00404508
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4290e0], eax
add esp, 0xac
ret

Function at 0x406ba8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
xor eax, eax
push ebp
push 0x406c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040406c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404508
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x406c59
mov eax, ebx
mov edx, 0x73
call fcn.00404638
push 0
lea eax, [ebp - 8]
push eax
push 0x73
mov eax, ebx
call fcn.00404560
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebx]
mov eax, 0x406c84
call fcn.004045f0
test eax, eax
jne 0x406c3a
mov eax, ebx
call fcn.0040406c
jmp 0x406c59
push ebx
mov edx, dword [ebx]
mov eax, 0x406c90
call fcn.004045f0
mov ecx, eax
dec ecx
sub ecx, 0x50
mov eax, dword [ebx]
mov edx, 0x51
call fcn.00404568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c76
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x406c94
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
xor eax, eax
push ebp
push 0x406d3c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 4]
call fcn.00404508
push eax
call sub.kernel32.dll_OpenFile
mov esi, eax
cmp esi, 0xffffffff
je 0x406d21
lea eax, [ebp - 8]
mov edx, 0x186a0
call fcn.00404638
push 0
lea eax, [ebp - 0xc]
push eax
push 0x186a0
lea eax, [ebp - 8]
call fcn.00404560
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x406d21
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 8]
mov eax, 0x406d54
call fcn.004045f0
test eax, eax
jle 0x406d21
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d43
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404090
ret

Function at 0x406d6c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
mov eax, dword [ebp - 8]
call fcn.004044f8
xor eax, eax
push ebp
push 0x406dee
push dword fs:[eax]
mov dword fs:[eax], esp
xor bl, 1
neg bl
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404508
push eax
mov eax, dword [ebp - 4]
call fcn.00404508
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test byte [ebp + 0x10], bl
je 0x406dd3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.004072a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406df5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404090
ret
Function at 0x406e4c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
xor eax, eax
push ebp
push 0x406fdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404308
cmp eax, 2
jl 0x406fb1
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x406ff4
mov edx, dword [ebp - 4]
call fcn.00404354
mov eax, dword [ebp - 0x150]
call fcn.00404508
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406f89
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004042dc
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404354
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004042dc
test byte [ebp - 0x14c], 0x10
je 0x406f52
mov eax, dword [ebp - 0xc]
mov edx, 0x407000
call fcn.00404454
je 0x406f74
mov eax, dword [ebp - 0xc]
mov edx, 0x40700c
call fcn.00404454
je 0x406f74
lea eax, [ebp - 0x158]
mov ecx, 0x407018
mov edx, dword [ebp - 8]
call fcn.00404354
mov eax, dword [ebp - 0x158]
call fcn.00406e4c
jmp 0x406f74
mov eax, dword [ebp - 8]
call fcn.00404508
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x406f74
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x406ed1
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00404508
mov ebx, eax
push ebx
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x406fb1
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406fe3
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404090
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404090
ret
Function at 0x407168
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x407278
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.004069a4
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 4]
call fcn.00404104
xor edx, edx
mov eax, 2
call fcn.004066c0
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004066e0
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x407248
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004042dc
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004069a4
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
call fcn.00404454
jne 0x407239
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov edx, edi
mov eax, esi
call fcn.00406700
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4071ea
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40727f
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00404090
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x4076d4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
xor eax, eax
push ebp
push 0x407761
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00404508
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x40773f
test ebx, ebx
je 0x40773f
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.00404264
jmp 0x407746
mov eax, esi
call fcn.0040406c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407768
lea eax, [ebp - 4]
call fcn.0040406c
ret

Function at 0x407ad8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407b38
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x15]
mov ecx, 0x11
call fcn.004042dc
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00406968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407b3f
lea eax, [ebp - 0x1c]
call fcn.0040406c
ret

Function at 0x407b44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407bc3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004042dc
lea eax, [ebp - 0x10c]
mov edx, 0x407bd8
call fcn.00404310
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004069a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407bca
lea eax, [ebp - 0x10c]
call fcn.0040406c
ret