joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fe00
Capabilities:
List drag and drop files
Read clipboard data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, ecx
test edi, edi
je 0x41fe13
xor eax, eax
mov word [edi], ax
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
push 0xf
mov ebp, eax
call esi
test ebp, ebp
jne 0x41fe2b
test eax, eax
je 0x41fe39
cmp dword [ebx + 0x18], 0
jne 0x41ff3b
test edi, edi
je 0x41fe42
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov ecx, ebx
call fcn.00420100
test eax, eax
jne 0x41fe63
push str.Cant_open_clipboard_for_reading.
mov ecx, ebx
call fcn.0041fb70
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
xor eax, eax
test ebp, ebp
sete al
lea eax, [eax*2 + 0xd]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebx], eax
test eax, eax
jne 0x41fe90
push eax
mov ecx, ebx
call fcn.0041fb70
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [ebx + 8], ecx
test ecx, ecx
jne 0x41feb6
push 0x4f68d4
mov ecx, ebx
call fcn.0041fb70
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
test ebp, ebp
je 0x41fed4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fec0
sub ecx, edx
sar ecx, 1
mov dword [ebx + 0x10], ecx
jmp 0x41ff17
mov ebp, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0
push 0x4f5b70
push 0xffffffffffffffff
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x41ff2a
lea ecx, [edi*2 - 2]
xor esi, esi
mov dword [ebx + 0x10], ecx
test edi, edi
je 0x41ff17
nop dword [eax]
push 0
push 0
push esi
push dword [ebx + 8]
call ebp
mov ecx, dword [ebx + 0x10]
inc esi
add ecx, eax
mov dword [ebx + 0x10], ecx
cmp esi, edi
jb 0x41ff00
cmp ecx, 0xffffffff
jb 0x41ffd6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
pop esi
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x10]
pop ebp
pop ebx
ret 4
test edi, edi
je 0x41ffd6
mov ecx, dword [ebx + 8]
test ebp, ebp
je 0x41ff63
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x41ff50
jmp 0x41ffa8
push 0
push 0x4f5b70
push 0xffffffffffffffff
push ecx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov ebp, eax
test ebp, ebp
je 0x41ffa8
xor esi, esi
test ebp, ebp
je 0x41ffa8
nop
push 0x3e7
push edi
push esi
push dword [ebx + 8]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea edi, [edi + eax*2]
lea eax, [ebp - 1]
cmp esi, eax
jae 0x41ffa3
mov dword [edi], 0xa000d
add edi, 4
inc esi
cmp esi, ebp
jb 0x41ff80
cmp dword [ebx + 0x18], 0
je 0x41ffd6
cmp dword [ebx + 8], 0
je 0x41ffc3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebx + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebx + 0x18], 0
mov dword [ebx], 0
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41ffe0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x210
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x220]
push edi
test esi, esi
je 0x42000f
mov dword [esi], 0
lea eax, [ebx - 0xc000]
cmp eax, 0x3fff
ja 0x4200d4
push 0x104
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0x10]
push str.Link_Source
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4200d0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [esp + 0xc]
push str.ObjectLink
push eax
call edi
add esp, 8
test eax, eax
je 0x4200d0
lea eax, [esp + 0xc]
push str.OwnerLink
push eax
call edi
add esp, 8
test eax, eax
je 0x4200d0
lea eax, [esp + 0xc]
push str.Native
push eax
call edi
add esp, 8
test eax, eax
je 0x4200d0
lea eax, [esp + 0xc]
push str.Embed_Source
push eax
call edi
add esp, 8
test eax, eax
je 0x4200d0
lea eax, [esp + 0xc]
push str.MSDEVColumnSelect
push eax
call edi
add esp, 8
test eax, eax
je 0x4200c6
lea eax, [esp + 0xc]
push str.MSDEVLineSelect
push eax
call edi
add esp, 8
test eax, eax
jne 0x4200db
test esi, esi
je 0x4200d0
mov dword [esi], 1
xor eax, eax
jmp 0x4200e2
xor eax, eax
mov word [esp + 0xc], ax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x210
ret 8
Function at 0x420100
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x420112
mov eax, 1
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebp
mov ecx, dword [0x62271c]
mov edx, dword fs:[0x2c]
mov dword [esp + 0xc], eax
push edi
lea esi, [ecx*4]
nop word [eax + eax]
mov ecx, dword [esi + edx]
cmp byte [ecx + 0x2198], 0
jne 0x420158
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
push dword [eax + 0x214]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42025d
mov eax, dword fs:[0x2c]
mov eax, dword [esi + eax]
cmp byte [eax + 0x2198], 0
jne 0x420186
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov edi, dword [esi + eax]
cmp dword [edi + 0x1f8], 0xffffffff
je 0x4201e6
cmp byte [edi + 0x2198], 0
jne 0x4201a6
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [esi + eax]
cmp dword [eax + 0x1f8], 0
je 0x420255
cmp byte [eax + 0x2198], 0
jne 0x4201ca
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov edi, dword [esi + eax]
call ebp
mov ecx, dword [edi + 0x1f8]
add ecx, dword [esp + 0x10]
sub ecx, eax
cmp ecx, 5
jle 0x420255
cmp byte [edi + 0x2198], 0
jne 0x4201f4
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [esi + eax]
cmp byte [eax + 0x2198], 0
mov dword [eax + 0x1d8], 0
jne 0x420215
call fcn.004ebad3
push 1
push 0x8000012f
call fcn.00415b90
mov edx, dword fs:[0x2c]
add esp, 8
mov eax, dword [esi + edx]
cmp byte [eax + 0x2198], 0
jne 0x420243
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
mov dword [eax + 0x1d8], 1
jmp 0x420140
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov dword [ebx + 0x18], 1
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x425f50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
cmp eax, 2
jne 0x425f5f
xor eax, eax
pop esi
ret
test eax, eax
je 0x425f78
push 0x4f6f34
push str.break
push 0
call fcn.004284a0
test eax, eax
jne 0x425f5d
call fcn.00432980
mov byte [esi + 0x60], al
test al, al
je 0x425f90
push 1
push 0
call fcn.0042f570
add esp, 8
mov dword [esi + 0x38], 2
mov ecx, esi
pop esi
jmp fcn.00427ec0
Function at 0x426cb0
Capabilities:
Query environment variable

Disassembly:
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push 0
push ebp
mov esi, ecx
mov dword [esp + 0x24], eax
call eax
mov edi, dword [esi + 4]
mov ebx, eax
test ebx, ebx
jne 0x426d18
test edi, edi
je 0x426ddc
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x426d03
mov eax, dword [edi + 4]
test eax, eax
je 0x426cf8
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x14
push edi
call fcn.004ebb73
add esp, 8
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov byte [esi + 8], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 4
test edi, edi
jne 0x426d4c
push 0x14
call fcn.004ebb43
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x426d45
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 1
mov dword [esi + 4], eax
jmp 0x426dc2
xor eax, eax
mov dword [esi + 4], eax
jmp 0x426dc2
mov eax, dword [edi + 0x10]
mov edi, dword [esi + 4]
cmp eax, 1
jbe 0x426dbb
push 0x14
call fcn.004ebb43
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x426d8d
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 1
jmp 0x426d8f
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x426dc2
mov eax, dword [edi + 4]
test eax, eax
je 0x426dae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x14
push edi
call fcn.004ebb73
add esp, 8
jmp 0x426dc2
mov dword [edi + 8], 0
mov ecx, dword [esi + 4]
push ebx
call fcn.00425960
mov eax, dword [esi + 4]
push ebx
push dword [eax]
push ebp
call dword [esp + 0x24]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x428530
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x40
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov edi, ecx
lea eax, [esp + 8]
push 0xa
push eax
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_strchr
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4f7ab4
lea esi, [eax + 1]
push esi
call fcn.0042aeb0
add esp, 0x20
add esi, eax
lea eax, [esp + 8]
sub esi, eax
push 0
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x4285f1
cmp dword [edi + 0x34], 0
jne 0x4285f1
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.00426ab0
test eax, eax
jne 0x4285f1
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x28]
mov al, byte [0x4f7ab8]
push 0
mov byte [edx + ecx], al
inc dword [edi + 0x30]
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x4285f1
mov dword [edi + 0x30], 0
xor eax, eax
mov dword [edi + 0x34], 0
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004ebadf
add esp, 0x40
ret
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00426b10
mov ecx, dword [esp + 0x48]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.004ebadf
add esp, 0x40
ret
Function at 0x428b40
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 8], ebp
test esi, esi
je 0x428d39
cmp byte [esp + 0x18], 0
jne 0x428b88
lea ecx, [esi - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 8]
mov ecx, ebp
shr edx, 1
lea eax, [eax + edx*4]
add eax, 5
push eax
call fcn.00426ab0
test eax, eax
je 0x428b88
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x428d38
mov ecx, dword [ebp + 8]
add ecx, dword [ebp]
push edi
xor edi, edi
mov dword [esp + 0x20], ecx
cmp esi, 0xffffffff
jne 0x428bb9
mov esi, ebx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x428bb0
sub esi, edx
cmp esi, 2
jbe 0x428c98
lea ebp, [ecx + 2]
mov eax, 0xaaaaaaab
lea ecx, [esi - 3]
mul ecx
mov ecx, dword [0x62271c]
shr edx, 1
inc edx
lea eax, [edx*4]
mov dword [esp + 0x1c], eax
movzx edi, byte [ebx]
lea ebp, [ebp + 4]
movzx eax, byte [ebx + 1]
sub esi, 3
shl edi, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl edi, 8
add ebx, 3
or edi, eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, edi
shr ecx, 0x12
mov eax, dword [eax + 0x48]
movzx eax, byte [ecx + eax]
mov ecx, dword [0x62271c]
mov byte [ebp - 6], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3f
mov eax, dword [eax + 0x48]
movzx eax, byte [ecx + eax]
mov ecx, dword [0x62271c]
mov byte [ebp - 5], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, edi
shr ecx, 6
and edi, 0x3f
and ecx, 0x3f
mov eax, dword [eax + 0x48]
movzx eax, byte [ecx + eax]
mov ecx, dword [0x62271c]
mov byte [ebp - 4], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x48]
movzx eax, byte [edi + eax]
mov byte [ebp - 3], al
sub edx, 1
jne 0x428be3
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test esi, esi
je 0x428d2c
movzx edx, byte [ebx]
shl edx, 0x10
cmp esi, 1
jbe 0x428cb4
movzx eax, byte [ebx + 1]
shl eax, 8
or edx, eax
mov eax, dword fs:[0x2c]
lea ebx, [edi + ecx]
mov ecx, dword [0x62271c]
mov eax, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 0x12
mov eax, dword [eax + 0x48]
movzx eax, byte [ecx + eax]
mov ecx, dword [0x62271c]
mov byte [ebx], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
mov eax, dword [eax + 0x48]
movzx eax, byte [ecx + eax]
mov byte [ebx + 1], al
cmp esi, 1
jbe 0x428d20
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62271c]
shr edx, 6
and edx, 0x3f
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x48]
mov al, byte [edx + eax]
jmp 0x428d22
mov al, 0x3d
mov byte [ebx + 2], al
add edi, 4
mov byte [ebx + 3], 0x3d
mov eax, dword [esp + 0x20]
mov byte [edi + eax], 0
add dword [ebp + 8], edi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x428d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
mov edx, dword [esp + 0x84]
mov dword [esp + 0x44], vtable.Debugger::PropertyWriter.0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [edx + 0x3c]
mov dword [edx + 0x40], 0x4f6ee4
mov dword [esp + 0x50], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x428d8f
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
jmp 0x428d97
mov dword [esp + 0x54], 0
mov eax, dword [edx + 0x48]
push edi
mov edi, dword [edx + 0x4c]
mov dword [esp + 0x10], eax
add edi, eax
mov eax, dword [esp + 0x8c]
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x68], 0
push eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x30], 5
call fcn.004d0f70
add esp, 0x10
cmp eax, 1
je 0x428df1
mov eax, 0xce
pop edi
add esp, 0x80
ret 8
mov eax, dword [esp + 0x5c]
test eax, eax
sete byte [esp + 7]
test eax, eax
jne 0x428e4a
mov eax, dword [esp + 0x54]
test eax, eax
cmove eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x18]
cmp eax, fcn.00425d40
jne 0x428e36
lea eax, [esp + 8]
push eax
push 1
push str.object
push 0
lea ecx, [esp + 0x58]
call fcn.00425d40
jmp 0x428e4a
lea ecx, [esp + 8]
push ecx
push 1
push str.object
push 0
lea ecx, [esp + 0x58]
call eax
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x54], 0
je 0x428f51
push ebx
push ebp
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x24
call esi
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x428e7b
mov ecx, eax
call fcn.00425590
mov ebp, eax
jmp 0x428e7d
xor ebp, ebp
push 0x24
call esi
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x428e97
mov ecx, eax
call fcn.00425590
mov ebx, eax
jmp 0x428e99
xor ebx, ebx
lea eax, [esp + 0x70]
mov dword [esp + 0x78], 5
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x70], ebp
lea eax, [esp + 0x80]
mov dword [esp + 0x88], 5
mov dword [esp + 0x80], ebx
mov dword [esp + 0x28], eax
test edi, edi
jle 0x428f41
push 0
push 2
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call fcn.004cb930
add esp, 0x10
cmp eax, 3
jne 0x428f41
cmp esi, dword [esp + 0x1c]
jl 0x428f3c
lea eax, [esp + 0x44]
push eax
lea ecx, [ebp + 8]
call fcn.00428610
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 8]
call fcn.00428610
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
cmp eax, fcn.004295a0
jne 0x428f2c
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
call fcn.004295a0
jmp 0x428f3c
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5c]
call eax
inc esi
cmp esi, edi
jl 0x428ed0
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
pop esi
pop ebp
pop ebx
cmp byte [esp + 7], 0
je 0x428f77
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x48]
push dword [esp + 8]
mov eax, dword [eax + 0x1c]
cmp eax, fcn.00426900
jne 0x428f75
call fcn.00426900
jmp 0x428f77
call eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x60]
pop edi
add esp, 0x80
ret 8
Function at 0x42aa10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x527678], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x42a400
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x42a7c0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x42a3b0
jne 0x42ab6b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42ab61
push ebx
push ebp
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x130]
push edi
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call esi
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x42aadd
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x42ab26
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call esi
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ab5d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x42ab5a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x42ab5a
inc esi
cmp esi, 3
jl 0x42ab28
mov eax, dword [esp + 0x14]
mov dword [0x523048], eax
mov eax, dword [esp + 0x1c]
mov dword [0x523050], eax
mov eax, dword [esp + 0x24]
mov dword [0x523058], eax
jmp 0x42ab5d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x527678], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x523048]
call fcn.004ebadf
add esp, 0x230
ret 4
Function at 0x42aba0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x820
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call sub.VCRUNTIME140.dll_memset
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x28
nop
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x42ad71
cmp word [ebx + 8], 2
jne 0x42ac92
cmp word [ebx + 0xa], 4
jne 0x42ac92
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x42ac92
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.0042add0
mov dword [edi], eax
test eax, eax
je 0x42ad6a
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x42ac60
push 0x400
push dword [ebx]
push 0x401
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x42ad20
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42acb7
sub ecx, edx
je case.0x42ad81.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42acf0
test dl, dl
je 0x42acec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42acf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x42acd0
xor eax, eax
jmp 0x42acf5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x42ad81.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x42ad81.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x42ac20
cmp dword [esp + 0x844], esi
je 0x42ad9b
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ad30
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x42ad5a
push ebp
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x42ad9b
mov esi, 8
jmp 0x42ad9b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x42ad81.11001
jmp dword [eax*4 + 0x42adb8]
mov esi, 0x2afa
jmp 0x42ad9b
mov esi, 0x2afb
jmp 0x42ad9b
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x820
ret 0x18
Function at 0x42bba0
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x40]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov edi, str.Persistent
mov dword [esp + 0x18], ebp
cmovne edi, ebx
mov dword [esp + 0x10], eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bbd5
sub ecx, edx
mov edx, ebp
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42bbf0
sub edx, esi
mov esi, dword [esp + 0x10]
sar edx, 1
lea ebp, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42bc06
sub esi, ebp
sar esi, 1
lea eax, [esi + edx]
lea esi, [ecx + 5]
add esi, eax
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [esi + esi]
mov ebp, eax
push ecx
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
mov ecx, ebp
add esp, 0x10
sub ecx, edi
nop dword [eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x42bc40
mov ecx, 0x4f5b70
test ebx, ebx
mov edx, ecx
cmovne edx, ebx
mov ebx, edx
lea esi, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42bc61
mov eax, dword [esp + 0x18]
sub ebx, esi
sar ebx, 1
mov edi, ecx
test eax, eax
cmovne edi, eax
lea ebx, [ebx*2 + 2]
mov esi, edi
sub ebx, edi
add ebx, ebp
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi - 2], ax
test ax, ax
jne 0x42bc90
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42bca3
sub edx, esi
lea esi, [edi + 2]
sar edx, 1
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42bcb5
mov eax, dword [esp + 0x10]
sub edi, esi
sar edi, 1
test eax, eax
cmovne ecx, eax
lea eax, [edi + edx]
lea edx, [eax*2 + 4]
sub edx, ecx
add edx, ebp
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42bce0
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push 0x41cc80
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x42bd75
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push str.ahk_d
push 0x14
push eax
call fcn.004e6440
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov ebx, 0
push esi
cmovne ebx, dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004ebadf
add esp, 0x38
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x38
ret