joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494dfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49505c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x494e5f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004948c4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c8d0
cmp al, 1
jne 0x494e5f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00494bdc
test al, al
je 0x494feb
cmp dword [ebp - 8], 0
jge 0x494e7d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004948c4
mov eax, dword [ebp - 0x210]
call fcn.00404228
cmp ebx, eax
jge 0x494ec7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004948c4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4a6f64]
and eax, 0xff
bt dword [edx], eax
jae 0x494ec7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x494edb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00494dd8
cmp ebx, dword [ebp - 8]
je 0x494fdd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x494f07
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403414
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a69fc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x494fca
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403414
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a69fc]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044300c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403414
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a69fc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044300c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494fd1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49503e
cmp dword [ebp - 8], 0
jge 0x494ff6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004948c4
mov eax, dword [ebp - 0x218]
call fcn.00404228
cmp eax, dword [ebp - 8]
jg 0x495030
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004948c4
mov eax, dword [ebp - 0x21c]
call fcn.00404228
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00494dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495063
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403f8c
ret
Function at 0x1000db20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d6e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax + 0x16], 0
je 0x1000dc4f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x12], eax
mov eax, edi
setne cl
cmp byte [ebp + 0xc], 0
je 0x1000db90
test cl, cl
je 0x1000db90
push dword [edi + 0x26]
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov eax, dword [esi + 4]
push dword [eax + 0x12]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov edi, eax
test edi, edi
jne 0x1000dbd0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000dbd0
mov eax, dword [esi + 4]
push dword [eax + 0x16]
push 1
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, 0x34
cmp eax, 1
cmovne edi, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x16]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
mov eax, dword [esi + 4]
push dword [eax + 0x16]
je 0x1000dc14
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
lea ecx, [ebp - 0x10]
mov edi, 0x34
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov ecx, dword [esi + 4]
add esp, 4
cmp edx, dword [ecx + 0x1e]
jl 0x1000dc32
jg 0x1000dc2c
cmp eax, dword [ecx + 0x1a]
jbe 0x1000dc32
mov dword [ecx + 0x1a], eax
mov dword [ecx + 0x1e], edx
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10010020
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
cwde
test eax, eax
je 0x10010052
mov ecx, dword [esi]
and al, 3
pop esi
cmp al, 2
jne 0x10010049
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033360
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033590
mov eax, 0x30
pop esi
pop ebp
ret
Function at 0x10035360
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1008ab18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov ebx, eax
test ebx, ebx
je 0x100354cc
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x100353ac
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x100353a8
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x100353ac
mov edi, eax
jmp 0x10035390
push 0x100
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x100354c4
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x100354c4
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
jne 0x100354c4
test edi, edi
je 0x100354c4
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test esi, esi
mov dword [ebp - 0x188], eax
pop esi
je 0x100354c4
cmp eax, edi
je 0x100354c4
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10035471
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push dword [ebp - 0x188]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a9e0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005a9e0
mov esp, ebp
pop ebp
ret
Function at 0x100354f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x1003551b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x10035544
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003555a
lea eax, [ebp - 0xc]
push eax
push 0x100355e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x100355a1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008baa8]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008ba20]
cmp eax, dword [ecx + 4]
jg 0x100355a8
jmp 0x1003557e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x1008ba1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x1008ba20
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
add esp, 4
cmp dword [0x1008ba20], 0xffffffff
jne 0x1003557b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x1008ba20
mov dword [0x1008ba1c], eax
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
add esp, 4
jmp 0x1003557b
Function at 0x10035720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061183
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100357b8
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x1008b8f8]
test eax, eax
jne 0x100357cc
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x52], edi
mov dword [eax + 0x56], ebx
mov eax, esi
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 0x10035860
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003586f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x10035bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008ba4c]
test eax, eax
jne 0x10035c19
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035c19
push esi
push 0x16c
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
add esp, 4
test eax, eax
je 0x10035be6
mov ecx, eax
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
mov esi, eax
jmp 0x10035be8
xor esi, esi
cmp byte [0x1008ba48], 0
jne 0x10035c02
mov ecx, esi
mov dword [0x1008ba4c], esi
call fcn.1001d780
mov eax, esi
pop esi
ret
push esi
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d780
mov eax, esi
pop esi
ret

Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call sym.ScCore.dll_private:_void___thiscall_ScCore::XML::nsToString_class_ScCore::String___void___bool_const
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004047b5
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004047b5
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004047b5
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004047b5
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004047b5
mov dword [0x41203c], eax
call fcn.004047b5
test eax, eax
jge 0x402550
push 8
call fcn.004047b5
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004047b5
pop ecx
push 1
call fcn.004047b5
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004047b5
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004047b5
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004047b5
jmp 0x402495

Function at 0x4047b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4047c4
pop dword [ebp - 0x34]
mov eax, 0x619482a8
add eax, 0x9eabc51c
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x39000
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x471e
xor edi, edi
add edi, eax
mov edx, 0x7a295ead
add edx, 0x8617dd17
add edx, dword [ebp - 0x34]
mov esi, 0x557479df
sub esi, 0x84be06c3
xor dword [ebp - 0x10], 0x3da2d6c9
mov ebx, dword [edx]
sub ebx, esi
mov dword [ebp - 0x10], 0x510b05d4
mov dword [edi], ebx
add dword [ebp - 0x1c], esi
add edi, 0x86f3b205
add edi, 0x790c4dff
add edx, 0xf7f8e73d
sub edx, 0xf7f8e739
loop 0x40481a
add eax, 0x57ab46f7
add eax, 0xa855c854
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x43acc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x43acd6
pop dword [ebp - 0x30]
mov eax, 0x43acd6
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3eb5e
push 0
mov eax, 0xdd4d7e25
sub eax, 0xdd0d6bed
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x4445
mov edx, eax
mov ebx, 0x72ec449b
add ebx, 0x8d598d65
add ebx, dword [ebp - 0x30]
mov esi, 0x737c7c7c
add esi, 0x938a0008
sub dword [ebp - 0xc], eax
mov edi, dword [ebx]
sub dword [ebp - 0x1c], edx
xor edi, esi
xor dword [ebp - 0x1c], 0x1891b168
mov dword [edx], edi
mov dword [ebp - 0x10], 0x66035218
add edx, 4
add ebx, 4
loop 0x43ad2a
add eax, 0x253c38f4
add eax, 0xdac4caf3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x871cd1c5
sub ecx, 0x86dcd1c5
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4182b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
mov edi, ecx
push ebx
lea ecx, [ecx + 0x14]
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
lea esi, [ebx + 0x50]
mov dword [ecx - 0x14], eax
movzx eax, byte [ebx + 4]
mov byte [ecx - 0x10], al
mov eax, dword [ebx + 0x10]
mov dword [ecx - 4], eax
lea eax, [ebx + 0x14]
mov dword [esp], eax
call fcn.0041fe60
lea eax, [ebx + 0x24]
lea ecx, [edi + 0x24]
sub esp, 4
mov dword [esp], eax
call fcn.0041fe60
mov eax, dword [ebx + 0x34]
sub esp, 4
lea ecx, [edi + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x4c], edx
mov dword [edi + 0x48], eax
movzx eax, byte [ebx + 0xd0]
mov byte [edi + 0xd0], al
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.0041f000
lea eax, [ebx + 0x1c]
lea ecx, [edi + 0x1c]
sub esp, 8
mov dword [esp], eax
call fcn.0041fe60
lea eax, [ebx + 0x2c]
lea ecx, [edi + 0x2c]
sub esp, 4
mov dword [esp], eax
call fcn.0041fe60
mov eax, dword [ebx + 0x50]
lea ecx, [edi + 0x50]
add edi, 0x54
sub esp, 4
mov dword [edi - 4], eax
mov eax, dword [ebx + 0xcc]
mov dword [edi + 0x78], eax
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
sub ecx, 0xffffff80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add esp, 0x10
pop ebx
pop esi
pop edi
ret 4
Function at 0x4183a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
mov edi, ecx
push ebx
lea ecx, [ecx + 0x14]
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
lea esi, [ebx + 0x50]
mov dword [ecx - 0x14], eax
movzx eax, byte [ebx + 4]
mov byte [ecx - 0x10], al
mov eax, dword [ebx + 0x10]
mov dword [ecx - 4], eax
lea eax, [ebx + 0x14]
mov dword [esp], eax
call fcn.0041ff30
lea eax, [ebx + 0x24]
lea ecx, [edi + 0x24]
sub esp, 4
mov dword [esp], eax
call fcn.0041ff30
mov eax, dword [ebx + 0x34]
lea ecx, [edi + 8]
sub esp, 4
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x4c], edx
mov dword [edi + 0x48], eax
movzx eax, byte [ebx + 0xd0]
mov byte [edi + 0xd0], al
lea eax, [ebx + 8]
mov dword [esp], eax
call fcn.0041f7c0
lea eax, [ebx + 0x1c]
lea ecx, [edi + 0x1c]
sub esp, 4
mov dword [esp], eax
call fcn.0041ff30
lea eax, [ebx + 0x2c]
lea ecx, [edi + 0x2c]
sub esp, 4
mov dword [esp], eax
call fcn.0041ff30
mov eax, dword [ebx + 0x50]
lea ecx, [edi + 0x50]
add edi, 0x54
sub esp, 4
mov dword [edi - 4], eax
mov eax, dword [ebx + 0xcc]
mov dword [edi + 0x78], eax
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
sub ecx, 0xffffff80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx], 0xffffffff
add esp, 0x10
pop ebx
pop esi
pop edi
ret 4
Function at 0x4263e0
Capabilities:
Extract resource via kernel32 functions
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
lea edi, [ebx + 0x2c]
sub esp, 0x1c
mov ecx, dword [ecx + 4]
and edi, 0xfffffffc
call fcn.004058c0
lea edx, [ebx + 0x28]
mov esi, eax
xor eax, eax
mov dword [ebx + 0x28], 0
mov ecx, edx
mov dword [edx + 0x7c], 0
sub ecx, edi
sub ecx, 0xffffff80
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x426470
mov dword [esp + 4], 0x7f
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_gethostname]
sub esp, 8
mov dword [esp], 0x18
call fcn.006ff530
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, esi
mov dword [esp], eax
call fcn.00429bd0
mov dword [ebx + 0xb0], esi
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00429c10
mov dword [esp + 8], 0x7f
mov eax, dword [esi + 0x48]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strtoul
jmp 0x426435
Function at 0x461d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x120]
lea edi, [ebp - 0x130]
sub esp, 0x14c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0x138], edi
jne 0x461e30
mov eax, 0x2e
mov dword [ebp - 0x134], 1
mov word [ebp - 0x130], ax
lea ecx, [ebp - 0x138]
mov dword [esp + 4], 6
mov dword [esp], str._xmrig
call fcn.006cf8f0
lea ebx, [ebp - 0x118]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x120], ebx
mov ecx, dword [eax]
cmp ecx, edx
je 0x461f00
mov dword [ebp - 0x120], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x11c], ecx
mov dword [eax], edx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov eax, dword [ebp - 0x138]
cmp eax, edi
je 0x461dcd
mov dword [esp], eax
call fcn.006ff4f0
mov eax, dword [ebp - 0x120]
mov edi, dword [sym.imp.msvcrt.dll__open]
mov dword [esp], eax
call edi
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x11c]
cmp eax, 6
jbe 0x461f58
mov dword [esp + 4], 7
mov dword [esp], str._.cache
mov ecx, esi
call fcn.006cf8f0
mov eax, dword [ebp - 0x120]
sub esp, 8
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x461e28
mov dword [esp], eax
call fcn.006ff4f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, esi
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x461e32
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
mov edx, eax
add dl, al
sbb ebx, 3
sub ebx, esi
cmp ebx, 0xf
mov dword [ebp - 0x13c], ebx
ja 0x461eb1
cmp ebx, 1
jne 0x461f30
movzx eax, byte [ebp - 0x120]
mov byte [ebp - 0x130], al
mov eax, edi
mov dword [ebp - 0x134], ebx
mov byte [eax + ebx], 0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x134]
cmp eax, 5
ja 0x461d60
mov dword [esp], 0x74ae04
call fcn.006f7840
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x138]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006cfa40
mov edx, dword [ebp - 0x13c]
sub esp, 8
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_putchar
mov ebx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x138]
jmp 0x461e87
mov ecx, dword [eax + 8]
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x114], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x110], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10c], ecx
jmp 0x461da5
test ebx, ebx
mov eax, edi
je 0x461e87
jmp 0x461ee2
mov dword [esp], 0x74ae04
call fcn.006f7840
mov edx, dword [ebp - 0x120]
mov esi, eax
cmp edx, ebx
je 0x461f78
mov dword [esp], edx
call fcn.006ff4f0
mov dword [esp], esi
call fcn.0053a5b0