joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a2cd
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4044
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x4040], eax
push ebx
push ebp
push esi
push edi
mov esi, 0x1000
lea eax, [esp + 0x50]
push esi
xor edi, edi
push edi
push eax
call fcn.1005c640
push edi
xor ebx, ebx
lea eax, [esp + 0x60]
inc ebx
mov ebp, 0x800
push ebx
push ebp
push eax
call fcn.100281de
add esp, 0x1c
test eax, eax
je 0x1003a47e
lea eax, [esp + 0x50]
push eax
push str.11.281.2
call fcn.100754f1
pop ecx
pop ecx
test eax, eax
jg 0x1003a47e
push esi
lea eax, [esp + 0x3054]
push edi
push eax
call fcn.1005c640
push edi
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x3064]
push ebp
push eax
call fcn.1002840a
add esp, 0x1c
test eax, eax
je 0x1003a47e
push esi
lea eax, [esp + 0x1054]
push edi
push eax
call fcn.1005c640
lea eax, [esp + 0x305c]
push eax
lea eax, [esp + 0x1060]
push ebp
push eax
call fcn.100754f1
push str._bin_ssvagent.exe
lea eax, [esp + 0x106c]
push ebp
push eax
call fcn.100754f1
push 0x3c
pop esi
push esi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.1005c640
push 0x1000
lea eax, [esp + 0x2084]
mov dword [esp + 0x48], esi
push edi
push eax
call fcn.1005c640
push str._high__jpisetup__register
lea eax, [esp + 0x2090]
push ebp
push eax
call fcn.100754f1
add esp, 0x48
call fcn.10034516
test eax, eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1050]
mov dword [esp + 0x18], 0x40
mov edx, str.open
mov dword [esp + 0x24], eax
mov ecx, str.runas
lea eax, [esp + 0x50]
cmove ecx, edx
push eax
mov dword [esp + 0x24], ecx
call fcn.100346f7
test eax, eax
mov edx, str.__old
mov ecx, str.__new
lea eax, [esp + 0x2054]
cmove ecx, edx
push ecx
push ebp
push eax
call fcn.100754f1
add esp, 0x10
lea eax, [esp + 0x2050]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1003a47a
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x4c], edi
je 0x1003a47a
push 0xffffffffffffffff
push dword [esp + 0x50]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [esp + 0x4c]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x1003a480
mov eax, ebx
mov ecx, dword [esp + 0x4050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x4044
ret
Function at 0x1003a81d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push esi
mov esi, dword [ebp + 0xf98]
lea eax, [ebp - 0x78]
push edi
push eax
push 1
push 0
push str.SoftwareJavaSoftJava_Web_Start_
mov dword [ebp - 0x80], esi
mov edi, 0x1000
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003a8c8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a8bf
cmp dword [ebp - 0x80], 1
jne 0x1003a8bf
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
mov ecx, 0x7ff
shr eax, 1
cmp eax, 0x800
cmovb ecx, eax
add ecx, ecx
cmp ecx, edi
jae 0x1003a8ed
xor eax, eax
mov word [ebp + ecx - 0x74], ax
lea eax, [ebp - 0x74]
push eax
jmp 0x1003a8cd
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100fca04
mov ecx, esi
call fcn.10001727
mov ecx, dword [ebp + 0xf8c]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100587af
add ebp, 0xf90
leave
ret
call fcn.100754f1
int3
Function at 0x1003a910
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x100bc224
call fcn.100587f7
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
call fcn.10001727
mov edi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x1003a945
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x1003a947
mov eax, ebx
test al, al
je 0x1003a952
push 0x100fc3b9
jmp 0x1003a970
test edi, edi
je 0x1003a95a
mov eax, dword [edi]
jmp 0x1003a95c
xor eax, eax
push eax
call fcn.1003ad1c
pop ecx
test eax, eax
jne 0x1003a9ab
lea ecx, [ebp - 0x14]
call fcn.1001d871
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x1003aa17
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d9ae
push eax
lea ecx, [ebp - 0x10]
call fcn.10001795
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003a9bb
call fcn.10001b26
jmp 0x1003a9bb
cmp eax, ebx
jne 0x1003aa17
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001795
lea ecx, [ebp - 0x10]
call fcn.1001d871
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x1003aa14
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a9e6
sub ecx, edx
push ecx
push dword [esi]
call fcn.100754f1
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.1000d9ae
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003aa0f
call fcn.10001b26
mov esi, dword [ebp - 0x10]
jmp 0x1003aa19
mov esi, dword [ebp - 0x10]
xor bl, bl
test edi, edi
je 0x1003aa24
mov ecx, edi
call fcn.10001b26
test esi, esi
je 0x1003aa2f
mov ecx, esi
call fcn.10001b26
mov al, bl
call fcn.100587c0
ret
Function at 0x1003aab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bc262
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
mov dword [ebp - 0x18], edi
xor ebx, ebx
lea eax, [ebp]
push 0x1000
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1005c640
mov eax, dword [ebp + 0x1010]
add esp, 0xc
test eax, eax
je 0x1003ab1b
mov esi, dword [eax]
jmp 0x1003ab1d
mov esi, ebx
movzx ecx, word [esi]
mov eax, ebx
mov edx, ebx
test cx, cx
je 0x1003ac42
cmp cx, 0x2e
jne 0x1003ab39
inc eax
cmp eax, 1
jg 0x1003ab4c
inc edx
movzx ecx, word [esi + edx*2]
test cx, cx
jne 0x1003ab2d
cmp eax, 1
jle 0x1003ac42
push 0x100fca6c
push esi
call fcn.100754f1
pop ecx
pop ecx
test eax, eax
js 0x1003ac42
push esi
call fcn.10039f71
pop ecx
test al, al
je 0x1003ac42
push 0x100fca88
lea ecx, [ebp - 0x14]
call fcn.10001727
push 0x100fca84
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000d9ae
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abae
call fcn.10001b26
push esi
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abd7
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003abe2
mov eax, dword [esi]
jmp 0x1003abe4
mov eax, ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ac2a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x100fcae0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003ac2a
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.10001727
test esi, esi
je 0x1003ac62
mov ecx, esi
call fcn.10001b26
jmp 0x1003ac62
push str.1.3.1
push esi
call fcn.100754f1
push esi
call fcn.10039f71
add esp, 0xc
mov ecx, edi
push 0x100fc3be
call fcn.1000d9ae
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x1003ac71
call fcn.10001b26
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100587af
add ebp, 0x1004
leave
ret
Function at 0x401900
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402670
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402670
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401960
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40e070]
test esi, esi
jle 0x401a80
mov eax, dword [0x40e074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401994
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a17
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401980
mov dword [esp], ebx
call fcn.00402350
mov edi, eax
test eax, eax
je 0x401aa7
mov eax, dword [0x40e074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402490
mov edx, dword [0x40e074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a10
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a20
add dword [0x40e070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40e074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401900
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40199e
mov eax, dword [0x40e074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401900
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401900
lea esi, [esi]
nop
Function at 0x401fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40e08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40e084]
sub esp, 4
test ebx, ebx
je 0x402015
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40200e
test esi, esi
je 0x40200e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ff0
mov dword [esp], 0x40e08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402375
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402380
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402375
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4023c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023b0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
invalid
and eax, 0x75b3ca4e
daa
dec esi
xor al, 0x70
mov byte [edi - 0x5b], 0x62
test byte [edi], ch
pop ds
xchg byte [edi], ch
jne 0x4153bd
invalid
Function at 0x401650
Capabilities:
Get common file path

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, 0x25c
cmp dword [ecx], 1
mov eax, dword [ecx + 4]
jbe 0x401848
mov ebx, dword [eax + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [section..bss], eax
sub esp, 0x10
test eax, eax
je 0x401837
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._OpenSCManagerW_12
mov dword [0x405004], eax
sub esp, 0xc
test eax, eax
je 0x401837
mov dword [esp + 8], ebx
mov dword [esp + 4], sym._service_handler_16
mov dword [esp], section..data
call sym._RegisterServiceCtrlHandlerExW_12
mov dword [0x405008], eax
sub esp, 0xc
test eax, eax
je 0x401837
lea esi, [ebp - 0x220]
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.drivers
mov dword [esp], esi
call dword [sym.imp.ntoskrnl.exe_wcscat]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_AddDllDirectory]
sub esp, 4
test byte [0x403018], 8
jne 0x401850
mov dword [ebp - 0x23c], 0x30
lea esi, [ebp - 0x23c]
mov dword [ebp - 0x238], 4
mov dword [ebp - 0x234], 5
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [esp + 4], esi
mov eax, dword [0x405008]
mov dword [esp], eax
call sym._SetServiceStatus_8
mov eax, dword [section..bss]
sub esp, 8
mov dword [esp], eax
call sym._wine_ntoskrnl_main_loop
test byte [0x403018], 8
jne 0x401888
mov dword [ebp - 0x23c], 0x30
mov dword [ebp - 0x238], 1
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [esp + 4], esi
mov eax, dword [0x405008]
mov dword [esp], eax
call sym._SetServiceStatus_8
mov eax, dword [0x405004]
sub esp, 8
mov dword [esp], eax
call sym._CloseServiceHandle_4
mov eax, dword [section..bss]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov ebx, dword [eax]
jmp 0x401675
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.starting_service_group__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401742
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.service_group__s_stopped_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4017bc
Function at 0x4019b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401a0b
cmp byte [esi + ebx - 1], 0xa
je 0x4019df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x4050b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402120
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4050b4]
movzx eax, al
bt eax, esi
jae 0x402180
mov ecx, dword [0x4050a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402026
test byte [0x403030], 8
jne 0x4020c0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403040], 8
jne 0x402070
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401ff5
cmp esi, 3
jbe 0x402030
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x404220]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401ff5
mov ecx, dword [0x4050b4]
test ecx, ecx
je 0x402160
mov dword [esp], 0x403040
call dword [0x4050b4]
test al, 8
je 0x401fcc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401fcc
mov ebx, dword [0x4050b4]
test ebx, ebx
je 0x402140
mov dword [esp], 0x403030
call dword [0x4050b4]
test al, 8
je 0x401fb9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401fbf
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x401f80
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x4020ca
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x40207e
mov eax, 0xffffffff
jmp 0x402026
Function at 0x4022e0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x4019c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x401a0b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4019fb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4019e1
jmp 0x401a00
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x401a5b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401a20
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401a20
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x401a3c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401710
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401a7d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401af0
mov esi, dword [ebx]
cmp esi, ebx
je 0x401af0
test esi, esi
je 0x401af0
cmp word [esi + 0x24], 2
jbe 0x401aea
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401aea
cmp dword [esi + 0x18], 0
je 0x401aea
test ebp, ebp
je 0x401aa5
cmp ebp, eax
jne 0x401aea
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401710
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401aca
cmp eax, dword [esi + 0x18]
jne 0x401aea
cmp dword [esp + 0x10], 0
je 0x401afd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402f90
add esp, 8
test eax, eax
je 0x401afd
mov esi, dword [esi]
cmp esi, ebx
jne 0x401a83
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x401ff0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f2408]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40219d
cmp dword [0x7f240c], 0
jne 0x402189
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402f20
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402040
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402050
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41b0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402085
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402f20
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4020e4
sub edx, esi
sar edx, 1
je 0x40219d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402100
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40219d
xor eax, eax
push ebx
test edx, edx
je 0x402138
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402138
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402121
xor eax, eax
test edx, edx
je 0x402152
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402152
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402140
xor eax, eax
test edx, edx
je 0x40216f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40216f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402160
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f2408]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret