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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [ebp + 8], edi
je 0x4019cd
cmp dword [ebp + 0xc], edi
jl 0x4019cd
cmp dword [esi + 0xc], edi
je 0x4019cd
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], 0x3c
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
cmp ebx, eax
je 0x4019d0
cmp ebx, edi
je 0x4019d0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, edi
jne 0x4019c2
call fcn.00401926
jmp 0x4019c9
or eax, 0xffffffff
cmp ebx, eax
je 0x4019d0
mov eax, ebx
jmp 0x4019d0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401aaa
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
xor eax, eax
push edi
xor edi, edi
inc eax
cmp dword [ebp + 8], edi
je 0x401b31
cmp dword [ebp + 0xc], eax
jl 0x401b31
cmp dword [esi + 0xc], edi
jne 0x401acc
xor eax, eax
jmp 0x401b31
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x104]
push edi
push eax
mov dword [ebp - 8], 0x1e
mov dword [ebp - 4], edi
call fcn.00450fd0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x401ac8
cmp eax, edi
je 0x401ac8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret 8

Function at 0x401b36
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x486ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x401b5f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x401b63
xor eax, eax
jmp 0x401b7a
lea edi, [eax + eax]
mov eax, edi
call fcn.00451a70
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.004021c9
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x401b90
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x401b90
mov ebx, dword [eax]
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044bafb
leave
ret 4
Function at 0x40227f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402296
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4022cb
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4022c7
cmp edi, eax
jae 0x4022cb
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4022b9
cmp edi, eax
jb 0x4022cf
xor eax, eax
jmp 0x4022d8
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x404711
Capabilities:
Create process on windows

Disassembly:
push 0x44
mov eax, 0x46d1d4
call fcn.00450ec5
mov esi, ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
xor edi, edi
inc edi
push edi
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4047bf
push 0x38
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00450fd0
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], ebx
call fcn.00417455
mov dword [ebp - 0x44], str.runas
test eax, eax
jne 0x404779
mov dword [ebp - 0x44], str.open
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x14]
jmp 0x4047c2
or eax, 0xffffffff
call fcn.00450f9d
ret
Function at 0x404cb8
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38d4
call fcn.00453650
mov eax, dword [0x486ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x38d0], ebx
mov dword [ebp - 0x38c8], ebx
push dword [ebp - 0x38c8]
lea eax, [ebp - 0x5f0]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38cc], eax
cmp eax, 0xffffffff
je 0x404e8e
xor eax, eax
lea edi, [ebp - 0x38c4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x2710
push edi
lea eax, [ebp - 0x30e8]
push ebx
push eax
mov dword [ebp - 0x38d4], ebx
mov dword [ebp - 0x38c4], ebx
mov dword [ebp - 0x38c0], ebx
call fcn.00450fd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x38d4]
push eax
push edi
lea eax, [ebp - 0x30e8]
push eax
push 0xc
lea eax, [ebp - 0x38c4]
push eax
push 0x2d1400
push dword [ebp - 0x38cc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404e7c
mov eax, dword [ebp - 0x30dc]
push ebx
lea esi, [ebp - 0x34d0]
lea ecx, [ebp - 0x30e8]
call fcn.00404b6c
mov eax, dword [ebp - 0x30d8]
push ebx
lea esi, [ebp - 0x9d8]
lea ecx, [ebp - 0x30e8]
call fcn.00404b6c
mov eax, dword [ebp - 0x30d4]
push ebx
lea esi, [ebp - 0x38b8]
lea ecx, [ebp - 0x30e8]
call fcn.00404b6c
mov eax, dword [ebp - 0x30d0]
push 1
lea esi, [ebp - 0x3f0]
lea ecx, [ebp - 0x30e8]
call fcn.00404b6c
add esp, 0x10
cmp byte [0x48a278], bl
jne 0x404e46
movsx eax, byte [ebp - 0x3f0]
push eax
call fcn.0044c40e
pop ecx
test eax, eax
jne 0x404e14
movsx eax, byte [ebp - 0x3dd]
push eax
call fcn.0044c40e
pop ecx
test eax, eax
je 0x404e46
xor eax, eax
mov cl, byte [ebp + eax - 0x3f0]
mov byte [eax + 0x48a278], cl
inc eax
cmp cl, bl
jne 0x404e16
xor eax, eax
mov cl, byte [ebp + eax - 0x9d8]
mov byte [eax + 0x489e78], cl
inc eax
cmp cl, bl
jne 0x404e2a
mov dword [ebp - 0x38d0], 1
push edi
lea eax, [ebp - 0x30e8]
push ebx
push eax
call fcn.00450fd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x38d4]
push eax
push edi
lea eax, [ebp - 0x30e8]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 0x38cc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x404e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x38cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x38c8]
cmp dword [ebp - 0x38c8], 0x10
jl 0x404ce0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bafb
leave
ret
Function at 0x405246
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x486ba4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x128], 0
push esi
push edi
mov esi, 0x114
push esi
mov dword [ebp - 0x124], eax
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
mov byte [0x48a278], 0
call fcn.00450fd0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x4052c8
call fcn.0040486f
test eax, eax
jne 0x4052e4
call fcn.00404fd5
test eax, eax
jne 0x4052e4
call fcn.00404cb8
test eax, eax
jne 0x4052e4
call fcn.00404a2a
jmp 0x4052e4
xor esi, esi
test edi, edi
jne 0x4052e4
cmp byte [0x48a278], 0
jne 0x4052e4
call fcn.00404eb6
inc esi
cmp esi, 0xa
mov edi, eax
jl 0x4052ca
mov ecx, dword [ebp - 0x124]
push 0x48a278
call fcn.00401685
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
pop edi
xor ecx, ebp
pop esi
call fcn.0044bafb
leave
ret

Function at 0x40537a
Capabilities:
Resolve dns

Disassembly:
push 0x50
mov eax, 0x46d18f
call fcn.00450f2e
cmp dword [ebp + 8], 0
je 0x40539d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4053a1
xor eax, eax
jmp 0x4053b8
lea edi, [eax + eax]
mov eax, edi
call fcn.00451a70
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.004021c9
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x405441
push dword [ebp + 8]
lea esi, [ebp - 0x34]
call fcn.004070e1
and dword [ebp - 4], 0
mov eax, esi
push eax
call fcn.00407100
mov edi, eax
call fcn.00407632
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.00401e7e
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x405441
and dword [ebp - 0x14], 0
mov eax, dword [eax]
push dword [ebp + 8]
lea esi, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.004070e1
lea eax, [ebp - 0x18]
push eax
push ecx
mov eax, esi
push eax
mov dword [ebp - 4], 1
call fcn.00407100
pop ecx
push eax
lea ebx, [ebp - 0x5c]
call fcn.004072d4
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.00401e7e
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4053fd
push dword [ebp + 8]
lea esi, [ebp - 0x50]
call fcn.004070e1
mov eax, esi
push eax
mov dword [ebp - 4], 2
call fcn.00407100
mov edi, dword [eax + 0x1c]
push 0
push 1
call fcn.00401e7e
test edi, edi
setne al
lea esp, [ebp - 0x6c]
call fcn.00450fb1
ret 4
Function at 0x406353
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
push esi
mov esi, ecx
jne 0x40636d
inc eax
mov dword [esi + 0x11c], eax
jmp 0x4063f8
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
mov dword [esi + 0x90], eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [esi + 0x94], eax
call fcn.00406d49
lea eax, [esi + 0x88]
cmp dword [eax + 4], 0
jl 0x4063bd
jg 0x40639e
cmp dword [eax], 0
jbe 0x4063bd
mov edi, dword [eax + 4]
push ebx
mov ebx, dword [eax]
mov eax, esi
call fcn.00406d87
cmp edx, edi
jl 0x4063bc
jg 0x4063b5
cmp eax, ebx
jbe 0x4063bc
push edi
push ebx
call fcn.00406d49
pop ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00406ccc
lea eax, [ebp + 0x14]
push eax
xor edi, edi
push edi
push esi
push 0x4062c6
push 0x800000
push edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x78], eax
pop edi
je 0x4063f6
cmp eax, 0xffffffff
je 0x4063f6
xor eax, eax
inc eax
jmp 0x4063f8
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x4067ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
cmp dword [ebp + 8], eax
je 0x406863
cmp dword [ebp + 0xc], eax
jl 0x406863
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406863
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], edx
call fcn.00406cf9
mov edi, eax
add edi, dword [ebp - 0x10]
mov ebx, edx
adc ebx, dword [ebp - 0xc]
push ebx
push edi
call fcn.00406ccc
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x40685d
push dword [esi + 0x70]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push edi
push dword [esi + 8]
call eax
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x406868
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b55a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
call fcn.0040d029
test eax, eax
je 0x40b5ac
push 0x10
call fcn.0044bba2
xor edx, edx
pop ecx
cmp eax, edx
je 0x40b584
mov dword [eax + 0xc], edx
jmp 0x40b586
xor eax, eax
or dword [eax], 0xffffffff
mov dword [eax + 8], 7
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0xa0]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xa4]
cmp ecx, edx
je 0x40b5ac
mov edi, dword [ecx]
push edx
push eax
call dword [edi]
push 6
pop eax
cmp dword [esi + 0x50], eax
je 0x40b5b7
mov dword [esi + 0x50], eax
and dword [esp + 0xc], 0
mov edi, esi
call fcn.0040bf51
mov dword [esp + 0x10], eax
test eax, eax
je 0x40b5f2
cmp eax, 1
je 0x40b6e2
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040c6b1
cmp eax, 0xd
je 0x40b6f8
cmp eax, 0xa
je 0x40b6f8
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x40b652
mov eax, esi
call fcn.0040d069
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40b639
xor ecx, ecx
cmp dword [esi + 0x50], ecx
jle 0x40b628
mov eax, dword [esi + 0x58]
add eax, 0x11c
cmp dword [eax], 0
je 0x40b631
inc ecx
add eax, 0x128
cmp ecx, dword [esi + 0x50]
jl 0x40b618
push 1
call fcn.0040d046
jmp 0x40b639
mov dword [esp + 0x10], 0xe
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040c6b1
cmp eax, 0xd
je 0x40b6f8
mov ebx, dword [esp + 0x10]
cmp ebx, 0xc
je 0x40b65c
cmp ebx, 0xb
jne 0x40b68b
push dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
mov eax, dword [esi + 0x44]
cmp dword [eax - 0xc], 0
je 0x40b68b
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040c273
push dword [eax]
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004026f8
call fcn.0040be70
mov edi, dword [esp + 0xc]
cmp edi, 9
je 0x40b6fc
test ebx, ebx
je 0x40b6fc
cmp ebx, 0xb
jne 0x40b6a9
and dword [esi + 0x9c], 0
add edi, 3
xor ebx, ebx
test edi, edi
jle 0x40b6d1
push 0x64
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b6f8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jl 0x40b6b2
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xa
jl 0x40b5bc
jmp 0x40b718
push 1
call fcn.0040d046
mov eax, esi
call fcn.0040d029
test eax, eax
je 0x40b718
push 0
jmp 0x40b708
xor eax, eax
jmp 0x40b71b
mov eax, esi
call fcn.0040d029
test eax, eax
je 0x40b718
push ebx
push 2
push dword [esi + 0xa0]
push 0xffffffffffffffff
push esi
call fcn.0040d4db
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bad6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push edi
test eax, eax
jl 0x40bc7f
cmp eax, dword [esi + 0x50]
jge 0x40bc7f
mov edx, dword [ebp + 0x10]
test edx, edx
jl 0x40bc7f
mov edi, dword [ebp + 0xc]
jg 0x40bb0a
test edi, edi
jb 0x40bc7f
test edx, edx
jl 0x40bb22
jg 0x40bb14
test edi, edi
jbe 0x40bb22
mov ecx, dword [esi + 0x60]
imul eax, eax, 0x18
mov dword [ecx + eax + 0x10], edi
mov dword [ecx + eax + 0x14], edx
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
add dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
push ebx
adc dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.0040d029
test eax, eax
je 0x40bc7f
push edi
push 5
push dword [esi + 0xa0]
push dword [ebp + 8]
push esi
call fcn.0040d4db
xor edi, edi
cmp dword [esi + 0x54], edi
je 0x40bc7f
cmp dword [esi + 0x50], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x10], edi
jle 0x40bbc6
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x58]
add eax, dword [ebp + 8]
call fcn.00406cf9
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
sub ebx, eax
mov eax, dword [esi + 0x58]
sbb edi, edx
add eax, dword [ebp + 8]
call fcn.00406d87
add eax, ebx
adc edx, edi
inc dword [ebp + 0x10]
add dword [ebp + 8], 0x128
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x50]
mov dword [ebp + 0x18], edx
jl 0x40bb88
xor edi, edi
mov eax, esi
call fcn.0040cf0d
cmp edx, edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jl 0x40bc7f
jg 0x40bbe5
cmp eax, edi
jbe 0x40bc7f
mov ebx, eax
sub ebx, dword [ebp + 0x14]
mov eax, edx
sbb eax, dword [ebp + 0x18]
push 0x20
mov dword [ebp + 0x18], eax
call fcn.0044bba2
pop ecx
cmp eax, edi
je 0x40bc11
mov dword [eax + 0x18], edi
mov dword [eax], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov edi, eax
mov eax, dword [esi + 0xa0]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
call ebx
sub eax, dword [esi + 0x38]
jne 0x40bc40
and dword [edi + 0x18], eax
jmp 0x40bc57
push 0
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045ba20
imul eax, eax, 0x3e8
mov dword [edi + 0x18], eax
call ebx
mov ecx, dword [esi + 0xac]
add ecx, 0x64
cmp eax, ecx
jbe 0x40bc7f
push edi
push 3
push dword [esi + 0xa0]
push 0xffffffffffffffff
push esi
call fcn.0040d4db
call ebx
mov dword [esi + 0xac], eax
pop edi
pop ebx
leave
ret 0x14
Function at 0x40c433
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x46e24a
call fcn.00450ec5
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0040c273
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, 0xffffffff
je 0x40c562
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40c562
push 0xfffffffffffffffc
pop eax
push 2
lea edx, [ebp - 0x30]
push edx
or ecx, 0xffffffff
push ecx
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call edi
test eax, eax
je 0x40c562
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
push 4
lea ebx, [esi + 0x5c]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c562
cmp dword [ebp - 0x14], 4
jne 0x40c562
mov eax, dword [ebx]
test eax, eax
jbe 0x40c562
cmp eax, 0x3f
ja 0x40c562
test eax, eax
jle 0x40c4f0
mov ecx, esi
call fcn.0040b51c
jmp 0x40c4f2
xor eax, eax
test eax, eax
je 0x40c562
push esi
call fcn.0040bc85
test eax, eax
je 0x40c562
mov ecx, dword [esi + 0x50]
imul ecx, ecx, 0x18
push 0xfffffffffffffffc
pop eax
push 2
sub eax, ecx
cdq
lea ecx, [ebp - 0x38]
push ecx
push edx
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x40c562
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x50]
imul eax, eax, 0x18
push eax
push dword [esi + 0x60]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esi + 0x50]
je 0x40c552
imul eax, eax, 0x18
cmp dword [ebp - 0x18], eax
jne 0x40c555
mov dword [ebp - 0x20], 1
jmp 0x40c562
imul eax, eax, 0x18
push eax
push edi
push dword [esi + 0x60]
call fcn.00450fd0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x40c577
cmp dword [ebp - 0x10], 0xffffffff
je 0x40c577
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004026f8
mov eax, dword [ebp - 0x20]
call fcn.00450f9d
ret
Function at 0x40c58b
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x54]
sub esp, 0x28
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x40c6ab
cmp dword [eax + 0x74], edi
jne 0x40c5ad
xor eax, eax
inc eax
jmp 0x40c6ad
lea eax, [ebp - 4]
push eax
push esi
call fcn.0040c273
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c6a0
cmp dword [esi + 0x5c], edi
je 0x40c695
cmp dword [esi + 0x60], edi
je 0x40c695
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40c67a
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0xfffffffffffffffc
pop eax
push 2
lea edx, [ebp - 0x20]
push edx
or ecx, 0xffffffff
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40c67a
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [esi + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c639
test ebx, ebx
jmp 0x40c697
mov ecx, dword [esi + 0x50]
imul ecx, ecx, 0x18
push 0xfffffffffffffffc
pop eax
push 2
sub eax, ecx
cdq
lea ecx, [ebp - 0x28]
push ecx
push edx
push eax
push ebx
call edi
test eax, eax
je 0x40c67a
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x50]
imul eax, eax, 0x18
push eax
push dword [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c635
mov dword [ebp - 8], 1
test ebx, ebx
je 0x40c685
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004026f8
mov eax, dword [ebp - 8]
jmp 0x40c6ad
cmp ebx, edi
je 0x40c6a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004026f8
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40eb8c
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0xf0
lea ebp, [esp - 4]
mov eax, dword [0x486ba4]
xor eax, ebp
mov dword [ebp + 0xf0], eax
push 0x38
mov eax, 0x46b2eb
call fcn.00450ec5
mov eax, dword [ebp + 0x100]
push 0x479554
push dword [ebp + 0xfc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], edi
call fcn.0044da07
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x40ec07
test esi, esi
je 0x40ec00
lea ecx, [ebp - 0x44]
call fcn.0040f5a3
and dword [ebp - 4], ebx
push 0xffffffffffffffff
push esi
call fcn.00401df6
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.00401e7e
xor al, al
jmp 0x40ed03
test edi, edi
je 0x40ec12
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
jmp 0x40ec16
and dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x18]
push 9
xor eax, eax
pop ecx
mov word [ebp + 0xc8], ax
lea edi, [ebp + 0xca]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xffffffffffffffff
xor edi, edi
call fcn.00401ee9
push 2
push edi
push ebx
call fcn.0044daa8
push ebx
call fcn.0044dcca
push edi
mov esi, eax
push edi
push ebx
mov dword [ebp - 0x24], esi
call fcn.0044daa8
add esp, 0x1c
test esi, esi
je 0x40ecc2
push esi
call fcn.0044b6ce
push ebx
push 1
push esi
push eax
mov dword [ebp - 0x10], eax
call fcn.0044dfd8
push esi
push dword [ebp - 0x10]
xor ebx, ebx
call fcn.0040f366
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044b6ce
push esi
push dword [ebp - 0x10]
mov ebx, eax
call fcn.0040f366
mov esi, dword [ebp - 0x18]
add esp, 0x28
mov eax, edi
mov ecx, ebx
call fcn.0040429d
push ebx
call fcn.0044c11c
push dword [ebp - 0x10]
call fcn.0044c11c
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
pop ecx
pop ecx
push edi
push esi
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp]
push str._s_d_bytes_to__d_wide_chars
push eax
call fcn.0044dff5
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x40ecee
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call fcn.00403f75
push ebx
call fcn.0044e104
mov eax, dword [ebp - 0x28]
pop ecx
test eax, eax
je 0x40ed01
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xf0]
xor ecx, ebp
call fcn.0044bafb
add ebp, 0xf4
leave
ret