joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1003e678
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1003e678
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1003e678
push 2
push ebx
lea eax, [ebp + 8]
push eax
push esi
call fcn.1003d2a0
add esp, 0x10
cmp eax, 2
je 0x1003e5b9
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebp + 8], ax
jne 0x1003e5ad
push 4
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.1003d2a0
add esp, 0x10
cmp eax, 4
jne 0x1003e5ad
add ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003e5e8
mov dword [eax], ebx
push 2
lea eax, [ebx + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.1003d2a0
add esp, 0x10
cmp eax, 2
jne 0x1003e5ad
movzx eax, word [ebp + 8]
cmp eax, 0x14c
je 0x1003e643
cmp eax, 0x8664
jne 0x1003e5ad
push 0x108
push ebx
push edi
push esi
call fcn.1003d2a0
add esp, 0x10
cmp eax, 0x108
jne 0x1003e5ad
cmp dword [edi], 0x4550
mov eax, 0x40
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf8
push ebx
push edi
push esi
call fcn.1003d2a0
add esp, 0x10
cmp eax, 0xf8
jne 0x1003e5ad
cmp dword [edi], 0x4550
mov eax, 0x20
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446479
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x49c278], eax
mov dword [0x49c274], ecx
mov dword [0x49c270], edx
mov dword [0x49c26c], ebx
mov dword [0x49c268], esi
mov dword [0x49c264], edi
mov word [0x49c290], ss
mov word [0x49c284], cs
mov word [0x49c260], ds
mov word [0x49c25c], es
mov word [0x49c258], fs
mov word [0x49c254], gs
pushfd
pop dword [0x49c288]
mov eax, dword [ebp]
mov dword [0x49c27c], eax
mov eax, dword [ebp + 4]
mov dword [0x49c280], eax
lea eax, [ebp + 8]
mov dword [0x49c28c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x49c1c8], 0x10001
mov eax, dword [0x49c280]
mov dword [0x49c17c], eax
mov dword [0x49c170], 0xc0000409
mov dword [0x49c174], 1
mov eax, dword [0x499c0c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x499c10]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x49c1c0], eax
push 1
call fcn.0044d3e0
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x410f48
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x49c1c0], 0
jne 0x446565
push 1
call fcn.0044d3e0
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x4467ff
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444cdc
Function at 0x4011ef
Capabilities:
Create thread
Execute command
Monitor clipboard content
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4764c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.BufferTranslator_by_oldORM
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, 0xfde9
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push str.Enter_source_language_code__e.g._en__ru__ja_:
call fcn.0040100c
mov esi, 0x473da0
mov dword [esp], 0x4769a8
push esi
call fcn.0040103a
push str.Enter_target_language_code__e.g._en__ru__ja_:
call fcn.0040100c
push 0x47699c
push esi
call fcn.0040103a
push 0x473dd4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.e_32mThe_translator_has_started_working___n
call fcn.0040100c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x1c
xor ebx, ebx
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0x401068
push ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call esi
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x24], ebx
mov edi, str.BufferTranslator
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push ebx
push ebx
call esi
push eax
push ebx
push 0xfffffffffffffffd
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x473e28
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_AddClipboardFormatListener]
push ebx
push ebx
push esi
push 0x40118f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x4012f9
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x4012e5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fb12
leave
ret
Function at 0x401315
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x4769e0
call sub.VCRUNTIME140.dll__setjmp3
mov dword [0x476a20], eax
pop ecx
pop ecx
test eax, eax
jne 0x401398
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xfde9
mov dword [ebp - 4], eax
call ebx
mov esi, eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov edi, eax
xor eax, eax
push eax
push eax
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 4]
push eax
push 0xfde9
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
jmp 0x4013b8
cmp eax, 0xb5
jne 0x4013a6
push str.Failed_to_access_clipboard_n
jmp 0x4013b0
cmp eax, 0x25
jne 0x4013b8
push str.Failed_to_allocate_memory_for_clipboard_text_n
call fcn.0040100c
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013bd
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push edi
push ebx
push 0x4769e0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VCRUNTIME140.dll__setjmp3
mov dword [0x476a20], eax
pop ecx
pop ecx
test eax, eax
jne 0x4014c7
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ecx, ecx
push 2
pop edx
mov ebx, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov edi, eax
xor ecx, ecx
push 0x1c
pop edx
lea eax, [ebx + ebx]
mov dword [ebp - 8], edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
pop ecx
test edi, edi
je 0x4014ba
test esi, esi
je 0x4014ba
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
imul eax, ebx, 0x38
xor ebx, ebx
push eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, ebx
cmp word [edi], bx
je 0x4014ae
lea ecx, [esi + 0x24]
mov ebx, edi
mov esi, edx
mov dword [ecx - 0x24], 1
add edx, 2
mov ax, word [ebx]
inc esi
mov word [ecx - 0x1e], ax
mov dword [ecx - 0x1c], 4
mov dword [ecx - 8], 1
mov ax, word [ebx]
lea ebx, [edi + esi*2]
mov word [ecx - 2], ax
xor eax, eax
mov dword [ecx], 6
lea ecx, [ecx + 0x38]
cmp word [ebx], ax
jne 0x401471
mov esi, dword [ebp - 4]
push 0x1c
push esi
push edx
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x4014f8
push 0x25
push 0x4769e0
call dword [sym.imp.VCRUNTIME140.dll_longjmp]
cmp eax, 0x25
jne 0x4014d3
push str.Failed_to_allocate_memory_for_input_simulation_n
jmp 0x4014df
cmp eax, 0xb5
jne 0x4014f2
push str.Failed_to_simulate_keyboard_input_n
call fcn.0040100c
mov dword [esp], str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
pop ecx
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x401506
push edi
call ebx
pop ecx
test esi, esi
je 0x40150e
push esi
call ebx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
cmp dword [0x476540], 0
push esi
mov esi, dword [esp + 0xc]
jne 0x4030af
mov eax, 1
lock xadd dword [0x476544], eax
inc eax
cmp eax, 1
jne 0x40309e
test esi, esi
jne 0x403095
push ebx
push ebp
push edi
push str.advapi32.dll
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x403074
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x403074
push str.CryptGenRandom
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x403074
push 0x4616e0
push esi
call edi
mov edi, eax
test edi, edi
je 0x403074
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x28]
push eax
call ebx
test eax, eax
je 0x403074
lea eax, [esp + 0x10]
push eax
push 4
push dword [esp + 0x20]
call ebp
push 0
push dword [esp + 0x1c]
mov esi, eax
call edi
test esi, esi
je 0x403074
mov eax, dword [esp + 0x10]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [esp + 0x12]
shl esi, 8
or esi, eax
movzx eax, byte [esp + 0x13]
shl esi, 8
or esi, eax
jmp 0x403088
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
pop edi
test esi, esi
mov eax, 1
pop ebp
cmove esi, eax
pop ebx
mov dword [0x476540], esi
pop esi
pop ecx
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x476540], 0
je 0x4030a4
pop esi
pop ecx
ret
Function at 0x4030c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
add ecx, 0xdeadbeef
push ebp
mov ebp, dword [esp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x004031ca
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
push ebx
mov eax, edx
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
nop dword [eax]
movzx esi, byte [ebp + 7]
movzx eax, byte [ebp + 6]
movzx edx, byte [ebp + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebp + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebp + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebp + 0xa]
add edi, esi
movzx esi, byte [ebp + 8]
add edx, eax
movzx eax, byte [ebp + 9]
add esi, ecx
movzx ecx, byte [ebp + 3]
shl edx, 8
add edx, eax
shl ecx, 8
movzx eax, byte [ebp + 2]
add ecx, eax
shl edx, 8
movzx eax, byte [ebp + 1]
add esi, edx
shl ecx, 8
mov ebx, esi
add ecx, eax
ror ebx, 0x1c
movzx eax, byte [ebp]
add ebp, 0xc
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [esp + 0x1c]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
ror eax, 0x1a
add ebx, esi
xor eax, edi
sub esi, eax
mov edx, eax
ror edx, 0x18
add eax, ebx
xor edx, esi
mov esi, edx
sub ebx, edx
ror esi, 0x10
add edx, eax
xor esi, ebx
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [esp + 0x1c], esi
sub edx, edi
mov ecx, edi
ror ecx, 0x1c
add edi, esi
xor ecx, edx
mov edx, dword [esp + 0x18]
sub edx, 0xc
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], edx
jne 0x403100
pop ebx
cmp edx, 0xc
ja 0x403238
jmp dword [edx*4 + 0x403284]
movzx eax, byte [ebp + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebp + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebp + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebp + 8]
add ecx, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebp + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebp + 4]
add edi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebp + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebp]
add esi, eax
mov dword [esp + 0x18], esi
xor ecx, edi
mov eax, edi
ror eax, 0x12
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [esp + 0x18]
ror eax, 0x15
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
ror eax, 0x1c
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
ror eax, 0x12
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebp
ret
Function at 0x40c850
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40c8ff
push esi
call fcn.00426370
add esp, 4
test al, al
jne 0x40c8ff
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40c877
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00430d30
add esp, 0xc
test eax, eax
je 0x40c8ab
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00430d30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c8ad
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x40c8de
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.0041f730
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x40c8c0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x413b30
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x4764c0]
xor eax, esp
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, 0x1b
mov dword [edi + 0x14], eax
mov eax, dword [edx]
mov eax, dword [eax + 4]
and eax, 0xa
cmp al, 0xa
mov eax, dword [edx + 0xc]
jne 0x413b79
mov esi, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
mov eax, dword [eax + 0x88]
jmp 0x413b85
mov esi, dword [eax + 0x38]
mov ebx, dword [eax + 0x3c]
mov eax, dword [eax + 0x504]
mov dword [edi + 0x10], eax
test esi, esi
je 0x413cc9
cmp byte [esi], 0
je 0x413cc9
push esi
call dword [0x47602c]
mov edx, eax
add esp, 4
mov dword [edi], edx
test edx, edx
je 0x413cce
test ebx, ebx
je 0x413bf4
mov eax, ebx
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x413bd5
test cl, cl
je 0x413bd1
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x413bd5
add esi, 2
add eax, 2
test cl, cl
jne 0x413bb5
xor eax, eax
jmp 0x413bda
sbb eax, eax
or eax, 1
test eax, eax
je 0x413bf4
push ebx
call dword [0x47602c]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x413bf7
jmp 0x413cce
mov dword [edi + 4], edx
mov esi, dword [edi]
test esi, esi
je 0x413c5c
cmp byte [esi], 0
je 0x413c5c
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x10]
push eax
push esi
push 2
call ebx
test eax, eax
je 0x413c32
mov dword [edi + 0xc], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045fb12
add esp, 0x14
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0x17
call ebx
test eax, eax
je 0x413c5c
mov dword [edi + 0xc], 2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045fb12
add esp, 0x14
ret
mov ecx, dword [edi]
mov esi, ecx
mov dword [edi + 0xc], 0
lea edx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x413c70
sub esi, edx
je 0x413c83
cmp byte [ecx + esi - 1], 0x2e
jne 0x413c83
dec esi
cmp esi, 0xffff
jae 0x413cb4
lea eax, [esi + 1]
push eax
push 1
call dword [0x476030]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x413cce
push esi
push dword [edi]
push eax
call fcn.0041f790
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045fb12
add esp, 0x14
ret
mov ebp, 2
mov eax, dword [edi + 4]
cmp eax, dword [edi]
je 0x413cdf
push eax
call dword [0x476024]
add esp, 4
push dword [edi + 8]
call dword [0x476024]
push dword [edi]
call dword [0x476024]
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [edi + 4], 0
mov eax, ebp
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 0xc], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045fb12
add esp, 0x14
ret
Function at 0x419e40
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6aa], 0
je 0x419edd
cmp dword [esi + 0x1a4], 0
je 0x419e97
push esi
call fcn.00407600
push 1
push esi
mov byte [esp + 0x14], al
call fcn.00407f50
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.00407f50
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x419eac
sub eax, 1
je 0x419eac
sub eax, 1
jne 0x419edd
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x463474]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret
Function at 0x41d930
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x41d94a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x463e1c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
add esp, 8
test eax, eax
je 0x41d992
test ebp, ebp
je 0x41d983
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41d9b8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d9b8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x41da92
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d9d5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x476020]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41da88
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41da88
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41da16
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41da31
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x41da50
test ebp, ebp
je 0x41da7f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x476024]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x476024]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x420d30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x476634]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x420d81
push 3
push 2
push eax
push eax
push 6
call fcn.004513b0
add esp, 0x14
test al, al
je 0x420d75
mov dword [0x476634], 2
add esp, 0xc
ret
mov dword [0x476634], 1
jmp 0x420d86
cmp eax, 2
je 0x420dcc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x420db1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x420dcc
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x421870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4764c0]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x4219a8
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2b4]
test dword [eax + 0x48], 0x800
jne 0x4219a8
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x421936
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00430050
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00419ee0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0045fb12
add esp, 0x188
ret
lea eax, [esi + 0xfc]
push eax
lea eax, [esi + 0xca]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0041c3d0
add esp, 0x10
test al, al
jne 0x4219a8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00430050
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00419ee0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0045fb12
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045fb12
add esp, 0x188
ret

Function at 0x426370
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x4764c0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4263b8
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045fb12
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.0045fb12
add esp, 0x18
ret

Function at 0x426520
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x426567
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 0
jne 0x426555
push 0
call fcn.00426520
add esp, 4
test al, al
mov eax, dword [esi + 0x88]
setne cl
inc cl
mov byte [eax + 0x164], cl
mov eax, dword [esi + 0x88]
pop esi
cmp byte [eax + 0x164], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x42657c
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret