joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485340
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x4b0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4853d3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0049dbb0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x485406
push str.Received_too_short_packet
push edi
call fcn.00472e90
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00484f40
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x485421
jmp dword [eax*4 + 0x485538]
cmp edx, 4
jle case.0x485421.4
push ebx
call fcn.00484f20
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x485421.4
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.00472c50
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x485486
push 5
push esi
call fcn.00485c50
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.0047c470
jmp 0x4854fe
push ebx
call fcn.00484f20
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x53fe5c
push edi
call fcn.00472f30
add esp, 0x10
jmp case.0x485421.4
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.004850f0
add esp, 0xc
test eax, eax
je case.0x485421.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x57fe80
push edi
call fcn.00472e90
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.0047c6a0
add esp, 4
test eax, eax
je 0x4853f3
push 5
push esi
call fcn.00485c50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x485550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x48556d.4
jmp dword [eax*4 + 0x485784]
lea eax, [edi + 0x15c]
push eax
call fcn.00484f20
movzx ecx, word [edi + 0x40]
add esp, 4
movzx esi, ax
lea eax, [ecx + 1]
movzx eax, ax
cmp eax, esi
jne 0x48559d
mov dword [edi + 0x18], 0
jmp 0x4855b4
cmp ecx, esi
jne 0x485628
push esi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.00472f30
add esp, 0xc
mov word [edi + 0x40], si
lea esi, [edi + 0x160]
push 4
push esi
call fcn.00484f80
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00484f60
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4856fa
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.004b0bc6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push esi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00472f30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.00484f80
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00484f60
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4856fa
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.004b0bc6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00472f30
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x4856d6
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x485760
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0047f480
push eax
push 0x57fe80
push ebx
call fcn.00472e90
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.00484f80
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00484f60
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x57fe80
push ebx
call fcn.00472e90
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x485c50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x485c62
jmp dword [edx*4 + 0x485cb8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004857a0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00485550
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00485e60
push str.TFTP_finished
push 0x53fe5c
push eax
call fcn.00472f30
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x57fe80
push eax
call fcn.00472e90
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x48bca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x134]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x48bcf8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.00473480
add esp, 8
cmp edi, 0xffffffff
jne 0x48bd2d
push str.Error_accept__ing_server_connect
push ebx
call fcn.00472e90
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.00472f30
push 1
push edi
mov dword [esi + 0x134], edi
call fcn.00492ca0
mov dword [esi + 0x13c], 1
add esp, 0x10
mov eax, dword [ebx + 0x1a4]
test eax, eax
je 0x48bd99
push 1
push edi
push dword [ebx + 0x1a8]
call eax
add esp, 0xc
test eax, eax
je 0x48bd99
push edi
push esi
call fcn.00473480
add esp, 8
mov dword [esi + 0x134], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret

Function at 0x48e370
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov eax, edx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
shr eax, 0x1f
add eax, edx
mov ebx, dword [edi]
cmp eax, 2
je 0x48e3ac
push str.Couldnt_set_desired_mode
push ebx
call fcn.00472e90
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x48e3c3
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00472f30
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x48e3db
push edi
call fcn.0048df00
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x48e3f0
push edi
call fcn.0048d9f0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x48e405
push edi
call fcn.0048de60
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x48e415
push edi
call fcn.0048dee0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x48fea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b2d42
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x48ff04
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x48ff04
lea eax, [ebp - 0x108]
push eax
call dword [0x59a00c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret

Function at 0x48ff20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048fea0
Function at 0x495290
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4952c2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x495440
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x495473
push 0x2e
push edi
call fcn.0049d9d0
add esp, 8
test eax, eax
je 0x495471
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4973c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4973ed
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x497434
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x49743a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x49749b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x497460
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4974c7
mov eax, dword [esi + 4]
push 1
push 0x5482c2
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5482c3
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4974a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bbad9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bb958

Function at 0x4c0814
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c04d4
Function at 0x4c6310
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x58f038
push 0x4a0240
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x59a0a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
push 0x105
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0049e130
mov esi, 1
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x128], 0
push 0xffffffffffffffff
push str.6BE417DD_264A_4678_A036_74D2173ECCEB
push 0x104
lea eax, [ebp - 0x330]
push eax
call fcn.004a0ef4
add esp, 0x1c
cmp dword [ebp - 0x128], 0
jne 0x4c63bb
lea eax, [ebp - 0x330]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x128], eax
test eax, eax
je 0x4c63bb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x30
push 0
lea eax, [ebp - 0x368]
push eax
call fcn.0049e130
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x368]
push eax
push 0
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
je 0x4c64e3
mov dword [ebp - 4], 0
cmp byte [ebp - 0x347], 0
jne 0x4c64b7
mov ecx, dword [ebp - 0x35c]
movzx eax, word [ecx + 0x18]
mov edx, 0x10b
cmp ax, dx
jne 0x4c643d
add ecx, 0x98
jmp 0x4c644d
mov edx, 0x20b
cmp ax, dx
jne 0x4c64b7
add ecx, 0xa8
mov ebx, dword [ebp - 0x33c]
mov edi, dword [ebp - 0x360]
add edi, ebx
lea eax, [ecx + 8]
cmp eax, edi
ja 0x4c64af
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
lea eax, [ecx + edx]
cmp eax, ebx
ja 0x4c64af
test ecx, ecx
je 0x4c64af
test edx, edx
je 0x4c64af
add ecx, dword [ebp - 0x360]
lea ebx, [edx + ecx]
mov edx, 0x100
mov dword [ebp - 0x338], edx
cmp ecx, ebx
jae 0x4c64b7
test edx, edx
jle 0x4c64b7
lea eax, [ecx + 0xc]
cmp eax, edi
ja 0x4c64af
mov eax, dword [ecx]
test eax, eax
je 0x4c64af
cmp eax, 0xffffffff
je 0x4c64af
add ecx, 7
add ecx, eax
and ecx, 0xfffffff8
dec edx
jmp 0x4c6484
xor esi, esi
mov dword [ebp - 0x334], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c64d6
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x4c6500
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4c8f50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53700b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
cmp word [edi], ax
jne 0x4c8fb6
xor ecx, ecx
jmp 0x4c8fcf
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8fc0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x448]
call fcn.00405040
push str.Engine
push edi
mov dword [ebp - 4], 0
call fcn.004a689d
add esp, 8
test eax, eax
je 0x4c9035
cmp dword [ebx + 0x1f8], 0
jne 0x4c9035
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.004042c0
mov ecx, dword [ebp - 0x434]
cmp ecx, 8
jb 0x4c9122
inc ecx
push ecx
jmp 0x4c9111
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x220]
push dword [ebx + 0x10]
push edi
push 0x554cb4
push 0x104
push eax
call fcn.00404fc0
add esp, 0x14
lea eax, [ebp - 0x430]
push 0x20a
push 0
push eax
call fcn.0049e130
lea eax, [ebx + 0x1dc]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4c908c
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x4c90e3
cmp word [ebp - 0x220], 0
jne 0x4c90b8
xor ecx, ecx
jmp 0x4c90d0
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c90c1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x448]
call fcn.00405040
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.004042c0
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x4c9122
inc eax
push eax
push dword [ebp - 0x448]
lea ecx, [ebp - 0x448]
call fcn.00403010
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 8
Function at 0x4c9720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537099
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24c], 0
cmp eax, 0x554c34
je 0x4c98b5
cmp eax, str.KeyName
je 0x4c98b5
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x230]
mov ecx, ebx
push 0x554c34
push eax
call fcn.004c8f50
cmp dword [ebx + 0x1f0], 8
lea ecx, [ebx + 0x1dc]
jb 0x4c97b1
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 8
jb 0x4c97b9
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4c97c1
mov eax, dword [eax]
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
push str.KeyName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4c97f9
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
call fcn.00404170
push str.Title
push str.KeyName
mov dword [ebp - 4], 0
call fcn.004a689d
add esp, 8
test eax, eax
jne 0x4c9874
mov eax, dword [ebx + 0x10]
cmp eax, 0x121
je 0x4c9864
cmp eax, 0x124
je 0x4c9864
cmp eax, 0x186c6
jne 0x4c9874
push 0x554bc4
jmp 0x4c9869
push 0x554bb8
lea ecx, [ebp - 0x248]
call fcn.00404070
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x248]
push eax
call fcn.004042c0
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4c98d3
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00403010
jmp 0x4c98d3
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004026e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c9900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call fcn.00403e80
cmp dword [eax + 0x14], 8
jb 0x4c992e
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 8]
sete bl
cmp eax, 8
jb 0x4c9960
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00403010
test bl, bl
pop ebx
je 0x4c99a8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x554b98
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c999f
cmp dword [ebp - 0x24], 4
jne 0x4c999f
mov eax, dword [ebp - 0x28]
mov esi, 1
mov dword [edi], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 4

Function at 0x4c9ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5370e3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x59a0a0]
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, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call fcn.0049e130
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4c9f5f
mov eax, dword [esi]
jmp 0x4c9f61
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ca00a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x554950
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c9ffe
cmp word [ebp - 0x21c], ax
jne 0x4c9fd4
xor ecx, ecx
jmp 0x4c9fef
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9fe0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00405040
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0049aa22
mov esp, ebp
pop ebp
ret 0x10