joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56826f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a2c70]
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.0055949c
mov dword [ebp - 0x14], eax
cmp dword [0x6fb70c], esi
jne 0x568362
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5682ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x568442
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x568442
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x568442
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x6fb70c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6fb710], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x6fb714], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6fb71c], eax
test eax, eax
je 0x56835f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6fb718], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x568387
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x56837a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x56839c
push 4
pop eax
jmp 0x568444
cmp dword [ebp - 0x14], esi
je 0x56839c
push dword [0x6fb70c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x568381
mov eax, dword [0x6fb718]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5683fa
cmp dword [0x6fb71c], edi
je 0x5683fa
push eax
call ebx
push dword [0x6fb71c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5683fa
test eax, eax
je 0x5683fa
call ecx
test eax, eax
je 0x5683ef
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 0x5683ef
test byte [ebp - 8], 1
jne 0x5683fa
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x56842a
mov eax, dword [0x6fb710]
cmp eax, edi
je 0x568427
push eax
call ebx
test eax, eax
je 0x568427
call eax
mov esi, eax
test esi, esi
je 0x568427
mov eax, dword [0x6fb714]
cmp eax, edi
je 0x568427
push eax
call ebx
test eax, eax
je 0x568427
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6fb70c]
call ebx
test eax, eax
je 0x568442
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x568444
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054ee82
mov esp, ebp
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4062da
Capabilities:
Encode data using xor

Disassembly:
cld
mov dword [esp], edi
call eax
pop edi
mov edi, 0x7a426708
mov ecx, 0x20a2669e
xor ecx, edi
mov edi, 0x282b9951
xor ecx, edi
mov edx, 0x4f9511b9
mov eax, 0x3d5e8a5b
xor eax, edx
xor ecx, eax
mov edi, 0x40011801
mov eax, 0x18004024
xor edi, eax
mov eax, 0x7b0809a9
xor edi, eax
mov eax, edi
add esp, 0xfffffffc
mov dword [esp], eax
mov eax, 0x4c26b65a
xor eax, 0x33759fa8
push eax
push 0x3ba71cad
mov edx, 0x67bd047d
pop eax
xor edx, eax
pop edi
xor edx, edi
pop esi
xor edx, esi
mov edi, 0x46fde14
mov eax, 0x46dda87
xor eax, edi
mov esi, 0x40
mov edi, 0x600100
xor esi, edi
xor eax, esi
push 0x64b7a942
mov esi, 0x64952030
pop edi
xor esi, edi
xor eax, esi
mov ebx, ecx
push ebx
pop edi
mov esi, 0x4904ad8c
mov ebx, 0x4904ad88
xor ebx, esi
sub esp, ebx
mov dword [esp], edi
xor ebx, ebx
add ebx, eax
mov edi, 0xfffffffc
add esp, edi
mov esi, 0
xor esi, esp
mov dword [esi], ebx
xor ecx, ecx
mov cl, byte [edx]
add eax, ecx
mov cl, byte [eax]
pop eax
mov byte [edx], cl
mov edi, 0x20a4409
mov ebx, 0x4209844
xor edi, ebx
push 0x2309397
mov esi, 0x41a4fdb
pop ebx
xor esi, ebx
xor esi, edi
sub edx, esi
pop ecx
dec ecx
mov edi, 4
sub esp, edi
push esp
pop esi
mov dword [esi], ecx
pop ebx
or ebx, ebx
jne 0x406365
push 0x27571207
mov ecx, 0x24d26cf4
pop edi
xor ecx, edi
mov ebx, 0x16708100
mov esi, 0x21084a40
xor ebx, esi
xor ebx, ecx
mov esi, 0xd7d1310
xor esi, 0x6a9c402d
mov eax, 0x1449104
mov edi, 0x52182a00
xor eax, edi
xor eax, esi
xor eax, ebx
call eax
pop edi
pop edi
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x10001e10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1002fefc], 0
je 0x10001e29
mov eax, 1
jmp 0x10001eb8
lea eax, [ebp - 4]
push eax
push 0x28
call dword [0x1002412c]
push eax
call dword [0x10024008]
test eax, eax
jne 0x10001e44
xor eax, eax
jmp 0x10001eb8
lea ecx, [ebp - 0x1c]
push ecx
push 0x10026634
push 0
call dword [0x10024004]
test eax, eax
jne 0x10001e67
mov edx, dword [ebp - 4]
push edx
call dword [0x10024078]
xor eax, eax
jmp 0x10001eb8
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [section..rdata]
test eax, eax
jne 0x10001e9f
xor eax, eax
jmp 0x10001eb8
mov ecx, dword [ebp - 4]
push ecx
call dword [0x10024078]
mov dword [0x1002fefc], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10013710
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
call fcn.10014910
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x5c], 0x80
mov esp, ebp
pop ebp
ret

Function at 0x10040973
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [esp], 0xa5
pushfd
mov dword [esp + 8], edx
lea esp, [esp + 0x30]
jne 0x1004a77b
bswap cx
adc cl, 0x85
mov ecx, dword [ebp - 0x1b4]
seto ah
das
jmp 0x10042625
sar edx, cl
and ch, cl
mov ecx, dword [ebp - 0x1b4]
sub al, bl
shld dx, cx, 0xb
shld dx, dx, 0xf
pushfd
add ecx, 1
movzx dx, al
mov dword [ebp - 0x1b8], ecx
stc
mov edx, dword [ebp - 0x1b4]
xor al, 0x21
pushal
mov al, byte [edx]
pushfd
jmp 0x10049384
lea esp, [esp + 0x40]
call fcn.1001bfe0
sbb al, dh
inc dl
add ah, bl
shl ah, cl
add esp, 0xc
rol dx, cl
mov eax, dword [ebp - 0x2c]
clc
movsx dx, dl
rcl cx, 8
mov dword [ebp - 0x1b4], eax
rcr al, 7
jmp 0x1003fcd3
xchg dx, ax
sub ecx, dword [ebp - 0x1b8]
lea eax, [eax*8 - 0x7e2e6bd6]
xchg al, dh
mov dword [ebp - 0x1c0], ecx
bswap dx
cdq
mov edx, dword [ebp - 0x14]
lea eax, [ebx*4 - 0xbc7bf7f]
push edx
movsx ax, bl
cwde
jmp 0x1005b6f2
mov cx, di
jmp 0x1005011d
mov byte [ebp - 0x1b9], al
clc
pushfd
add dword [ebp - 0x1b4], 1
mov word [esp + 8], si
bt ax, cx
cmp byte [ebp - 0x1b9], 0
jmp 0x1003d388
lea ecx, [ecx - 0x4ffab08c]
pushfd
mov dword [esp], eax
push 0x281e8f8a
mov ecx, dword [ebp - 0x2c]
pushal
push dword [esp + 8]
mov dword [esp + 0x24], ecx
lea esp, [esp + 0x24]
call fcn.100393e5
movsx ax, cl
mov eax, dword [ebp - 0x1c0]
pushal
push 0x86495656
push eax
pushfd
lea esp, [esp + 0x2c]
jmp 0x100452a6
Function at 0x401e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x401e58
push esi
mov esi, 1
mov edx, 0x10
sub esi, ecx
xor byte [ecx], 0x54
lea eax, [esi + ecx]
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401e45
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x186a0
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x401f9b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044627d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x40
push 0x186a0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044627d
mov esp, ebp
pop ebp
ret

Function at 0x402680
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00402650
nop
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00402650
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x4026b6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x4026d5
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00402650
nop
mov edx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x18], eax
jmp 0x4026ad
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x4026ee
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x402746
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x61c88647
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
shl edx, 4
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor edx, ecx
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
jmp 0x4026e5
mov edx, dword [ebp - 4]
push edx
call fcn.00402650
nop
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.00402650
nop
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x4132e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c6120], 0
push esi
push edi
mov esi, ecx
je 0x41330c
cmp byte [esi + 0x5ce], 7
jne 0x41330c
push ecx
call fcn.00419ba0
push ebx
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0x6500
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
mov ecx, esi
mov word [ebp - 0xc], 0x400
mov dword [ebp - 8], 0
call fcn.00411410
mov ebx, dword [esi + 0x48a]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test ebx, ebx
je 0x413385
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x41337f
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x80
push 0xffff
push edi
call eax
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebx], 0xffffffff
mov edi, dword [esi + 0x48e]
test edi, edi
je 0x4133d0
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x4133c0
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x80
push 0xffff
push ebx
call eax
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x48e], 0
mov edi, dword [esi + 0x492]
test edi, edi
je 0x41341f
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x41340f
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x492], 0
cmp dword [esi + 0x514], 0
pop ebx
je 0x413433
mov dword [esi + 0x514], 0
mov eax, dword [0x4c5b94]
test eax, eax
je 0x413442
dec eax
mov dword [0x4c5b94], eax
xor eax, eax
mov dword [esi + 0x48a], 0
mov dword [esi + 0x46a], 0
mov byte [esi + 0x5f6], 0
mov dword [esi + 0x47e], 0
mov dword [esi + 0x482], 0
mov word [esi + 0x5ea], ax
mov byte [esi + 0x5cc], al
mov dword [esi + 0x534], eax
mov byte [esi + 0x5d2], al
mov byte [esi + 0x5e0], al
cmp dword [ebp + 8], eax
je 0x4134d1
mov eax, dword [esi + 0x1205]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x4134b7
push eax
call edi
add esp, 4
mov dword [esi + 0x1205], 0
mov eax, dword [esi + 0x120d]
test eax, eax
je 0x4134d1
push eax
call edi
add esp, 4
mov dword [esi + 0x120d], 0
mov ecx, dword [esi + 0x1201]
call dword [sym.imp.mfc140u.dll_CByteArray::FreeExtra]
mov ecx, dword [esi + 0x1201]
push 0xffffffffffffffff
push 0
call dword [sym.imp.mfc140u.dll_CByteArray::SetSize]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044627d
mov esp, ebp
pop ebp
ret 4
Function at 0x417790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push edi
push 0x400
push 0
push eax
mov dword [ebp - 0x80c], esi
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x404]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
movzx eax, word [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx edi, ax
movsx eax, di
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x4b7a00
push eax
call fcn.004203f0
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
cmp di, 0x61
je 0x41783a
cmp di, 0x7d
jne 0x4178f3
push ebx
lea eax, [ebp - 0x804]
push 0x4b6db8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4178f2
xor ecx, ecx
mov dword [ebp - 0x808], ecx
movzx ecx, word [esi + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
cmp cx, ax
jae 0x4178e8
mov edi, dword [sym.imp.WS2_32.dll_htonl]
add esi, 0x60
nop dword [eax]
push dword [esi - 0x31]
call edi
push eax
push dword [esi]
call edi
push eax
push dword [esi - 0x46]
call edi
push eax
push dword [esi - 0x26]
call edi
push eax
push dword [esi - 0x2a]
call edi
push eax
lea eax, [ebp - 0x404]
push str._u_____u_____d_____d___d__n
push eax
call fcn.004203f0
lea eax, [ebp - 0x404]
push eax
push 0x4b6dbc
push ebx
call fcn.00420710
mov eax, dword [ebp - 0x80c]
lea esi, [esi + 0x50]
inc dword [ebp - 0x808]
add esp, 0x28
movzx eax, word [eax + 0x16]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
cmp dword [ebp - 0x808], eax
jb 0x417880
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044627d
mov esp, ebp
pop ebp
ret 8
Function at 0x418be0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov byte [ebp - 0x18], 0
mov edi, ecx
mov word [ebp - 7], 0
movups xmmword [ebp - 0x17], xmm0
mov byte [ebp - 5], 0
call dword [sym.imp.WS2_32.dll_htonl]
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00418630
cmp dword [0x4c60f0], 0
mov ebx, dword [edi + 0x48a]
mov dword [edi + 0x492], ebx
jne 0x418c78
mov byte [edi + 0x5f6], 0
test ebx, ebx
je 0x418c78
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x418c72
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
push 0x10
call dword [sym.imp.mfc140u.dll_operator_2]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x418c9a
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], 0xffffffff
jmp 0x418c9c
xor esi, esi
push 5
push 0
push 0
push 0
push 0
push 0
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00421340
test eax, eax
je 0x418cd2
test esi, esi
je 0x418cd0
push 0x10
push esi
mov dword [esi], 0xffffffff
call fcn.004466f8
add esp, 8
xor esi, esi
push 0x50
mov dword [edi + 0x48a], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x48a], 0
je 0x418cf6
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.00418af0
push dword [ebp + 0x14]
mov ecx, edi
call fcn.004186b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044627d
mov esp, ebp
pop ebp
ret 0x18

Function at 0x419400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x424]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x824]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov byte [ebp - 7], 0
movups xmmword [ebp - 0x23], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x13], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x824]
push 0x4b6ef8
push eax
call fcn.004203f0
push dword [esi + 8]
lea eax, [ebp - 0x24]
push 0x4b6b64
push eax
call fcn.00420430
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
push edi
push ebx
push 0x4b6ea4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044627d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ae70
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3253
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xa18], edi
push 0x400
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa28], edi
push 0
push eax
mov dword [ebp - 0xa24], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xa1c]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x400
lea eax, [ebp - 0x610]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x610]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4b7a58
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0xa10]
push 0x4b7a68
push eax
call fcn.004203f0
push esi
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
lea eax, [ebp - 0xa14]
push 0x4b7d9c
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0xa10]
lea ecx, [ebp - 0xa20]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa14]
push dword [eax]
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x4b7a70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa20]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x210]
mov dword [ebp - 0xa24], 1
push eax
push 0x4b7a7c
push edi
call esi
add esp, 0xc
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044627d
mov esp, ebp
pop ebp
ret