joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d6b65
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10168014], 0
mov byte [0x10168018], 0
mov dword [0x10168008], 0x719
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10168010], 0
mov dword [ebp - 0x1c], eax
jmp 0x100d6bc3
mov dword [0x10168010], 0
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100d6c01
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1016800c]
add eax, 0xfffff13a
mov dword [0x10168008], eax
mov esi, dword [0x10168010]
add esi, 1
mov dword [0x10168010], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x100d6bc3
jmp 0x100d6bac
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [0x1016801c], 0
mov esi, dword [0x10168014]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x1016801c], ebx
mov dword [0x1016800c], 0xde7
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x30]
idiv ebx
mov dword [0x10168014], edx
mov esi, dword [ebp - 0x2c]
mov bl, byte [edi + esi]
mov byte [0x10168018], bl
add ecx, 0x17b0
mov dword [0x10168008], ecx
mov bl, byte [edi + edx]
mov byte [edi + esi], bl
mov dword [0x10168008], 0x20e9
mov bl, byte [0x10168018]
mov ecx, dword [0x10168014]
mov byte [edi + ecx], bl
mov ecx, dword [0x10168010]
add ecx, 1
mov dword [0x10168010], ecx
cmp ecx, 0x100
mov dword [ebp - 0x34], ecx
jge 0x100d6cc2
mov eax, dword [0x10168008]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x100d6c01
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100d6d5d
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x10168008], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x100d6dc5
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x104
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
jl 0x100d6d91
mov eax, dword [ebp - 0x18]
mov dword [0x10168008], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100d6e6b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x6f
jne 0x100d6e6b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100d6e6b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
sete dl
mov byte [ebp - 0x25], dl
mov al, byte [ebp - 0x25]
test al, 1
jne 0x100d6e29
jmp 0x100d6e6b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x100d6e6b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x26], dl
mov al, byte [ebp - 0x26]
test al, 1
jne 0x100d6e54
jmp 0x100d6e6b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x100d6e72
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x100d6e72
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x100d6e7a
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001064
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, 0
mov dword [esp + 0x20], eax
jne 0x100d6ff3
lea eax, [esp + 0x38]
mov ecx, dword [0x1016800c]
add ecx, 0xffffe60f
mov dword [0x10168008], ecx
mov dword [esp + 0x1c], eax
call fcn.100d6d5d
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x100d6f38
jmp 0x100d6feb
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov dword [0x1016800c], 0xffffffce
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x38], esi
mov dword [0x10168008], 0x108a
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.100d63be
mov dword [0x1016800c], 0x159a
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x100d6feb
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.100d5ab0
lea ecx, [0x100d61e2]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x78], 0x11e000
mov edx, dword [0x10167ff4]
mov dword [esp + 0x48], edx
mov edx, dword [0x10167ff8]
mov dword [esp + 0x40], edx
mov edx, dword [0x10167ffc]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10168000]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10168004]
mov dword [esp + 0x60], edx
mov dword [0x1016800c], 0x5db
mov dword [0x10168008], 0x183f
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 8]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x100d6fd7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx], 0x4550
je 0x100d6ed7
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 8], eax
jmp 0x100d6fa8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x410660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x410682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410678
mov eax, 1
add ebx, ebx
jne 0x41069b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410690
jne 0x4106ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410690
xor ecx, ecx
sub eax, 3
jb 0x4106c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410732
mov ebp, eax
add ebx, ebx
jne 0x4106cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4106d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4106fc
inc ecx
add ebx, ebx
jne 0x4106e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4106dd
jne 0x4106f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4106dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41071c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41070d
jmp 0x41067e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41071c
add edi, ecx
jmp 0x41067e
pop esi
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x41077b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x100c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x100fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410739
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10100]
or eax, eax
je 0x410775
mov dword [ebx], eax
add ebx, 4
jmp 0x410756
call dword [esi + 0x10110]
mov ebp, dword [esi + 0x10104]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4107af
sub esp, 0xffffff80
jmp 0x403284
Function at 0x40faf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
call fcn.00437d40
mov edi, eax
mov ax, word [0x48c3da]
xor eax, 0x9fb8
mov word [0x48c3da], ax
add dword [0x4a2034], 0xd5cb244e
mov ax, word [0x48879e]
dec eax
mov word [0x48879e], ax
mov eax, dword [0x49e14c]
mov ecx, dword [0x4936ac]
xor ecx, eax
cmp ecx, 0xfadd4100
jg 0x40fb50
dec dword [0x48ed9c]
mov ax, word [0x48694a]
mov ax, word [0x486170]
jmp 0x40fb61
mov ax, word [0x48c920]
add eax, 0x406a
mov word [0x48c920], ax
mov ebx, dword [esi + 4]
add edi, 0xffffffe4
cmp edi, ebx
jl 0x40fbc1
nop
nop
nop
nop
nop
and dword [0x49c144], 0x34bc104d
mov ecx, ebx
call fcn.0043deb0
mov eax, dword [0x49ee78]
and eax, 0xad77f013
add dword [0x49b810], eax
mov dword [ebx + 0x18], 0
mov eax, dword [0x493c70]
or eax, 0xfd97361d
xor eax, 0x260c1c2
and dword [0x495780], eax
mov dword [ebx], 0x46d298
mov ecx, ebx
call fcn.0042af10
add ebx, 0x1c
cmp ebx, edi
jle 0x40fb70
mov dword [esp + 4], 1
mov dword [esp], 0
mov ecx, esi
call fcn.00437c30
pop esi
pop edi
pop ebx
ret
Function at 0x42dca0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [esp + 8]
mov eax, dword [0x491f60]
lea edx, [eax + 1]
mov dword [0x491f60], edx
add eax, 0xd8e502ce
cmp eax, 0x30352401
jl 0x42dcd0
mov ax, word [0x48b5c8]
mov word [0x48a988], 0xeffb
jmp 0x42dce9
mov eax, dword [0x49b5f8]
or eax, 0x7b341708
mov edx, dword [0x4a002c]
imul edx, eax
mov dword [0x4a002c], edx
add dword [0x49cef0], 0x5aa4be2d
test ecx, ecx
je 0x42dd7d
mov eax, dword [0x49f9f0]
mov edx, dword [0x492980]
imul edx, edx, 0x857f521
or edx, eax
mov ax, word [0x48c2f0]
xor eax, edx
mov word [0x48c2f0], ax
mov eax, 0x1f
test ecx, ecx
js 0x42dd55
mov edx, 0x80000000
nop
nop
nop
nop
nop
nop
mov si, word [0x48adee]
xor esi, 0x160c
mov word [0x48adee], si
dec eax
and dword [0x490e80], 0xb767aad3
shr edx, 1
test edx, ecx
je 0x42dd30
mov ecx, dword [0x48dc18]
lea edx, [ecx - 1]
mov dword [0x48dc18], edx
mov dx, word [0x488978]
mov esi, 0xffff57d6
sub esi, ecx
add esi, edx
mov word [0x488978], si
jmp 0x42dd81
mov eax, dword [esp + 0xc]
or dword [0x49bd20], 0xcf876df5
pop esi
ret

Function at 0x433450
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [0x498ac0]
imul eax, eax, 0x2555a1fd
mov dword [0x498ac0], eax
mov dword [ecx], 0
mov eax, dword [0x48efa0]
mov edx, dword [0x493798]
imul edx, eax
xor dword [0x49d680], edx
mov dword [ecx + 4], 0
mov ax, word [0x4866d2]
cwde
shr eax, 6
mov dx, word [0x48648e]
movsx edx, dx
shr edx, 5
imul edx, edx, 0x4748d412
xor edx, eax
mov ax, word [0x489366]
sub eax, edx
mov word [0x489366], ax
mov dword [ecx + 8], 0x67452301
mov eax, dword [0x4997f8]
cmp eax, 0xd4f1912f
jne 0x4334cd
add dword [0x48da28], 0x9fee8ffa
jmp 0x4334fe
mov eax, dword [0x499764]
lea edx, [eax + 1]
mov dword [0x499764], edx
mov edx, dword [0x49788c]
shl edx, 5
xor edx, eax
xor edx, 0xf9e35dd8
cmp edx, 0x663f3ad
je 0x4334fe
or dword [0x496d48], 0x1cdcd7e7
mov dword [ecx + 0xc], 0xefcdab89
add dword [0x494b00], 0x20500b2
mov dword [ecx + 0x10], 0x98badcfe
and dword [0x4a18f0], 0xcf2b2c89
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [0x4a1e68]
lea ecx, [eax - 1]
mov dword [0x4a1e68], ecx
cmp eax, 0xb67befd1
jl 0x43354f
mov ax, word [0x48469c]
imul eax, eax, 0xffffa8ce
mov word [0x488f3a], ax
ret
mov ax, word [0x48924c]
lea ecx, [eax - 1]
mov word [0x48924c], cx
or eax, 0xffffe752
mov cx, word [0x486ace]
imul ecx, eax
mov word [0x486ace], cx
ret
Function at 0x447fc0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
and dword [0x4a09b0], 0x11bc1eae
mov eax, dword [0x4a2a7c]
mov cx, word [0x48a6fa]
imul ecx, ecx, 0x37e
mov word [0x48a6fa], cx
and dword [0x4937d0], 0xdf2fefa3
mov dword [esp], eax
mov dword [esp + 4], 0x4e20
call dword [0x481c78]
sub esp, 8
mov cx, word [0x484f36]
lea edx, [ecx - 1]
mov word [0x484f36], dx
add ecx, 0xc51e
mov edx, dword [0x49c5c4]
or edx, ecx
mov cx, word [0x4871f8]
and ecx, edx
mov word [0x4871f8], cx
cmp eax, 0x80
je 0x448056
test eax, eax
jne 0x448071
mov eax, dword [0x48f204]
inc eax
mov dword [0x48f204], eax
xor eax, 0xb9db2a24
add dword [0x49c43c], eax
jmp 0x448092
mov eax, dword [0x49885c]
mov ecx, dword [0x490960]
or ecx, eax
or ecx, 0xf6f3b2a5
mov dword [0x490960], ecx
jmp 0x448092
mov eax, dword [0x4976b0]
xor eax, 0xcc4fc124
mov ecx, dword [0x4a17b4]
sar ecx, 1
or ecx, eax
mov eax, dword [0x495bc4]
imul eax, ecx
mov dword [0x495bc4], eax
mov ax, word [0x48800e]
mov dword [esp], 1
call fcn.0044ffd7
int3
Function at 0x456e81
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x480c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004543d5
mov dword [ebp - 0x14], eax
cmp dword [0x4a3cb4], esi
jne 0x456f74
push 0x800
push esi
push 0x46e210
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x456f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x457054
push esi
push esi
push 0x46e210
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x457054
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x457054
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a3cb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a3cb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a3cbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a3cc4], eax
test eax, eax
je 0x456f71
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a3cc0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x456f99
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x456f8c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x456fae
push 4
pop eax
jmp 0x457056
cmp dword [ebp - 0x14], esi
je 0x456fae
push dword [0x4a3cb4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x456f93
mov eax, dword [0x4a3cc0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x45700c
cmp dword [0x4a3cc4], edi
je 0x45700c
push eax
call ebx
push dword [0x4a3cc4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45700c
test eax, eax
je 0x45700c
call ecx
test eax, eax
je 0x457001
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x457001
test byte [ebp - 8], 1
jne 0x45700c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x45703c
mov eax, dword [0x4a3cb8]
cmp eax, edi
je 0x457039
push eax
call ebx
test eax, eax
je 0x457039
call eax
mov esi, eax
test esi, esi
je 0x457039
mov eax, dword [0x4a3cbc]
cmp eax, edi
je 0x457039
push eax
call ebx
test eax, eax
je 0x457039
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a3cb4]
call ebx
test eax, eax
je 0x457054
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x457056
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457085
mov esp, ebp
pop ebp
ret
Function at 0x401e30
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4191db
mov eax, dword fs:[0]
push eax
mov eax, 0xc49c
call fcn.0040a650
mov eax, dword [0x421110]
xor eax, esp
mov dword [esp + 0xc498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x421110]
xor eax, esp
push eax
lea eax, [esp + 0xc4b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4c0]
mov ecx, dword [str.WFP.log]
mov edx, dword [0x41b25c]
xor ebx, ebx
test byte [0x4224b8], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jne 0x401ec3
or dword [0x4224b8], 1
push 0x41a290
mov dword [0x4224b4], 0xf
mov dword [0x4224b0], ebx
mov byte [0x4224a0], bl
call fcn.0040a636
add esp, 4
cmp dword [0x4224b0], ebx
jne 0x401f1b
lea eax, [esp + 0x58]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ee2
sub eax, edx
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, 0x42249c
call fcn.00401820
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401f02
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
mov ecx, 0x42249c
call fcn.00401710
mov eax, dword [0x4224a0]
mov ebp, 0x10
cmp dword [0x4224b4], ebp
jae 0x401f32
mov eax, 0x4224a0
push 0x41b254
push eax
call fcn.0040a4f8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401fdb
push 2
push ebx
push esi
call fcn.0040a3af
push esi
call fcn.0040a2b7
add esp, 0x10
cmp eax, 0xf4240
jle 0x401fd2
push 2
push 0xc350
push esi
call fcn.0040a3af
push esi
push 0xc350
lea eax, [esp + 0x170]
push 1
push eax
call fcn.0040a0fd
push esi
mov edi, eax
call fcn.00409de1
mov eax, dword [0x4224a0]
add esp, 0x20
cmp dword [0x4224b4], ebp
jae 0x401fa2
mov eax, 0x4224a0
push 0x41b254
push eax
call fcn.0040a4f8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401fdb
push esi
push edi
lea ecx, [esp + 0x164]
push 1
push ecx
call fcn.00409ce8
push esi
call fcn.00409de1
add esp, 0x14
jmp 0x401fdb
push esi
call fcn.00409de1
add esp, 4
mov eax, dword [0x4224a0]
cmp dword [0x4224b4], ebp
jae 0x401fed
mov eax, 0x4224a0
push 0x41b250
push eax
call fcn.0040a4f8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x402093
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
push 7
push str._s____s
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc4c0], ebx
call fcn.00401820
lea edx, [esp + 0x18]
push edx
call fcn.00401c90
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x402043
mov eax, dword [eax + 4]
jmp 0x402046
add eax, 4
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x402054
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x14]
push edx
push eax
push ecx
push esi
call fcn.00409a6a
add esp, 0x10
cmp dword [esp + 0x30], ebp
jb 0x402077
mov eax, dword [esp + 0x1c]
push eax
call fcn.00408f5f
add esp, 4
push esi
call fcn.00409de1
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x402093
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00408f5f
add esp, 4
mov ecx, dword [esp + 0xc4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc498]
xor ecx, esp
call fcn.00409a5b
add esp, 0xc4a8
ret
Function at 0x402ad0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x421110]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [0x421080]
cmp eax, 0xf
jne 0x402c30
push esi
push edi
push 0x9c
lea esi, [eax - 2]
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00409050
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x402b51
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x402b51
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00409a5b
add esp, 0xa0
ret
mov eax, dword [esp + 0x18]
mov ecx, 1
sub eax, ecx
je 0x402c00
sub eax, ecx
jne 0x402c26
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x402b76
lea esi, [ecx + 2]
cmp eax, 5
jne 0x402bb5
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402b8b
lea esi, [eax + 4]
jmp 0x402c26
cmp eax, ecx
jne 0x402b99
mov esi, 5
jmp 0x402c26
cmp eax, 2
jne 0x402c26
xor eax, eax
cmp byte [esp + 0xa2], cl
setne al
add eax, 5
mov esi, eax
jmp 0x402c26
cmp eax, 6
jne 0x402c26
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x402bd6
xor edx, edx
cmp byte [esp + 0xa2], cl
setne dl
add edx, 0xb
mov esi, edx
jmp 0x402c26
cmp eax, ecx
jne 0x402bed
xor eax, eax
cmp byte [esp + 0xa2], cl
sete al
add eax, 9
mov esi, eax
jmp 0x402c26
xor edx, edx
cmp byte [esp + 0xa2], cl
setne dl
add edx, 7
mov esi, edx
jmp 0x402c26
cmp dword [esp + 0xc], 4
jne 0x402c26
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402c13
xor esi, esi
jmp 0x402c26
cmp eax, 0xa
jne 0x402c1c
mov esi, ecx
jmp 0x402c26
cmp eax, 0x5a
jne 0x402c26
mov esi, 2
pop edi
mov dword [0x421080], esi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00409a5b
add esp, 0xa0
ret
Function at 0x402ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419328
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x421110]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x421110]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.00402ad0
xor ecx, ecx
mov esi, 0xf
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xc], cl
mov dword [esp + 0x30], ecx
cmp eax, 0xe
ja case.default.0x402f44
jmp dword [eax*4 + 0x403014]
push str.Windows_95
jmp 0x402fb2
push str.Windows_98
jmp 0x402fb2
push str.Windows_ME
jmp 0x402fb2
push str.Windows_NT
jmp 0x402fb2
push str.Windows_2000
jmp 0x402fb2
push str.Windows_XP
jmp 0x402fb2
push str.Windows_2003
jmp 0x402fb2
push str.Windows_Vista
jmp 0x402fb2
push str.Windows_2008
jmp 0x402fb2
push str.Windows_2008R2
jmp 0x402fb2
push str.Windows_7
jmp 0x402fb2
push str.Windows_8
jmp 0x402fb2
push str.Windows_2012
jmp 0x402fb2
push str.Other
jmp 0x402fb2
push str.Error_getting_OS_type
lea ecx, [esp + 0xc]
call fcn.00401b00
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
cmp esi, 0x10
jae 0x402fcc
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
push eax
push 0x4224c0
call fcn.00409310
add esp, 0xc
cmp esi, 0x10
jb 0x402ff2
mov edx, dword [esp + 0xc]
push edx
call fcn.00408f5f
add esp, 4
mov eax, 0x4224c0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409a5b
add esp, 0x2c
ret