joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449a90
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub esp, 0x158
mov eax, dword [esp + 0x15c]
push ebx
push ebp
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push bind
push eax
mov ebp, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x449afb
mov ecx, dword [0x653498]
push 2
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x653498]
push ebx
push 0x4bb448
push str.Resource_Not_Found_
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004aabeb
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], ebx
jle 0x449b7a
push edi
push 0
lea edx, [esp + 0x18]
push edx
push 0x14c
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x51eb851f
mul dword [esp + 0x148]
shr edx, 4
push 0x14c
mov dword [esp + 0x14c], edx
call fcn.004a99fd
mov ecx, dword [esp + 0x20]
mov dword [ebp + ecx*4 + 4], eax
mov edx, dword [esp + 0x20]
mov edi, dword [ebp + edx*4 + 4]
mov ecx, 0x53
lea esi, [esp + 0x20]
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x449b16
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x158
ret 4
Function at 0x451640
Capabilities:
Log keystrokes via input method manager

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4516ce
push eax
call sub.IMM32.dll_ImmGetContext
test eax, eax
mov dword [esi + 0x138], eax
je 0x4516ce
push ebp
push 0
push 0
push 0x800
push eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebp, eax
test ebp, ebp
jbe 0x4516bd
lea eax, [ebp + 1]
push edi
push eax
call fcn.004a99f8
mov ecx, dword [esi + 0x138]
add esp, 4
push ebp
mov edi, eax
push edi
push 0x800
push ecx
call sub.IMM32.dll_ImmGetCompositionStringA
push edi
mov ecx, esi
mov byte [edi + ebp], 0
call fcn.00451380
push edi
call fcn.004aa130
add esp, 4
mov byte [esi + 0xc3], 0
mov dword [esi + 0x140], 0
pop edi
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 8]
push edx
push eax
call sub.IMM32.dll_ImmReleaseContext
pop ebp
mov eax, 1
pop esi
ret

Function at 0x451900
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push eax
call sub.IMM32.dll_ImmGetContext
test eax, eax
mov dword [esi + 0x138], eax
je 0x451a05
push 0
mov dword [esi + 0x134], 3
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
push eax
mov dword [esi + 0x148], eax
call sub.IMM32.dll_ImmGetProperty
mov dword [esi + 0x144], eax
movzx eax, word [esi + 0x148]
cmp eax, 0x804
jg 0x451a31
je 0x451a59
sub eax, 0x404
je 0x451a59
sub eax, 0xd
je 0x451a22
dec eax
jne 0x451a4a
mov dword [esi + 0x134], 0
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0xc]
add ecx, 0x1e0
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
jne 0x4519c3
mov eax, dword [esi + 0x138]
push 1
push eax
call sub.IMM32.dll_ImmSetOpenStatus
mov edx, dword [esi + 0x138]
lea ecx, [esp + 4]
push ecx
push edx
call sub.IMM32.dll_ImmSetStatusWindowPos
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x138]
push edx
push eax
mov dword [esp + 0x2c], ecx
call sub.IMM32.dll_ImmSetCompositionWindow
mov ecx, dword [esi + 0x138]
mov edx, dword [esi + 8]
push ecx
push edx
call sub.IMM32.dll_ImmReleaseContext
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 8]
push eax
push ecx
push 0x51
push edx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop esi
add esp, 0x34
ret 8
mov dword [esi + 0x134], 1
jmp 0x451980
cmp eax, 0x812
je 0x451976
cmp eax, 0xc04
je 0x451a59
cmp eax, 0x1004
je 0x451a59
mov dword [esi + 0x130], 0
jmp 0x451980
mov dword [esi + 0x134], 2
mov dword [esi + 0x130], 4
jmp 0x451980
Function at 0x451ae0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x45158a
push eax
call sub.IMM32.dll_ImmGetContext
test eax, eax
mov dword [esi + 0x138], eax
jne 0x451590
xor eax, eax
pop esi
ret 4
push ebp
push edi
push 0
push 0
push 8
push eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov edi, eax
test edi, edi
jbe 0x4515e3
lea eax, [edi + 1]
push eax
call fcn.004a99f8
mov ecx, dword [esi + 0x138]
add esp, 4
push edi
mov ebp, eax
push ebp
push 8
push ecx
call sub.IMM32.dll_ImmGetCompositionStringA
push ebp
mov ecx, esi
mov byte [edi + ebp], 0
call fcn.00451540
test ebp, ebp
mov dword [esi + 0x140], edi
je 0x451616
push ebp
call fcn.004aa130
add esp, 4
jmp 0x451616
mov eax, dword [esi + 0x14c]
mov byte [esi + 0xc3], 0
mov dword [esi + 0x140], 0
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [esi + 0x150], edx
mov ecx, dword [esi + 0x138]
mov edx, dword [esi + 8]
push ecx
push edx
call sub.IMM32.dll_ImmReleaseContext
pop edi
pop ebp
mov eax, 1
pop esi
ret 4
mov eax, dword [esp + 4]
test ah, 8
je 0x451af1
call fcn.00451640
ret 4
test al, 8
je 0x451aee
mov dword [esp + 4], eax
jmp 0x451570
Function at 0x4526d0
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x4b9061
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, esi
mov dword [esp + 8], esi
mov dword [0x652e1c], eax
push fcn.00419230
push fcn.00419210
push 3
push 0x10
lea ecx, [esi + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esi], 0x4bc2d8
call fcn.004aa135
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call fcn.00419400
push ebx
mov byte [esi + 0x78], bl
mov dword [esi + 0x128], ebx
mov byte [esi + 0xc3], bl
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
push eax
mov dword [esi + 0x148], eax
call sub.IMM32.dll_ImmGetProperty
mov dword [esi + 0x144], eax
movzx eax, word [esi + 0x148]
cmp eax, 0x804
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x134], 3
mov byte [esi + 4], bl
mov dword [esi + 0x12c], 0xffffffff
jg 0x4527d4
je 0x4527e9
sub eax, 0x404
je 0x4527e9
sub eax, 0xd
je 0x4527c8
dec eax
jne 0x4527af
mov dword [esi + 0x134], ebx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x130], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
mov dword [esi + 0x134], 1
jmp 0x4527af
cmp eax, 0x812
je 0x4527a9
cmp eax, 0xc04
je 0x4527e9
cmp eax, 0x1004
jne 0x4527af
mov dword [esi + 0x134], 2
jmp 0x4527af

Function at 0x452b90
Capabilities:
Read .ini file

Disassembly:
cmp dword [ecx + 0x1c], 0x10
jb 0x452b9b
mov ecx, dword [ecx + 8]
jmp 0x452b9e
add ecx, 8
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc

Function at 0x452cc0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b90eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
push 0x4bb448
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00409960
cmp dword [esi + 0x1c], 0x10
mov dword [esp + 0x12c], ebx
jb 0x452d16
mov esi, dword [esi + 8]
jmp 0x452d19
add esi, 8
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x13c]
push esi
push 0xfa
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x144]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452d50
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00409960
mov esi, dword [esp + 0x134]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x10]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00409870
cmp dword [esp + 0x20], 0x10
jb 0x452d9f
mov eax, dword [esp + 0xc]
push eax
call fcn.004aa039
add esp, 4
mov ecx, dword [esp + 0x124]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 0x10
Function at 0x455160
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub esp, 0x17c
mov eax, dword [esp + 0x180]
push ebx
push ebp
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push bind
push eax
mov ebp, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4551c7
mov ecx, dword [0x653498]
push 2
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x653498]
push esi
push 0x4bb448
push str.Resource_Not_Found_
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.004aabeb
push esi
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
jle 0x455260
push edi
push 0
lea edx, [esp + 0x18]
push edx
push 0x170
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x170
call fcn.004a99fd
mov ecx, dword [esp + 0x20]
mov dword [ebp + ecx*4 + 0x10], eax
mov edx, dword [esp + 0x20]
mov edi, dword [ebp + edx*4 + 0x10]
mov ecx, 0x5c
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov eax, dword [ebp + eax*4 + 0x10]
mov cl, byte [eax + 0xe4]
add esp, 4
cmp cl, 0x65
jb 0x45524e
xor ecx, ecx
mov cx, word [eax + 0x138]
push eax
push ecx
mov ecx, 0x659458
call fcn.00449a50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4551e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x17c
ret 4
Function at 0x4588f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
jmp 0x458910
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 8]
mov edx, dword [esi + 0x24]
add eax, edi
mov eax, dword [eax + 4]
add ecx, edx
add eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
add eax, edx
lea edx, [ecx + 0x14]
push edx
lea edx, [eax + 0x2d]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push ebx
push ebp
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x45897b
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.0049c4c0
test eax, eax
je 0x45897b
lea ecx, [esi + 0x78]
call fcn.0041b660
test ax, ax
je 0x45897b
mov ecx, dword [0x652e04]
call fcn.00453f80
test eax, eax
jne 0x45899b
mov edx, dword [esp + 0x10]
inc edx
add edi, 0x2c
cmp edi, 0x84
mov dword [esp + 0x10], edx
jl 0x458910
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x10]
imul eax, eax, 0x4f
mov dword [esp + 0x34], 0
lea eax, [eax + esi + 0xec]
xor ebp, ebp
mov dword [esp + 0x14], eax
cmp word [eax], 0
jne 0x458a1d
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x78]
call fcn.0041b730
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, edi
imul eax, eax, 7
add eax, ebx
lea edx, [eax + eax*2]
movzx eax, byte [esi + 0x74]
add edx, eax
imul edx, edx, 0x4f
xor eax, eax
mov ax, word [edx + esi + 0xec]
test ax, ax
je 0x458a1d
push eax
lea ecx, [esi + 0x78]
call fcn.0041b6e0
movzx ax, byte [esi + 0x74]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push ebp
push ecx
mov ecx, dword [0x652e0c]
inc edx
push edx
push ebx
push edi
inc eax
push eax
add ecx, 4
call fcn.00421c40
mov eax, dword [esp + 0x14]
inc ebp
add eax, 0xed
cmp ebp, 7
mov dword [esp + 0x14], eax
jl 0x4589b7
mov ecx, dword [esp + 0x34]
inc ecx
cmp ecx, 4
mov dword [esp + 0x34], ecx
jl 0x4589b1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 8
Function at 0x45a650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [0x652e08]
mov eax, dword [edi + 0x94]
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 0xd4a0]
mov dword [esp + 0x18], eax
call fcn.00401860
mov eax, dword [esp + 0x18]
cmp eax, dword [edi + 0xd4a4]
je 0x45a86d
mov edi, dword [eax + 0x10]
test edi, edi
mov dword [esp + 0x18], edi
je 0x45a86d
cmp word [esi + 0x1e], 0xffff
je 0x45a86d
mov ebx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov ebp, dword [esp + 0x3c]
add eax, edx
add ecx, ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x38]
push ebp
mov dword [esp + 0x30], eax
push ebx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x45a86d
mov dword [esi + 0x90], eax
cmp byte [edi + 0x1a], 0x96
jae 0x45a86d
mov al, byte [edi + 0x2b]
test al, al
jne 0x45a86d
mov ecx, dword [0x652e04]
push 1
push ebp
push ebx
call fcn.00454750
test eax, eax
jne 0x45a86d
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.0041b660
test ax, ax
je 0x45a86d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.0041b730
mov edx, dword [eax]
mov eax, dword [eax + 4]
push ebp
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [0x652e04]
add ecx, 0x2394
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.004532e0
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x45a86d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
imul eax, eax, 7
add eax, edx
movzx edx, byte [esi + 0x74]
lea eax, [eax + eax*2]
add edx, eax
imul edx, edx, 0x4f
mov dword [esp + 0x38], eax
xor eax, eax
mov ax, word [edx + esi + 0xec]
test ax, ax
je 0x45a86d
push eax
mov ecx, edi
call fcn.0041b6e0
mov edi, dword [0x652e10]
mov eax, dword [edi + 0x13d4]
mov ecx, dword [edi + 0x13d8]
add ebx, eax
mov edx, eax
mov eax, ecx
add ebp, eax
sar ebp, 5
push ebp
mov dword [esp + 0x2c], ecx
sar ebx, 6
push ebx
mov ecx, edi
mov dword [esp + 0x2c], edx
call fcn.0041df30
cmp al, 1
jne 0x45a85e
push ebp
push ebx
mov ecx, edi
call fcn.0047a670
test ax, ax
jne 0x45a85e
mov al, byte [esi + 0x74]
mov edi, dword [esp + 0x38]
movzx ecx, al
add ecx, edi
imul ecx, ecx, 0x4f
mov di, word [ecx + esi + 0xec]
movzx edx, di
mov ecx, dword [edx*4 + 0xe5a580]
cmp byte [ecx + 0xe4], 0x28
je 0x45a85e
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [edx + 0x1a]
mov edx, dword [esp + 0x14]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push edx
movzx dx, al
push ecx
mov ecx, dword [0x652e0c]
add ecx, 4
inc edx
push edx
call fcn.00421cf0
movzx eax, byte [esi + 0x74]
add eax, dword [esp + 0x38]
imul eax, eax, 0x4f
xor ecx, ecx
mov cx, word [eax + esi + 0xec]
push ebp
push ebx
push ecx
mov ecx, esi
call fcn.00458da0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
Function at 0x462db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x70], 0
mov ecx, 0x3f
lea edi, [esp + 0x71]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x70]
push 0x100
push eax
mov dword [esp + 0x14], ebx
call fcn.004ab591
mov eax, dword [ebp + 8]
add esp, 8
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462df1
lea edi, [esp + 0x70]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x462e00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x70]
push ecx
push 0
push str.ADLINE
push str.Address
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x4d8], eax
xor ebx, ebx
add edx, 0x4dc
mov dword [esp + 0xc], edx
jmp 0x462e50
mov ax, word [0x4bc914]
mov cl, byte [0x4bc916]
xor edx, edx
mov dword [esp + 0x11], edx
mov word [esp + 0x30], ax
mov dword [esp + 0x15], edx
mov byte [esp + 0x32], cl
xor eax, eax
mov dword [esp + 0x19], edx
mov ecx, 0xf
lea edi, [esp + 0x33]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], edx
mov dword [esp + 0x25], edx
stosb byte es:[edi], al
push 0xa
lea eax, [esp + 0x14]
mov dword [esp + 0x2d], edx
push eax
mov word [esp + 0x35], dx
push ebx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x3b], dl
call fcn.004aa79b
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462eb1
lea edi, [esp + 0x30]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x462ec0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x70]
push ecx
push 0x40
push esi
push 0x4bb448
lea edx, [esp + 0x40]
push edx
push str.Address
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc ebx
add esi, 0x40
cmp ebx, 0x5f
mov dword [esp + 0xc], esi
jl 0x462e50
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x464400
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 7
mov dword [ecx + 0x4c8], eax
mov ecx, dword [0x652e0c]
jne 0x464423
mov eax, dword [0x653498]
mov dword [esp + 4], eax
jmp 0x49c7e0
add ecx, 0x70c
call fcn.00499d60
ret 4
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x40]
lea esi, [edi + 0x40]
push 1
mov ecx, esi
mov dword [edi + 4], eax
call dword [edx + 4]
cmp eax, 1
jne 0x499d38
push 4
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
push 0x80
push 0xffff
mov ecx, esi
mov word [esp + 0x1e], 0
call fcn.00418380
push eax
call sub.WS2_32.dll_setsockopt
test eax, eax
jne 0x499d38
mov ecx, dword [edi + 4]
push 0x10
push 0x406
push ecx
mov ecx, esi
call fcn.00418380
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x499d3f
pop edi
xor eax, eax
pop esi
ret 4
push 0x1bc3
push 0x4be834
mov ecx, esi
call fcn.004182e0
pop edi
pop esi
ret 4
add ecx, 0x70c
jmp 0x499cd0

Function at 0x464b30
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x4bca3c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esi + 0x38]
mov ecx, edi
call fcn.0040ba40
mov ecx, dword [esp + 0x18]
movzx eax, ax
push 0xb
lea edx, [esp + 0xc]
mov dword [esp + 0x11], ecx
push edx
lea ecx, [esi + 8]
mov dword [esp + 0x11], eax
mov byte [esp + 0x10], 4
call fcn.00417f60
push 2
mov ecx, edi
call fcn.00418380
push eax
mov eax, dword [esi + 4]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x464b90
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push edi
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x1f
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x80
lea eax, [esp + 0xc]
push eax
call sub.WS2_32.dll_gethostname
lea ecx, [esp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
mov eax, dword [ebp + 8]
push ecx
push edx
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x464cf0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x38]
mov ecx, edi
call fcn.0040ba40
movzx eax, ax
mov dword [esp + 9], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x22]
mov byte [esp + 8], 0xd
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x464d17
lea eax, [esi + 0xbf]
lea edx, [esp + 0xd]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x464d30
mov cl, byte [esi + 0xbe]
push 0xd
push 0x2a
lea edx, [esp + 0x10]
mov byte [esp + 0x37], cl
push edx
lea ecx, [esi + 8]
call fcn.00417fd0
push 2
mov ecx, edi
call fcn.00418380
push eax
mov eax, dword [esi + 4]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x2c
ret 4
Function at 0x47ea40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
push str.rseminimaps.pdic
mov esi, ecx
call fcn.00419450
push 0
push 0x8a
push 0
push 0
lea ecx, [esi + 0x5e81c]
call fcn.00405400
push 0
push 0x8a
push 0xa
push 0
lea ecx, [esi + 0x5e848]
call fcn.00405400
push 0
push 0x80
push 3
push 0
push 3
push bind
push str.rseminimap.info
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47eac6
push str.rseminimap.info
push str.Cant_Find__s
push 0x65334c
call fcn.0040bb70
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x5e7b8
add esi, 0x48
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4

Function at 0x481b80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3a0
mov eax, dword [esp + 0x3a4]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push bind
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x481bc2
pop esi
xor al, al
pop ebx
add esp, 0x3a0
ret
mov eax, dword [0xe97514]
cmp eax, esi
je 0x481bd4
push eax
call fcn.004aa039
add esp, 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [0xe97514], esi
mov dword [0xe97518], esi
mov dword [0xe9751c], esi
call ebp
cmp dword [esp + 0xc], esi
jle 0x481c40
push edi
xor eax, eax
mov ecx, 0xe5
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
push 0x396
lea ecx, [esp + 0x24]
push ecx
push ebx
call ebp
lea edx, [esp + 0x18]
push edx
mov ecx, 0xe97510
call fcn.00481af0
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x481c04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x3a0
ret