joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a30
lea ebx, [ebx]
cmp esi, eax
jae 0x401a34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a20
cmp esi, eax
jb 0x401a3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404940
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45da93
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00428d57
xor ecx, ecx
mov dword [esp + 0x24], ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x24], 1
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x404a0b
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00429261
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.00429533
test ebp, ebp
je 0x4049e9
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.004295c2
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00428e73
jmp 0x404a1d
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x405e70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405e91
test esi, eax
je 0x405e91
not esi
and esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x406050
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406064
pop esi
pop ecx
ret
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x28]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4060a5
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 0xc], edi
pop edi
pop ebx
sete al
pop esi
pop ecx
ret

Function at 0x4060e0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406188
push esi
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00434200
add esp, 0xc
mov esi, edi
test edi, edi
je 0x406187
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406185
push 0x5c
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x406154
push edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x406166
add esi, 2
mov eax, esi
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406181
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jne 0x406130
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00431fec
add esp, 0x20c
ret
Function at 0x406920
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [ebx + 4]
sub esp, 8
push esi
push edi
lea esi, [ebx + 4]
push 0x5c
push eax
call fcn.00432ad9
add esp, 8
test eax, eax
jne 0x40693f
or eax, 0xffffffff
jmp 0x406943
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00402540
mov edi, dword [eax]
call fcn.004060e0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406994
test al, 3
je 0x406994
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esi]
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [ebx + 0x28]
push eax
push edx
mov edx, dword [esp + 0x20]
push esi
call fcn.0040c2a0
add esp, 0x10
movzx eax, al
pop edi
mov dword [ebx], eax
pop esi
add esp, 8
ret

Function at 0x4069c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00434200
add esp, 0xc
push esi
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, 0x44
lea eax, [esp + 0x18]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x406a06
mov dword [esp + 0x18], 0x44
mov ecx, 0x10
lea eax, [esp + 8]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x406a20
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406aa3
cmp dword [esp + 0x274], 0
je 0x406a75
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
call esi
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call esi
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 0x10]
pop esi
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00431fec
add esp, 0x26c
ret
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00431fec
add esp, 0x26c
ret
Function at 0x406ac0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x121c
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x1218], eax
mov eax, dword [esp + 0x1220]
lea ecx, [esp]
push ecx
push 0x1000
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x10], eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x406b0f
mov ecx, dword [esp + 0x1218]
xor ecx, esp
call fcn.00431fec
add esp, 0x121c
ret
mov eax, dword [esp]
push ebx
push ebp
shr eax, 2
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x406c1c
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x46dfd4]
mov eax, dword [str._Unknown_]
mov ecx, dword [0x46dfd0]
push 0x1f4
mov dword [esp + 0x102c], edx
mov dword [esp + 0x1024], eax
mov eax, dword [0x46dfd8]
mov dword [esp + 0x1028], ecx
mov ecx, dword [0x46dfdc]
lea edx, [esp + 0x1038]
push 0
push edx
mov dword [esp + 0x1038], eax
mov dword [esp + 0x103c], ecx
call fcn.00434200
mov eax, dword [esp + ebx*4 + 0x2c]
add esp, 0xc
push eax
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x406bce
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x406bcb
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x1024]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1024]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406c11
mov ecx, dword [esp + ebx*4 + 0x20]
push ecx
push eax
push 0x100001
call edi
mov esi, eax
test esi, esi
je 0x406c11
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x406c3a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebp
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x406b33
mov eax, 1
mov ecx, dword [esp + 0x1228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431fec
add esp, 0x121c
ret
push esi
call ebp
xor eax, eax
jmp 0x406c21

Function at 0x406c50
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x406cdb
test esi, esi
je 0x406cdb
mov eax, esi
push edi
xor edx, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406c70
sub eax, edi
sar eax, 1
je 0x406caa
movzx eax, word [esi + edx*2]
cmp ax, 0x5b
je 0x406cbc
cmp ax, 0x5d
je 0x406cbc
mov eax, esi
inc edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406c97
sub eax, edi
sar eax, 1
cmp edx, eax
jb 0x406c81
mov eax, dword [esp + 0x10]
push ebx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406caa
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov edx, ebp
call fcn.00406ce0
add esp, 8
pop edi
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x4074d0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebp
mov ebp, dword [esp + 0x100c]
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00434200
add esp, 0xc
push esi
push 0x1000
lea edx, [esp + 0xc]
push edx
push 0x46df44
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407530
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
mov ecx, ebp
call fcn.00401f90
mov ecx, dword [esp + 0x1004]
pop ebp
xor ecx, esp
call fcn.00431fec
add esp, 0x1004
ret

Function at 0x407570
Capabilities:
Read .ini file

Disassembly:
push ebx
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004150d0
push 0x200000
call fcn.00414675
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407591
pop ebx
ret
mov eax, dword [esp + 8]
push eax
push 0x100000
push ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4075dd
cmp word [ebx], 0
push esi
mov esi, ebx
je 0x4075dc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esp, [esp]
mov ecx, dword [edi + 8]
push esi
push ecx
mov ecx, edi
call fcn.00415351
push esi
call ebp
cmp word [esi + eax*2 + 2], 0
lea esi, [esi + eax*2 + 2]
jne 0x4075c0
pop ebp
pop esi
push ebx
call fcn.0041466a
xor eax, eax
add esp, 4
cmp dword [edi + 8], eax
pop ebx
setg al
ret

Function at 0x4076a0
Capabilities:
Read .ini file

Disassembly:
push ebx
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004150d0
push 0x140000
call fcn.00414675
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4076c1
pop ebx
ret
mov eax, dword [esp + 8]
push eax
push 0xa0000
push ebx
push 0
push 0
push 0x46814c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40770d
cmp word [ebx], 0
push esi
mov esi, ebx
je 0x40770c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
mov ecx, dword [edi + 8]
push esi
push ecx
mov ecx, edi
call fcn.00415351
push esi
call ebp
cmp word [esi + eax*2 + 2], 0
lea esi, [esi + eax*2 + 2]
jne 0x4076f0
pop ebp
pop esi
push ebx
call fcn.0041466a
xor eax, eax
add esp, 4
cmp dword [edi + 8], eax
pop ebx
setg al
ret

Function at 0x407720
Capabilities:
Read .ini file

Disassembly:
push ebx
push edi
push 0x140000
xor ebx, ebx
call fcn.00414675
mov edi, eax
add esp, 4
test edi, edi
jne 0x40773a
pop edi
pop ebx
ret
mov eax, dword [esp + 0xc]
push eax
push 0xa0000
push edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x407776
push esi
mov esi, edi
cmp word [edi], bx
je 0x407775
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
inc ebx
call ebp
cmp word [esi + eax*2 + 2], 0
lea esi, [esi + eax*2 + 2]
jne 0x407764
pop ebp
pop esi
push edi
call fcn.0041466a
add esp, 4
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x407880
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
mov eax, 0x1007c
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x10074], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x46df44
mov esi, edx
mov dword [esp + 0x1c], ecx
call fcn.00401f90
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4079e3
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x10], ebx
push 0
lea eax, [esp + 0x14]
push eax
push 0x10000
lea ecx, [esp + 0x8c]
push ecx
push edi
call ebp
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x80]
push edx
mov eax, ebx
lea esi, [esp + 0x1c]
call fcn.0040c070
add esp, 4
cmp ebx, 0x10000
je 0x407903
mov eax, esi
call fcn.0040c180
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esp + 0x7f]
movzx ecx, byte [esp + 0x7e]
movzx edx, byte [esp + 0x7d]
push eax
movzx eax, byte [esp + 0x80]
push ecx
movzx ecx, byte [esp + 0x83]
push edx
movzx edx, byte [esp + 0x86]
push eax
movzx eax, byte [esp + 0x89]
push ecx
movzx ecx, byte [esp + 0x8c]
push edx
movzx edx, byte [esp + 0x8f]
push eax
movzx eax, byte [esp + 0x92]
push ecx
movzx ecx, byte [esp + 0x95]
push edx
movzx edx, byte [esp + 0x98]
push eax
movzx eax, byte [esp + 0x9b]
push ecx
movzx ecx, byte [esp + 0x9e]
push edx
movzx edx, byte [esp + 0xa1]
push eax
movzx eax, byte [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push ecx
call fcn.00401e30
add esp, 0x48
mov ecx, dword [esp + 0x10084]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431fec
add esp, 0x1007c
ret
Function at 0x407a00
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x10078
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x10070], eax
push esi
push 0
mov esi, ecx
push 0x46df44
mov ecx, edi
call fcn.00401f90
push 0xffff
lea eax, [esp + 0x75]
push 0
push eax
mov byte [esp + 0x7c], 0
call fcn.00434200
add esp, 0xc
push 0
push 0
push 0xffff
lea ecx, [esp + 0x7c]
push ecx
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x70]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407aa0
sub eax, edx
lea edx, [esp + 0x70]
push edx
lea esi, [esp + 0xc]
call fcn.0040c070
mov eax, esi
call fcn.0040c180
movzx eax, byte [esp + 0x73]
movzx ecx, byte [esp + 0x72]
movzx edx, byte [esp + 0x71]
push eax
movzx eax, byte [esp + 0x74]
push ecx
movzx ecx, byte [esp + 0x77]
push edx
movzx edx, byte [esp + 0x7a]
push eax
movzx eax, byte [esp + 0x7d]
push ecx
movzx ecx, byte [esp + 0x80]
push edx
movzx edx, byte [esp + 0x83]
push eax
movzx eax, byte [esp + 0x86]
push ecx
movzx ecx, byte [esp + 0x89]
push edx
movzx edx, byte [esp + 0x8c]
push eax
movzx eax, byte [esp + 0x8f]
push ecx
movzx ecx, byte [esp + 0x92]
push edx
movzx edx, byte [esp + 0x95]
push eax
movzx eax, byte [esp + 0x98]
push ecx
push edx
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push edi
call fcn.00401e30
mov ecx, dword [esp + 0x100c0]
add esp, 0x4c
pop esi
xor ecx, esp
call fcn.00431fec
add esp, 0x10078
ret

Function at 0x407b60
Capabilities:
Create http request

Disassembly:
sub esp, 0x210
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
call fcn.00434200
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push ebx
xor edi, edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x407c12
test ebp, ebp
je 0x407bf0
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x407bf0
push ebp
push str.Host:__s_r_n
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00432d8c
lea edi, [esp + 0x24]
add esp, 0x10
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov edx, dword [esp + 0x10]
push 0
push 0x4200100
push ebx
push edi
push edx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
push esi
test edi, edi
jne 0x407c16
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x407c26
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431fec
add esp, 0x210
ret
Function at 0x407ce0
Capabilities:
Read file on windows

Disassembly:
push ecx
xor eax, eax
mov byte [esp], 0
mov word [esp + 1], ax
mov byte [esp + 3], al
test esi, esi
jne 0x407cf9
or eax, 0xffffffff
pop ecx
ret
push esi
push 2
lea eax, [esp + 8]
push 1
push eax
call fcn.00435463
add esp, 0x10
cmp eax, 2
jb 0x407de5
mov al, byte [esp]
cmp al, 0xef
jne 0x407d4e
cmp byte [esp + 1], 0xbb
jne 0x407de5
push esi
push 1
lea ecx, [esp + 0xa]
push 1
push ecx
call fcn.00435463
add esp, 0x10
cmp eax, 1
jne 0x407de5
cmp byte [esp + 2], 0xbf
jne 0x407de5
pop ecx
ret
cmp al, 0xfe
jne 0x407d64
cmp byte [esp + 1], 0xff
jne 0x407de5
mov eax, 2
pop ecx
ret
cmp al, 0xff
jne 0x407daf
cmp byte [esp + 1], 0xfe
jne 0x407de5
push esi
push 2
lea edx, [esp + 0xa]
push 1
push edx
call fcn.00435463
add esp, 0x10
cmp eax, 2
jne 0x407d9b
cmp byte [esp + 2], 0
jne 0x407d9b
cmp byte [esp + 3], 0
jne 0x407d9b
mov eax, 5
pop ecx
ret
push 0
push 2
push esi
call fcn.00435937
add esp, 0xc
mov eax, 3
pop ecx
ret
test al, al
jne 0x407de5
cmp byte [esp + 1], al
jne 0x407de5
push esi
push 2
lea eax, [esp + 0xa]
push 1
push eax
call fcn.00435463
add esp, 0x10
cmp eax, 2
jne 0x407de5
cmp byte [esp + 2], 0xfe
jne 0x407de5
cmp byte [esp + 3], 0xff
jne 0x407de5
mov eax, 4
pop ecx
ret
push 0
push 0
push esi
call fcn.00435937
add esp, 0xc
xor eax, eax
pop ecx
ret

Function at 0x407e00
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x14], ebx
je 0x407edc
test ebp, ebp
je 0x407edc
mov byte [edi], bl
mov eax, dword [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.00435463
add esp, 0x10
test eax, eax
jbe 0x407ed5
mov al, byte [esp + 0xf]
mov byte [esi + ebp], al
inc esi
cmp byte [edi], 0
jne 0x407e63
mov edx, esi
and edx, 0x80000001
jns 0x407e5a
dec edx
or edx, 0xfffffffe
inc edx
jne 0x407e63
test al, al
jne 0x407e63
mov byte [edi], 1
inc ebx
cmp al, 0xa
je 0x407e77
cmp ebx, 0x3ff
jl 0x407e20
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
cmp ebx, 0x3ff
jge 0x407ed5
mov eax, dword [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.00435463
add esp, 0x10
test eax, eax
jbe 0x407ed5
cmp byte [esp + 0xf], 0
jne 0x407ec4
mov byte [esi + ebp], 0
inc ebx
cmp byte [edi], 0
jne 0x407ed5
inc esi
and esi, 0x80000001
jns 0x407eb8
dec esi
or esi, 0xfffffffe
inc esi
jne 0x407ed5
pop esi
pop ebp
mov eax, ebx
mov byte [edi], 1
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x14]
push 1
push 0xffffffffffffffff
push edx
call fcn.00435937
add esp, 0xc
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x408850
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
xor eax, eax
push 0x46e14c
xor esi, esi
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408908
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x408901
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x408901
cmp eax, 3
jne 0x408901
push str.GetDiskFreeSpaceExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x4088e7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
shl esi, 0xa
jmp 0x408901
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push ecx
push ebp
call eax
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp eax, edi
jb 0x408920
ja 0x408916
cmp dword [esp + 0x3c], esi
jb 0x408920
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret