joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
mov esi, ecx
jle 0x41ac86
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x41ac86
mov eax, dword [esi + 0xb0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x41ac86
test ecx, ecx
je 0x41ac6c
mov eax, dword [esi + 0xb0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x41ac71
call fcn.00440465
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xb8]
cmp ecx, dword [eax + edi*4]
je 0x41ade0
mov edx, dword [esi + 0x20]
push ebx
xor eax, eax
push ebp
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
call fcn.00429f95
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x1c], 0xfffffdd8
call ebx
push eax
call fcn.0042703d
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x4e
push eax
call ebp
cmp dword [0x474654], 0xffffffff
je 0x41ad02
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push eax
call fcn.0042703d
mov edx, dword [0x474654]
push edx
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x7e9
push edx
call ebp
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x41ad25
mov dword [eax + 8], 0
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax + 0x10]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 0xffffffff
jle 0x41ad83
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x41ad83
mov eax, dword [esi + 0xb0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x41ad83
test ecx, ecx
je 0x41ad56
mov eax, dword [esi + 0xb0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x41ad5b
call fcn.00440465
mov edx, dword [esi + 0xac]
mov eax, dword [edx + edi*4]
mov dword [esi + 0xb8], eax
mov dword [eax + 8], 1
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax + 0x10]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x1c], 0xfffffdd9
call ebx
push eax
call fcn.0042703d
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x4e
push eax
call ebp
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push eax
call fcn.0042703d
test eax, eax
je 0x41adca
mov eax, dword [eax + 0x20]
push edi
lea edx, [esp + 0x14]
push edx
push 0x7ea
push eax
call ebp
pop ebp
mov dword [0x474654], edi
pop ebx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41ba50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45a510
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x47617c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x20]
call fcn.0042b071
add esi, 0x58
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.00414a10
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x3c], 1
call fcn.0041b5e0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esi], ecx
mov dword [esi + 4], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41baf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 4]
add ecx, 4
add dword [esi], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 4], 0x18
mov byte [esp + 0x38], 0
call fcn.00414810
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0042b0c5
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 8
Function at 0x41dc60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
xor ecx, ecx
cmp dword [esp + 0x18], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ecx
jne 0x41dc83
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [ebx + 0xc]
sub eax, ecx
je 0x41dca4
sub eax, 1
jne 0x41dc7a
cmp dword [esp + 0x1c], ecx
je 0x41dc7a
cmp dword [ebx + 4], ecx
jne 0x41dc7a
mov dword [esp + 4], 0xc0000000
jmp 0x41dcac
mov dword [esp + 4], 0x40000000
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
jmp 0x41dcc0
push 0
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x10]
push 0
push 0
push 3
push 0
push 0
push eax
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x41dd0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x41dd3f
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x41dcc0
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x41dd3f
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41dd4b
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov edi, 1
cmp dword [ebx + 0xc], edi
jne 0x41dd98
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x41dd96
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x10
push ebx
push esi
call ebp
mov edi, eax
test edi, edi
jne 0x41dd98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41dd63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc

Function at 0x41ddb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov dword [esp + 4], 0
jne 0x41ddc9
xor eax, eax
pop edi
pop ecx
ret 4
cmp dword [ecx + 0xc], 1
je 0x41ddc2
mov eax, dword [ecx + 0x10]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41de08
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41de10
pop esi
xor eax, eax
pop edi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
pop ecx
ret 4
Function at 0x41e8b0
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov eax, 0x2844
call fcn.0043fbd0
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x2840], eax
push esi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.0043ecd0
push 0x2424
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.0043ecd0
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 2
call dword [sym.imp.nspcutil.dll_Ordinal_265]
push 0x206
lea eax, [esp + 0x2642]
push 0
push eax
mov word [esp + 0x2648], 0
call fcn.0043ecd0
lea ecx, [esp + 0x224]
push ecx
push str.SoftwareINCAInternet
push str._s_s
lea edx, [esp + 0x2654]
push 0x104
push edx
call fcn.00402790
add esp, 0x20
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
lea ecx, [esp + 0x2648]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x409
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e9df
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 0x461d3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e9a1
lea esi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41e9df
mov eax, dword [esp + 8]
cmp eax, 0x412
ja 0x41e9d1
je 0x41e9fd
mov ecx, eax
sub ecx, 0x408
je 0x41e9fd
sub ecx, 1
je 0x41e9fd
sub ecx, 8
jmp 0x41e9dd
cmp eax, 0x421
je 0x41e9fd
cmp eax, 0x804
je 0x41e9fd
cmp dword [esp + 0x284c], 0
je 0x41e9f1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x41e9f7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, dword [esp + 0x2844]
pop esi
xor ecx, esp
call fcn.0043e577
add esp, 0x2844
ret
Function at 0x41faf0
Capabilities:
Access firewall settings via inetfwmgr
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.0043ecd0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x41fb43
cmp dword [esp + 0x10], 1
jae 0x41fb48
jmp 0x41fb66
cmp eax, 6
jb 0x41fb66
add esi, 4
push esi
push 0x4626c8
push 1
push 0
push 0x4626b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov al, 1
jge 0x41fb68
mov al, bl
mov ecx, dword [esp + 0x124]
pop esi
pop ebx
xor ecx, esp
call fcn.0043e577
add esp, 0x120
ret
Function at 0x41fba0
Capabilities:
Access firewall policy via inetfwpolicy2
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push 0x118
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
mov esi, ecx
call fcn.0043ecd0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x20]
cmp eax, 5
jne 0x41fc85
cmp dword [esp + 0x24], 1
jb 0x41fc6c
cmp dword [esi + 4], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
je 0x41fc6c
mov esi, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 8]
push ecx
push esi
call edx
test eax, eax
jl 0x41fc6c
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x41fc6c
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x41fc60
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x41fc60
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x41fc54
cmp word [esp + 0x10], bx
je 0x41fc54
mov bl, 1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x138]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043e577
add esp, 0x134
ret
cmp eax, 6
jb 0x41fc6c
lea edx, [esp + 8]
push edx
push 0x4626e8
push 1
push ebx
push 0x4626d8
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41fc6c
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x41fc6c
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x41fc60
or eax, 0xffffffff
test byte [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
je 0x41fcf0
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 2
push eax
mov eax, dword [ecx + 0x20]
call eax
test byte [esp + 0xc], 4
je 0x41fd0a
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 4
push eax
mov eax, dword [ecx + 0x20]
call eax
test byte [esp + 0xc], 1
je 0x41fd24
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp word [esp + 0x14], bx
je 0x41fc60
cmp word [esp + 0x18], bx
je 0x41fc60
cmp word [esp + 0x10], bx
je 0x41fc60
mov bl, 1
jmp 0x41fc60
Function at 0x4206cd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47617c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x42070a
push 0x462bd8
push 4
push eax
call fcn.00440a81
push eax
call fcn.00401000
add esp, 0x10
jmp 0x42071c
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420787
push edi
call fcn.00442503
mov edi, dword [eax]
call fcn.00442503
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004408c2
add esp, 0x18
mov ebx, eax
call fcn.00442503
cmp dword [eax], 0
je 0x420767
call fcn.00442503
push dword [eax]
call fcn.0042013e
pop ecx
jmp 0x42076e
call fcn.00442503
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x420787
cmp ebx, esi
jae 0x420787
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x420789
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e577
leave
ret
Function at 0x42386e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45ac46
call fcn.004423db
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0042184d
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4238b9
call fcn.0042184d
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4238ca
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4238d7
or eax, 0xffffffff
jmp 0x423a33
mov ecx, esi
call fcn.004233c0
mov dword [ebp - 0x14], eax
call fcn.004270e5
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x423955
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x423955
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x423955
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040fb00
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x423955
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x423955
mov ecx, ebx
call fcn.0042a012
test eax, eax
je 0x423955
push 0
mov ecx, ebx
call fcn.0042a02d
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00428aae
push dword [ebp - 0x14]
call fcn.0042703d
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00423676
xor edi, edi
cmp eax, edi
je 0x4239b2
test byte [esi + 0x3c], 0x10
je 0x42399c
push 4
pop edi
mov ecx, esi
call fcn.00429ecc
test ax, 0x100
je 0x423992
push 5
pop edi
push edi
mov ecx, esi
call fcn.00426bd3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4239b2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042a200
or dword [ebp - 4], 0xffffffff
jmp 0x4239dd
cmp dword [ebp - 0x28], edi
je 0x4239eb
push 1
mov ecx, ebx
call fcn.0042a02d
cmp dword [ebp - 0x2c], edi
je 0x4239fb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x423a14
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x423a14
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004233fa
cmp dword [esi + 0x58], edi
je 0x423a30
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00442480
ret
Function at 0x424116
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x42415c
call fcn.0042184d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42415c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x42419f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x424188
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x424188
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42419c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4280b1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4280ea
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00428090
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403350
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4296ee
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x45e274
mov ecx, edi
call fcn.004019a0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x429741
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x429754
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00428090
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403350
jmp 0x429754
mov ecx, esi
call fcn.00429ddd
test eax, eax
je 0x429754
push edi
mov ecx, eax
call fcn.004280b1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x429d3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x429d7e
call fcn.0042184d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429d7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x429d99
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004298f5
test ebx, ebx
mov esi, eax
je 0x429d97
test edi, edi
je 0x429d97
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42a50f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45ba9b
call fcn.004423a8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42a534
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42a580
call fcn.004218cc
push eax
lea ecx, [ebp - 0x10]
call fcn.00401300
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ff20
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010e0
mov eax, esi
call fcn.00442480
ret 8

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x42d76f
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x42d814
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8
Function at 0x42e2b8
Capabilities:
Resolve dns

Disassembly:
push 0x24
mov eax, 0x45b128
call fcn.00442411
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
call dword [0x477560]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
test esi, esi
jne 0x42e2ff
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.00420087
xor eax, eax
lea esp, [ebp - 0x40]
call fcn.00442494
ret 8
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0043ecd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042da2e
add esp, 0xc
test eax, eax
jl 0x42e368
mov edi, dword [ebp - 0x28]
cmp edi, 0x400
jg 0x42e34e
push edi
call fcn.0042e011
test al, al
pop ecx
je 0x42e34e
mov eax, edi
call fcn.0043f3a0
mov eax, esp
jmp 0x42e357
push edi
lea ecx, [ebp - 0x24]
call fcn.0042e0da
push dword [ebp - 0x2c]
push edi
push esi
push eax
call fcn.00405ab0
mov esi, eax
test esi, esi
jne 0x42e36f
push 8
jmp 0x42e2e4
push esi
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x42e399
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42e3b8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x30]
push 0x10
lea edx, [ebp - 0x20]
mov word [ebp - 0x1e], ax
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov esi, eax
jmp 0x42e3c5
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.00420087
mov eax, esi
jmp 0x42e2f4