joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413bc0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x413c8a
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x28]
lea eax, [esp + 8]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x413c5e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 1
lea edx, [esp + 0x17]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
call ebx
test eax, eax
je 0x413c5c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 0xffffffff
je 0x413c5b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x413c38
sub eax, edi
jmp 0x413c3d
sub eax, edi
sub eax, 1
cmp eax, 0x3e8
jae 0x413c5b
push 1
call ebp
mov edx, dword [esi + 0x28]
push 0
push 1
lea ecx, [esp + 0x1b]
push ecx
push edx
call ebx
test eax, eax
jne 0x413c25
pop ebp
pop edi
pop ebx
mov eax, dword [esi + 0x28]
push 0
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.00413ca0
mov dword [esi + 0x28], 0xffffffff
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x413ca0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 0x44], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x413cf8
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
jne 0x413cdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x44]
push 0xffffffffffffffff
push ecx
mov dword [esi + 4], 1
call edi
mov edx, dword [esi + 0x44]
push edx
call ebp
mov dword [esi + 0x44], 0
cmp dword [esi + 0x48], 0
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x413d26
mov eax, dword [esi + 0x30]
push eax
mov dword [esi + 4], 1
call ebx
mov ecx, dword [esi + 0x48]
push 0xffffffffffffffff
push ecx
call edi
mov edx, dword [esi + 0x48]
push edx
call ebp
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x3c]
push eax
call ebx
cmp dword [esi + 0x4c], 0
je 0x413d4d
mov ecx, dword [esi + 0x40]
push ecx
call ebx
mov edx, dword [esi + 0x4c]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi + 0x4c]
push eax
call ebp
mov dword [esi + 0x4c], 0
mov ecx, dword [esi + 0x50]
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [esi + 0x60]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x60]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 0x60]
mov dword [esi + 0x64], 0
je 0x413d82
mov edi, edi
mov edi, dword [eax]
push eax
call fcn.0041f829
add esp, 4
cmp edi, dword [esi + 0x60]
mov eax, edi
jne 0x413d70
mov edx, dword [esi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop ebp
pop ebx
ret
Function at 0x414070
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0x54]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
je 0x4140a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
jmp 0x4140ad
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x2c], ecx
add ecx, 1
cmp edi, 0xffffffff
mov dword [esp + 0x28], 1
je 0x4140fd
mov eax, 0x10624dd3
mul edi
shr edx, 6
mov dword [esp + 0x20], edx
imul edx, edx, 0x3e8
mov eax, edi
sub eax, edx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], eax
push 0
lea eax, [esp + 0x30]
push eax
jmp 0x414106
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
je 0x4141ec
test esi, esi
je 0x4141d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x28]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x414144
cmp esi, 1
jne 0x41417f
test eax, eax
jne 0x414183
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x4140bc
call esi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414173
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x4141d0
mov esi, dword [esp + 0xc]
add dword [ebp + 8], eax
sub dword [ebp + 0xc], eax
add esi, eax
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
je 0x4141f7
cmp edi, 0xffffffff
je 0x4140bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test edi, edi
je 0x4140bc
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x4141bc
sub eax, ecx
jmp 0x4141c1
sub eax, ecx
sub eax, 1
cmp eax, edi
jb 0x4140bc
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4141df
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x414161
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414206
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414680
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esi + 0x28]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call edi
mov eax, dword [esi + 0x28]
push 4
lea edx, [esp + 8]
push edx
push 0x1002
push 0xffff
push eax
mov dword [esp + 0x18], 0x5dc
call edi
mov edx, dword [esi + 0x28]
push 4
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push edx
mov dword [esp + 0x18], 0x5dc
call edi
mov ecx, dword [esi + 0x28]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x28]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor edi, edi
cmp eax, 0xffffffff
jne 0x41472e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x44]
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
pop edi
pop ecx
ret 4
mov ecx, dword [esi + 0x44]
push ecx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
pop edi
pop ecx
ret 4

Function at 0x4149c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x198], eax
push edi
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi], vtable.UDPNetWork.0
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x414a2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, esi
pop edi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0041f134
add esp, 0x1a0
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor eax, eax
mov dword [esi + 0x10], eax
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
push eax
mov dword [esi + 0x24], eax
call edi
push 0
push 0
push 0
mov dword [esi + 0x28], eax
call edi
mov ecx, dword [esp + 0x19c]
pop edi
mov dword [esi + 0x2c], eax
xor ecx, esp
mov eax, esi
call fcn.0041f134
add esp, 0x1a0
ret
Function at 0x414ac0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x38
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
sub esp, 0x1c
mov esi, esp
xor ebp, ebp
mov eax, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov dword [esp + 0x28], esp
mov word [esi + 4], bp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x414af0
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401d80
lea esi, [esp + 0x2c]
call fcn.00412070
mov ebx, 0x10
add esp, 0x1c
cmp dword [eax + 0x18], ebx
jb 0x414b21
mov eax, dword [eax + 4]
jmp 0x414b24
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esp + 0x28], ebx
mov esi, eax
mov dword [esp + 0x30], esi
jb 0x414b44
mov eax, dword [esp + 0x14]
push eax
call fcn.0041f829
add esp, 4
cmp esi, 0xffffffff
jne 0x414c06
sub esp, 0x1c
mov esi, esp
mov eax, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov dword [esp + 0x28], esp
mov word [esi + 4], bp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x414b70
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401d80
lea esi, [esp + 0x2c]
call fcn.00412070
add esp, 0x1c
cmp dword [eax + 0x18], ebx
jb 0x414b9c
mov eax, dword [eax + 4]
jmp 0x414b9f
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebp
sete bl
cmp dword [esp + 0x28], 0x10
jb 0x414bc1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041f829
add esp, 4
test bl, bl
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebp
mov byte [esp + 0x14], 0
je 0x414bea
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041f134
add esp, 0x38
ret
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00423740
mov esi, dword [esp + 0x3c]
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f134
add esp, 0x38
ret

Function at 0x414ca0
Capabilities:
Create udp socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
mov ebx, ecx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414cb0
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x414d2e
mov ebp, dword [esp + 0x18]
push 0
push 2
push 2
mov dword [ebx + 0x24], ebp
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x20], eax
je 0x414d25
xor eax, eax
lea esi, [ebx + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00414ac0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push ebp
mov dword [ebx + 0x14], eax
mov word [esi], 2
call sub.WS2_32.dll_htons
cmp dword [esp + 0x1c], 0
mov word [ebx + 0x12], ax
je 0x414d37
mov eax, dword [ebx + 0x20]
push 0x10
push esi
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x414d37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov dword [ebx + 4], 0
mov eax, 1
pop ebx
ret 0xc
Function at 0x414d50
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x28]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x20]
cmp ebx, 0xffffffff
jne 0x414d8b
test edi, edi
je 0x414d80
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0xffff
jge 0x414d75
mov ecx, dword [ebp + 0x10]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 0x10], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x28], ebx
push 0
add ebx, 1
push ebx
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x414df7
test edi, edi
je 0x414deb
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x414d75
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0x10
lea edx, [esi + 0x10]
push edx
mov edx, dword [esi + 0x20]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov dword [esi + 8], eax
je 0x414e2f
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414e40
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x2c]
push 0xffffffffffffffff
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x20]
cmp ebx, 0xffffffff
jne 0x414e9e
test edi, edi
je 0x414e85
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041f134
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0xffff
jge 0x414e7a
mov ecx, dword [ebp + 0x10]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 0x18], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
push edx
add ebx, 1
push ebx
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x414f18
test edi, edi
je 0x414efe
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041f134
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x414e7a
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x130]
push ecx
mov ecx, dword [esi + 0x20]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov dword [esi + 8], eax
je 0x414f7e
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041f134
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [0x445e30], 0
push esi
push edi
mov edi, eax
je 0x415c54
test ebx, ebx
je 0x415c54
cmp dword [0x446048], 0
jne 0x415b39
mov eax, dword [0x445e2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415b40
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + eax]
mov eax, dword [0x445e30]
push edx
push edi
push eax
call esi
mov ecx, dword [esp + 8]
mov eax, dword [ebp + 8]
add dword [0x446040], ecx
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x445e30]
lea ecx, [eax + eax]
push ecx
push ebx
push edx
call esi
mov eax, dword [0x446040]
add eax, dword [esp + 8]
cmp eax, dword [0x445e34]
mov dword [0x446040], eax
jl 0x415baf
cmp dword [0x446050], 0
jne 0x415baf
call fcn.004157f0
cmp dword [0x446048], 0
jne 0x415bc4
mov eax, dword [0x445e2c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [0x445b6c], 0
je 0x415c4a
call fcn.00411b50
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ebx
push edi
push str._s__s
shr ecx, 1
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.0041f82e
mov eax, dword [0x445bb0]
add esp, 0x14
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x445bb8]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
call fcn.004148e0
mov ecx, 0x445bb4
mov esi, eax
call fcn.00414920
mov ecx, dword [0x445bb0]
mov dword [edi], esi
mov eax, dword [esi + 4]
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [0x445b6c]
push 0
push 0
push 0xa710
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x418810
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x435b78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443284]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
sub esp, 0x1c
mov ecx, esp
xor ebx, ebx
mov dword [esp + 0x44], esp
mov dword [esp + 0x6c], ebx
push 0xffffffffffffffff
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
push ebx
lea edx, [esp + 0x7c]
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x44], ebx
mov byte [ecx + 4], bl
call fcn.00401960
lea esi, [esp + 0x48]
call fcn.004120d0
mov edi, 8
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x418892
mov eax, dword [eax + 4]
jmp 0x418895
add eax, 4
push eax
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
cmp dword [esp + 0x3c], edi
jb 0x4188af
mov eax, dword [esp + 0x28]
push eax
call fcn.0041f829
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401960
lea esi, [esp + 0x58]
call fcn.004120d0
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x4188f7
mov eax, dword [eax + 4]
jmp 0x4188fa
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esp + 0x3c], edi
mov esi, eax
jb 0x418916
mov eax, dword [esp + 0x28]
push eax
call fcn.0041f829
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
je 0x418999
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov edi, eax
lea ecx, [edi + 2]
push ecx
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x418981
push ebx
push ebx
push ebx
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x41897a
mov byte [eax + edi], bl
mov edx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
mov dword [edx + eax + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x68], 0x10
jb 0x4189ad
mov edx, dword [esp + 0x54]
push edx
call fcn.0041f829
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x418d50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x434f00
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x443284]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x10], ebx
push ebp
push ebx
push edi
mov dword [esp + 0x28], 3
call fcn.00424a50
mov edx, dword [esp + 0x88]
mov eax, 0x10
add esp, 0xc
cmp dword [esp + 0x90], eax
jae 0x418daf
lea edx, [esp + 0x7c]
cmp dword [esp + 0x74], eax
mov ecx, dword [esp + 0x60]
jae 0x418dbd
lea ecx, [esp + 0x60]
cmp dword [esp + 0x58], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
jae 0x418dcf
lea ecx, [esp + 0x44]
cmp dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
jae 0x418ddd
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push ebp
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov ebp, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebp
mov byte [esi + 4], bl
jbe 0x418e92
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x418e08
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00401b50
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x418e34
mov eax, dword [esp + 0x28]
push eax
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x418e53
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x418e72
mov edx, dword [esp + 0x60]
push edx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x90], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x418f17
mov eax, dword [esp + 0x7c]
push eax
jmp 0x418f0f
push ebx
push 0x43a36a
mov ecx, esi
call fcn.00401b50
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x418eb7
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x418ed6
mov edx, dword [esp + 0x44]
push edx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x418ef5
mov eax, dword [esp + 0x60]
push eax
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x90], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x418f17
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041f829
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret