joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051a4
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 0x4053d4
push reloc.kernel32.dll_BaseThreadInitThunk
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405227
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4053d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405227
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4053f0
push reloc.kernel32.dll_BaseThreadInitThunk
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4052b0
xor eax, eax
push ebp
push 0x4052a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404fec
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 0x40528e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405410
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40528e
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 0x4052b0
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 0x4053ca
cmp byte [ebp - 0xd], 0
jne 0x4052f7
cmp byte [ebp - 0x12], 0
je 0x4053ca
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405310
dec ebx
cmp byte [ebx], 0x2e
je 0x40531f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40530f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4053ca
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40535c
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 0x4053ca
cmp byte [ebp - 0xd], 0
je 0x4053ca
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 0x4053ca
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 0x406b10
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004044e8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x406b32
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408438
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 0x408471
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404170
jmp 0x40847a
mov eax, ebx
mov edx, esi
call fcn.004040d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408484
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 0x4084a5
mov al, byte [esp]
jmp 0x4084a7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x408b2c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4089a4
mov eax, dword [0x40e4cc]
cmp byte [eax], 0
je 0x408b94
mov eax, dword [0x40e410]
call fcn.00402c78
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406e14
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x408bdc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x408bca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40e3ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40f710]
call fcn.00404fb0
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 0x409670
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4096d4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042c4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406974
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096db
lea eax, [ebp - 0xc]
call fcn.00404080
ret
Function at 0x40a3f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a582
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e538]
cmp dword [eax], 2
jne 0x40a4c4
mov byte [ebp - 0x203], bl
mov byte [ebp - 0x202], 0x3a
mov byte [ebp - 0x201], 0
mov byte [ebp - 0x102], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x102]
push eax
lea eax, [ebp - 0x203]
push eax
call sub.kernel32.dll_QueryDosDeviceA
mov edx, esi
lea eax, [ebp - 0x102]
call fcn.00406f6c
lea eax, [ebp - 0x208]
push eax
mov eax, dword [esi]
mov ecx, 4
mov edx, 1
call fcn.00404548
mov eax, dword [ebp - 0x208]
mov edx, 0x40a598
call fcn.00404434
jne 0x40a4b8
push esi
mov eax, dword [esi]
call fcn.004042f0
mov ecx, eax
mov eax, dword [esi]
mov edx, 5
call fcn.00404548
jmp 0x40a564
mov eax, esi
call fcn.00404080
jmp 0x40a564
lea eax, [ebp - 0x210]
mov edx, ebx
call fcn.00404248
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00406810
mov eax, dword [ebp - 0x20c]
mov al, byte [eax]
sub al, 0x40
mov byte [ebp - 1], al
mov byte [ebp - 0x102], 0
pushal
push es
xor ebx, ebx
mov bh, 2
mov bl, byte [ebp - 1]
lea edx, [ebp - 0x102]
push 0
push 0x71aa
push 0x2a0010
call sub.kernel32.dll_BaseThreadInitThunk
pop es
popal
mov edx, esi
lea eax, [ebp - 0x102]
call fcn.00406f6c
cmp dword [esi], 0
je 0x40a564
pushal
push ds
push es
xor ebx, ebx
lea esi, [ebp - 0x102]
lea edi, [ebp - 0x203]
mov ecx, 0
mov cl, 2
mov ch, 0
push ecx
push 0x7160
push 0x2a0010
call sub.kernel32.dll_BaseThreadInitThunk
pop es
pop ds
popal
mov edx, esi
lea eax, [ebp - 0x203]
call fcn.00406f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a589
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.004040a4
ret
Function at 0x40a63c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004044d8
xor eax, eax
push ebp
push 0x40a770
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040a5d8
mov esi, eax
test esi, esi
jle 0x40a752
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404548
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044e8
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40a752
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042f0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404548
cmp dword [ebp - 0xc], 0
jne 0x40a6d9
xor esi, esi
jmp 0x40a6e3
mov eax, dword [ebp - 0xc]
call fcn.004044e8
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40a749
mov eax, dword [ebp - 0x18]
call fcn.00402564
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40a742
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x40a739
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x40a749
mov eax, edi
call fcn.00402584
jmp 0x40a749
mov eax, edi
call fcn.00402584
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a777
lea eax, [ebp - 0xc]
call fcn.00404080
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x40a828
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004044d8
xor eax, eax
push ebp
push 0x40a933
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040a5d8
mov esi, eax
test esi, esi
jle 0x40a915
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404548
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044e8
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40a915
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042f0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404548
cmp dword [ebp - 0xc], 0
jne 0x40a8e7
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x40a90c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044e8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a93a
lea eax, [ebp - 0xc]
call fcn.00404080
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x40b3b8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push edi
push 0
push ebx
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40b4c5
xor eax, eax
push ebp
push 0x40b4be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x4000
mov eax, dword [ebp - 0xc]
call fcn.00402564
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x40b48e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi], 0xffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00402e48
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov ebx, eax
cmp ebx, 0xea
jne 0x40b45b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004025a4
cmp ebx, 0xea
je 0x40b41d
test ebx, ebx
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x40b484
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00402584
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40b4a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4c5
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b7af
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx], 0xffffffff
xor eax, eax
mov dword [ebx + 4], eax
lea eax, [ebp - 0x81]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
test ax, ax
je 0x40b796
movzx eax, ax
cmp eax, 0x81
ja 0x40b796
lea esi, [ebp - 0x81]
jmp 0x40b791
inc dword [ebx]
inc dword [ebx + 4]
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x40b368]
call fcn.00404eec
add esp, 4
lea eax, [ebp - 0x88]
mov dl, byte [esi]
call fcn.00404248
mov edx, dword [ebp - 0x88]
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
lea eax, [ecx + eax*4]
mov ecx, 0x40b7c4
call fcn.0040433c
add esi, 4
cmp byte [esi], 0
jne 0x40b74a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7b6
lea eax, [ebp - 0x88]
call fcn.00404080
ret
Function at 0x40bc58
Capabilities:
Get common file path
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 4], ecx
mov edi, edx
xor edx, edx
push ebp
push 0x40bd1e
push dword fs:[edx]
mov dword fs:[edx], esp
dec eax
je 0x40bc8a
dec eax
je 0x40bc97
dec eax
je 0x40bca4
jmp 0x40bcc0
push 0x64
lea eax, [ebp - 0x68]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x40bcc0
lea eax, [ebp - 0x68]
push eax
push 0x64
call sub.kernel32.dll_GetTempPathA
jmp 0x40bcc0
lea eax, [ebp - 0x1f8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0x64
lea eax, [ebp - 0x68]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 4]
call fcn.00404080
mov esi, 1
jmp 0x40bceb
lea eax, [ebp - 0x1fc]
mov edx, ebx
call fcn.00404248
mov edx, dword [ebp - 0x1fc]
lea eax, [ebp - 4]
call fcn.004042f8
inc esi
mov bl, byte [ebp + esi - 0x69]
test bl, bl
jne 0x40bccf
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00406810
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd25
lea eax, [ebp - 0x1fc]
call fcn.00404080
lea eax, [ebp - 4]
call fcn.00404080
ret

Function at 0x40bf48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x40f8d0
cmp dword [edi], 0
jne 0x40bfc4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x40f8cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x40e38c
mov ecx, 2
call fcn.00402744
mov edx, 0x40bf20
lea eax, [esi + 5]
call fcn.0040bf40
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040bf40
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x40bf99
mov dword [0x40f8cc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40cbc8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ccb4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x40e534]
mov eax, dword [eax]
call fcn.00406de0
mov eax, 0x40ccc4
call fcn.0040272c
mov eax, 0x40ccd4
call fcn.00406de0
mov eax, 0x40cce4
call fcn.00406a70
test al, al
jne 0x40cc9e
mov edx, 0x40cce4
lea eax, [ebp - 0x150]
call fcn.00402bc8
mov edx, 1
lea eax, [ebp - 0x150]
call fcn.00403004
push 0
mov edx, dword [0x40f89c]
mov ecx, dword [0x40f8a0]
lea eax, [ebp - 0x150]
call fcn.00402d4c
lea eax, [ebp - 0x150]
call fcn.00402d6c
mov eax, 0x40cce4
mov edx, 7
call fcn.00406b10
mov bl, 1
mov eax, dword [0x40e534]
push dword [eax]
push 0x40ccf8
push 0x40cce4
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043b0
mov ecx, dword [ebp - 4]
mov edx, 0x40cd0c
mov eax, reloc.kernel32.dll_BaseThreadInitThunk
call fcn.0040a948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccbb
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x40d94c
Capabilities:
Create process on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40d954
push ecx
push ebx
mov eax, 0x40d8d4
call fcn.00405724
xor eax, eax
push ebp
push 0x40db6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x40db84
mov edx, 0x40db90
mov eax, reloc.kernel32.dll_BaseThreadInitThunk
call fcn.0040a948
mov dl, 1
mov eax, dword [0x40beb0]
call fcn.0040c0d0
mov eax, dword [0x40e520]
call fcn.0040b6f4
mov eax, dword [0x40e3c8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x40e460]
mov dword [eax], 0xffffffff
mov eax, dword [0x40e460]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [0x40e3ac]
mov byte [eax], 0
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402870
mov eax, dword [ebp - 0x14]
mov edx, 0x40dbe4
call fcn.00404434
jne 0x40da20
push 5
push 0x40dbf0
lea eax, [ebp - 0x20]
call fcn.00406dd4
mov eax, dword [ebp - 0x20]
mov dl, byte [eax]
lea eax, [ebp - 0x1c]
call fcn.00404248
push dword [ebp - 0x1c]
push 0x40dc0c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004043b0
mov eax, dword [ebp - 0x18]
call fcn.004044e8
push eax
call sub.kernel32.dll_WinExec
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.0040bc58
mov edx, dword [ebp - 0x24]
mov eax, dword [0x40e534]
call fcn.004040d4
lea edx, [ebp - 0x28]
mov eax, 2
call fcn.0040bc58
mov edx, dword [ebp - 0x28]
mov eax, dword [0x40e40c]
call fcn.004040d4
call fcn.0040b9b4
mov edx, dword [0x40e3ac]
mov byte [edx], al
call fcn.0040d364
call fcn.0040bd5c
mov ebx, eax
lea eax, [ebp - 0x30]
call fcn.00406dd4
mov eax, dword [ebp - 0x30]
mov dl, byte [eax]
lea eax, [ebp - 0x2c]
call fcn.00404248
lea eax, [ebp - 0x2c]
mov edx, 0x40dc0c
call fcn.004042f8
mov eax, dword [ebp - 0x2c]
call fcn.004044e8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
mov eax, dword [0x40e3cc]
setne byte [eax]
push 0x3f
call sub.user32.dll_GetSystemMetrics
and eax, 1
dec eax
mov eax, dword [0x40e4ec]
sete byte [eax]
mov eax, dword [0x40e4ec]
cmp byte [eax], 0
je 0x40dae9
lea edx, [ebp - 0x34]
mov eax, 3
call fcn.0040bc58
mov edx, dword [ebp - 0x34]
mov eax, dword [0x40e4dc]
call fcn.004040d4
mov eax, dword [0x40e460]
call fcn.0040b668
mov eax, dword [0x40e3ac]
cmp byte [eax], 0
jne 0x40db54
mov eax, dword [0x40e3cc]
cmp byte [eax], 0
jne 0x40db4a
call fcn.0040ba58
test al, al
je 0x40db11
test bl, bl
jne 0x40db11
call fcn.0040d868
jmp 0x40db54
test bl, bl
jne 0x40db34
call fcn.0040cb7c
mov eax, dword [0x40e520]
xor edx, edx
call fcn.0040d1d4
mov eax, dword [0x40e460]
xor edx, edx
call fcn.0040d1d4
jmp 0x40db3b
call fcn.0040c1e8
jmp 0x40db34
mov eax, dword [0x40e3d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40db54
call fcn.0040cbc8
call fcn.0040cb7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db76
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.004040a4
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x677e7233
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5cee106b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x4019af
cmp dword [ebp - 0x118], 0
je 0x4019af
jmp 0x401a13
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401a13
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x440934], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x440950], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x44094c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.00401300
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x4019af
mov esp, ebp
pop ebp
ret

Function at 0x401ab0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x440940], 0x24e1
mov eax, dword [0x440940]
sub eax, 0x24e1
mov dword [0x440940], eax
mov ecx, 1
test ecx, ecx
je 0x401b5b
mov edx, dword [0x440940]
cmp edx, dword [ebp + 0xc]
jb 0x401ae7
jmp 0x401b5b
cmp dword [0x440940], 0
jne 0x401b05
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401b05
xor eax, eax
jmp 0x401b5b
mov eax, dword [ebp + 8]
add eax, dword [0x440940]
mov ecx, dword [eax]
add ecx, dword [0x440940]
mov edx, dword [ebp + 8]
add edx, dword [0x440940]
mov dword [edx], ecx
mov dword [ebp - 4], 0xdaa90
mov eax, dword [0x440940]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x440940]
push eax
call fcn.004011c0
add esp, 8
mov ecx, dword [0x440940]
add ecx, 4
mov dword [0x440940], ecx
jmp 0x401acd
mov esp, ebp
pop ebp
ret

Function at 0x404cb6
Capabilities:
Read file on windows

Disassembly:
inc edi
sub byte [eax + 0x75c08500], 0x34
call dword [0x363174]
mov esp, fs
or dword [esi], 0xffffffff
mov edx, 0x55c312c0
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
jne 0x404c9f
and dword [esi], 0
in al, dx
push dword [ecx + eax*2 - 0x48]
add byte [ebp - 0x7c4a6c0], ch
ja 0x404cd9
mov eax, edi
lea ecx, [ebp + 8]
mov dh, 0
or dword [edx + 0x5051d608], 0xffffffff
jne 0x404d03
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp + 0x50], ecx
xchg ecx, eax
push cs
sub edi, ecx
test eax, eax
je 0x404cf5
test ecx, ecx
je 0x404d0f
test edi, edi
pop ebp
or ch, bl
invalid
or byte [esi - 0x36a4b9a1], dl
ret 4

Function at 0x407179
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
inc eax
neg byte [eax]
test al, 0x40
add byte [eax - 0x54], ch
inc eax
add byte [edx + 8], ch
push cs
invalid