joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300013fc
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push edx
add byte [ebp], al
pop esp
add byte [ebp], cl
imul eax, dword [eax], 0x720063
outsd dx, dword [esi]
add byte [ebx], dh
outsd dx, dword [esi]
add byte [esi], ah
je 0x30001394
pop esp
add byte [edi], cl
add byte [esi], ah
imul eax, dword [eax], 0x650063
pop esp
add byte [eax + eax + 0x65], al
add byte [eax + eax + 0x69], ch
add byte [esi], dh
add byte gs:[edx], dh
jns 0x300013b4
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0x10]
ja 0x300013fa
cmp esi, dword [esp + 8]
jae 0x300013c9
mov dword [esp + 8], esi
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0xc]
jbe 0x300013d8
mov dword [esp + 0xc], eax
push 0x8000
push 0
push esi
call sym.imp.KERNEL32.dll_GetSystemInfo
test eax, eax
jne 0x300013f3
mov dword [0x40a5b0], 1
mov eax, ebx
call sym.imp.KERNEL32.dll_GetTempPathA
mov ebx, edi
cmp ebx, 0x40a5d4
jne 0x300013ab
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x3000142c
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x30005008
Capabilities:
Query or enumerate registry key

Disassembly:
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ecx]
jae 0x300050b0
add byte [eax], al
add byte [eax], al
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
push ecx
push dword [ebp - 0x124]
lea ecx, [ebp - 0x104]
push ecx
push edi
call dword [eax + 4]
mov ebx, eax
cmp ebx, esi
jl 0x300050d3
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x120]
inc dword [ebp - 0x10c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x108]
cmp eax, esi
je 0x3000506e
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x108], esi
inc dword [ebp - 0x118]
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x114], 0x80
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
je 0x30004ff6
cmp eax, esi
jle 0x300050be
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, 0x80070103
jne 0x300050cc
xor ebx, ebx
jmp 0x300050d3
cmp ebx, esi
jl 0x300050d3
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x108]
cmp eax, esi
je 0x300050ed
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x11c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.30014af0
leave
ret 0x10
Function at 0x30006068
Capabilities:
Get disk information

Disassembly:
mov esi, dword [ebp + 8]
lea eax, [esi + 0x10]
push edi
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
je 0x30006097
mov edi, 0x80004004
jmp 0x300061c5
add dword [eax], eax
invalid
mov eax, dword [esi + 0x150]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x10]
mov edi, eax
cmp edi, 1
jne 0x300060b6
mov edi, 0x80070006
cmp edi, ebx
jl 0x3000619c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x30001de0
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x3000619c
mov eax, dword [esi + 0x14c]
mov edi, dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push eax
add edi, 0x10
call dword [ecx + 4]
push eax
push dword [esi + 0x14c]
call dword [edi]
mov edi, eax
cmp edi, 1
jne 0x30006103
mov edi, 0x8000ffff
cmp edi, ebx
jl 0x3000619c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x30006140
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jle 0x3000613e
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x3000619c
xor esi, esi
xor eax, eax
add al, ch
out dx, al
invalid
add dword [ebx], esi
ror byte [ecx - 0x3fcca9bd], 0x89
inc ebx
pop edx

Function at 0x30006144
Capabilities:
Get disk information

Disassembly:
inc eax
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x20]
test ecx, eax
je 0x3000618a
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x3000617b
cmp eax, 2
jne 0x3000618a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebx + 0x41], eax
push 0
push 0
lea eax, [ebx + 0x41]
push eax
push 0
mov eax, dword [ebx + 0x3d]
push eax
push esi
call fcn.30004110
mov dword [ebx + 0x20], eax
push esi
push 0
call 0x30004190
cmp dword [ebx + 0x20], 0
je 0x300061d2
mov ecx, dword [ebx + 0x45]
mov edx, dword [ebx + 0x41]
mov eax, edi
call fcn.3000254c
cmp byte [ebx + 0x72], 0
jne 0x300061c2
mov eax, edi
call int.30002468
mov byte [ebx + 0x72], 1
xor eax, eax
mov dword [ebx + 0x56], eax
xor eax, eax
mov dword [ebx + 0x5a], eax
jmp 0x300061d5
mov dword [ebx + 0x41], edi
mov esi, dword [ebx + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401981
lea eax, [ebp - 0x404]
push eax
call fcn.00401981
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x10019ea
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
je 0x1001a54
lea eax, [ebp - 0xc]
push eax
push 0x1001244
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1001a4b
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80010002
push 1
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
pop esi
leave
ret

Function at 0x1001d19
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor ecx, ecx
push 2
pop edx
mov eax, 0x1002
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x1001dd5
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], 0x2000
jmp 0x1001d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1001dc6
cmp dword [ebp - 8], 7
jne 0x1001dc6
mov ebx, dword [ebp - 4]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, ebx
shr eax, 1
inc eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001dd1
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1001d56
mov eax, dword [ebp - 4]
shr eax, 1
lea eax, [esi + eax*2]
xor ecx, ecx
push esi
mov word [eax], cx
mov word [eax + 2], cx
call fcn.01001ba8
test eax, eax
jne 0x1001dd3
test esi, esi
je 0x1001dd1
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x1002412
Capabilities:
Authenticate hmac

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 0x5c
push dword [ebx]
xor edi, edi
mov dword [ebp - 0x10], esi
inc edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, esi
jne 0x1002442
mov eax, dword [ebx]
jmp 0x1002449
push eax
call dword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
inc edx
cmp dword [ebp + 8], edx
mov dword [ebp - 4], eax
jle 0x10024bc
mov eax, dword [ebx + edi*4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x1002466
cmp cx, 0x2f
jne 0x10024bc
movzx ecx, word [eax + 2]
cmp cx, 0x6d
je 0x10024a4
cmp cx, 0x4d
je 0x10024a4
cmp cx, 0x72
je 0x1002499
cmp cx, 0x52
je 0x1002499
cmp cx, 0x66
je 0x100248e
cmp cx, 0x46
jne 0x10024bc
cmp word [eax + 4], si
jne 0x10024bc
or dword [ebp - 0xc], edx
jmp 0x10024b6
cmp word [eax + 4], si
jne 0x10024bc
mov dword [ebp - 0x14], edx
jmp 0x10024b6
cmp word [eax + 4], 0x3a
jne 0x10024bc
add eax, 6
cmp word [eax], si
je 0x10024bc
mov dword [ebp - 0x10], eax
inc edi
cmp dword [ebp + 8], edi
jg 0x1002454
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, edx
jl 0x1002516
mov esi, dword [ebx + edi*4]
movzx eax, word [esi]
cmp ax, 0x2d
je 0x10024d7
cmp ax, 0x2f
jne 0x10024e0
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
and dword [ebp - 8], 0
inc edi
cmp dword [section..data], 0
je 0x1002516
mov eax, section..data
push dword [eax]
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1002526
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
shl eax, 4
lea eax, [eax + section..data]
cmp dword [eax], 0
jne 0x10024f3
push dword [ebp - 4]
call fcn.0100196c
push 3
pop eax
pop edi
pop esi
not eax
sub esi, eax
ror ebx, 0x1e
sub edx, edi
or esi, edi
not esi
add ecx, ebp
rol esi, 9
or esi, edi
or esi, edi
ror edx, 8
test esp, 0x175b2d2a
jb 0x1002590
invalid
neg esi
shl esi, 0x1e
or esi, edi
dec edx
ror esi, 0x12
mov edx, ebx
add esi, eax
xor eax, eax
mov ecx, 0x153dbb7f
add byte [eax], al

Function at 0x100257e
Capabilities:
Encode data using xor

Disassembly:
inc eax
dec eax
call fcn.01006a63
sub dword [0x1009070], ebx
shr ebx, 0x10
xor dword [str.NKeb], 0x1258ff65
xchg esi, eax
and esi, dword [0x1009200]
xchg esi, eax
mov dword [0x1009120], 0x17da3d58
neg eax
rol eax, 0x15
call fcn.01006f20
loop 0x100255a
call fcn.01006a63
and esi, edi
mov eax, 0x1b10f4a0
or esi, edi
sub edx, ebp
mov dword [0x100915c], ecx
sub esi, eax
mov esi, eax
xor eax, esi
neg eax
xchg edx, eax
mov eax, eax
mov dword [section..data], edx
shl eax, 0x1f
sub eax, eax
shl eax, 0xd
mov dword [0x1009180], ecx
or esi, edi
not esi
call fcn.01006f20
mov dword [0x1009494], ebx
dec edx
ror eax, 8
and esi, edi
xor edi, 0x41d20f0
dec edi
rol edi, 5
xor ecx, esp
not esi
Function at 0x1006a6b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007330
call fcn.01006f54
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1009868
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006880
cmp eax, esi
jne 0x1006873
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1006883
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100685a
xor esi, esi
inc esi
mov eax, dword [0x1009864]
cmp eax, esi
jne 0x1006896
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10068d1
mov eax, dword [0x1009864]
test eax, eax
jne 0x10068cb
mov dword [0x1009864], esi
push 0x1001214
push 0x1001208
call fcn.010067d7
pop ecx
pop ecx
test eax, eax
je 0x10068d1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100699b
mov dword [0x100952c], esi
mov eax, dword [0x1009864]
cmp eax, esi
jne 0x10068f5
push 0x1001204
push 0x10011fc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009864], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1006902
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1009870], ebx
je 0x1006923
push 0x1009870
call fcn.01006ec9
pop ecx
test eax, eax
je 0x1006923
push ebx
push 2
push ebx
call dword [0x1009870]
push dword [0x1009514]
push dword [0x1009518]
push dword [0x1009510]
call fcn.01002412
add esp, 0xc
mov dword [0x1009528], eax
cmp dword [0x100951c], ebx
jne 0x1006981
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100952c], ebx
jne 0x100698f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009528]
call fcn.01006f99
ret
call fcn.010070a2
jmp 0x1006838

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4c2440
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4c24a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x573534]
test esi, esi
jle 0x4c25c0
mov eax, dword [0x573538]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4c24d4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4c2557
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4c24c0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4c25e7
mov eax, dword [0x573538]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x573538]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4c25c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4c2550
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4c2560
add dword [0x573534], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x573538]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4c2550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4c24de
mov eax, dword [0x573538]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4c2aa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x573550
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x573548]
sub esp, 4
test ebx, ebx
je 0x4c2af5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4c2aee
test esi, esi
je 0x4c2aee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c2ad0
mov dword [esp], 0x573550
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4c2e20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4c2e45
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4c2e50
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4c2e45
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4c2e98
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4c2e8e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4c2e9a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4c2e80
xor eax, eax
pop ebx
pop esi
ret
Function at 0x421399
Capabilities:
Encode data using xor

Disassembly:
lcall 0x3d3, 0x1fea3345
and cl, byte [ebx + 0x37]
setb byte [esi + 0x25]
xchg edi, eax
xor al, 0x8e
cli
int3
aaa
and eax, 0x68a98fe3
rcr byte [eax + 0x7f], cl
xchg esi, eax
jg 0x421339
mul edi
mov bl, 0xdf
mov al, 0xdf
inc ecx
pop ecx
dec esi
adc bl, byte [eax - 0xf]
push esp
les edx, [edx + 0x3f617f7a]
sahf
leave
add esi, dword [edi]
adc edi, dword [ebp + 0x3bb3778f]
mov edx, 0xc23e55d6
sal dword [ecx + esi*8], cl
cmp byte [edx], 0x6b
or eax, 0xf04dd777
sbb esi, esi
xor dl, ah
cwde
dec eax
xor eax, 0x70cc2387
jg 0x4213a1
xchg dword [0x371cf568], eax
in eax, dx
adc ch, byte [ebx]
xorps xmm1, xmmword [esi]
sbb eax, 0x5fced807
sbb dword [edi - 0xb], eax
mov cl, byte [edi - 0x25e68fd6]
sub byte [ebp - 0x1be8d730], dl
shl edx, cl
dec eax
lcall 0x176b, 0x7ac2926b
in eax, dx
test ch, ch
mov ah, 0x72
mov esi, 0xc1649bb5
test al, 0x51
into
inc eax
ret

Function at 0x45c3c1
Capabilities:
Authenticate hmac

Disassembly:
rcr byte [ecx - 0x60], 0xca
sub al, 0xc5
enter 0x8c4, 0xffffffffffffffee
xchg esi, eax
into
sub al, 6
rcr dl, cl
inc esp
jg 0x45c2a3
push ds
and dword [eax - 0x2a], edi
mov dh, 0x8a
stc
pop es
xchg edx, eax
int 0xa5
retf
mov cl, 0x4e
jle 0x45c2b1
loop 0x45c321
and al, 0x13
push esp
out dx, eax
aad 0x57
arpl bx, cx
ret
add edi, dword [ecx + ecx*2]
sub edi, dword [esi]
call 0xb39374ed
pop eax
int 0x84
pop edx
cmp esp, edx
mov dword [0xbb2a4189], eax
jae 0x45c315
lea esi, [ecx + 0x33]
or dh, byte [eax + 0x421f37a9]
cli
or dword [ebx + 0x1e], edx
insd dword es:[edi], dx
movsd dword es:[edi], dword [esi]
and al, 0xdd
pop edx
fdivr st(3), st(0)
xor ebx, dword [edx - 0x22]
std
inc ebp
out 0xb9, eax
cmp dword [eax + 0x5d], esi
and dword [ebx + 0x62], esi
xor edx, dword [ebx]
loope 0x45c363
cmp byte [edi + 0x2977d37a], cl
mov edi, 0xf956b37a
fucomp st(1)
into
sub dh, byte [ebx - 0x4cc01c55]
invalid
jae 0x45c3f6
jns 0x45c391
mov dl, 0x36
invalid