joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409330
Capabilities:
Create process on windows
Terminate thread

Disassembly:
sub esp, 0x138
push esi
push edi
push str._ServerSocketOperation_ClientUnstall
call fcn.00402960
mov ecx, 0x4d
xor eax, eax
lea edi, [esp + 0xc]
push str.123457363_38363_kfjdudjd.txt
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x42b74c
push 0x4321d4
lea eax, [esp + 0x18]
push str._s_s_s
push eax
call fcn.0041269a
lea ecx, [esp + 0x20]
push 0x42c530
push ecx
call fcn.00412dda
mov esi, eax
add esp, 0x20
test esi, esi
je 0x40940c
push str.aaaa
push 0x42c524
push esi
call fcn.004138bc
push esi
call fcn.00412cca
mov edx, dword [0x4321b8]
mov eax, dword [0x4321b4]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
add esp, 0x10
push edx
push eax
call esi
mov ecx, dword [0x4321cc]
mov edx, dword [0x4321c4]
push ecx
push edx
call esi
mov eax, dword [0x4321c0]
mov ecx, dword [0x4321bc]
push eax
push ecx
call esi
push 6
push 0x4321d4
push 0
push str.Unjjmclient.exe
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call dword [0x432324]
mov edx, dword [0x4321a0]
push 0
push 0
push 2
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, 1
pop esi
add esp, 0x138
ret

Function at 0x409b70
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x432788]
sub esp, 0x88
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x409cab
push 0x724
call fcn.0041ef11
mov esi, eax
mov ecx, 0x1c9
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
call fcn.0040a580
mov ebp, dword [esp + 0xa8]
mov ebx, dword [esp + 0xa4]
add esp, 8
xor eax, eax
cmp ebp, 1
setne al
push 0x724
push esi
add eax, 2
push 0x15
push 2
mov dword [0x432788], eax
push ebx
mov dword [esi + 0x610], eax
call dword [0x432300]
push 0x80
call fcn.0041ef11
mov dword [esp + 0x14], eax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x18]
lea edi, [esp + 0x18]
test al, al
je 0x409c6e
mov eax, dword [0x432784]
test eax, eax
jne 0x409cab
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x409c64
cmp byte [edi], 0x41
je 0x409c64
push edi
push str.pp11_is__s
call fcn.00402960
push str.FuncEdirFile
call fcn.00402960
add esp, 0xc
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0041eabb
call fcn.00409cc0
add esp, 0xc
mov al, byte [edi + 4]
add edi, 4
test al, al
jne 0x409c16
push 0x724
push esi
xor edi, edi
push 0x15
push 2
mov dword [0x432788], edi
push ebx
mov dword [esi + 0x610], edi
call dword [0x432300]
cmp esi, edi
je 0x409c9a
push esi
call fcn.0041ef3a
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x409cab
push eax
call fcn.0041ef3a
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret
Function at 0x40a290
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xcc
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4321d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.MailLister.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a319
mov esi, 0x80
mov edi, dword [esp + 0xe0]
mov eax, dword [edi + 8]
test eax, eax
jne 0x40a332
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
push 4
push 0
push 1
lea edx, [esp + 0x24]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi]
mov esi, eax
mov eax, dword [edi + 8]
mov ebp, 0x4b000
test ecx, ecx
je 0x40a361
mov ebp, dword [edi + 0x4b00c]
lea eax, [eax + eax*2]
push 1
push 0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
add edi, 0xc
push ebp
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0xcc
ret
Function at 0x40ac30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x514
push ebx
push esi
push edi
xor dl, dl
mov ecx, 0xc2
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x110]
lea edx, [esp + 0x214]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x214]
push str.XYNTService.ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x4321d4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._filesetup.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x214]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x10]
push ecx
push str.CommandLine
push str.Process0
call esi
lea edx, [esp + 0x214]
push edx
push str.XYNTService
push str.ServiceName
push str.Settings
call esi
lea eax, [esp + 0x214]
push eax
push 0x42c960
push str.ProcCount
push str.Settings
call esi
call fcn.00402e20
pop edi
pop esi
pop ebx
add esp, 0x514
ret
Function at 0x40b380
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x425410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
push esi
lea ecx, [esp + 0x44]
call fcn.0041eabb
push 0x4b1fc
mov dword [esp + 0x38], 0
call fcn.0041ef11
mov ebp, eax
add esp, 4
mov ecx, 0x12c7f
xor eax, eax
mov edi, ebp
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, ebp
push 0x80
push 3
rep movsd dword es:[edi], dword [esi]
push eax
mov eax, dword [esp + 0x50]
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
cmp eax, esi
je 0x40b529
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x40]
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.0041ef80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0041f3d7
mov ecx, eax
test ecx, ecx
jne 0x40b441
lea ecx, [esp + 0x1c]
call fcn.0041f2f8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.0041f020
jmp 0x40b53e
mov eax, 0x1b4e81b5
mul ecx
mov edi, edx
mov eax, ecx
xor edx, edx
mov ecx, 0x4b000
div ecx
shr edi, 0xf
test edx, edx
mov dword [esp + 0xc], edx
je 0x40b461
inc edi
push ebx
push edi
lea edx, [esp + 0x18]
push 0x42b834
push edx
xor esi, esi
call fcn.0041269a
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call ebx
push 0x432570
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi - 1]
cmp eax, esi
jne 0x40b4ac
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x104], 1
mov dword [ebp + 0x4b110], eax
jmp 0x40b4bb
mov eax, 0x4b000
mov dword [ebp + 0x104], 0
push eax
lea eax, [ebp + 0x110]
push eax
lea ecx, [esp + 0x28]
call fcn.0041f1fa
push ebp
mov dword [ebp + 0x10c], esi
call ebx
mov ecx, dword [esp + 0x40]
push 0x4b1fc
push ebp
push 0x12
push 5
push ecx
call dword [0x432300]
inc esi
cmp esi, edi
jne 0x40b48f
push 0x432570
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x20]
call fcn.0041f2f8
test ebp, ebp
pop ebx
je 0x40b511
push ebp
call fcn.0041ef3a
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.0041f020
mov dword [esp + 0x34], 0xffffffff
jmp 0x40b542
mov edx, dword [esp + 0x3c]
push 0x4b1fc
push ebp
push 0x29
push 5
push edx
call dword [0x432300]
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x40]
call fcn.0041ea4d
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402070
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x804
mov eax, dword [0x4495e0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
mov ebp, dword [esp + 0x810]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
push ebp
push 0x800
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00423358
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
add ebx, edi
call fcn.00401e40
add esp, 0x14
cmp edi, 0x800
jge 0x4020b4
push ebp
call fcn.004233ec
add esp, 4
mov eax, esi
call fcn.00401f50
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00422ad7
add esp, 0x804
ret
Function at 0x403fb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x438cd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4495e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
call fcn.00409e45
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403ff6
push 0x80004005
call fcn.00401390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea esi, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.00405b60
mov byte [esp + 0x18], 2
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xc]
push str._sGameHall.exe
push edx
call fcn.00401460
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0xc]
call fcn.00405b60
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 8]
mov edx, dword [edi + 0x20]
push 5
push eax
push ecx
push esi
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40409a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x20]
push 0x90000
push 0x7d0
push ecx
call dword [sym.imp.USER32.dll_AnimateWindow]
push 0
mov ecx, edi
call fcn.004089b1
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4040d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4

Function at 0x404900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00409256

Function at 0x404b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404b19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404b54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404b50
lea ebx, [ebx]
cmp esi, eax
jae 0x404b54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404b40
cmp esi, eax
jb 0x404b5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4050e0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x438c85
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4495e0]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
mov eax, dword [0x4495e0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0
mov ebx, 1
mov dword [esp + 0x430], ebx
call fcn.00409e45
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40514c
push 0x80004005
call fcn.00401390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0
push 0
push 0
push 0
push str.UrlTest
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x405259
mov ecx, dword [esp + 0x438]
push 0
push 0x4000000
push 0
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
je 0x405252
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
push edx
push 0x3ff
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x24], 0
call fcn.00409e45
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405142
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push 0x43fb80
push edx
mov byte [esp + 0x43c], 2
call fcn.00401460
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
mov ecx, edi
call fcn.00404680
lea eax, [esi - 0x10]
mov byte [esp + 0x430], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40523c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x10], 0
ja 0x4051a7
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x430], 0
mov eax, dword [esp + 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00422ad7
add esp, 0x424
ret
Function at 0x405610
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x438fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4495e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x4495e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], esi
call fcn.00409e45
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405669
push 0x80004005
call fcn.00401390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x4056ce
lea esi, [edi - 0x10]
push esi
call fcn.00404f60
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x38], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405773
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x405773
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404ea0
mov byte [esp + 0x38], 2
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x40571e
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00429e60
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1c]
push 0x43fb80
push eax
call fcn.00401460
mov edi, dword [esp + 0x24]
add esp, 0xc
lea esi, [edi - 0x10]
push esi
call fcn.00404f60
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405773
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40579b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00422ad7
add esp, 0x2c
ret
Function at 0x405ca0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x438ad9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4495e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 4
call fcn.00409e45
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405cf1
push 0x80004005
call fcn.00401390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, dword [esp + 0x30]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
mov dword [esp + 0xc], 1
jge 0x405d2b
push 0x800
mov ecx, esi
call fcn.00401310
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edi
push 0x800
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x405d64
push ecx
push eax
call fcn.00423468
add esp, 8
test eax, eax
jl 0x405e20
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x405e20
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov byte [esp + 0x18], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.00401390
int3
Function at 0x407cba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x407d02
call fcn.0040c616
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x407d02
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x407d45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x407d2e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407d2e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407d42
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ce37
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x437a73
call fcn.00423fab
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40ce5c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40cea2
lea ecx, [ebp - 0x10]
call fcn.004011d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004096f1
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401220
mov eax, esi
call fcn.00424083
ret 8

Function at 0x412603
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41264a
call fcn.0040c616
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41264a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412666
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041217d
mov esi, eax
test edi, edi
je 0x412664
test ebx, ebx
je 0x412664
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4