joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478fb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x478fee
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x478fe7
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x478ff0
add eax, 0x28
cmp eax, edi
jne 0x478fd7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x47a0e0
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret

Function at 0x47cbe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x47cff0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x47d005
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x47d017
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.0047d690
push 0x4c45c8
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x481e30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x481f2b
mov eax, dword [ebp - 0x114]
sub eax, 5
je 0x481eb2
sub eax, 1
jne 0x481ea6
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x481e8e
sub eax, 1
jne 0x481ea6
mov dword [0x4cb51c], 4
jmp 0x481ed0
mov dword [0x4cb51c], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
mov dword [0x4cb51c], 6
jmp 0x481ed0
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x481f21
sub eax, 1
je 0x481f09
sub eax, 1
je 0x481ef1
cmp dword [0x4cb51c], 4
jl 0x481e98
call fcn.0047caa0
cmp dword [0x4cb51c], 6
jl 0x481e98
call fcn.0048c680
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
mov dword [0x4cb51c], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x4cb51c], 1
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
mov dword [0x4cb51c], 0
lea ecx, [ebp - 0x124]
call fcn.0047d6d0
push 0x4c4854
lea eax, [ebp - 0x124]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x484220
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor edx, edx
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi]
mov eax, dword [esi + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x48427b
mov ecx, dword [edi]
lea esp, [esp]
cmp dword [eax + 4], ecx
je 0x484283
mov eax, dword [eax]
test eax, eax
jne 0x484270
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x48427d
mov ecx, dword [eax + 8]
pop edi
mov dword [edx], ecx
pop esi
pop ebp
ret 8
Function at 0x4854d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor edx, edx
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi]
mov eax, dword [esi + 8]
lea ebx, [edx*4]
mov eax, dword [ebx + eax]
test eax, eax
je 0x48552f
mov ecx, dword [edi]
cmp dword [eax + 4], ecx
je 0x485557
mov eax, dword [eax]
test eax, eax
jne 0x485524
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
mov dword [ebp + 8], edx
test edx, edx
je 0x485560
mov dword [edx], 0
mov eax, dword [edi]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edx + 8], eax
jmp 0x485562
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
xor edx, edx
mov ecx, dword [esi + 8]
mov eax, edx
pop edi
mov ecx, dword [ebx + ecx]
mov dword [edx], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + ecx], edx
inc dword [esi + 4]
pop esi
pop ebx
pop ebp
ret 8

Function at 0x487170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab714
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c8104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x54]
mov dword [esi + 0x1c], eax
mov al, byte [ebp + 0xc]
mov dword [esi], vtable.Concurrency::details::ContextBase.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [esi + 0x4c], al
mov dword [ebp - 4], 0
mov dword [esi + 0x50], 0
call fcn.0047a730
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
push 0x1c
mov dword [esi + 0x80], 7
mov dword [esi + 0x84], 0
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esi + 0x80]
shl ecx, 2
push ecx
push 0
push eax
mov dword [esi + 0x88], eax
call sub.msvcrt.dll_memset
push 0x10
mov byte [ebp - 4], 1
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
add esp, 0x14
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x1c]
mov byte [ebp - 4], 2
call fcn.004849c0
mov ecx, dword [esi + 0x1c]
mov dword [esi + 8], eax
push eax
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push 4
push 1
mov ecx, esi
call fcn.00488770
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x488560
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ebx
mov edx, dword [ebx + 0x80]
test edx, edx
jle 0x488594
mov esi, dword [ebx + 0x88]
mov ecx, esi
cmp dword [ecx], edi
jne 0x488664
inc eax
add ecx, 4
cmp eax, edx
jl 0x488584
xor eax, eax
mov dword [ebp - 8], eax
test eax, eax
je 0x4886c4
mov esi, dword [eax]
test esi, esi
jne 0x4885d6
mov edx, dword [ebx + 0x80]
inc edi
mov eax, edi
cmp edi, edx
jge 0x4885d1
mov esi, dword [ebx + 0x88]
lea ecx, [esi + edi*4]
lea ecx, [ecx]
cmp dword [ecx], 0
jne 0x48866e
inc eax
add ecx, 4
cmp eax, edx
jl 0x4885c0
xor esi, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
call fcn.00489ca0
test al, al
je 0x4886b7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00489cb0
mov ebx, eax
movzx ecx, bl
xor ecx, 0x811c9dc5
mov dword [ebp - 8], ebx
movzx eax, byte [ebp - 6]
imul edx, ecx, 0x1000193
movzx ecx, bh
xor edx, ecx
imul ecx, edx, 0x1000193
xor edx, edx
xor ecx, eax
movzx eax, byte [ebp - 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 4]
div dword [ecx + 0x80]
mov eax, dword [ecx + 0x88]
lea eax, [eax + edx*4]
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [eax]
test eax, eax
je 0x488697
lea esp, [esp]
mov ecx, dword [eax]
cmp dword [eax + 4], ebx
je 0x488678
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x488650
mov ebx, dword [ebp - 4]
jmp 0x488699
mov edi, eax
mov eax, dword [esi + eax*4]
jmp 0x488596
mov esi, dword [esi + eax*4]
mov edi, eax
jmp 0x4885d3
test edx, edx
jne 0x48867f
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
push 0xc
mov dword [edx], ecx
push eax
dec dword [ebx + 0x84]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
jmp 0x488699
mov ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4886b7
mov ecx, eax
call fcn.00488bc0
push 0x90
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, esi
mov dword [ebp - 8], eax
test esi, esi
jne 0x4885a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48ba80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab348
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c8104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x20]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0047ab80
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
call dword [eax]
mov edx, dword [edi + 0x10]
lea edi, [ebx + 8]
imul ecx, dword [ebx + 0x30], 0x34
imul eax, eax, 0x34
mov edx, dword [edx + eax + 0x30]
dec dword [edx + ecx + 0xc]
add edx, ecx
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x34]
mov dword [ecx + 0x34], eax
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [edx + 0x10]
cmp edi, eax
jne 0x48bb09
cmp eax, dword [eax + 0x38]
jne 0x48bb03
xor eax, eax
jmp 0x48bb06
mov eax, dword [eax + 0x34]
mov dword [edx + 0x10], eax
cmp byte [ebx + 0x45], 0
jne 0x48bb18
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x9c]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0047ae30
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x24]
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 0x48ce80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abb48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c8104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0x4cb558
mov eax, 1
mov esi, 0x4cb558
xchg dword [esi], eax
test eax, eax
je 0x48cf80
xor eax, eax
mov ecx, 0x47d4d0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp eax, 4
ja case.default.0x48ced9
jmp dword [eax*4 + 0x48d0d0]
pause
sub dword [ebp - 0x20], 1
jne case.default.0x48ced9
mov eax, dword [ebp - 0x1c]
neg eax
sbb eax, eax
add eax, 3
mov dword [ebp - 0x18], eax
jmp case.default.0x48ced9
sub dword [ebp - 0x1c], 1
jne case.0x48ced9.4
mov dword [ebp - 0x18], 3
call ecx
jmp case.default.0x48ced9
mov dword [ebp - 0x18], 0
call fcn.0047afe0
test eax, eax
jne 0x48cf25
mov dword [ebp - 0x18], 4
jmp case.default.0x48ced9
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
jmp case.default.0x48ced9
mov dword [ebp - 0x18], 0
call fcn.0047afe0
test eax, eax
jne 0x48cf51
mov dword [ebp - 0x18], 4
jmp 0x48cf62
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x20]
call fcn.0047aec0
mov eax, 1
xchg dword [esi], eax
test eax, eax
je 0x48cf80
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x48ced0
cmp dword [0x4cb590], 0
mov dword [ebp - 4], 0
jne 0x48d0b4
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x48d071
push 0x800
push 0
push str.advapi32.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x48cfe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x48d065
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48d065
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegisterTraceGuidsW
push ebx
call esi
push eax
call fcn.0047d0d0
add esp, 4
mov dword [edi], eax
push str.UnregisterTraceGuids
push ebx
call esi
push eax
call fcn.0047d0d0
add esp, 4
mov dword [edi + 4], eax
push str.TraceEvent
push ebx
call esi
push eax
call fcn.0047d0d0
add esp, 4
mov dword [edi + 8], eax
push str.GetTraceLoggerHandle
push ebx
call esi
push eax
call fcn.0047d0d0
add esp, 4
mov dword [edi + 0xc], eax
push str.GetTraceEnableLevel
push ebx
call esi
push eax
call fcn.0047d0d0
add esp, 4
mov dword [edi + 0x10], eax
push str.GetTraceEnableFlags
push ebx
call esi
push eax
call fcn.0047d0d0
add esp, 4
mov dword [edi + 0x14], eax
mov byte [ebp - 4], 0
mov dword [0x4cb590], edi
jmp 0x48d07d
mov dword [0x4cb590], 0
xor edi, edi
mov esi, dword [edi]
push 0
call fcn.0047d0d0
add esp, 4
cmp esi, eax
je 0x48d0b4
push esi
call fcn.0047d0d0
add esp, 4
push 0x4cb578
push 0
push 0
push 0x4c8174
push 7
push 0x4b25fc
push 0
push 0x48cce0
call eax
mov dword [0x4cb558], 0
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 0x492840
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [edi + 8], eax
mov dword [edi + 0x100], edx
mov eax, dword [edi + 0xc]
xor eax, dword [ecx]
and eax, 0xfffffff
xor dword [edi + 0xc], eax
mov eax, dword [ecx]
xor eax, dword [edi + 0xc]
and eax, 0xfffffff
xor eax, dword [ecx]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x18], eax
lea eax, [ebp - 0xc]
mov dword [edi + 0x110], 0
mov dword [edi + 0x11c], 1
mov ecx, dword [edx + 4]
push eax
call fcn.004846e0
push dword [edi + 0x20]
lea ebx, [edi + 0x1c]
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp + 0x10]
add esp, 8
mov eax, dword [ecx]
and eax, 0xfffffff
cmp eax, 3
jne 0x492957
mov ebx, dword [ecx + 8]
xor edx, edx
mov esi, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, ebx
mov esi, dword [esi + 4]
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi + 0x168]
mov eax, dword [esi + 0x170]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x49294e
cmp dword [eax + 4], ebx
je 0x49297b
mov eax, dword [eax]
test eax, eax
jne 0x492943
mov eax, dword [ebp - 4]
mov dword [edi + 0x24], eax
lea ebx, [edi + 0x1c]
push ebx
lea ecx, [edi + 0x38]
call fcn.00492170
cmp dword [edi + 0x48], 0
je 0x492972
mov ecx, dword [edi + 0x48]
add ecx, 4
push ebx
call fcn.00492170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax + 8]
jmp 0x492951

Function at 0x494400
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4cb594], eax
cmp eax, 0xffffffff
je 0x49441a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49442c
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.0047d690
push 0x4c45c8
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x495f40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0xfffffff
cmp eax, 3
ja case.default.0x495f56
jmp dword [eax*4 + 0x495ff4]
push ebx
mov ebx, dword [edx + 8]
xor edx, edx
movzx eax, bl
xor eax, 0x811c9dc5
push esi
mov esi, dword [ecx + 0xc]
imul ecx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x495fbb
nop
cmp dword [eax + 4], ebx
je 0x495fbd
mov eax, dword [eax]
test eax, eax
jne 0x495fb0
xor eax, eax
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 4
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x2c]
cmp eax, dword [edx + 8]
sete al
pop ebp
ret 4
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
sete al
pop ebp
ret 4
mov al, 1
pop ebp
ret 4
xor al, al
pop ebp
ret 4

Function at 0x4980d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4980f7
mov ecx, 5
int 0x29
push 2
call fcn.0047a3a0
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x498202
test esi, esi
jne 0x498202
push 2
call fcn.0047a3a0
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
Function at 0x4984d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
jns 0x49859a
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ecx + 0x20]
cmp edi, eax
je 0x4984ff
lea eax, [ecx + 0x40]
cmp edi, eax
jne 0x49859a
push edi
call fcn.00498450
mov eax, dword [sym.imp.msvcrt.dll__iob]
add esp, 4
add eax, 0x20
cmp edi, eax
jne 0x498520
mov esi, 0x4cb5e8
mov eax, 0x4cb5ec
jmp 0x49852a
mov esi, 0x4cb5e9
mov eax, 0x4cb5f0
cmp byte [esi], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
je 0x49857a
push edi
mov byte [eax + 1], bl
call fcn.0049c2d0
push edi
push 2
mov byte [ebp - 8], al
mov eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
push dword [ebp - 8]
mov esi, eax
call fcn.0049c380
push edi
call fcn.00498490
mov eax, dword [ebp - 4]
add esp, 0x20
mov byte [eax], 0
test esi, esi
jne 0x498571
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll___pctype_func
movzx ecx, bl
cmp word [eax + ecx*2], 0
jge 0x49859a
mov eax, dword [ebp + 8]
pop edi
mov byte [esi], 1
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x498620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 0x20]
cmp edi, eax
je 0x498651
lea eax, [ecx + 0x40]
cmp edi, eax
je 0x498651
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop edi
pop ebp
ret
push esi
push edi
call fcn.00498450
push edi
call fcn.0049c2d0
push edi
push dword [ebp + 0x10]
mov byte [ebp + 0x14], al
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
push dword [ebp + 0x14]
movzx esi, ax
call fcn.0049c380
push edi
call fcn.00498490
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x49b140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac030
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x49b31a
mov edi, 0x5c
jmp 0x49b190
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x4cb600]
lea ecx, [eax*4 + 0x4cb600]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x49b1b8
cmp esi, 0xffffffff
jne 0x49b347
jmp 0x49b30f
mov esi, dword [eax*4 + 0x4b2cd8]
cmp byte [0x4cb5f8], 0
mov dword [ebp - 4], 0
je 0x49b1ed
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x49b2ff
test esi, esi
je 0x49b2fd
cmp word [esi], 0
je 0x49b2fd
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49b2f4
cmp eax, 0x200
jae 0x49b2f4
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x49b2f4
movzx ecx, word [esi]
test cx, cx
je 0x49b264
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x49b2f4
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x49b242
add eax, eax
cmp eax, 0x400
jae 0x49b34b
mov edi, dword [0x4c8104]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x4cb5fc]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x49b2d0
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x49b2ff
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x49b2ff
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x49b338
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x49b190
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x49b347
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x49b31c
call fcn.00479f70
int3