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

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1b8], 0
je 0x463470
mov eax, dword [ebx + 0x1b8]
call fcn.00452848
test al, al
jne 0x463486
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.00452b44
jmp 0x463493
mov eax, esi
mov edx, dword [ebx + 0x1b8]
call fcn.00403bb8
add esp, 0x130
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x99f3608
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x13b4c47
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
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
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40f750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x40f76a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f760
mov eax, 1
add ebx, ebx
jne 0x40f783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f778
jne 0x40f794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f778
xor ecx, ecx
sub eax, 3
jb 0x40f7a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f81a
mov ebp, eax
add ebx, ebx
jne 0x40f7b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f7e4
inc ecx
add ebx, ebx
jne 0x40f7d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f7c5
jne 0x40f7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f7c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f7f5
jmp 0x40f766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f804
add edi, ecx
jmp 0x40f766
pop esi
mov edi, esi
mov ecx, 0x177
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f822
cmp byte [edi], 1
jne 0x40f822
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f827
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f89f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf2f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf3ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f854
mov ecx, edi
jns 0x40f883
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf3b0]
or eax, eax
je 0x40f899
mov dword [ebx], eax
add ebx, 4
jmp 0x40f871
call dword [esi + 0xf3c0]
mov ebp, dword [esi + 0xf3b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f8d3
sub esp, 0xffffff80
jmp 0x40531f
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x42e002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
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
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x100285b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1002876
push 0x80004005
call fcn.010020c3
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1002878
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002ea4
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.010027b9
mov edi, eax
cmp edi, esi
je 0x1002f16
lea ecx, [ebp - 0x214]
call fcn.01002746
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006863
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002f34
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01002ea4
cmp eax, esi
jne 0x1002f7f
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1002f1e
lea ecx, [ebp - 0x214]
call fcn.01002746
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010026c0
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01002746
mov eax, esi
jmp 0x1002f06
Function at 0x1004473
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, edi
jne 0x10044ce
call fcn.010025a6
mov esi, eax
jmp 0x10045af
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x10044e7
call fcn.010025a6
jmp 0x10045a1
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x10044dd
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100454c
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1004529
lea ecx, [ebp - 0x408]
call fcn.01002e43
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.01002d52
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006863
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.0100340f
cmp dword [ebp - 0x408], edi
jne 0x1004567
mov esi, 0x8007000e
jmp 0x10045a3
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x10044dd
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.01003f42
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x100452e
lea ecx, [ebp - 0x408]
call fcn.01002e43
jmp 0x100452e

Function at 0x1004d2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004d85
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004d77
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1004d73
cmp esi, eax
jae 0x1004d77
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1004d65
cmp esi, eax
jb 0x1004d7b
xor eax, eax
jmp 0x1004d84
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1005f41
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01005e82
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1005fb4
cmp dword [ebp - 0x94], 5
jb 0x1005fd5
jmp 0x1005fd1
cmp dword [ebp - 0x88], 1
jne 0x1005fd5
cmp dword [ebp - 0x94], 4
ja 0x1005fd1
jne 0x1005fd5
cmp dword [ebp - 0x90], 0
jbe 0x1005fd5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10018e4
call fcn.01002102
test eax, eax
jge 0x1005ff6
mov byte [0x100c034], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01006863
leave
ret
Function at 0x100679d
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100a9b8
call fcn.010067b8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100c4ec
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006558
cmp eax, esi
jne 0x100654b
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100655b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006532
xor esi, esi
inc esi
mov eax, dword [0x100c4e8]
cmp eax, esi
jne 0x100656e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100659d
mov eax, dword [0x100c4e8]
test eax, eax
jne 0x1006597
mov dword [0x100c4e8], esi
push 0x1001288
push 0x100127c
call fcn.01006494
pop ecx
pop ecx
test eax, eax
je 0x100659d
jmp 0x10066c1
mov dword [0x100c1ac], esi
mov eax, dword [0x100c4e8]
cmp eax, esi
jne 0x10065c1
push 0x1001278
push 0x1001258
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100c4e8], 2
cmp dword [ebp - 0x20], ebx
jne 0x10065ce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100c4f8], ebx
je 0x10065ef
push 0x100c4f8
call fcn.01006b59
pop ecx
test eax, eax
je 0x10065ef
push ebx
push 2
push ebx
call dword [0x100c4f8]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10066c1
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1006659
cmp cx, bx
je 0x1006614
cmp dword [ebp - 0x1c], ebx
jne 0x1006659
movzx ecx, word [eax]
cmp cx, bx
je 0x1006629
cmp cx, 0x20
ja 0x1006629
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1006614
test byte [ebp - 0x40], 1
je 0x1006635
movzx ecx, word [ebp - 0x3c]
jmp 0x1006638
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100c1a8], eax
cmp dword [0x100c19c], ebx
jne 0x100669e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100666a
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10065fe
cmp dword [0x100c1ac], ebx
jne 0x10066ac
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100c1a8]
jmp 0x10066cd
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010067fd
ret
call fcn.01006ca6
jmp 0x10064f5

Function at 0x1006ad0
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
je 0x1006ae6
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006ae2
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jmp 0x10101f8
Function at 0x1006f40
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov dword [esp], 0
mov al, byte [0x100c02c]
cmp al, 2
jne 0x1006f99
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 1
cmp dword [esp + 0x18], ecx
ja 0x1006f89
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
test eax, edx
jne 0x1006f89
lea eax, [esp]
push eax
mov byte [0x100c02c], 0xff
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret
lea eax, [esp]
push eax
mov byte [0x100c02c], cl
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret

Function at 0x1006fb0
Capabilities:
Get system information on windows

Disassembly:
mov al, byte [0x100c02c]
sub esp, 0x28
cmp al, 2
jne 0x1007013
mov dword [esp], 0
mov cl, byte [0x100c02c]
cmp cl, al
jne 0x1007013
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 1
cmp dword [esp + 0x18], ecx
ja 0x1007003
mov eax, dword [esp + 0x14]
jmp 0x1013fb0
lea eax, [esp]
push eax
mov byte [0x100c02c], cl
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret
Function at 0x10072f0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x14]
mov edx, ebx
neg edx
push esi
sbb edx, edx
push edi
lea eax, [ebp - 4]
and edx, 0x10
push eax
add edx, 0xf8
lea edi, [ebp - 0xc]
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.010071b0
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x1007335
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xf8
push edi
push esi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xf0], ecx
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x28], edx
cmp ebx, edi
jne 0x100735f
mov dword [esi + 0xf4], edi
jmp 0x1007381
lea eax, [esi + 0xf8]
mov dword [esi + 0xf4], eax
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov dword [esi + 0xc], 0xffffffff
mov ebx, 1
cmp dword [ebp + 0x10], edi
je 0x1007397
mov dword [esi + 0xc], ebx
jmp 0x100739f
cmp dword [ebp + 0xc], edi
je 0x100739f
mov dword [esi + 0xc], edi
mov eax, dword [ebp + 8]
cmp eax, 0x10
jge 0x10073ae
mov eax, 0x10
jmp 0x10073ba
cmp eax, 0x100
jle 0x10073ba
mov eax, 0x100
mov dword [esi + 0x30], eax
lea eax, [esi + 0x70]
mov dword [eax], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], 0x4c66506c
mov al, byte [0x100c02c]
cmp al, 2
jne 0x1007417
mov dword [ebp - 0x10], edi
mov cl, byte [0x100c02c]
cmp cl, al
jne 0x1007417
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x20], ebx
ja 0x1007407
mov eax, dword [ebp - 0x24]
lea ecx, [eax - 1]
test eax, ecx
jne 0x1007407
mov byte [0x100c02c], 0xff
jmp 0x100740d
mov byte [0x100c02c], bl
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 8]
mov dword [ebp + 0x14], eax
mov eax, 1
mov edx, dword [ebp + 0x14]
cmp byte [0x100c02c], ah
jle 0x1007433
lock xadd dword [edx], eax
jmp 0x1007436
xadd dword [edx], eax
inc eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x14c
mov edx, dword [edi + 0x3c]
lea eax, [edi + 0x88]
add eax, edx
lea ecx, [edi + 0x78]
add ecx, edx
cmp word [edx + edi + 4], si
cmovne ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x10001b9b
mov ecx, dword [ebp + 0xc]
lea ebx, [eax + edi]
cmp ecx, 0xffff
ja 0x10001b4a
movzx ecx, cx
sub ecx, dword [ebx + 0x10]
cmp ecx, dword [ebx + 0x14]
jae 0x10001b9b
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x20]
xor esi, esi
mov edx, dword [ebx + 0x24]
add eax, edi
add edx, edi
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
cmp dword [ebx + 0x18], esi
jbe 0x10001b9b
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001b86
test dl, dl
je 0x10001b82
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001b86
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001b66
xor eax, eax
jmp 0x10001b8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10001ba6
mov ecx, dword [ebp + 0xc]
inc esi
mov eax, dword [ebp + 8]
cmp esi, dword [ebx + 0x18]
jb 0x10001b61
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
movzx ecx, word [eax + esi*2]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8