joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd593
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.004313ca
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.00408e13
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c7d30
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c7d30
push 0x4dfeb0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407e20
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040805a
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.0046ed34
mov eax, dword [ebp + 8]
jmp 0x4c7e18
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4c7d51
jmp 0x4c7dd7
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x224]
push ecx
call fcn.0049cede
add esp, 4
test eax, eax
je 0x4c7d95
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00408020
lea eax, [ebp - 0x230]
call sym.installer.exe_protected_virtual:_void___thiscall_kbase::kxThreadBase_class_kbase::Locker_::BeginThreadFun_void_
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4c7dd7
lea eax, [ebp - 0x230]
call fcn.0040a934
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00407ca8
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040805a
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.0046ed34
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a0fe3
mov esp, ebp
pop ebp
ret
Function at 0x4c8590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd8b3
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.0040a8e2
movzx eax, al
test eax, eax
jne 0x4c8601
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.0040a8e2
movzx ecx, al
test ecx, ecx
jne 0x4c8601
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.0040a8e2
movzx edx, al
test edx, edx
je 0x4c8608
xor eax, eax
jmp 0x4c87aa
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.0040a934
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4c8667
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4c87aa
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.0040a934
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4c87a8
cmp dword [ebp - 0x10], 1
je 0x4c86f7
cmp dword [ebp - 0x10], 2
jne 0x4c87a8
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.00407e20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004c7e40
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.00407cd7
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00409f61
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.0040a934
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.00407cd7
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00409f61
lea edx, [ebp - 0x234]
push edx
call fcn.004c6730
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040805a
mov eax, dword [ebp - 0x238]
jmp 0x4c87aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a0fe3
mov esp, ebp
pop ebp
ret 4
Function at 0x4c8b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040a8e2
movzx eax, al
test eax, eax
je 0x4c8baf
xor eax, eax
jmp 0x4c8c02
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040a934
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4c8bce
xor eax, eax
jmp 0x4c8c02
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4c8bee
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040a934
push eax
call fcn.004c8820
add esp, 4
jmp 0x4c8c02
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040a934
push eax
call fcn.004c7710
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4caf80
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd24d
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.00407e20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
call fcn.00408e4a
cmp eax, 3
jl 0x4cb034
mov ecx, 3
lea edx, [ebp - 0x66c]
lea eax, [ebp - 0x228]
call fcn.004084af
mov dword [ebp - 0x698], eax
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x69c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x69c]
lea edi, [ebp - 0x228]
call fcn.00406fea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x66c]
call fcn.0040805a
mov dword [ebp - 0x668], 0x104
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x444], 0x104
mov ecx, dword [ebp - 0x444]
push ecx
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x668]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea eax, [ebp - 0x228]
call fcn.0040a934
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x4cb0dc
mov dword [ebp - 0x670], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0040805a
mov eax, dword [ebp - 0x670]
jmp 0x4cb115
mov edx, dword [ebp - 0x44c]
push edx
push 0x4df894
mov eax, dword [ebp + 8]
call fcn.004085c1
add esp, 8
mov dword [ebp - 0x674], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0040805a
mov eax, dword [ebp - 0x674]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0fe3
mov esp, ebp
pop ebp
ret
Function at 0x4cc4a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce033
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50518c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
call fcn.004c8ab0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4cc4eb
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4cc4f0
jmp 0x4cc5ab
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cc503
jmp 0x4cc5ab
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004c72a0
test eax, eax
jne 0x4cc518
jmp 0x4cc5ab
lea ecx, [ebp - 0x34]
call fcn.00480c20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004c94e0
test eax, eax
jne 0x4cc542
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00476730
jmp 0x4cc5ab
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00480c50
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004cc300
add esp, 0x14
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
call fcn.00408e4a
push eax
lea eax, [ebp - 0x38]
call fcn.0040a934
push eax
push pe_nt_image_headers32
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049ffbc
add esp, 0x10
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x38]
call fcn.0040805a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00476730
xor edx, edx
jne 0x4cc4db
lea ecx, [ebp - 0x20]
call fcn.004c6890
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004c6ac0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100080c7
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100080c7
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100080c7
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100080c7
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100080c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100080c7
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100080c7
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100080c7
push 0xd008
push edi
call fcn.100080c7
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100080c7
int3

Function at 0x100080c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x100080d6
pop dword [ebp - 0x3c]
mov eax, 0xc475bc7f
sub eax, 0xb4753ba9
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3708e
push 0
mov eax, 0x4ce165d5
sub eax, 0x3ce02571
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x1703895c
sub ecx, 0x1703493b
mov edi, eax
mov ebx, 0x87d9169e
sub ebx, 0x77d7909e
add ebx, dword [ebp - 0x3c]
mov esi, 0xaf735159
add dword [ebp - 0x10], ecx
mov edx, dword [ebx]
sub dword [ebp - 0x18], 0x9987bef0
xor edx, esi
add dword [ebp - 0x34], eax
mov dword [edi], edx
xor dword [ebp - 0x2c], 0x3f9c535b
add edi, 0x2aa35559
add edi, 0xd55caaab
add ebx, 4
loop 0x1000812f
add eax, 0x5fb04d86
sub eax, 0x5faf5a2f
xor ebx, ebx
add ebx, eax
add eax, 0xe742a2d9
add eax, 0x18bd5d2c
mov ecx, 0x5ab6e34c
sub ecx, 0x4ab6e34c
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401040
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4267e9
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
mov dword [esi], vtable.CDVMFileIO.0
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
mov dword [ebp - 0x238], esi
mov word [edi], cx
push eax
push 0x23
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 4], eax
push eax
mov dword [esi + 4], 0x23
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test ebx, ebx
je 0x401171
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea edx, [eax + 2]
jmp 0x4010e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00401ac0
push 1
mov eax, 0x42953c
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401990
mov eax, ebx
lea edx, [eax + 2]
jmp 0x401120
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401120
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [ebp - 0x234]
call fcn.00401990
push 0
lea ecx, [ebp - 0x234]
push ecx
or eax, 0xffffffff
mov ecx, edi
call fcn.00401800
cmp dword [ebp - 0x220], 8
jb 0x401169
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x238]
jmp 0x401173
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ffa
mov esp, ebp
pop ebp
ret
Function at 0x401400
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426e71
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x433018]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x433018]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
add eax, 8
push ebx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2d8], ebx
call fcn.00401800
push 1
mov eax, 0x42953c
lea ecx, [esp + 0x38]
call fcn.00401990
push ebx
lea eax, [esp + 0x38]
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00401800
push 1
mov eax, 0x429540
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], 1
call fcn.00401990
cmp esi, ebx
je 0x4014eb
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4014d0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.00401990
mov eax, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x4014fe
lea eax, [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
test byte [esp + 0x6c], 0x10
jne 0x401595
xor edx, edx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
push ebx
lea eax, [esp + 0x38]
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x58]
mov byte [esp + 0x2d8], 2
call fcn.00401800
lea eax, [esp + 0x98]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401550
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x54]
call fcn.00401990
lea ecx, [esp + 0x50]
call fcn.004016c0
mov byte [esp + 0x2d0], 1
cmp dword [esp + 0x64], esi
jb 0x401595
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40150e
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], esi
jb 0x4015cc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
cmp dword [esp + 0x48], esi
jb 0x4015f3
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.00424ffa
mov esp, ebp
pop ebp
ret 4
Function at 0x4022a0
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [ebx + 0x10]
mov eax, 0xcccccccd
mul edi
shr edx, 3
xor ecx, ecx
inc edx
mov esi, 0x811c9dc5
test edi, edi
je 0x4022de
jmp 0x4022c0
cmp dword [ebx + 0x14], 8
jb 0x4022ca
mov eax, dword [ebx]
jmp 0x4022cc
mov eax, ebx
movzx eax, word [eax + ecx*2]
imul esi, esi, 0x1000193
add ecx, edx
xor esi, eax
cmp ecx, edi
jb 0x4022c0
pop edi
mov eax, esi
pop esi
ret

Function at 0x4024a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
test eax, eax
je 0x4024ee
cmp word [eax], 0
je 0x4024ee
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x4024ee
cmp dword [ebp - 4], 1
jne 0x4024de
mov eax, dword [edi]
push 0x4333a4
call fcn.00402b50
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x4333b4], 0
jne 0x4024f6
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x433210
push 0x67
push esi
call edi
push 0x64
push 0x4332d8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00402ad0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x433210
push 0x4332d8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x4024ee
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [0x4333b8], 8
mov eax, dword [0x4333a4]
jae 0x402570
mov eax, 0x4333a4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
push 1
push 2
mov dword [0x4333a0], eax
call esi
push 1
push 0x800a
call esi
push 1
push 0x4a
call esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
je 0x4025dd
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, edi
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x20]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
jne 0x4025c0
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406090
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
cmp eax, dword [esi + 8]
jb 0x4060ba
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4060ba
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xff
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x4060e6
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4060e6
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xfe
inc dword [esi + 0xc]
pop edi
ret

Function at 0x406230
Capabilities:
Write file on windows

Disassembly:
add dword [edi + 0x10], 0xfffffff8
mov eax, dword [edi + 0x10]
cmp dword [eax], 0
push esi
je 0x406265
mov eax, dword [edi]
mov esi, dword [eax]
push 0xa
call fcn.004079f0
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
movzx ecx, word [edi + 0x20]
mov edx, dword [edi]
shr eax, 3
imul eax, dword [edi + 0x24]
push ecx
push edx
call fcn.00407a60
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax]
push 0x7d
call fcn.004079f0
mov ecx, dword [edi + 0x10]
add esp, 4
cmp ecx, dword [edi + 0xc]
jne 0x4062a1
mov edx, dword [edi]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4062a1
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov al, 1
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426223
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x433018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor edi, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x400
mov byte [ebp - 4], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x18], edi
jne 0x406342
push 0x14
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x40633a
mov dword [eax], edi
mov dword [eax + 4], 0x10000
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x40633c
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 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 4