joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d0
Capabilities:
Create thread
Delete file

Disassembly:
push str.._Launcher.new
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [0x466051], 0
jne 0x403615
mov ecx, dword [esi + 0x2a8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
push 0
call edx
mov eax, dword [esi + 4]
push 0x40
push 0x45d89c
push str.ck_Wf
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
ret
mov ecx, dword [esi + 0x268]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd8]
push ebx
push edi
push 0
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x404160
push 0
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
test eax, eax
je 0x403652
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403664
mov ecx, dword [esi + 4]
push 0x40
push 0x45d8c8
push 0x45d8d0
push ecx
call ebx
push 0
push 0
push esi
push 0x404140
push 0
push 0
call edi
test eax, eax
je 0x403682
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
ret
mov edx, dword [esi + 4]
push 0x40
push 0x45d8c8
push 0x45d8f0
push edx
call ebx
pop edi
pop ebx
ret

Function at 0x4036a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.windowinit
mov ecx, edi
call fcn.0040bd19
test al, al
je 0x4036c8
add esi, 0xfffffff0
call fcn.004035d0
pop edi
pop esi
pop ebp
ret 4
push str.click
mov ecx, edi
call fcn.0040bd19
test al, al
je 0x40374b
mov eax, dword [edi + 0x108]
cmp eax, dword [esi + 0x250]
jne 0x403700
push 0
push 0xf020
push 0x112
lea ecx, [esi - 0x10]
call fcn.0040661a
pop edi
pop esi
pop ebp
ret 4
cmp eax, dword [esi + 0x254]
je 0x4037fe
cmp eax, dword [esi + 0x25c]
je 0x4037fe
push ebx
cmp eax, dword [esi + 0x258]
jne 0x40376e
mov eax, dword [esi + 0x4ac]
test eax, eax
js 0x403751
cmp eax, 8
jge 0x403751
mov ecx, dword [esi + 0x258]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 0
call edx
lea ebx, [esi - 0x10]
call fcn.00403930
pop ebx
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [esi - 0xc]
push 0x40
push 0x45d8c8
push 0x45d934
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
pop edi
pop esi
pop ebp
ret 4
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
cmp eax, 0xffff0001
jne 0x4037d5
mov eax, dword [edx + 0xb8]
push 0x45d83c
call eax
mov ecx, eax
call fcn.0040bd2d
test al, al
je 0x40374a
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb8]
call eax
mov ecx, eax
call fcn.004069eb
mov ecx, dword [esi - 0xc]
push 1
push 0
push 0
push eax
push str.OPEN
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [edx + 0xc0]
call eax
cmp eax, 0xffff0002
jne 0x40374a
mov ebx, dword [edi + 0x108]
add esi, 0xfffffff0
push esi
call fcn.00403810
pop ebx
pop edi
pop esi
pop ebp
ret 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
ret 4
Function at 0x404630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x464ce4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
push edi
push 0x3e8
push 0x45dd08
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0x104
mov dword [esi + 0x2b0], eax
lea eax, [esi + 0x2b4]
push eax
push 0x45d83c
push 0x45dd10
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x2000
push 0
push 0x46ab20
call fcn.0043a230
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4046a0
push 0
push 0
push 0x2000
push 0x46ab20
sub eax, edx
sar eax, 1
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
lea ebx, [esi + 0x4c4]
push edi
push str.ServerData_d
lea edx, [ebp - 0x24]
call fcn.00405e70
add esp, 8
push 0x46ab20
push 0x400
lea ecx, [ebp - 0x424]
push ecx
push 0x45dd2d
lea edx, [ebp - 0x24]
push edx
push str.list
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40473d
push ebx
lea ecx, [ebp - 0x424]
call fcn.00402870
push 0xd5
push str.3zF8sAc4bYk6Gmin
mov ecx, ebx
call fcn.004029b0
inc dword [esi + 0x4c0]
inc edi
add esp, 0xc
add ebx, 0xd5
cmp edi, 8
jl 0x4046d1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043836a
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d00b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x464ce4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 4]
and eax, 0xff3effff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6b
mov ecx, esi
call fcn.00406435
mov edx, dword [esi + 4]
lea ecx, [esi + 0x14]
push edx
call fcn.004068b1
lea ecx, [ebp - 0x158]
call fcn.0040d223
mov dword [ebp - 4], 0
call fcn.004068f1
mov ecx, eax
call fcn.0040ba70
test al, al
je 0x4055e7
push str.RC_SKIN
push 0x81
call fcn.004068dc
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x405625
push ebx
call fcn.004068dc
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x15c], eax
push ebx
test eax, eax
jne 0x40554e
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x405625
call fcn.004068dc
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x405625
push edi
call fcn.004061d0
add esp, 4
mov dword [esi + 0x2ac], eax
mov eax, dword [ebp - 0x15c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi + 0x2ac]
push eax
push ecx
call fcn.0043c390
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
call dword [sym.imp.Shell.dll_void___cdecl_FourierTransformationStart_void_]
mov eax, dword [esi + 0x2ac]
cmp dword [eax], 0x6e696b53
jne 0x4055d1
mov dword [eax], 0x4034b50
mov eax, 4
cmp edi, eax
jbe 0x4055d1
jmp 0x4055c0
mov ecx, dword [esi + 0x2ac]
xor byte [ecx + eax], 0xab
add ecx, eax
inc eax
cmp eax, edi
jb 0x4055c0
call dword [sym.imp.Shell.dll_void___cdecl_FourierTransformationEnd_void_]
mov eax, dword [esi + 0x2ac]
push edi
push eax
call fcn.00406957
add esp, 8
push 0
lea edi, [esi + 0x14]
push edi
push 0
push 0
push ecx
mov eax, esp
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x15c], esp
mov dword [eax], 0x45df4c
call fcn.0040dbdc
push eax
mov ecx, edi
call fcn.00409ac2
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.00406f26
mov ecx, esi
call fcn.00403250
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ed3e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
Function at 0x405a40
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [0x469844], 3
push ebx
push esi
jl 0x405b30
mov eax, dword [0x46984c]
mov ecx, dword [eax + 4]
push str._update
push ecx
call fcn.00439269
add esp, 8
test eax, eax
jne 0x405b30
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
mov edx, dword [0x46984c]
mov eax, dword [edx + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x405ad4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
call esi
cmp eax, 2
je 0x405ad4
cmp eax, 5
jne 0x405ac1
mov ecx, dword [0x46984c]
mov edx, dword [ecx + 8]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x64
call edi
mov eax, dword [0x46984c]
mov ecx, dword [eax + 8]
push ecx
call ebx
test eax, eax
je 0x405aa0
mov eax, dword [0x46984c]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.0043a230
mov ecx, dword [0x46984c]
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x54], 0x44
mov edx, dword [ecx + 8]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
push eax
call fcn.00406903
add esp, 4
call fcn.004068eb
mov ecx, eax
call fcn.004069eb
push eax
call fcn.00406910
push 0xd98
call fcn.00439054
add esp, 8
test eax, eax
je 0x405b74
mov ebx, eax
call fcn.00403070
mov esi, eax
test esi, esi
jne 0x405b92
push 0x10
push 0x45da14
push 0x45df8c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0x10cf0000
push 0x45dfa4
push 0
mov ecx, esi
call fcn.00406793
mov ecx, esi
call fcn.004062f5
push 1
push 1
mov ecx, esi
call fcn.004062ba
call fcn.00409c64
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406030
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x464ce4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor esi, esi
lea eax, [ebp - 0x28]
push eax
push 0x28
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4060a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4060d2
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0x10
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x406124
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0043836a
mov esp, ebp
pop ebp
ret

Function at 0x40682d
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x406843
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x40684f
or edi, 1
push 1
call esi
test ax, ax
jns 0x40685b
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x406867
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x406873
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x4081f8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x40821d
cmp ebx, dword [esi + 0x54]
je 0x40821d
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4082df
push edi
test eax, eax
je 0x408270
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00407d35
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4082de
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4082de
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4082de
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4082de
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00407d35
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4084e2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xd0]
xor ebx, ebx
call fcn.0040b909
test eax, eax
jle 0x408537
push ebx
lea ecx, [esi + 0xd0]
mov byte [ebp - 1], 0
call fcn.0040b929
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x408598
lea ecx, [esi + 0xd0]
inc ebx
call fcn.0040b909
cmp ebx, eax
jl 0x4084fe
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4085f1
sub eax, 4
je 0x40859c
dec eax
dec eax
jne 0x4085e8
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0043a66d
pop ecx
mov ecx, dword [esi + 0x50]
push inet_ntoa
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x4077c7
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4085e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4085ea
cmp dword [esi + 0x54], 0
je 0x4085e8
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0040682d
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4085e8
cmp dword [esi + 0x54], 0
je 0x408640
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x408640
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x408640
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0043a4f7
pop ecx
pop ecx
test eax, eax
je 0x408640
mov ecx, dword [esi + 0x54]
call fcn.0041adfc
test al, al
jne 0x4085e8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.00408390
jmp 0x408598
Function at 0x40f48e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x44c04f
call fcn.0043a1cf
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.0040ea7e
call fcn.004068eb
push eax
lea ecx, [ebp - 0x94]
call fcn.0040bcf4
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004068f1
mov ecx, eax
call fcn.0040ba70
test al, al
je 0x40f5d6
push edi
lea ecx, [ebp - 0x94]
call fcn.0040bb09
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004069eb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push esi
cmp eax, 0xffffffff
jne 0x40f532
push str.Error_opening_file
mov ecx, ebx
call fcn.0040ec54
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0040b945
mov al, bl
call fcn.0043a219
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x40f547
push esi
push str.File_is_empty
jmp 0x40f510
cmp edi, 0x400000
jbe 0x40f557
push esi
push str.File_too_large
jmp 0x40f510
push edi
mov dword [ebp - 0x2cc], esi
call fcn.004061d0
pop ecx
push esi
lea ecx, [ebp - 0x2cc]
push ecx
push edi
push eax
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], edi
je 0x40f5b2
push dword [ebp - 0x2c8]
call fcn.00438a6d
pop ecx
mov ecx, ebx
call fcn.0040ea7e
push esi
push str.Could_not_read_file
jmp 0x40f510
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x2c8]
call fcn.0040f33b
push dword [ebp - 0x2c8]
mov bl, al
call fcn.00438a6d
pop ecx
jmp 0x40f519
call fcn.004068f1
push eax
lea ecx, [ebp - 0x94]
call fcn.0040baec
call fcn.004068f7
test al, al
je 0x40f5f7
call fcn.004068fd
jmp 0x40f60e
push 2
push esi
lea ecx, [ebp - 0x94]
call fcn.004069eb
push eax
call fcn.004130ed
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, esi
jne 0x40f623
push esi
push str.Error_opening_zip_file
jmp 0x40f510
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push edi
push dword [ebp - 0x2c8]
call fcn.00411805
add esp, 0x14
test eax, eax
je 0x40f651
push esi
push str.Could_not_find_ziped_file
jmp 0x40f510
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp eax, esi
je 0x40f53f
cmp eax, 0x400000
ja 0x40f54f
push eax
call fcn.004061d0
push 3
push dword [ebp - 0x2cc]
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.0041314b
add esp, 0x18
cmp eax, esi
je 0x40f6c7
cmp eax, 0x600
je 0x40f6c7
push edi
call fcn.00438a6d
pop ecx
call fcn.004068f7
test al, al
jne 0x40f6bc
push dword [ebp - 0x2c8]
call fcn.00413183
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x40f510
call fcn.004068f7
test al, al
jne 0x40f6dc
push dword [ebp - 0x2c8]
call fcn.00413183
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x2cc]
push edi
call fcn.0040f33b
push edi
jmp 0x40f5c9
Function at 0x410342
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x410350
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x41040b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x450b40]
add edx, 8
sub edi, 8
dec esi
jne 0x41036e
pop ebx
test edi, edi
je 0x410424
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x450b40]
inc edx
dec edi
jne 0x41040f
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4108d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x410905
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410900
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41092d
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x410916
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043c390
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x41174f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x464ce4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4117f7
movzx ecx, word [esi]
test cx, cx
je 0x4117f7
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x41178a
cmp cx, 0x5c
jne 0x41178c
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x41177e
cmp eax, esi
je 0x4117cb
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004385d2
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041174f
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0043a4d6
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0043a4a5
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043836a
leave
ret
Function at 0x412d24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x412d9f
cmp dword [esi + 4], 0xffffffff
jne 0x412d9f
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x45113c
push edi
call fcn.0043a4a5
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x412d71
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x412d71
mov eax, 0x2000000
jmp 0x412da4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004106de
add esp, 0x10
test eax, eax
jne 0x412d8f
mov eax, dword [ebp + 0x10]
jmp 0x412da4
push eax
call fcn.00412913
mov dword [esi], eax
mov eax, dword [0x4696bc]
pop ecx
jmp 0x412da4
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc