joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59e660
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d4488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.005d6564]
push 0
lea ecx, [esp + 0x20]
call fcn.005cc297
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0059e000
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.005cc1c5
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.005c8a89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.005c8a89
push 1
push 0
push 0
mov ecx, esi
call fcn.005c8a31
push 1
push 0
push 1
mov ecx, esi
call fcn.005c8a31
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005cc309
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x59e7e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d44a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005cc297
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0059e000
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.005cc1c5
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.005d6564]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x59e8a4
cmp dword [esp + 0x40], 1
jne 0x59e8a2
cmp ecx, eax
jge 0x59e8a4
mov eax, ecx
cmp eax, 0xc8
jge 0x59e8b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0059e660
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.005d6560]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005cc309
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x59f020
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d4513
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005c6ea7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x6f76f0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x6f5870
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [fcn.005d6064]
push eax
mov ecx, edi
call fcn.005cc53f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005cdb98
test eax, eax
je 0x59f13c
mov ecx, dword [esp + 0x3c]
call fcn.005cc56c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.005d6584]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x59f100
push edi
mov ecx, esi
call fcn.005c9bd9
mov ecx, esi
call fcn.0059f2a0
cmp dword [esp + 0x38], 1
jne 0x59f135
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.005c9d14
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x5a1b60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x5a1b93
push esi
call fcn.005a4c50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5a1b8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5a1c19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5a1c02
mov eax, dword [esi + 8]
test eax, eax
je 0x5a1bb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5a1bfe
cmp eax, 2
je 0x5a1c02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5a1baa
cmp eax, 3
je 0x5a1bdd
cmp eax, 1
jne 0x5a1baa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5a1baa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5a1baa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005a1c40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5a1c28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.005a1c40
add esp, 4
pop esi
ret
Function at 0x402b00
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df84f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], esp
mov ebx, 1
push 0x517348
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004d38eb
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 3
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x402bae
mov esi, dword [ebp + 8]
push 0x517348
mov ecx, esi
call fcn.004d38eb
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004d387d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402c7d
mov al, byte [ecx - 1]
test al, al
je 0x402c73
cmp al, 0xff
je 0x402c73
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x11c]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402c0d
lea edx, [ebp - 0x11c]
lea eax, [ebp + 0x1c]
push edx
push eax
call fcn.004028b0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004d39b6
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004d387d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402c21
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004d35f2
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], bl
or ecx, ebx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
call fcn.004d387d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402c7d
mov al, byte [ecx - 1]
test al, al
je 0x402c73
cmp al, 0xff
je 0x402c73
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.004d35e7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403770
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x120]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x403896
push edi
call fcn.004d35be
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40388d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40382f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40382f
mov ecx, dword [esp + 0x12c]
push eax
call fcn.004d3a06
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xc], 0
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xProductVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403889
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403889
mov ecx, dword [esp + 0x130]
push eax
call fcn.004d3a06
test esi, esi
je 0x403896
push esi
call fcn.004d35e7
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x118
ret

Function at 0x4038a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x4038ea
cmp byte [eax], 0
je 0x4038ea
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4038ea
cmp esi, 0xffffffff
je 0x4038ea
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x4054a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
push 0
push 2
mov dword [esp + 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov eax, dword [0x507440]
xor edi, edi
cmp eax, 0xf
jge 0x4054d1
inc eax
mov edi, 1
mov dword [0x507440], eax
lea eax, [esp + 0x24]
push ebp
push eax
push ebx
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32First
mov ecx, dword [0x5175b0]
mov dword [esp + 0x1c], eax
call fcn.00434740
mov ecx, eax
mov eax, 0xc22e4507
add ecx, 0x7080
imul ecx
mov eax, dword [0x517364]
add edx, ecx
sar edx, 0x10
mov ecx, edx
push eax
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [eax]
mov ebp, edx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x517360
call fcn.00407c40
cmp edi, 1
jne 0x405546
mov eax, dword [0x51737c]
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, 0x517378
call fcn.00407140
mov ecx, dword [0x51737c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x4055eb
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, 0x517360
call fcn.00407600
cmp dword [0x5173bc], 1
je 0x4055cc
cmp edi, 1
je 0x4055cc
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x4055cc
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x4055af
mov ecx, esi
call fcn.00402d70
cmp eax, 0xe10
jb 0x4055af
mov ecx, esi
call fcn.00402e40
jmp 0x4055cc
push ebp
mov ecx, esi
call fcn.00402e10
test al, al
je 0x4055cc
mov ecx, esi
call fcn.00402e40
mov dword [esi + 0x8c], 0
lea ecx, [esp + 0x10]
call fcn.00408480
mov eax, dword [esp + 0x10]
mov ecx, dword [0x51737c]
cmp eax, ecx
jne 0x40555a
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
pop ebp
test eax, eax
je 0x40561d
cmp dword [0x5173bc], 1
je 0x40561d
cmp edi, 1
je 0x40561d
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.004038f0
lea eax, [esp + 0x24]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4055f4
call fcn.00404b30
test ebx, ebx
je 0x40562d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x405640
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dfca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.004d38eb
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
call fcn.004d3d91
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00406740
lea edx, [esp + 0x14]
mov ecx, 0x517390
push edx
mov byte [esp + 0x30], 1
call fcn.00409bf0
mov ecx, dword [0x517394]
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x4056e0
add eax, 0xc
lea ecx, [esp + 0x14]
push eax
call fcn.0040a3a0
test eax, eax
jl 0x4056e0
lea eax, [esp + 0xc]
jmp 0x4056ed
mov eax, dword [0x517394]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x405714
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40570b
cmp al, 0xff
je 0x40570b
dec al
mov byte [ecx], al
jmp 0x405714
push ecx
call fcn.004d35e7
add esp, 4
mov eax, dword [0x517394]
pop edi
cmp esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
pop esi
pop ebx
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
je 0x405751
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call fcn.004d387d
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x405770
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x28
mov edx, dword [0x508730]
mov eax, dword [str.SeDebugPrivilege]
mov ecx, dword [0x50872c]
mov dword [esp + 0x1c], edx
lea edx, [esp]
mov dword [esp + 0x14], eax
mov eax, dword [0x508734]
mov dword [esp + 0x18], ecx
mov cl, byte [0x508738]
push edx
push 0x28
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405826
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4057e0
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0x10
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40581b
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret

Function at 0x40a4e0
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 0xc]
test edx, edx
jne 0x40a4ff
push eax
push 0
push ecx
push 0x40a500
push 0
push 0
call fcn.004ae155
add esp, 0x18
ret
Function at 0x40a8b0
Capabilities:
Enumerate internet cache

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
push 0
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40a8fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40a903
push esi
call fcn.004d35e7
mov eax, dword [edi]
push eax
call fcn.004d35be
mov ecx, dword [edi]
add esp, 8
mov esi, eax
push edi
push esi
push 0
mov dword [esi], ecx
call ebp
mov ebx, eax
test ebx, ebx
je 0x40a8ce
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push ebx
cmp eax, 0x103
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40bf90
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x40c4c0
push 0
push 0
call fcn.004ae155
add esp, 0x1c
ret
Function at 0x40cb10
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e0238
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x12c]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x40cbcb
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x40cb7c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cbcb
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40cb9f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
jmp 0x40cbcb
mov cl, byte [esi + 3]
mov dl, byte [esi + 2]
mov al, byte [esi + 1]
mov dword [esp + 0x10], 0
mov byte [esp + 0x10], cl
mov cl, byte [esi]
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov ebp, dword [esp + 0x10]
cmp ebp, 0x64
jbe 0x40cbe5
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], edi
call fcn.004d387d
xor eax, eax
jmp 0x40ccbf
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [esi + ebp + 0xc]
lea eax, [esp + 0x1c]
push str.mvhd
push eax
mov dword [esp + 0x24], edx
call fcn.004af770
add esp, 8
test eax, eax
je 0x40cc43
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d387d
xor eax, eax
jmp 0x40ccbf
mov dl, byte [esi + ebp + 0x1f]
mov al, byte [esi + ebp + 0x1e]
mov cl, byte [esi + ebp + 0x1d]
mov byte [esp + 0x14], dl
mov dl, byte [esi + ebp + 0x1c]
mov byte [esp + 0x15], al
mov al, byte [esi + ebp + 0x23]
mov byte [esp + 0x16], cl
mov cl, byte [esi + ebp + 0x22]
mov byte [esp + 0x17], dl
mov dl, byte [esi + ebp + 0x21]
mov byte [esp + 0x10], al
mov al, byte [esi + ebp + 0x20]
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
call esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d387d
mov eax, edi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x411890
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4e075b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x517418
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4118f2
push 0x50
call fcn.004d35be
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4118de
mov ecx, eax
call fcn.0041fe30
jmp 0x4118e0
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esi + 4], eax
call fcn.004201a0
push 0
push 0
push esi
push 0x411a60
push 0
push 0
call fcn.004ae155
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x4121a0
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x210
push edi
mov edi, dword [esp + 0x218]
push edi
mov dword [esp + 0x10], ecx
call fcn.00412100
cmp eax, 1
jne 0x4121c7
pop edi
add esp, 0x210
ret 4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push ebp
push esi
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x11b]
mov cl, byte [esp + ecx + 0x11b]
cmp cl, 0x5c
je 0x412219
cmp cl, 0x2f
jne 0x41221b
mov byte [eax], bl
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
mov ecx, 0x40
cmp edx, ebx
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
jle 0x4122e4
mov al, byte [esp + ebp + 0x11c]
cmp al, 0x5c
je 0x412258
mov byte [esp + 0x12], al
jmp 0x41227d
lea eax, [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x412278
lea ecx, [esp + 0x1c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [esp + 0x12], 0x5c
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x13], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jne 0x4122d7
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4122d7
lea edx, [esp + 0x1c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x412247
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.00412100
neg eax
pop esi
pop ebp
sbb eax, eax
pop ebx
neg eax
pop edi
add esp, 0x210
ret 4