joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov eax, 0x1014
call fcn.00413720
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
mov ebx, dword [esp + 0x1024]
push esi
mov esi, dword [esp + 0x1020]
push edi
mov edi, dword [esp + 0x1028]
push esi
push str.Connecting_to__s..._n
call fcn.00414192
add esp, 8
push esi
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x40f457
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00411a73
add esp, 0x1014
ret
push ebp
mov eax, 2
push 0x2b
mov word [esp + 0x14], ax
call sub.WS2_32.dll_htons
mov word [esp + 0x12], ax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0
push 1
push 2
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40f4d1
push 0x10
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40f4d1
push edi
lea edx, [esp + 0x24]
push 0x43ec2c
push edx
call fcn.00412953
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f4b6
push 0
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebp
call sub.WS2_32.dll_send
test eax, eax
jne 0x40f4db
call sub.WS2_32.dll_WSAGetLastError
jmp 0x40f562
xor edi, edi
push edi
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [ebx], 0
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x40f55a
jmp 0x40f500
test esi, esi
je 0x40f55a
mov eax, dword [ebx]
test eax, eax
jne 0x40f518
lea edx, [esi + 1]
push edx
call fcn.00412493
add esp, 4
jmp 0x40f526
lea ecx, [esi + edi + 1]
push ecx
push eax
call fcn.00414386
add esp, 8
push esi
lea edx, [esp + 0x24]
mov dword [ebx], eax
push edx
add eax, edi
push eax
call fcn.00412560
mov ecx, dword [ebx]
add esp, 0xc
push 0
push 0x1000
lea edx, [esp + 0x28]
push edx
add edi, esi
push ebp
mov byte [edi + ecx], 0
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f500
push ebp
call sub.WS2_32.dll_closesocket
xor eax, eax
mov ecx, dword [esp + 0x1020]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411a73
add esp, 0x1014
ret
Function at 0x40fb2e
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x445654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fc03
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fbf2
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x40fbdc
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x40fbf2
push eax
push edi
push dword [ebp - 0x110]
call fcn.0040facb
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40fc05
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411a73
leave
ret 4

Function at 0x411a73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445654]
jne 0x411a7d
repz ret
jmp fcn.004188fc
Function at 0x42e4d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00418252
and dword [ebp - 4], 0
cmp dword [0x448324], 0
mov ebx, eax
jne 0x42e585
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e636
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x441958
push edi
call esi
test eax, eax
je 0x42e636
push eax
call fcn.004181e0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x448324], eax
call esi
push eax
call fcn.004181e0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x448328], eax
call esi
push eax
call fcn.004181e0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44832c], eax
call esi
push eax
call fcn.004181e0
pop ecx
mov dword [0x448334], eax
test eax, eax
je 0x42e585
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004181e0
pop ecx
mov dword [0x448330], eax
mov eax, dword [0x448330]
cmp eax, ebx
je 0x42e5dd
cmp dword [0x448334], ebx
je 0x42e5dd
push eax
call fcn.0041825b
push dword [0x448334]
mov esi, eax
call fcn.0041825b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e5dd
test edi, edi
je 0x42e5dd
call esi
test eax, eax
je 0x42e5d4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e5d4
test byte [ebp - 0xc], 1
jne 0x42e5dd
or dword [ebp + 0x10], 0x200000
jmp 0x42e616
mov eax, dword [0x448328]
cmp eax, ebx
je 0x42e616
push eax
call fcn.0041825b
pop ecx
test eax, eax
je 0x42e616
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e616
mov eax, dword [0x44832c]
cmp eax, ebx
je 0x42e616
push eax
call fcn.0041825b
pop ecx
test eax, eax
je 0x42e616
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448324]
call fcn.0041825b
pop ecx
test eax, eax
je 0x42e636
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e638
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4494f4]
push esi
mov esi, ecx
test eax, eax
je 0x4016cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4494f4], 0
cmp dword [0x4494b4], 0
jne 0x4016ea
push str.port_trace.txt
push str._n_nERROR:_Could_not_append_to__s
call fcn.00414c52
add esp, 8
jmp 0x401763
mov ecx, str.port_trace.txt
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016f2
xor eax, eax
sub ecx, edx
je 0x40170e
nop
cmp byte [eax + str.port_trace.txt], 0x3a
je 0x401720
inc eax
cmp eax, ecx
jb 0x401700
cmp byte [str.port_trace.txt], 0x5c
jne 0x401734
cmp byte [0x445a11], 0x5c
jne 0x401734
push str.port_trace.txt
push str._n_nWriting_log_to__s__might_take_a_minute_n
call fcn.00414c52
add esp, 8
jmp 0x40174b
push str.port_trace.txt
push 0x3089c00
push str._n_nWriting_log_to__s_s__might_take_a_minute_n
call fcn.00414c52
add esp, 0xc
push dword [0x4494b4]
call fcn.00415fc1
add esp, 4
mov dword [0x4494b4], 0
mov eax, dword [0x448c14]
test eax, eax
je 0x40177f
push eax
call fcn.00415fc1
add esp, 4
mov dword [0x448c14], 0
mov eax, dword [0x4494e8]
test eax, eax
je 0x40179b
push eax
call fcn.00415fc1
add esp, 4
mov dword [0x4494e8], 0
mov eax, dword [0x448c30]
test eax, eax
je 0x4017b7
push eax
call fcn.00415fc1
add esp, 4
mov dword [0x448c30], 0
mov eax, dword [0x4494b8]
test eax, eax
je 0x4017d3
push eax
call fcn.00415fc1
add esp, 4
mov dword [0x4494b8], 0
mov ecx, str.port_trace.txt
lea edx, [ecx + 1]
jmp 0x4017e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4017e0
xor eax, eax
sub ecx, edx
je 0x4017fe
lea ecx, [ecx]
cmp byte [eax + str.port_trace.txt], 0x3a
je 0x401810
inc eax
cmp eax, ecx
jb 0x4017f0
cmp byte [str.port_trace.txt], 0x5c
jne 0x401824
cmp byte [0x445a11], 0x5c
jne 0x401824
push str.port_trace.txt
push str._n_nLog_is__s_n_n
call fcn.00414c52
add esp, 8
jmp 0x40183b
push str.port_trace.txt
push 0x3089c00
push str._n_nLog_is__s_s_n_n
call fcn.00414c52
add esp, 0xc
cmp byte [0x4372f0], 0
je 0x401868
push str._n_nPress_any_key_to_exit_n_n
call fcn.00414c52
add esp, 4
call fcn.0041648f
push 2
push 0
call fcn.0041478d
push eax
call fcn.00415e23
add esp, 0xc
push esi
call fcn.00416428
int3
Function at 0x4093a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], 0
mov eax, 0x100000
mov ebx, ecx
cmp esi, eax
mov dword [ebp - 8], ebx
push edi
cmova esi, eax
cmp byte [0x449484], 0
push esi
je 0x409418
push str._n_nINTERACTIVE_Press_any_key_to_attempt_to_READ__d_bytes__q_to_quit_interactive_:
call fcn.00414c52
add esp, 8
call fcn.0041648f
push 2
push 0
mov bl, al
call fcn.0041478d
push eax
call fcn.00415e23
movzx ecx, byte [0x449484]
xor eax, eax
add esp, 0xc
cmp bl, 0x71
cmove ecx, eax
mov byte [0x449484], cl
push 0x42edc0
call fcn.00414c52
mov ebx, dword [ebp - 8]
add esp, 4
jmp 0x409437
push dword [0x4494f8]
push str.CharsInBuffer_d_Trying_to_read_from_USB__ld_bytes
push 0xff3
push str.ReadPort
push 5
call fcn.004011c0
add esp, 0x18
xor edi, edi
cmp dword [0x446a24], edi
jbe 0x4094b3
push 0
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [0x4494f4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x40945e
add ebx, eax
sub esi, eax
test eax, eax
jne 0x409487
mov eax, dword [0x446a24]
cmp eax, 0x3e8
jbe 0x409480
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x446a24]
inc edi
cmp edi, eax
jb 0x409441
jmp 0x4094b3
cmp edi, dword [0x446a24]
jae 0x4094b3
push eax
push str.CHANNEL_DATA___ld_bytes______TARGET_to_HOST
push 0x1031
push str.ReadPort
push 5
call fcn.004011c0
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x50cc420
push str.Could_not_read_from__s__Windows_API_ReadFile_failed__Your_device_is_probably_not_on_this_port_n_n
push 0x102d
push str.ReadPort
push 1
call fcn.004011c0
add esp, 0x14
mov ecx, 1
call fcn.004016b0
int3
Function at 0x412cf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x42eea8
mov edx, 0x800
call fcn.0040eb90
add esp, 4
mov edx, 0x800
mov ecx, 0x50cbc20
mov ebx, eax
push 0x42d4e4
call fcn.0040eb90
add esp, 4
mov dword [ebp - 4], eax
push str._BEGIN_COPY
call fcn.00414c52
add esp, 4
xor esi, esi
push ebx
push 0x100000
push 1
push 0x2d8f3c0
call fcn.00414f9f
push 0x42e498
mov edi, eax
call fcn.00414c52
add esp, 0x14
test edi, edi
je 0x412da0
lea esp, [esp]
push dword [ebp - 4]
push edi
push 1
push 0x2d8f3c0
call fcn.004154ca
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x412da0
push ebx
push 0x100000
push 1
push 0x2d8f3c0
xor esi, esi
call fcn.00414f9f
push 0x42e498
mov edi, eax
call fcn.00414c52
add esp, 0x14
test edi, edi
jne 0x412d60
push ebx
call fcn.00415fc1
add esp, 4
push dword [ebp - 4]
call fcn.00415fc1
add esp, 4
sub esi, edi
neg esi
sbb esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422bd9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4363f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041b8ba
mov dword [ebp - 0x14], eax
cmp dword [0x448bcc], esi
jne 0x422ccc
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x422c59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x422dac
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x422dac
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422dac
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x448bcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x448bd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x448bd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448bdc], eax
test eax, eax
je 0x422cc9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448bd8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x422cf1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x422ce4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x422d06
push 4
pop eax
jmp 0x422dae
cmp dword [ebp - 0x14], esi
je 0x422d06
push dword [0x448bcc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x422ceb
mov eax, dword [0x448bd8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x422d64
cmp dword [0x448bdc], edi
je 0x422d64
push eax
call ebx
push dword [0x448bdc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x422d64
test eax, eax
je 0x422d64
call ecx
test eax, eax
je 0x422d59
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x422d59
test byte [ebp - 8], 1
jne 0x422d64
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x422d94
mov eax, dword [0x448bd0]
cmp eax, edi
je 0x422d91
push eax
call ebx
test eax, eax
je 0x422d91
call eax
mov esi, eax
test esi, esi
je 0x422d91
mov eax, dword [0x448bd4]
cmp eax, edi
je 0x422d91
push eax
call ebx
test eax, eax
je 0x422d91
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x448bcc]
call ebx
test eax, eax
je 0x422dac
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x422dae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b97
mov esp, ebp
pop ebp
ret
Function at 0x10002ee0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068d08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100891f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002f28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10002f79
call fcn.100027f0
test eax, eax
jns 0x10002f7e
xor esi, esi
test ebx, ebx
je 0x10002f65
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
mov ebx, eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x10002f9f
call fcn.100027f0
test eax, eax
js 0x10002f58
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test eax, eax
jb 0x10002f58
ja 0x10002f58
test edi, edi
je 0x10002f58
test eax, eax
ja 0x10002f58
jb 0x10002fba
cmp edi, 0x500000
jae 0x10002f58
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 0
push edi
call fcn.10004110
cmp dword [esi + 0x14], 0x10
jb 0x10002fcf
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002ffa
call fcn.100027f0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x10002f5a
xor esi, esi
mov eax, 0x80070026
cmp dword [ebp - 0x10], edi
cmovne esi, eax
not esi
shr esi, 0x1f
jmp 0x10002f5a
Function at 0x10003020
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068d3b
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.100264e0
mov eax, dword [0x100891f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp + 0x10]
push 0x2000
mov dword [ebp - 0x201c], eax
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x2020]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1000319d
cmp eax, 0x1fff
ja 0x1000319d
lea ecx, [ebp - 0x2010]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1000319d
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0x1006c52c
lea eax, [ebp - 0x2010]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1000319d
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x2018]
je 0x100030f3
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
jmp 0x100030f9
mov ebx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov eax, dword [ebp - 0x2014]
test eax, eax
je 0x10003105
mov dword [eax], ebx
mov eax, dword [ebp - 0x201c]
test eax, eax
je 0x10003111
mov dword [eax], edi
test esi, esi
je 0x10003196
lea ecx, [ebp - 0x2014]
call fcn.10002480
movzx eax, di
push eax
shr edi, 0x10
push edi
movzx eax, bx
push eax
shr ebx, 0x10
lea eax, [ebp - 0x2014]
push ebx
push str._d._d._d._d
push eax
mov dword [ebp - 4], 0
call fcn.10002df0
mov edx, dword [ebp - 0x2014]
add esp, 0x18
mov ecx, 0x104
sub edx, esi
nop dword [eax]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x1000317e
movzx eax, word [edx + esi]
test ax, ax
je 0x1000317e
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10003160
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x2014]
call fcn.10002550
mov eax, 1
jmp 0x1000319f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100264cc
mov esp, ebp
pop ebp
ret
Function at 0x100033b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x100891f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 2
mov dword [ebp - 0x234], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10003416
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.10043b10
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10003427
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100264cc
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
cmp eax, dword [ebp - 0x228]
je 0x10003464
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x10003464
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call fcn.10048418
add esp, 8
test eax, eax
je 0x1000347d
add esi, 4
cmp esi, dword [edi + 4]
jne 0x10003447
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10003487
mov eax, dword [ebp - 0x238]
jmp 0x10003438
mov dword [ebp - 0x234], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100264cc
mov esp, ebp
pop ebp
ret

Function at 0x10003b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003bd9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003bd9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10003bca
cmp esi, edx
jae 0x10003bd9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10003bb8
cmp esi, edx
jae 0x10003bd9
cmp word [esi], 0
je 0x10003bd9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10006950
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068fab
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100891f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Utils_arctrl.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call sym.nativeutils.dll_CheckSign
test eax, eax
je 0x10006a09
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10006a09
push str.CheckAutoRun
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006a09
push esi
call eax
test eax, eax
je 0x10006b14
push str._autorun
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10006b35
mov eax, dword [0x1008b8f4]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x230], 4
mov dword [ebp - 0x22c], 4
test al, 1
jne 0x10006a56
or eax, 1
mov dword [0x1008b8f0], 0
mov dword [0x1008b8f4], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
call fcn.1001c340
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x219]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x238]
push eax
push 0x10006880
push 0x1008b8f0
call fcn.1001c7f6
add esp, 0x10
test eax, eax
je 0x10006b18
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 2
push eax
call fcn.1001c37a
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
push str.AutoRun_Interval
push 0x1008b8f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10006b35
mov ecx, dword [ebp - 0x220]
lea eax, [ecx - 1]
cmp eax, 0x12
ja 0x10006b35
push 1
push ecx
call fcn.10006b70
add esp, 8
test eax, eax
jne 0x10006b35
xor eax, eax
jmp 0x10006b3a
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 3
push eax
call fcn.1001c39b
add esp, 4
mov byte [ebp - 4], 1
test al, al
je 0x10006b6a
jmp 0x10006b54
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100264cc
mov esp, ebp
pop ebp
ret
sub esp, 8
lea eax, [ebp - 0x228]
mov ecx, esp
push eax
call fcn.100024c0
call fcn.10004140
call fcn.1001c80e
int3