joyce8/EMBER2024-capa huggingface dataset:
Function at 0x646c4980
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x24], eax
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
je 0x646c4ad2
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
lea esi, [esi]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x646c49e3
lea esi, [esi]
mov eax, edi
mov edi, dword [edi + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
test edi, edi
jne 0x646c49c0
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x646c4a13
lea esi, [esi]
mov eax, edi
mov edi, dword [edi + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
test edi, edi
jne 0x646c49f0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xa4]
test edx, edx
je 0x646c4a56
mov edi, dword fs:[0x18]
mov dword [ebp - 0x20], esi
mov esi, edi
mov edi, edx
nop
mov eax, edi
mov edi, dword [edi + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
test edi, edi
jne 0x646c4a30
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x8c]
test edx, edx
je 0x646c4a9e
mov edi, dword fs:[0x18]
mov dword [ebp - 0x20], esi
mov esi, edi
mov edi, edx
lea esi, [esi]
mov eax, edi
mov edi, dword [edi + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
test edi, edi
jne 0x646c4a78
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
mov edx, dword [edi + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 8]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x646c49b0
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x646c51b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x6c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], 0x10
test eax, eax
je 0x646c51d4
cmp word [eax + 6], 0x18
je 0x646c5385
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov ebx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x44], eax
jmp 0x646c5278
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
lea eax, [ecx - 4]
mov edx, eax
and eax, 0xfffffffc
shr edx, 2
add eax, edx
shl eax, 3
test esi, esi
je 0x646c52f8
mov esi, dword [ebp + 8]
cmp dword [esi], eax
jb 0x646c52f8
test edi, edi
je 0x646c5310
cmp ebx, dword [ebp - 0x3c]
je 0x646c524a
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x646c538f
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 6
call sub.dnsapi.dll_DnsQueryConfig
sub esp, 0x18
mov edi, eax
test eax, eax
je 0x646c51f0
cmp eax, 0xea
je 0x646c51f0
cmp ebx, dword [ebp - 0x3c]
je 0x646c52e8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 8]
mov edi, 0x6f
mov dword [esi], eax
cmp ebx, dword [ebp - 0x3c]
jne 0x646c52c4
jmp 0x646c52e8
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x40]
mov dword [ecx], eax
lea eax, [edx - 1]
xor ecx, ecx
mov dword [ebp - 0x40], eax
lea eax, [ebx + 4]
test edx, edx
je 0x646c52bf
mov dword [ebp - 0x4c], ebx
mov ebx, ecx
mov dword [ebp - 0x50], edi
mov edi, esi
mov esi, eax
mov dword [ebp - 0x44], edx
jmp 0x646c5342
mov edi, eax
lea eax, [edi + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.ntdll.dll_RtlIpv4AddressToStringA
xor eax, eax
sub esp, 8
cmp ebx, dword [ebp - 0x40]
je 0x646c5364
lea eax, [edi + 0x28]
test ebx, ebx
cmove eax, dword [ebp - 0x48]
mov dword [edi], eax
add ebx, 1
add esi, 4
cmp dword [ebp - 0x44], ebx
jne 0x646c5340
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
cmp ebx, dword [ebp - 0x3c]
jne 0x646c52c4
jmp 0x646c52e8
mov edi, 0xe8
jmp 0x646c52e8
mov edi, 8
jmp 0x646c52c4
Function at 0x646c5990
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x646cf018], 8
jne 0x646c59e0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.FreeMibTable
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call fcn.646c3090
jmp 0x646c59ad
Function at 0x646c6070
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x646cf018], 8
jne 0x646c6200
test esi, esi
je 0x646c6238
cmp ebx, 2
ja 0x646c6238
test ebx, ebx
je 0x646c60b8
test byte [0x646cf018], 1
jne 0x646c6248
lea eax, [ebp - 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x28], 0x258
mov dword [esp + 0x20], 0xd8
mov dword [esp + 0x18], 0x444
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x646d25d0
mov dword [esp], 1
call sub.nsi.dll_NsiAllocateAndGetTable
mov dword [ebp - 0x3c], eax
sub esp, 0x34
test eax, eax
je 0x646c6140
mov eax, dword [ebp - 0x3c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
imul eax, dword [ebp - 0x2c], 0x548
mov dword [esp + 4], 8
mov edx, dword fs:[0x18]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x646c6275
mov edx, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [eax], edx
test edx, edx
jne 0x646c6192
jmp 0x646c61d6
mov eax, dword [esi]
imul edx, ebx, 0x548
imul edi, ebx, 0x258
lea eax, [eax + edx + 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + ebx*8 + 4]
mov edx, dword [edx + ebx*8]
mov dword [eax], edx
add edi, dword [ebp - 0x1c]
imul edx, ebx, 0x444
mov dword [eax + 4], ecx
add edx, dword [ebp - 0x24]
imul ecx, ebx, 0xd8
add ebx, 1
mov dword [esp], edi
add ecx, dword [ebp - 0x20]
call fcn.646c4b00
cmp dword [ebp - 0x2c], ebx
ja 0x646c6190
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.nsi.dll_NsiFreeTable
sub esp, 0x10
jmp 0x646c6129
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.level__u__table__p_n
mov dword [esp + 8], str.GetIfTable2Ex
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call fcn.646c3090
test esi, esi
jne 0x646c609e
lea esi, [esi]
mov dword [ebp - 0x3c], 0x57
jmp 0x646c6129
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.level__u_not_fully_supported_n
mov dword [esp + 8], str.GetIfTable2Ex
mov dword [esp + 4], 0x646cf018
mov dword [esp], 0
call fcn.646c3090
jmp 0x646c60b8
mov dword [ebp - 0x3c], 0xe
jmp 0x646c61d6
Function at 0x646cd5c0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x10
mov ebx, dword [ecx]
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4

Function at 0x646cd620
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
mov esi, dword fs:[0x18]
sub esp, 0x2c
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x646cd6e5
mov ebx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], str..Nsi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebx], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x646cd6c0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], ebx
mov ebx, 0xffffffff
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x646cd6ad
mov dword [esi + 0x34], 0x2afe
or ebx, 0xffffffff
jmp 0x646cd6ad
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x408c94
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x408cac
cmp dword [eax + 0x118], 0
jne 0x408ca8
jmp sym._d_print_comp.part.8
ret
mov dword [eax + 0x118], 1
ret

Function at 0x40929c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx], 0x2d
je 0x4092b8
cmp dword [eax + 0x118], 0
jne 0x4092b7
jmp sym._d_print_comp.part.8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x4092b0
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x4092ef
mov esi, edx
inc edx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
inc ebx
cmp edi, ebx
je 0x4092b0
mov cl, byte [ebp + ebx]
cmp edx, 0xff
jne 0x4092d8
mov byte [eax + 0xff], 0
mov edx, dword [eax + 0x10c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
inc dword [eax + 0x120]
mov edx, 1
xor esi, esi
mov cl, byte [esp + 0x1c]
jmp 0x4092db
Function at 0x40da50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sym._fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40dab0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40dba6
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40db20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40daf5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sym._memcpy
cmp byte [esp + 0x1f], 0
je 0x40db05
cmp byte [esp + 0x1e], 0
je 0x40db05
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x40db05
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
nop

Function at 0x40de40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4a404c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4a4064]
sub esp, 4
test ebx, ebx
je 0x40de8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40de84
test esi, esi
je 0x40de84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40de60
mov dword [esp], 0x4a404c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x410ad0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4a4080], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreA_16
sub esp, 0x10
mov dword [0x4a4084], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x410b30
mov dword [0x4a408c], eax
mov dword [esp + 4], sym._emutls_destroy
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne 0x410b37
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x410b28
call sym._abort
Function at 0x410b3c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4a4044]
test ecx, ecx
jne 0x410b64
mov eax, dword [esi + 8]
test eax, eax
je 0x410c74
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x410bf4
mov ebx, dword [0x4a408c]
call sym._GetLastError_0
mov edi, eax
mov dword [esp], ebx
call sym._TlsGetValue_4
push ecx
mov ebx, eax
mov dword [esp], edi
call sym._SetLastError_4
push edi
test ebx, ebx
je 0x410bb4
mov edi, dword [ebx]
cmp ebp, edi
ja 0x410c83
dec ebp
mov eax, dword [ebx + ebp*4 + 4]
test eax, eax
jne 0x410b5c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx + ebp*4 + 4], eax
jmp 0x410b5c
lea edi, [ebp + 0x20]
mov dword [esp + 4], 4
lea eax, [ebp + 0x21]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je 0x410d49
mov dword [eax], edi
mov dword [esp + 4], ebx
mov eax, dword [0x4a408c]
mov dword [esp], eax
call sym._TlsSetValue_8
push edx
push edx
test eax, eax
jne 0x410b9e
call sym._GetLastError_0
jmp 0x410b9e
cmp dword [0x46e014], 0
je 0x410ccc
mov dword [esp], 0x4a4080
call sym._InterlockedIncrement_4
push edx
test eax, eax
jne 0x410d18
mov ebp, dword [esi + 8]
test ebp, ebp
jne 0x410c2d
mov ebp, dword [0x4a4088]
inc ebp
mov dword [0x4a4088], ebp
mov dword [esi + 8], ebp
cmp dword [0x4a4044], 0
je 0x410b6f
mov dword [esp], 0x4a4080
call sym._InterlockedDecrement_4
push edx
test eax, eax
js 0x410b6f
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x4a4084]
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x410b6f
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x410b5c
lea edx, [edi + edi]
cmp ebp, edx
jbe 0x410c8d
lea edx, [ebp + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._realloc
mov ebx, eax
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x410d49
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4 + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x410bd6
mov dword [esp], 0x46e018
call sym._InterlockedIncrement_4
push ebp
test eax, eax
jne 0x410cec
jmp 0x410d07
mov dword [esp], 0
call sym._Sleep_4
push edi
cmp dword [0x46e014], 0
je 0x410cdf
cmp dword [0x4a4044], 0
je 0x410c16
jmp 0x410c01
call sym._emutls_init
mov dword [0x46e014], 1
jmp 0x410cf5
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x4a4084]
mov dword [esp], eax
call sym._WaitForSingleObject_8
push ebx
push ebx
test eax, eax
je 0x410c16
mov dword [esp], 0x4a4080
call sym._InterlockedDecrement_4
push ecx
jmp 0x410c16
call sym._abort
nop
Function at 0x41c8f8
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4742bc], 0
jne 0x41c9cc
mov byte [0x4742bc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41ca18
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
sete al
add ebx, eax
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.___cxa_demangle
mov ebp, eax
mov esi, dword [sym.imp.msvcrt.dll__iob]
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41c9c2
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4760f5
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41c9f9
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41c993
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41c9bd
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x41ca13

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1f96697
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data_1
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6e0b2903
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x5ef02ff0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x707b0405
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219