joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409aa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x409aea
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409b00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x228], ecx
je 0x409b2f
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409b00
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.00401b60
mov ecx, dword [ebp - 4]
mov edi, 1
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00485532
mov esp, ebp
pop ebp
ret

Function at 0x409b60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x409bb3
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409bc5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.0048652c
add esp, 8
test eax, eax
je 0x409bef
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409bc5
jmp 0x409c02
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x234]
mov dword [edx], ecx
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x409c20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 2
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409c71
lea ecx, [ebp - 0x230]
push ecx
push ebx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409c82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
push edi
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0048652c
add esp, 8
test eax, eax
jne 0x409cfa
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x228]
cmp ecx, eax
jae 0x409cdb
mov ecx, dword [esi]
lea edx, [ebp - 0x228]
cmp ecx, edx
ja 0x409cdb
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x409ccb
mov eax, esi
call fcn.0045cb30
mov eax, dword [esi + 4]
test eax, eax
je 0x409cf6
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x409cf6
cmp eax, dword [esi + 8]
jne 0x409ce7
mov eax, esi
call fcn.0045cb30
mov eax, dword [esi + 4]
test eax, eax
je 0x409cf6
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
add dword [esi + 4], 4
lea edx, [ebp - 0x230]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409c83
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x409da0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x409dd1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
push edi
push 0
push 2
mov dword [ebp - 0x234], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, 0xffffffff
je 0x409ed2
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0048ac40
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409e39
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x409e48
mov esi, dword [ebp - 0x238]
push esi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x409ebb
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409ebb
push 0
push esi
call ebx
push 0x64
push esi
mov dword [ebp - 0x234], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409eae
mov edi, edi
inc edi
cmp edi, 0xa
jg 0x409eae
push 0
push esi
call ebx
push 0x64
push esi
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409e90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409e42
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
xor ecx, ebp
pop esi
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x409ef0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea ecx, [ebp - 0x120]
push esi
push ecx
call fcn.0048ac40
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x409f8a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x40a057
mov eax, dword [ebp - 0x11c]
sub eax, 5
je 0x40a017
mov ecx, 1
sub eax, ecx
jne 0x40a057
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x409fd9
cmp byte [ebp - 6], cl
jne 0x40a057
mov esi, 5
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jne 0x409ff8
cmp byte [ebp - 6], cl
jne 0x40a057
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40a057
cmp byte [ebp - 6], cl
jne 0x40a057
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x40a048
cmp byte [ebp - 6], 1
jne 0x40a057
cmp word [ebp - 0x144], 9
jne 0x40a057
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp eax, ecx
je 0x40a032
test eax, eax
jne 0x40a057
mov esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00485532
mov esp, ebp
pop ebp
ret

Function at 0x40a0e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x40a104
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [esi + esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004844d7
add esp, 4
xor ecx, ecx
test esi, esi
je 0x40a186
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x62613938
mov dword [ebp - 8], 0x66656463
mov dword [ebp - 0x24], 0x33323130
mov dword [ebp - 0x20], 0x37363534
mov dword [ebp - 0x1c], 0x62613938
mov dword [ebp - 0x18], 0x66656463
nop
movzx edx, byte [ecx + edi]
shr edx, 4
movzx edx, byte [ebp + edx - 0x14]
mov word [eax + ecx*4], dx
movzx edx, byte [ecx + edi]
and edx, 0xf
movzx edx, byte [ebp + edx - 0x24]
mov word [eax + ecx*4 + 2], dx
inc ecx
cmp ecx, esi
jb 0x40a160
xor ecx, ecx
mov dword [eax + esi*4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x40b610
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 8
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b65d
lea eax, [ebp - 0x434]
push eax
push esi
mov dword [ebp - 0x434], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x40b670
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.0048652c
add esp, 8
test eax, eax
je 0x40b69a
lea edx, [ebp - 0x434]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40b670
jmp 0x40b69f
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x40bc50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ed4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x40bcba
push esi
call fcn.004844d7
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, eax
mov eax, dword [ecx]
push edi
push esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40bcdd
push edi
call fcn.00486c45
add esp, 4
mov esi, dword [ebp + 8]
push 0x4c4720
mov ecx, esi
call fcn.00401bb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x10]
movzx esi, word [eax]
movzx ecx, word [eax + 2]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
shl esi, 0x10
or esi, ecx
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov edx, dword [ecx]
push edx
push esi
lea eax, [ebp + 0xc]
push str.StringFileInfo_08lx_s
push eax
call fcn.00407760
mov esi, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40bd68
push edi
call fcn.00486c45
mov edi, dword [ebp + 8]
add esp, 4
push 0x4c4720
mov ecx, edi
call fcn.00401bb0
jmp 0x40bdb1
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401550
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bdb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x4ed4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0048ac40
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x68], 0x44
cmp dword [eax - 4], 1
jle 0x40bf0b
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004018f0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bf3c
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bf46
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cdb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [eax], 0x1571
mov dword [eax + 0x9c0], 1
push ebx
mov ecx, dword [eax + 0x9c0]
mov edx, dword [eax + ecx*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, ecx
mov dword [eax + ecx*4], ebx
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], 0x270
jb 0x40cdc1
pop ebx
ret
Function at 0x40cee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1f68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ed4e0]
xor eax, esp
mov dword [esp + 0x28], eax
push edi
mov eax, dword [0x4ed4e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 0x4c4834
push str._dev_urandom
mov dword [esp + 0x30], 5
call fcn.00487dab
add esp, 8
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
cmp eax, 5
jl 0x40cf5b
lea edi, [esp + 0x14]
call fcn.00418030
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + eax*4 + 0x14]
inc eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
push edx
xor eax, eax
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0040fc30
add esp, 0x10
test dword [esi], 0x80000000
mov dword [esi + 0x9c0], 0x270
jne 0x40cfa9
mov eax, 1
cmp dword [esi + eax*4], 0
jne 0x40cfa9
inc eax
cmp eax, 0x270
jb 0x40cf95
mov dword [esi], 0x80000000
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40cfba
push eax
call fcn.00487e76
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x40f2d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
sub edi, ebx
jne 0x40f2ea
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
cmp edi, 0xffffffff
jne 0x40f301
mov esi, dword [ebp + 8]
call fcn.00410220
pop esi
pop edi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x40f374
xor ecx, ecx
lea eax, [edi + 1]
xor edx, edx
div ecx
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ebx, 1
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [ebp - 4], ebx
jae 0x40f350
mov byte [ebp - 8], 0
mov edx, dword [ebp - 8]
push edx
push edi
push 0
push esi
call fcn.0040f2d0
add esp, 0x10
cmp eax, 0xffffffff
ja 0x40f320
cmp eax, edi
ja 0x40f320
add eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00410220
imul eax, ebx
add dword [ebp + 0x10], eax
mov eax, edi
sub eax, ebx
inc eax
neg ebx
cmp ebx, eax
je 0x40f36a
xor ebx, ebx
jmp 0x40f350
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ebx, eax
cmp edx, edi
jne 0x40f385
inc ebx
mov esi, dword [ebp + 8]
jmp 0x40f390
cmp dword [esi + 0x9c0], 0x270
jne 0x40f3a3
mov ecx, esi
call fcn.00411520
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [esi + 0x9c0], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div ebx
cmp eax, edi
ja 0x40f390
add eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416540
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab37b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ed4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00484a27
push 4
mov dword [ebp - 4], 0
call fcn.00485841
mov edi, eax
add esp, 4
test edi, edi
je 0x4165bc
call fcn.004848ef
mov dword [edi], eax
call fcn.004846ae
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0048453c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4165b2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00484564
jmp 0x4165be
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418030
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4fead0]
mov edx, dword [0x4fead4]
mov eax, dword [0x4feacc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x4feadc]
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov eax, dword [0x4fead8]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push edx
lea ecx, [ebp - 0x20]
lea esi, [ebp - 0x80]
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
mov dword [ebp - 0x70], 0xc3d2e1f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x84], 0x4feacc
mov dword [ebp - 0x14], eax
call fcn.004178c0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
call fcn.004178c0
push 0
call fcn.00486cea
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call fcn.004178c0
call fcn.00485f81
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.004178c0
call fcn.00488163
mov dword [ebp - 0x18], eax
call fcn.00488163
mov dword [ebp - 0x14], eax
call fcn.00488163
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004178c0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41813b
push eax
push 0x14
lea ecx, [ebp - 0x20]
push 1
push ecx
call fcn.00488134
add esp, 0x10
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.004178c0
push 4
call fcn.00485841
lea ecx, [eax + 4]
add esp, 4
push ecx
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004178c0
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004178c0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485527
add esp, 4
lea ecx, [edi + 0x14]
push ecx
mov ecx, edi
call fcn.004178c0
lea edx, [ebp - 0x20]
push edx
call fcn.00417e70
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x20]
xor dword [eax], ecx
xor dword [edi], ecx
mov ecx, dword [ebp - 0x1c]
xor dword [eax + 4], ecx
xor dword [edi + 4], ecx
mov ecx, dword [ebp - 0x18]
xor dword [eax + 8], ecx
xor dword [edi + 8], ecx
mov ecx, dword [ebp - 0x14]
xor dword [eax + 0xc], ecx
xor dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x10]
xor dword [eax + 0x10], ecx
xor dword [edi + 0x10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00485532
mov esp, ebp
pop ebp
ret
Function at 0x418b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0702
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.0048ac40
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x418bd2
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418bb4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret

Function at 0x418db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0702
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.0048ac40
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418e75
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418e57
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00401ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret

Function at 0x418e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418ea6
test al, 0x10
jne 0x418ea6
mov eax, 1
ret
xor eax, eax
ret