joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415260
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [eax + 1]
push edi
mov edi, ecx
add esi, ebx
cmp dword [edi], 0
je 0x4152fe
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00418570
add esp, 0xc
cmp byte [esi], 0x2c
je 0x4152b6
lea ebx, [ebx]
dec esi
cmp byte [esi], 0x2c
jne 0x4152b0
lea edx, [esp + 0xc]
mov byte [esi], 0
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4152c1
lea ebx, [edi + 0x192]
lea eax, [esi + 1]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4152d8
push ebx
lea ecx, [esp + 0x10]
push ecx
lea esi, [edi + 0x212]
push 0x4264a8
push esi
call fcn.0041861e
add esp, 0x10
jmp 0x415337
push ebp
lea ebp, [edi + 0x192]
mov edx, ebp
mov eax, ebx
sub edx, ebx
jmp 0x415310
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415310
push ebp
lea edx, [edi + 0x316]
push edx
lea esi, [edi + 0x212]
push str._s_s
push esi
call fcn.0041861e
add esp, 0x10
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41534a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x578]
push edi
push 0x13af
push 0x13a0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x444], eax
cmp eax, 0xffffffff
jne 0x4153a2
mov ecx, dword [edi + 0x578]
push edi
push 0x13b0
push 0x13a0
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x4153a7
mov eax, 1
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x108
ret 8

Function at 0x4154a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], ecx
test edi, edi
jle 0x4154e7
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_recv]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x5a0]
cmp eax, 0xffffffff
je 0x4154f1
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call ebp
test eax, eax
jle 0x4154f1
add esi, eax
cmp esi, edi
jl 0x4154c0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
Function at 0x415500
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x424], esi
jne 0x4155f4
cmp dword [edi + 0x420], esi
jne 0x4155f4
cmp dword [edi + 0x5a0], 0xffffffff
je 0x4155f4
push 1
push 0x100
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0x22
mov dword [esp + 0x19], esi
mov dword [esp + 0x45], esi
mov dword [esp + 0x41], esi
mov dword [esp + 0x3d], esi
mov dword [esp + 0x39], esi
mov dword [esp + 0x35], esi
mov dword [esp + 0x31], esi
mov dword [esp + 0x2d], esi
mov dword [esp + 0x29], esi
mov dword [esp + 0x25], esi
mov dword [esp + 0x21], esi
mov dword [esp + 0x1d], esi
mov dword [esp + 0x15], esi
call fcn.00414750
mov edx, dword [edi + 0x5a0]
push esi
push 0x100
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x4155c8
mov eax, dword [edi + 0x5a0]
cmp eax, 0xffffffff
je 0x4155c8
push eax
call esi
mov dword [edi + 0x5a0], 0xffffffff
mov eax, dword [edi + 0x434]
cmp eax, 5
lea ecx, [eax + 1]
mov dword [edi + 0x434], ecx
jle 0x4155f4
mov eax, dword [edi + 0x5a0]
cmp eax, 0xffffffff
je 0x4155f4
push eax
call esi
mov dword [edi + 0x5a0], 0xffffffff
mov ecx, dword [esp + 0x140]
pop edi
pop esi
xor ecx, esp
call fcn.0041869b
add esp, 0x13c
ret

Function at 0x4156e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x2000
mov esi, ecx
mov dword [esp + 0x10], edi
call fcn.0041842a
add esp, 4
mov ebx, eax
mov dword [esi + 0x454], edi
cmp dword [esi + 0x46c], edi
je 0x415721
mov eax, dword [esi + 0x578]
push esi
push 0x13b1
push 0x13a0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x454]
cmp ecx, dword [esi + 0x450]
jae 0x415791
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x415740
mov eax, dword [esi + 0x450]
sub eax, dword [esi + 0x454]
mov ecx, esi
cmp eax, 0x2000
jae 0x415758
push eax
jmp 0x41575d
push 0x2000
push ebx
call fcn.004154a0
mov edi, eax
cmp edi, 0xffffffff
je 0x415790
mov eax, dword [esi + 0x444]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push ebx
push eax
call ebp
add dword [esi + 0x454], edi
mov ecx, dword [esi + 0x454]
cmp ecx, dword [esi + 0x450]
jb 0x415740
pop ebp
mov eax, dword [esi + 0x444]
cmp eax, 0xffffffff
je 0x4157a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x444], 0xffffffff
test ebx, ebx
je 0x4157ba
push ebx
call fcn.00418bde
add esp, 4
cmp dword [esi + 0x46c], 0
je 0x4157db
mov edx, dword [esi + 0x578]
push esi
push 0x13b2
push 0x13a0
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x454]
xor ecx, ecx
cmp eax, dword [esi + 0x450]
pop edi
sete cl
pop esi
pop ebx
mov eax, ecx
pop ecx
ret 4
Function at 0x415800
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0x45c]
cmp eax, dword [edi + 0x458]
jne 0x415858
mov ecx, dword [edi + 0x578]
push edi
push 0x13b4
push 0x13a0
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0041869b
add esp, 0x13c
ret
push esi
xor esi, esi
push 1
push 0x100
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0x1f
mov dword [esp + 0x19], esi
mov dword [esp + 0x45], esi
mov dword [esp + 0x41], esi
mov dword [esp + 0x3d], esi
mov dword [esp + 0x39], esi
mov dword [esp + 0x35], esi
mov dword [esp + 0x31], esi
mov dword [esp + 0x2d], esi
mov dword [esp + 0x29], esi
mov dword [esp + 0x25], esi
mov dword [esp + 0x21], esi
mov dword [esp + 0x1d], esi
mov dword [esp + 0x15], esi
call fcn.00414750
mov ecx, dword [edi + 0x5a0]
push esi
push 0x100
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x140]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop esi
pop edi
xor ecx, esp
mov eax, edx
call fcn.0041869b
add esp, 0x13c
ret

Function at 0x4158f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x344
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
mov esi, ecx
mov eax, dword [esi + 0x448]
mov ecx, dword [esi + 0x460]
mov edx, dword [esi + 0x464]
push ebx
push 3
mov dword [esp + 0x25], eax
push closesocket
lea eax, [esi + 0x8e]
push eax
mov byte [esp + 0x28], 0x1c
mov dword [esp + 0x59], ebx
mov dword [esp + 0x55], ebx
mov dword [esp + 0x51], ebx
mov dword [esp + 0x4d], ebx
mov dword [esp + 0x49], ebx
mov dword [esp + 0x45], ebx
mov dword [esp + 0x39], ebx
mov dword [esp + 0x35], ebx
mov dword [esp + 0x31], ebx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x440], eax
lea eax, [esi + 0xe]
lea edx, [esp + 0x144]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x415981
lea eax, [esp + 0x144]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415995
push 1
push 0x100
lea ecx, [esp + 0x4c]
sub eax, edx
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x19], eax
call fcn.00414750
mov eax, dword [esi + 0x5a0]
mov edi, dword [sym.imp.WS2_32.dll_send]
push ebx
push 0x100
lea edx, [esp + 0x4c]
push edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x4159da
xor eax, eax
jmp 0x4159fb
mov ecx, dword [esp + 0xd]
mov eax, dword [esi + 0x5a0]
push ebx
push ecx
lea edx, [esp + 0x14c]
push edx
push eax
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x344
ret 4
Function at 0x415a20
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
xor ebx, ebx
push esi
push 1
push 0x100
lea eax, [esp + 0x48]
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0x1d
mov dword [esp + 0x19], ebx
mov dword [esp + 0x45], ebx
mov dword [esp + 0x41], ebx
mov dword [esp + 0x3d], ebx
mov dword [esp + 0x39], ebx
mov dword [esp + 0x35], ebx
mov dword [esp + 0x31], ebx
mov dword [esp + 0x2d], ebx
mov dword [esp + 0x29], ebx
mov dword [esp + 0x25], ebx
mov dword [esp + 0x21], ebx
mov dword [esp + 0x1d], ebx
mov dword [esp + 0x15], ebx
call fcn.00414750
mov edx, dword [esi + 0x5a0]
push ebx
push 0x100
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x415abe
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0041869b
add esp, 0x13c
ret
push edi
push 0x2000
call fcn.0041842a
add esp, 4
mov edi, eax
mov dword [esi + 0x44c], ebx
cmp dword [esi + 0x468], ebx
je 0x415af4
mov eax, dword [esi + 0x578]
push esi
push 0x13a8
push 0x13a0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x44c]
cmp ecx, dword [esi + 0x448]
jae 0x415b69
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
mov edx, dword [esi + 0x44c]
mov eax, dword [esi + 0x440]
push ebx
push ebx
push edx
push eax
call ebp
mov edx, dword [esi + 0x440]
push ebx
lea ecx, [esp + 0x15]
push ecx
push 0x2000
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x11]
mov ecx, dword [esi + 0x5a0]
push ebx
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x415b68
add dword [esi + 0x44c], eax
mov edx, dword [esi + 0x44c]
cmp edx, dword [esi + 0x448]
jb 0x415b10
pop ebp
cmp edi, ebx
je 0x415b76
push edi
call fcn.00418bde
add esp, 4
pop edi
cmp dword [esi + 0x468], ebx
je 0x415b97
mov eax, dword [esi + 0x578]
push esi
push 0x13a9
push 0x13a0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x44c]
xor eax, eax
cmp ecx, dword [esi + 0x448]
mov ecx, dword [esp + 0x140]
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x13c
ret
Function at 0x415bc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x448]
mov ecx, dword [esi + 0x460]
mov edx, dword [esi + 0x464]
push edi
xor edi, edi
mov ebx, 1
push ebx
mov dword [esp + 0x15], eax
push 0x100
lea eax, [esp + 0x4c]
mov dword [esp + 0x29], ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], 0x1e
mov dword [esp + 0x49], edi
mov dword [esp + 0x45], edi
mov dword [esp + 0x41], edi
mov dword [esp + 0x3d], edi
mov dword [esp + 0x39], edi
mov dword [esp + 0x35], edi
mov dword [esp + 0x29], edi
mov dword [esp + 0x25], edi
mov dword [esp + 0x21], edi
mov dword [esp + 0x19], edi
mov dword [esp + 0x31], edx
call fcn.00414750
mov edx, dword [esi + 0x5a0]
push edi
push 0x100
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x415c5e
xor ebx, ebx
mov eax, dword [esi + 0x578]
push esi
push 0x13ab
push 0x13a0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x13c
ret
Function at 0x416060
Capabilities:
Connect socket
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x438], 0
mov dword [esp + 8], 0x10
je 0x416145
mov ecx, dword [esi + 0x5a0]
push 0x10
lea eax, [esi + 0x590]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
or ebp, 0xffffffff
push esi
cmp eax, ebp
jne 0x4160b1
mov edx, dword [esi + 0x578]
push 0x13a5
push 0x13a0
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4160f8
mov eax, dword [esi + 0x578]
push 0x13a4
push 0x13a0
push eax
mov dword [esi + 0x434], 0
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esi + 0x430]
push ecx
push 0
push esi
push 0x416040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, esi
mov dword [esi + 0x42c], eax
call fcn.00415df0
mov edx, dword [esi + 0x430]
push 0
push 0
push 0x13b7
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esi + 0x42c]
cmp eax, ebp
je 0x41611f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x5a0]
mov dword [esi + 0x42c], ebp
cmp eax, ebp
je 0x416241
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x5a0], ebp
jmp 0x416241
mov eax, dword [esi + 0x578]
push esi
push 0x13b9
push 0x13a0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x470]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or ebp, 0xffffffff
test eax, eax
je 0x41622a
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi + 0x58c]
push edx
mov ecx, esi
call fcn.00415030
test eax, eax
je 0x4161a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416211
mov edx, dword [esi + 0x58c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x590]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x5a0], eax
cmp eax, ebp
je 0x416228
mov eax, dword [esi + 0x578]
push esi
push 0x13a2
push 0x13a0
push eax
call ebx
cmp dword [esi + 0x43c], ebp
jne 0x416211
push 0
push 0
push esi
push 0x416020
push 0
push 0
call edi
lea ecx, [esi + 0x430]
push ecx
push 0
push esi
push 0x416040
push 0
push 0
mov dword [esi + 0x43c], eax
call edi
mov dword [esi + 0x42c], eax
mov edx, dword [esi + 0x470]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416185
pop edi
pop ebx
mov eax, dword [esi + 0x58c]
cmp eax, ebp
je 0x416241
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x58c], ebp
mov eax, dword [esi + 0x41c]
cmp eax, ebp
je 0x416252
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x41c], ebp
pop esi
pop ebp
pop ecx
ret
Function at 0x416280
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x578], eax
mov eax, 1
or ebx, 0xffffffff
push 6
push eax
mov dword [esi + 0x46c], eax
mov dword [esi + 0x468], eax
mov dword [esi + 0x5a4], edi
mov dword [esi + 0x464], edi
mov dword [esi + 0x460], edi
mov dword [esi + 0x45c], edi
mov dword [esi + 0x458], edi
mov dword [esi + 0x454], edi
mov dword [esi + 0x450], edi
mov dword [esi + 0x44c], edi
mov dword [esi + 0x448], edi
mov dword [esi + 0x5a0], ebx
mov dword [esi + 0x58c], ebx
mov dword [esi + 0x430], ebx
mov dword [esi + 0x434], edi
mov dword [esi + 0x424], edi
mov dword [esi + 0x420], edi
mov dword [esi + 0x428], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
push 2
cmp dword [esi + 0x438], edi
je 0x416360
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x5a0], eax
cmp eax, ebx
je 0x416478
movzx edx, word [esi + 0xc]
mov ecx, 2
push edx
mov word [esi + 0x590], cx
call dword [sym.imp.WS2_32.dll_htons]
push edi
push edi
push esi
push 0x416260
push edi
push edi
mov word [esi + 0x592], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x416421
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x58c], eax
cmp eax, ebx
je 0x416478
movzx ecx, word [esi + 0xc]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov eax, 2
lea edi, [esi + 0x57c]
push ecx
mov word [edi], ax
call ebx
push str.103.210.236.29
mov word [esi + 0x57e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esi + 0x58c]
mov ebp, dword [sym.imp.WS2_32.dll_bind]
push 0x10
push edi
push edx
mov dword [esi + 0x580], eax
call ebp
cmp eax, 0xffffffff
jne 0x4163f4
mov edi, edi
movzx ecx, word [esi + 0xc]
mov edx, 0x3e8
cmp cx, dx
lea eax, [ecx + 1]
mov word [esi + 0xc], ax
jg 0x41645c
push eax
call ebx
push 0x10
mov word [esi + 0x57e], ax
mov eax, dword [esi + 0x58c]
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x4163c0
mov ecx, dword [esi + 0x58c]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41645c
push 0
push 0
push esi
push 0x416260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
or ebx, 0xffffffff
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [esi + 0x41c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x470], eax
cmp eax, ebx
jne 0x416481
mov eax, dword [esi + 0x58c]
cmp eax, ebx
je 0x416453
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x58c], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov eax, dword [esi + 0x58c]
cmp eax, 0xffffffff
je 0x416478
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x58c], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x416d00
Capabilities:
Get file size

Disassembly:
sub esp, 0x184
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
mov ebp, dword [esp + 0x190]
push esi
push edi
push 0x103
lea eax, [esp + 0x91]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x98], 0
call fcn.00418570
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416d45
push 0
push 0x80
push 3
push 0
push 3
push closesocket
sub eax, edx
push ebp
lea ebx, [eax + ebp]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x416f1e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416f1e
cmp eax, 0xfffffff
ja 0x416f1e
mov cl, byte [ebx]
dec ebx
cmp cl, 0x5c
jne 0x416da0
push 0x38
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00418570
mov eax, dword [edi + 0x6dc]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
push 0
push 0
push 0x1004
push eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x78], 0xff
call esi
mov edx, dword [edi + 0x6dc]
lea ecx, [esp + 0x50]
push ecx
push eax
push 0x1007
push edx
mov dword [esp + 0x64], eax
call esi
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x90]
push 0x427044
push ecx
call fcn.0041861e
mov ecx, dword [esp + 0x60]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x90]
push ecx
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0x6dc]
push 0x102e
push edx
mov dword [esp + 0x2c], 0
call esi
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x90]
push 0x42738c
push ecx
call fcn.0041861e
mov ecx, dword [esp + 0x60]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x90]
push ecx
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0x6dc]
push 0x102e
push edx
mov dword [esp + 0x2c], 1
call esi
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 0x6dc]
lea eax, [esp + 0x14]
push eax
push ecx
push 0x102e
push edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], 0x427388
call esi
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 0x6dc]
lea eax, [esp + 0x14]
push eax
push ecx
push 0x102e
add ebx, 2
push edx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x38], ebx
call esi
mov dword [esp + 0x1c], 4
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 0x6dc]
lea eax, [esp + 0x14]
push eax
push ecx
push 0x102e
push edx
mov dword [esp + 0x38], ebp
call esi
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 0x6dc]
lea eax, [esp + 0x14]
push eax
push ecx
push 0x102e
push edx
mov dword [esp + 0x2c], 5
mov dword [esp + 0x38], 0x42737c
call esi
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x184
ret 4
Function at 0x4170e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x6c8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x6c8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [esi + 0x6c8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x14]
mov dword [edi], eax
add eax, 0xa
push eax
call fcn.0041842a
mov ebx, eax
mov eax, dword [edi]
add eax, 0xa
push eax
push 0
push ebx
call fcn.00418570
mov edx, dword [edi]
mov eax, dword [esi + 0x6c8]
add esp, 0x10
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
cmp ecx, dword [edi]
jae 0x417173
mov dword [edi], 0
test ebx, ebx
je 0x417173
push ebx
call fcn.00418bde
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 4
Function at 0x417220
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x6e4]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1c]
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push str.__02d:_02d:_02d_
push edx
call fcn.0041861e
mov eax, ebp
add esp, 0x14
lea edx, [eax + 1]
jmp 0x417280
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417280
mov ecx, dword [ebx + 0x6e4]
sub eax, edx
lea esi, [eax + 0x32]
mov eax, dword [ebx + 0x71c]
push 0x1000
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, 0x1000
sub edx, esi
cmp edi, edx
jle 0x4172ca
mov edx, dword [ebx + 0x71c]
lea ecx, [edx + esi + 0x32]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4172c0
lea eax, [esp + 0x20]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4172d0
mov edi, dword [ebx + 0x71c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4172e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417300
mov edi, dword [ebx + 0x71c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417310
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 eax, dword [ebx + 0x71c]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417330
mov cx, word [0x4265f8]
mov word [eax], cx
mov dl, byte [0x4265fa]
mov byte [eax + 2], dl
mov eax, dword [ebx + 0x71c]
mov ecx, dword [ebx + 0x6e4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebx + 0x6e4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff
push 0xffff
push 0xb1
push edx
call esi
mov eax, dword [ebx + 0x6e4]
push 0
push 0
push 0xb7
push eax
call esi
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x3c
ret 4