joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468860
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x630
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x62c], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22a]
mov edi, 0x208
push ecx
mov dword [esp + 0x10], edi
mov word [esp + 0x22c], ax
call fcn.0048dc10
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2e]
push eax
mov word [esp + 0x30], dx
call fcn.0048dc10
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x44a]
push edx
mov word [esp + 0x44c], cx
call fcn.0048dc10
mov eax, 0x104
add esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x224]
push ecx
mov dword [esp + 0x10], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x468975
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x430]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x468975
mov edi, dword [sym.imp.ADVAPI32.dll_IsValidSid]
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x468975
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x468975
lea ecx, [esp + 4]
push ecx
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00468990
test eax, eax
je 0x468975
mov eax, 1
pop edi
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.0048b133
add esp, 0x630
ret
mov ecx, dword [esp + 0x630]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0048b133
add esp, 0x630
ret

Function at 0x468bb0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x62c
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x628], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x226]
mov edi, 0x208
push ecx
mov dword [esp + 0x18], edi
mov word [esp + 0x228], ax
call fcn.0048dc10
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call fcn.0048dc10
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x446]
push edx
mov word [esp + 0x448], cx
call fcn.0048dc10
add esp, 0x24
mov ecx, 0x104
push str.system
mov eax, SysReAllocString
lea edx, [esp + 0x220]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
call fcn.0046a070
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x42c]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x230]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x468cc0
mov edi, dword [sym.imp.ADVAPI32.dll_IsValidSid]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
je 0x468cc0
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
je 0x468cc0
lea edx, [esp + 0xc]
push edx
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.00468990
test eax, eax
je 0x468cc0
mov eax, 1
pop edi
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.0048b133
add esp, 0x62c
ret
mov ecx, dword [esp + 0x62c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0048b133
add esp, 0x62c
ret
Function at 0x46a840
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a8a2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x46c520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x46c537
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46c568
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x46c564
cmp esi, eax
jae 0x46c568
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x46c554
cmp esi, eax
jb 0x46c56e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x46e1a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
push edi
mov esi, edx
test eax, eax
jl 0x46e2ca
cmp eax, dword [ecx + 0x30]
jge 0x46e2ca
mov edi, dword [ecx + 0x2c]
lea edx, [eax + eax*8]
lea edi, [edi + edx*4]
xor edx, edx
cmp dword [ecx + 0x44], eax
jne 0x46e1e4
movzx edx, byte [edi + 0x20]
mov ebp, 0xffbc5d
jmp 0x46e209
mov eax, dword [edi + 0x1c]
mov ebp, dword [edi + 0x18]
cmp dword [eax - 0xc], edx
je 0x46e1fa
test ebp, ebp
jge 0x46e203
mov ebp, 0xe59422
jmp 0x46e209
test ebp, ebp
jge 0x46e203
mov ebp, dword [ecx + 0x3c]
jmp 0x46e209
and ebp, 0xffffff
cmp dword [esp + 0x80], 0xffffffff
jne 0x46e21d
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 4]
shr eax, 2
not eax
test al, 1
jne 0x46e22e
mov ebp, 0xc7c7c7
lea eax, [edi + 0x14]
test edx, edx
je 0x46e293
cmp dword [eax], 0
jne 0x46e23d
lea eax, [ecx + 0x38]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x2d], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
push ebp
mov ebx, eax
push ebx
push edx
push ecx
mov ecx, dword [esp + 0x90]
lea eax, [edi + 4]
call fcn.0046e120
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0048b133
add esp, 0x6c
ret 8
cmp dword [eax], 0
jne 0x46e29b
lea eax, [ecx + 0x38]
mov ecx, dword [edi]
mov eax, dword [eax]
mov edx, dword [ecx - 0xc]
push ebp
push eax
push edx
push ecx
mov ecx, dword [esp + 0x90]
lea eax, [edi + 4]
call fcn.0046e120
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048b133
add esp, 0x6c
ret 8
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x46ea50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a434b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor esi, esi
xor eax, eax
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [edi], vtable.CSomTextWnd.0
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ce67c
call edx
add eax, 0x10
mov dword [edi + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], esi
mov dword [edi + 0x38], esi
mov byte [esp + 0x14], 2
or eax, 0xffffffff
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov eax, dword [0x4d1fc0]
mov ecx, dword [eax]
mov dword [edi + 0x38], ecx
call fcn.0046e900
cmp dword [edi + 0x3c], esi
je 0x46eafa
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x3c], esi
cmp ecx, esi
je 0x46eafa
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push esi
push esi
push esi
push edi
call eax
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4754b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a5107
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], 0
mov dword [esp + 0x14], 0
mov dword [esi + 8], vtable.CNotifyCbI.0
mov dword [esi + 0xc], 0
mov byte [esp + 0x14], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi], vtable.C3GIdentify.0
mov dword [esi + 8], vtable.C3GIdentify.1.0
mov dword [esi + 0x14], 0x1c9c380
call fcn.00433170
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x18], 2
call fcn.00433170
lea edx, [esi + 0x48]
push edx
mov byte [esp + 0x18], 3
call fcn.00433170
lea ecx, [esi + 0x60]
xor eax, eax
mov byte [esp + 0x14], 4
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.0043c0f0
test eax, eax
jge 0x47555b
push eax
call fcn.004752e0
lea ecx, [esi + 0x78]
xor eax, eax
mov byte [esp + 0x14], 5
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.0043c0f0
test eax, eax
jge 0x475585
push eax
call fcn.004752e0
lea ecx, [esi + 0x90]
xor eax, eax
mov byte [esp + 0x14], 6
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.0043c0f0
test eax, eax
jge 0x4755b2
push eax
call fcn.004752e0
lea ecx, [esi + 0xb8]
xor eax, eax
mov byte [esp + 0x14], 7
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.0043c0f0
test eax, eax
jge 0x4755df
push eax
call fcn.004752e0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4781e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4781ff
test byte [esp], 7
je 0x4781ff
mov eax, 1
pop ecx
ret
call fcn.00478140
pop ecx
ret

Function at 0x478210
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.0048dc10
mov ecx, dword [esp + 0x50]
add esp, 0xc
push 1
mov dword [esp + 0x1c], ecx
push 1
mov ecx, esi
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 5
mov dword [esp + 0x10], 0x1440
call fcn.004607d0
test eax, eax
jne 0x478276
push 1
call fcn.0048ab80
push eax
push esi
call fcn.0048ad90
add esp, 0xc
xor eax, eax
add esp, 0x40
ret
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x478270
mov eax, dword [esp + 0x3c]
add esp, 0x40
ret

Function at 0x478290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0048dc10
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4782fd
push str._funnamexiufuloudong
lea esi, [esp + 0x14]
call fcn.00478210
add esp, 4
mov ecx, dword [esp + 0x21c]
pop esi
xor ecx, esp
call fcn.0048b133
add esp, 0x220
ret
Function at 0x478690
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x4d1714], 0
je 0x4786b2
cmp dword [0x4d12f4], 5
jbe 0x4786b2
mov eax, dword [0x4d130c]
test eax, eax
je 0x4786b2
push esi
call eax
test eax, eax
jne 0x4786c6
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x47a2d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
test esi, esi
jne 0x47a2dd
xor al, al
add esp, 8
ret
test edi, edi
je 0x47a2d7
push 5
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x47a2d7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0x40
push 5
push esi
call ebx
test eax, eax
je 0x47a32e
mov ecx, dword [edi]
mov dword [esi], ecx
mov ecx, dword [esp + 4]
mov dl, byte [edi + 4]
lea eax, [esp + 8]
push eax
push ecx
push 5
push esi
mov byte [esi + 4], dl
mov dword [esp + 0x18], 0
call ebx
test eax, eax
jne 0x47a33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop ebx
add esp, 8
ret
mov al, 1
pop ebx
add esp, 8
ret

Function at 0x47a490
Capabilities:
Parse url

Disassembly:
xor edx, edx
cmp eax, edx
jne 0x47a49b
xor eax, eax
ret 4
mov ecx, 1
push eax
push edx
mov dword [eax], 0x3c
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x34], edx
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
ret 4
Function at 0x47a780
Capabilities:
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x424]
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push edi
xor edi, edi
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x20000005
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x47a7de
mov dword [esp + 0x14], 1
xor ebx, ebx
cmp dword [esi + 0x10], edi
je 0x47a7fa
cmp dword [esi + 0x21c], edi
jne 0x47a7fa
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax]
push 4
push edi
push edi
call edx
cmp dword [esi + 0x21c], ebx
jne 0x47a8a4
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47a8a4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47a8a4
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x47a84d
push 0
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
add ebx, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov edx, edi
sub edx, ecx
jne 0x47a889
cmp dword [esi + 0x10], edx
je 0x47a889
cmp dword [esi + 0x21c], edx
jne 0x47a889
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax]
push 5
push edx
push ebx
call eax
inc edi
cmp dword [esp + 0x14], 0
je 0x47a897
cmp ebx, dword [esp + 0xc]
jae 0x47a8a4
cmp dword [esi + 0x21c], 0
je 0x47a806
cmp dword [esi + 0x10], 0
pop edi
pop ebp
pop ebx
je 0x47a8c5
cmp dword [esi + 0x21c], 0
jne 0x47a8c5
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
push 6
push 0
push 0
call eax
mov ecx, dword [esp + 0x418]
xor eax, eax
cmp dword [esi + 0x21c], eax
sete al
xor ecx, esp
call fcn.0048b133
add esp, 0x41c
ret 8

Function at 0x47adc0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x804
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x800], eax
push edi
mov edi, ecx
test edi, edi
jne 0x47adf3
xor eax, eax
pop edi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0048b133
add esp, 0x804
ret
push esi
push 0x800
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0048dc10
add esp, 0xc
lea esi, [esp + 8]
call fcn.0047acd0
pop esi
test eax, eax
je 0x47addb
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x804]
pop edi
xor ecx, esp
call fcn.0048b133
add esp, 0x804
ret
Function at 0x47cc00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a62ab
mov eax, dword fs:[0]
push eax
mov eax, 0x1460
call fcn.0048ed30
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x145c], eax
push ebx
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x1470]
mov dword fs:[0], eax
mov edi, ecx
push 0x24c
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.0048dc10
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26e]
mov dword [esp + 0x1480], 0
push edx
mov word [esp + 0x270], cx
call fcn.0048dc10
add esp, 0xc
push 0x800
lea eax, [esp + 0x470]
push 0
push eax
call fcn.0048dc10
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc70]
push 0
push ecx
call fcn.0048dc10
add esp, 0xc
lea esi, [esp + 0x46c]
call fcn.0047c860
xor esi, esi
cmp dword [edi + 8], esi
jle 0x47ccf5
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x46c]
push edx
call ebx
inc esi
cmp esi, dword [edi + 8]
jl 0x47cce5
push str.config
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x264]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47cd20
sub eax, edx
sar eax, 1
lea edx, [esp + 0x264]
mov ebx, eax
push edx
lea eax, [esp + 0x14]
call fcn.0046c7e0
push 4
push str..
lea eax, [esp + 0x18]
push eax
call fcn.00454250
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x47ce2d
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 0x14], 0x10
je 0x47ce16
mov ecx, 0x4b43a0
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47cdad
test dx, dx
je 0x47cda9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47cdad
add eax, 4
add ecx, 4
test dx, dx
jne 0x47cd87
xor eax, eax
jmp 0x47cdb2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47ce16
mov ecx, 0x4ba620
lea eax, [esp + 0x40]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47cde6
test dx, dx
je 0x47cde2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47cde6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47cdc0
xor eax, eax
jmp 0x47cdeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47ce16
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0xc74]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0xc6c]
call fcn.0047c8e0
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x47cd73
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1478], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ce54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x145c]
xor ecx, esp
call fcn.0048b133
add esp, 0x146c
ret
Function at 0x47d730
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
push eax
push 0x101
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [esi + 0x34], 0
jne 0x47d7ad
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
test eax, eax
je 0x47d7ad
push 0
push 0
push esi
push 0x47d630
push 0
push 0
call fcn.0048d004
add esp, 0x18
mov dword [esi + 0x38], eax
test eax, eax
je 0x47d7ad
mov eax, 1
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0048b133
mov esp, ebp
pop ebp
ret
call fcn.0047d7d0
mov ecx, dword [esp + 0x19c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0048b133
mov esp, ebp
pop ebp
ret
Function at 0x47d830
Capabilities:
Accept command line arguments
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
cmp eax, esi
je 0x47d871
push str._start
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x47d871
mov eax, dword [ebx + 0x34]
push 0x2bf20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47d9c3
push esi
push esi
xor eax, eax
push esi
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc]
push eax
call sub.IPHLPAPI.DLL_NotifyAddrChange
test eax, eax
je 0x47d8c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x47d9b8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x47d9b8
lea edx, [esp + 0xc]
push 0x4ba660
push edx
call fcn.00468430
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d914
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x10]
cmp edi, dword [ebx + 0x14]
jbe 0x47d92b
call fcn.0048b4bc
mov esi, dword [ebx + 4]
mov edi, edi
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x10], eax
jbe 0x47d941
call fcn.0048b4bc
mov eax, dword [ebx + 4]
test esi, esi
je 0x47d94c
cmp esi, eax
je 0x47d951
call fcn.0048b4bc
cmp edi, dword [esp + 0x10]
je 0x47d9a9
mov ecx, dword [ebx + 0x34]
push 0x1f40
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47d9a9
test esi, esi
jne 0x47d9a1
call fcn.0048b4bc
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47d97f
call fcn.0048b4bc
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
test esi, esi
jne 0x47d9a5
call fcn.0048b4bc
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47d99c
call fcn.0048b4bc
add edi, 4
jmp 0x47d930
mov eax, dword [esi]
jmp 0x47d975
mov eax, dword [esi]
jmp 0x47d992
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47d8a4
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret