joyce8/EMBER2024-capa huggingface dataset:
Function at 0x73abb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x73ad19
sub esp, 0x70
call fcn.0040c010
mov eax, dword [esp]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x73ac78
mov edx, dword [esp + 0x74]
xor ebx, ebx
jmp 0x73abf6
mov ebp, dword [esp + 0x3c]
lea edx, [ebp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ebx
lea edi, [esp + 0x58]
mov esi, edx
call fcn.0045caa4
lea edi, [esp + 0x40]
lea esi, [esp + 0x58]
call fcn.0045caa4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x2c], ebp
lea edx, [0x78c140]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00410310
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [0xa8c6b0]
test ecx, ecx
jne 0x73ad08
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jl 0x73abe9
lea eax, [0x78c140]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
lea eax, [0x7e03fb]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
call fcn.004f3f90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x73acda
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x70
ret
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00446730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x70
ret
lea edi, [eax + 4]
mov eax, dword [esp + 0x38]
call fcn.0045c330
jmp 0x73ac67
call fcn.0045ade0
jmp fcn.0073abb0
Function at 0x4060fa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406139
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406139
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406139
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406139
cmp dword [ecx + 0x74], 0xe
jbe 0x406139
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408bc0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x450ca0
push str.FlsAlloc
push 0x1f
call fcn.00408892
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bf4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x408bfa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408c3e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x450cc4
push str.FlsGetValue
push 0x21
call fcn.00408892
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408c75
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408c7d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x450cd8
push str.FlsSetValue
push 0x22
call fcn.00408892
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408cb7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b123
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f548]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b16e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b37f
test al, al
jne 0x40b168
sub edx, 2
cmp edx, edi
jne 0x40b14e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b190
lea eax, [edi + 2]
cmp edx, eax
je 0x40b190
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040adea
add esp, 0x10
jmp 0x40b28a
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b37f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b1d3
push dword [ebp - 0x25c]
jmp 0x40b180
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b210
cmp word [ebp - 0x226], 0
je 0x40b231
cmp word [ebp - 0x226], ax
jne 0x40b210
cmp word [ebp - 0x224], 0
je 0x40b231
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040adea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b27d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b1ea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b265
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b28a
push 0x40a83a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004127d0
add esp, 0x10
jmp 0x40b25a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bbf
leave
ret

Function at 0x40df8d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040746e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40dffc
cmp esi, dword [ebp - 4]
je 0x40dff7
cmp dword [ebp + 0xc], 0
je 0x40dff7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40dfd4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040dadf
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40dffe
xor eax, eax
inc eax
jmp 0x40dffe
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40e063
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45f548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040746e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040746e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40e0da
cmp word [ecx], dx
je 0x40e0da
mov eax, dword [0x451fac]
push edi
dec eax
push eax
push 0x451e98
call fcn.0040e002
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40e14d
cmp word [eax], dx
je 0x40e14d
mov eax, dword [edi]
test eax, eax
je 0x40e0fe
cmp word [eax], dx
je 0x40e0fe
lea eax, [ebp - 0x10]
push eax
call fcn.0040d9e5
jmp 0x40e107
lea eax, [ebp - 0x10]
push eax
call fcn.0040da80
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40e177
mov eax, dword [0x451e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x451b88
call fcn.0040e002
add esp, 0xc
test al, al
je 0x40e177
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40e142
cmp word [eax], di
je 0x40e142
lea eax, [ebp - 0x10]
push eax
call fcn.0040d9e5
pop ecx
jmp 0x40e179
lea eax, [ebp - 0x10]
push eax
call fcn.0040da80
jmp 0x40e13f
mov eax, dword [edi]
test eax, eax
je 0x40e164
cmp word [eax], dx
je 0x40e164
lea eax, [ebp - 0x10]
push eax
call fcn.0040d97c
pop ecx
jmp 0x40e177
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40e242
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040de87
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e242
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40e242
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40e242
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e1cf
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00408dbd
test ebx, ebx
je 0x40e23d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00408dbd
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e242
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e242
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00414aea
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40e244
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bbf
leave
ret
Function at 0x40eecf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ef6c
push ebx
push esi
call fcn.0040ee8b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040f101
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ef19
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ef6b
push edi
push eax
call fcn.00407c7e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ef39
call fcn.00406cb3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ef6a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040f101
add esp, 0x20
test eax, eax
jne 0x40ef58
push edi
call fcn.00406cb3
jmp 0x40ef60
push ebx
call fcn.00406cb3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40ef6f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40ef80
pop esi
ret
push ebx
push edi
push esi
call fcn.0040ee8b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00407c7e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40efa8
push ebx
push esi
push edi
call fcn.0041b890
add esp, 0xc
push 0
call fcn.00406cb3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40f8d6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f3cd
Function at 0x41698f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4623d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4169cf
cmp byte [ebx], 0xa
jne 0x4169cf
or byte [edi + eax + 0x28], 4
jmp 0x4169d4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x416ad3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x416ab6
inc eax
cmp dl, 0xd
je 0x416a00
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x416a26
cmp eax, ecx
jae 0x416a34
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4169e8
jmp 0x416ad3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ab1
cmp dword [ebp - 0x10], 0
je 0x416ab1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4623d0]
test byte [eax + edi + 0x28], 0x48
je 0x416a8b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416a76
mov byte [esi], dl
jmp 0x416a87
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4623d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416ad3
cmp byte [ebp - 1], 0xa
jne 0x416a9a
cmp esi, ebx
jne 0x416a9a
mov byte [esi], 0xa
jmp 0x416ad2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416ad3
mov byte [esi], 0xd
jmp 0x416ad2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4623d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416ad3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416adc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4623d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416b22
cmp word [ebx], dx
jne 0x416b22
or byte [eax + edi + 0x28], 4
jmp 0x416b27
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x416c8a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x416c6a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x416b68
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416b9e
cmp eax, edx
jae 0x416bac
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x416b43
jmp 0x416c8a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416c65
cmp dword [ebp - 0x18], 0
je 0x416c65
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4623d0]
test byte [eax + edi + 0x28], 0x48
je 0x416c3b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x416bff
mov word [esi], cx
jmp 0x416c36
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4623d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4623d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4623d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x416c8a
pop eax
cmp word [ebp - 4], ax
jne 0x416c4b
cmp esi, ebx
jne 0x416c4b
mov word [esi], ax
jmp 0x416c87
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417a19
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x416c8a
push 0xd
pop eax
jmp 0x416c46
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4623d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x416c84
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x416c8a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424aa4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x424af9
push dword [esp + 0x10]
push 0x424a23
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x46272c]
test edi, edi
je 0x424b52
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x424af1
cmp byte [edi + 0x10], 0
je 0x424af1
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x424acd
jmp 0x424b52
mov edi, dword [0x46272c]
test edi, edi
je 0x424b52
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x424b4b
cmp byte [edi + 0x11], 0
je 0x424b24
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x424b3b
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x46272c
call fcn.0042dd5c
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x424b06
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x424c05
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push fcn.00424b58
push 0x10
push 0x2c
call fcn.0042d6d5
push 0
push 0
push 8
mov dword [0x462748], eax
call fcn.0042d5a1
cmp word [0x462740], 0
mov dword [0x462a28], eax
jne 0x424ce5
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x462740], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x46274c], eax
test eax, eax
je 0x424ce5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x46274c]
mov dword [0x462730], eax
call esi
push str.getnameinfo
push dword [0x46274c]
mov dword [0x462734], eax
call esi
push str.WSAStringToAddressA
push dword [0x46274c]
mov dword [0x462738], eax
call esi
cmp dword [0x462730], 0
mov ecx, eax
mov dword [0x46273c], ecx
pop esi
je 0x424ce5
cmp dword [0x462734], 0
je 0x424ce5
cmp dword [0x462738], 0
je 0x424ce5
mov eax, dword [0x462744]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x462744], eax
add esp, 0x190
ret
Function at 0x424d82
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
push esi
push dword [0x462748]
call fcn.0042d658
mov edi, eax
test edi, edi
je 0x424e94
cmp dword [esp + 0x18], 0xffff
push ebp
ja 0x424e81
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
and edx, 0x10000000
push 0x17
pop eax
and ecx, 0xefffffff
mov dword [esp + 0x18], edx
test edx, edx
push 2
cmove ecx, dword [esp + 0x24]
pop ebp
cmove eax, ebp
xor edx, edx
inc edx
test ecx, ecx
push ebx
cmove ecx, edx
push ecx
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x424e81
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x424e7a
push dword [esp + 0x1c]
lea eax, [edi + 4]
push dword [esp + 0x28]
push eax
push eax
xor eax, eax
cmp dword [esp + 0x28], eax
push ebp
setne al
push eax
call fcn.00425722
test eax, eax
je 0x424e7a
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x424e5a
push 0x64
push ebp
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
push 1
pop eax
cmove ebx, eax
test ebx, ebx
je 0x424e7a
mov eax, dword [esp + 0x20]
mov word [edi + 0x20], ax
mov ebx, edi
xor eax, eax
mov dword [edi], ebp
cmp dword [esp + 0x18], eax
setne al
cmp esi, 0xffffffff
mov word [edi + 0x22], ax
cmove esi, edi
mov dword [edi + 0x24], esi
jmp 0x424e93
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
cmove esi, edi
push esi
push dword [0x462748]
call fcn.0042d5f7
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0x10
Function at 0x424e9d
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x840
push ebx
push ebp
push esi
push edi
push dword [0x462a28]
xor ebp, ebp
mov dword [esp + 0x14], ebp
call fcn.0042d59a
mov ebx, dword [esp + 0x854]
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], edi
inc eax
cmp word [ebx + 0x20], ax
jne 0x424f0e
push ebp
push ebp
push dword [ebx]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x425070
lea eax, [ebx + 0x28]
push 0x18
push eax
call fcn.0042dd2d
pop ecx
pop ecx
mov ecx, eax
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebx
mov eax, dword [ebx + 0x24]
mov dword [edi + 4], eax
mov dword [edi], ecx
jmp 0x425070
cmp word [ebx + 0x22], bp
je 0x424f41
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x1c
push eax
lea eax, [esp + 0x38]
push eax
push ebp
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x424f6c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
jle 0x425070
mov esi, dword [ebx + 0x28]
mov dword [esp + 0x10], 2
jmp 0x424fac
lea eax, [esi + 0xc]
cmp word [ebx + 0x22], bp
je 0x424f94
push dword [esp + 0x18]
lea ecx, [esp + 0x38]
jmp 0x424f9c
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00418871
add esp, 0xc
test eax, eax
je 0x424fb2
mov esi, dword [esi]
test esi, esi
jne 0x424f81
jmp 0x424fbe
mov eax, esi
push 8
pop ecx
lea ebp, [eax + ecx]
test esi, esi
jne 0x425001
lea eax, [ebx + 0x28]
push 0x40
push eax
call fcn.0042dd2d
mov ebp, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov dword [ebp], eax
lea edi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov al, byte [ebx + 0x22]
mov byte [ebp + 0x20], al
xor eax, eax
cmp word [ebx + 0x22], ax
je 0x424ff7
push 7
pop ecx
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x425003
lea esi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x424ff1
xor eax, eax
cmp dword [ebp + 0x2c], 0
jne 0x425031
push edi
push eax
push dword [0x461438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
lea ecx, [esp + 0x54]
mov dword [ebp + 0x2c], eax
push ecx
push eax
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], eax
call fcn.0041b890
add esp, 0xc
jmp 0x425064
mov eax, dword [ebp + 0x30]
add eax, edi
push eax
push dword [ebp + 0x2c]
push 8
push dword [0x461438]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
lea eax, [esp + 0x50]
push edi
push eax
mov eax, dword [ebp + 0x30]
add eax, ecx
mov dword [ebp + 0x2c], ecx
push eax
call fcn.0041b890
add esp, 0xc
add dword [ebp + 0x30], edi
mov eax, dword [esp + 0x20]
mov dword [eax], ebp
mov ecx, dword [ebx + 0x24]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret