joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414940
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x4337f0]
sub esp, 0x1c4
test eax, eax
push esi
je 0x41495d
mov eax, 1
pop esi
add esp, 0x1c4
ret
lea eax, [esp + 0x38]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
jne 0x414a2c
push edi
push eax
mov dword [0x4337f0], 1
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.DLL_GetClassInfoExA]
test eax, eax
pop edi
jne 0x4149d7
lea edx, [esp + 8]
mov dword [esp + 8], 0x30
push edx
mov dword [esp + 0x14], 0x40fcf0
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], str.GatorAsyncWndClass
call dword [sym.imp.USER32.DLL_RegisterClassExA]
test ax, ax
je 0x414a2c
mov byte [0x4338b0], 0
lea eax, [esp + 4]
push 0
push eax
push str.GetHostByNameTimeout
push str.softwareGator.comGatordyn
push reloc.WSOCK32.DLL_bind
mov dword [esp + 0x18], 0
call fcn.0040afb0
add esp, 0x14
test eax, eax
je 0x414a15
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x42d23c], eax
jne 0x414a1f
mov dword [0x42d23c], 0x14
mov eax, dword [0x4337f0]
pop esi
add esp, 0x1c4
ret
xor eax, eax
pop esi
add esp, 0x1c4
ret
Function at 0x414ac0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x424
push ebp
mov ebp, dword [esp + 0x42c]
push esi
mov esi, ebp
cmp byte [ebp], 0
je 0x414af4
movsx eax, byte [esi]
push eax
call fcn.0041bca2
add esp, 4
test eax, eax
jne 0x414aec
cmp byte [esi], 0x2e
jne 0x414b02
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x414ad7
pop esi
mov eax, 1
pop ebp
add esp, 0x424
ret
call fcn.00414940
test eax, eax
jne 0x414b14
pop esi
pop ebp
add esp, 0x424
ret
xor esi, esi
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push closesocket
push str.GatorAsyncWnd
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov ebx, eax
test ebx, ebx
je 0x414c4c
push edi
lea ecx, [esp + 0x34]
push 0x400
push ecx
push ebp
push 0x43e
push ebx
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
test eax, eax
mov dword [esp + 0x10], eax
je 0x414c44
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [0x42d23c]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*8]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [esp + 0x14], eax
jbe 0x414c36
push 1
push 0
push 0
lea ecx, [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.USER32.DLL_PeekMessageA]
test eax, eax
je 0x414c09
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageA]
cmp dword [esp + 0x1c], 0x43e
jne 0x414c09
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
test cx, cx
jne 0x414c09
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.DLL_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
mov al, byte [0x4338b0]
test al, al
jne 0x414c36
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
test esi, esi
je 0x414b85
push ebx
call dword [sym.imp.USER32.DLL_DestroyWindow]
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x424
ret
test esi, esi
jne 0x414c44
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.DLL_WSACancelAsyncRequest
push ebx
call dword [sym.imp.USER32.DLL_DestroyWindow]
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x424
ret
Function at 0x4153e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
push ebx
call fcn.00415ff0
add esp, 8
mov ecx, ebx
push str.send
push 0
push 1
call fcn.00415f90
test eax, eax
jne 0x41540c
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test ebp, ebp
jge 0x415426
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov edi, edx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov dword [esp + 0x14], edx
mov eax, dword [ebx]
push 0
push ebp
push edi
push eax
call sub.WSOCK32.DLL_send
mov esi, eax
cmp esi, 0xffffffff
je 0x415489
mov ecx, dword [esp + 0x18]
add ecx, esi
test esi, esi
mov dword [esp + 0x18], ecx
jle 0x415483
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov dword [esp + 0x14], edx
add edi, esi
sub ebp, esi
jmp 0x41549f
mov ecx, ebx
call fcn.00415f80
cmp eax, 0x2733
jne 0x4154ba
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
test ebp, ebp
je 0x4154e9
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, dword [esp + 0x14]
ja 0x4154d2
mov al, byte [0x4338b0]
test al, al
jne 0x4154e9
jmp 0x415449
push eax
push str.Send_failed___d_.
push ebx
call fcn.00415ff0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
push str.Send_timed_out.
push ebx
call fcn.00415ff0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov dl, byte [0x4338b0]
pop edi
test dl, dl
sete al
pop esi
pop ebp
and eax, 0xff
pop ebx
ret 8
Function at 0x415be0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
push esi
push ebx
call fcn.00415ff0
mov eax, dword [ebx + 8]
add esp, 8
cmp eax, esi
jne 0x415c14
push str.retrieve_file_headers
push 1
push 1
mov ecx, ebx
call fcn.00415f90
test eax, eax
jne 0x415c14
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 8]
push ebp
cmp eax, esi
push edi
jne 0x415d54
push 0x2000
call fcn.00414f90
mov dword [ebx + 8], eax
add esp, 4
mov byte [eax], 0
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ecx, dword [ebx + 0x24]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], edx
jne 0x415d46
cmp esi, 0x2000
jae 0x415cdf
test ebp, ebp
jne 0x415ce3
mov eax, 0x2000
sub eax, esi
cmp eax, 0x80
jbe 0x415c84
mov eax, 0x80
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
mov eax, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.00415db0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esi, eax
test ecx, ecx
jne 0x415cc4
test eax, eax
jne 0x415cc4
call edi
cmp eax, dword [esp + 0x1c]
ja 0x415d3e
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebx + 8]
push str._r_n_r_n
push ecx
call fcn.0041b780
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x415c65
test ebp, ebp
je 0x415d46
mov ecx, ebx
mov byte [ebp], 0
call fcn.00415500
cmp eax, 0x64
jne 0x415d5f
mov edx, dword [ebx + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
sub esi, 4
mov eax, esi
je 0x415d24
mov ecx, eax
mov edi, edx
mov edx, ecx
lea esi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
jmp 0x415d29
xor esi, esi
mov byte [edx], 0
mov eax, dword [esp + 0x14]
xor ebp, ebp
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jge 0x415d54
jmp 0x415c3e
mov dword [esp + 0x10], 1
push str.Reply_contains_no_headers.
push ebx
call fcn.00415ff0
add esp, 8
mov eax, dword [ebx + 8]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
mov edi, dword [ebx + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
add esi, 0xfffffffc
test esi, esi
mov dword [ebx + 0x10], esi
je 0x415d54
push esi
call fcn.00414f90
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
mov edi, eax
mov eax, ecx
lea esi, [ebp + 4]
add esp, 4
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 + 8]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x415db0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
push ebp
mov dword [esp + 0x18], 0
call fcn.00415ff0
add esp, 8
mov ecx, ebp
push str.read_file
push 1
push 1
call fcn.00415f90
test eax, eax
jne 0x415de6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [ebx], 0
mov dword [edi], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x415eb3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415eb3
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jb 0x415e50
mov edi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebx], ecx
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp + 0x10], esi
call fcn.0041b272
add esp, 4
mov dword [ebp + 0xc], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov edi, dword [esp + 0x18]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x10]
sub ebx, eax
push ebx
call fcn.00414f90
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x20]
mov ecx, ebx
add esi, edi
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041b272
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.DLL_recv
cmp eax, 0xffffffff
jne 0x415f04
mov ecx, ebp
call fcn.00415f80
cmp eax, 0x2733
je 0x415ef2
push eax
push str.Recv_failed___d_
push ebp
mov dword [edi], 1
call fcn.00415ff0
add esp, 0xc
jmp 0x415f21
push 0xa
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x415f34
test eax, eax
jle 0x415f14
mov dword [ebx], eax
mov dword [esp + 0x10], 1
jmp 0x415f34
mov ecx, ebp
mov dword [edi], 1
call fcn.00415f80
cmp dword [edi], 0
jne 0x415f34
push str.No_data_was_received
push ebp
call fcn.00415ff0
add esp, 8
mov al, byte [0x4338b0]
test al, al
je 0x415f57
mov dword [edi], 1
pop edi
mov dword [esp + 0xc], 0
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x415f65
mov dword [edi], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x416870
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
je 0x4168ba
push edi
call fcn.004168c0
mov ecx, esi
call fcn.00416970
cmp eax, edi
jb 0x4168af
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edi
push eax
add ecx, dword [esi + 0xc]
push ecx
call fcn.0041cef0
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, edi
mov dword [esi + 0xc], eax
pop edi
pop esi
ret 8
push str.Out_of_memory_in_CMemBuffer___Cannot_append_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
pop edi
pop esi
ret 8

Function at 0x4168c0
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00416970
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x416937
mov edi, dword [esi + 4]
mov ebp, dword [esi + 8]
add ecx, edi
mov ebx, ecx
lea eax, [ebx + 2]
push eax
call fcn.0041b345
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 8], edi
je 0x416929
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
je 0x41691f
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ebp
push ecx
call fcn.0041cef0
push ebp
call fcn.0041b272
add esp, 0x10
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4
push str.Out_of_memory_in_CMemBuffer__r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x416c45
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x416ca6
cmp byte [ebx], 0
je 0x416ca6
call fcn.0040fb30
test eax, eax
je 0x416ca6
lea edx, [esi + 0x104c]
push edi
mov ecx, 0x100
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
pop edi
test eax, eax
je 0x416c82
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
lea eax, [esi + 0xc4c]
lea ecx, [esi + 0x84c]
push eax
push ecx
push ebx
call fcn.00410110
add esp, 0xc
test eax, eax
jne 0x416cad
push 8
mov ecx, esi
call fcn.00416bf0
pop esi
xor eax, eax
pop ebx
ret 8
push 2
mov ecx, esi
call fcn.00416bf0
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0
push esi
push 0x416d40
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x1568], eax
xor eax, eax
mov ecx, dword [esi + 0x1568]
pop esi
test ecx, ecx
setne al
pop ebx
ret 8
Function at 0x417790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x13c]
xor esi, esi
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
jne 0x4177e4
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x4178c2
lea ecx, [esp + 0x34]
lea ebp, [esp + 0x34]
test ecx, ecx
je 0x4178c2
cmp byte [ebp], 0
je 0x4178c2
mov ebx, dword [esp + 0x140]
test ebx, ebx
je 0x4178c2
cmp byte [ebx], 0
je 0x4178c2
mov edi, dword [esp + 0x144]
test edi, edi
je 0x4178c2
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
call esi
mov edx, eax
push ebx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x148]
lea eax, [edx + eax + 0x10]
cmp ecx, eax
jle 0x4178b3
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [0x4338bc]
cmp esi, eax
jne 0x41785c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [0x4338bc]
cmp esi, eax
je 0x41784b
push ebp
push edi
mov dword [0x4338bc], esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [esp + 0x148]
push ecx
push edi
call fcn.0040ce70
add esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
call ebx
push esi
lea edx, [esp + 0x18]
push str._08X.tmp
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0x10

Function at 0x418510
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea eax, [esp + 0x10]
push ebp
lea edi, [esi + 0x1574]
push eax
push str.AccumFile
push edi
push reloc.WSOCK32.DLL_bind
mov dword [esp + 0x24], ebp
call fcn.0040adb0
mov ecx, dword [esp + 0x24]
push ebp
push ecx
call fcn.0040ca30
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041b272
add esp, 0x20
lea ebx, [esi + 0x1d74]
mov ecx, esi
push 1
push 0x104
push ebx
push 0x42dc24
call fcn.00418a10
test eax, eax
je 0x4185de
push ebx
push str.AccumFile
push edi
push reloc.WSOCK32.DLL_bind
call fcn.0040b170
mov eax, dword [esi + 0x1e80]
push eax
push str.UrlSize
push edi
push reloc.WSOCK32.DLL_bind
call fcn.0040b1f0
lea ecx, [esi + 0x1e88]
push ecx
push str.UrlTime
push edi
push reloc.WSOCK32.DLL_bind
call fcn.0040b170
mov edi, dword [esp + 0x48]
push edi
call fcn.0040ca00
add esp, 0x34
test eax, eax
je 0x4185c8
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0
mov ecx, esi
call fcn.004185f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x418630
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x120]
xor eax, eax
test edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
je 0x4187bb
cmp byte [edi], 0
je 0x4187bb
mov esi, dword [esp + 0x124]
test esi, esi
je 0x4187bb
cmp byte [esi], 0
je 0x4187bb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push eax
push 0x80
push 3
push eax
push 1
push closesocket
push edi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4187aa
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [esp + 0x134]
cmp edi, 0xffffffff
jne 0x4186b1
mov edi, eax
jmp 0x4186b9
cmp eax, edi
jne 0x41879c
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [esp + 0x20]
push ecx
call fcn.0040cf00
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0040cbf0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x41879c
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebp, dword [esp + 0x130]
cmp eax, ebp
jne 0x418787
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, ebp
jne 0x418787
push edi
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x418787
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41877e
cmp dword [esp + 0x18], edi
jne 0x41877e
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41877e
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edi
sete dl
mov dword [esp + 0x14], edx
push ebp
call fcn.0041b272
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add dword [eax + 0x1e7c], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [esp + 0x128]
push 0
push edi
call fcn.0040ca30
mov eax, dword [esp + 0x1c]
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x114
ret 0x10
Function at 0x418a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x114]
cmp eax, 0xfffffffe
jne 0x418abf
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [esp + 0xc]
cmp eax, ebx
je 0x418b72
cmp byte [eax], bl
je 0x418b72
mov edi, dword [esp + 0x118]
cmp edi, ebx
je 0x418b72
cmp byte [edi], bl
je 0x418b72
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push eax
push 0x4338c0
call esi
push 0x4338c0
call fcn.0040ce90
push ebx
push 0x4338c0
call fcn.0040cbf0
add esp, 0xc
test eax, eax
je 0x418b72
push 0x4338c0
push 0x4339c4
call esi
push 0x104
push 0x4339c4
call fcn.0040ce70
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
push str.accum
push 0x4339c4
call esi
push 0x104
push 0x4339c4
call fcn.0040ce70
add esp, 8
push edi
push 0x4339c4
call esi
push ebx
push 0x4339c4
call fcn.0040cbf0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x104
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x418e50
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2014
call fcn.0041b280
mov ecx, dword [esp + 0x201c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x201c]
mov dword [ecx], eax
push ebp
push esi
xor esi, esi
mov dword [ecx + 4], eax
push edi
test ebx, ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
jl 0x418ffb
push 2
push eax
push ebx
call fcn.004219e9
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x418fe6
cmp edi, 0x14
jle 0x418fba
cmp edi, 0x2000
mov ebp, 0x2000
jg 0x418eb9
mov ebp, edi
mov ebx, edi
sub ebx, ebp
test ebx, ebx
jl 0x418faf
mov edx, dword [esp + 0x2028]
push 0
push ebx
push edx
call fcn.004219e9
add esp, 0xc
test eax, eax
jl 0x418f83
mov ecx, dword [esp + 0x2028]
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0041c9ca
add esp, 0xc
cmp ebp, eax
jne 0x418f74
test esi, esi
lea edx, [ebp - 0x14]
jne 0x418f41
lea eax, [esp + edx + 0x24]
test edx, edx
jl 0x418f41
mov ecx, dword [0x42dc40]
cmp ecx, dword [eax]
jne 0x418f3b
cmp dword [eax + 8], 0x1000000
jne 0x418f3b
cmp dword [eax + 4], 0x14
jne 0x418f3b
mov edi, dword [esp + 0x202c]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, 1
dec edx
dec eax
test esi, esi
je 0x418f05
test ebx, ebx
jle 0x418f6f
mov edx, 0x14
mov eax, 0
sub edx, ebp
add ebx, edx
sets al
dec eax
and ebx, eax
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jle 0x418f6b
mov ebp, 0x2000
jmp 0x418f9a
mov ebp, eax
jmp 0x418f9a
or ebx, 0xffffffff
jmp 0x418f9a
call fcn.0041d298
mov ecx, dword [eax]
push ecx
push str.ReadFooter:_no_read_footer
jmp 0x418f90
call fcn.0041d298
mov edx, dword [eax]
push edx
push str.ReadFooter:_no_seek_to_footer
call fcn.00419980
add esp, 8
xor ebp, ebp
test esi, esi
je 0x418ebd
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret
test esi, esi
jne 0x418ffb
mov ebx, dword [esp + 0x2028]
mov eax, dword [esp + 0x2030]
test eax, eax
je 0x418ffb
mov eax, dword [esp + 0x202c]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
call fcn.00419010
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret
call fcn.0041d298
mov edx, dword [eax]
push edx
push str.ReadFooter:_no_get_eof
call fcn.00419980
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret
Function at 0x419290
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004199a0
mov esi, dword [esp + 0x28]
xor eax, eax
mov ecx, esi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [ecx], eax
test edi, edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
jl 0x4193c2
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
push edi
call fcn.00418e50
add esp, 0xc
test eax, eax
je 0x4193aa
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push edi
call fcn.004219e9
add esp, 0xc
test eax, eax
jl 0x41938c
push 0x10
push esi
push edi
call fcn.0041c9ca
add esp, 0xc
cmp eax, 0x10
jne 0x41936e
mov eax, dword [esi]
mov ecx, dword [str.GXBHGXBFGXBCGExeBind_BindData:_target__tag_and_or_data_empty]
cmp ecx, eax
jne 0x419357
mov eax, dword [esi + 8]
cmp eax, 0x1000000
jne 0x419340
mov esi, dword [esi + 4]
cmp esi, 0x10
jne 0x419329
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
push esi
push str.ReadHeader:_wrong_size
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push eax
push str.ReadHeader:_wrong_version
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push eax
push str.ReadHeader:_magic_header_unknown
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call fcn.0041d298
mov edx, dword [eax]
push edx
push str.ReadHeader:_no_read_header
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call fcn.0041d298
mov eax, dword [eax]
push eax
push str.ReadHeader:_no_seek_to_header
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0xffffffffffffffff
push str.ReadHeader:_no_read_footer
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0xffffffffffffffff
push str.ReadHeader:_no_file_given
call fcn.00419980
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret