joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10010741
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10010730
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x10010df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e76e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100662ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.1002bfcb
mov esi, eax
add esp, 4
test esi, esi
je 0x10010e8d
push 1
call fcn.10013c84
add esp, 4
mov dword [esi + 4], eax
jmp 0x10010e8f
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 1
push eax
call fcn.10008010
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
mov ecx, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 0x14], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x10010f33
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x10010f33
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov al, byte [ebp - 0xd]
mov byte [ebx + 0x40], al
jne 0x10010f52
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x10010f75
cmp byte [ebp + 0xc], 0
je 0x10010f61
push ebx
call fcn.10018224
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10010f81
mov esi, str.ios_base::badbit_set
jmp 0x10010f91
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.100111a0
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.100095a0
push 0x10062f6c
lea eax, [ebp - 0x34]
push eax
call fcn.1002d54d
int3
Function at 0x10012e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x100662ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
movups xmm1, xmmword [0x100520b0]
push esi
push edi
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov edi, dword [ebp + 8]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
mov dword [ebp - 0xa0], ecx
movzx ecx, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
mov dword [ebp - 0x9c], ecx
movzx ecx, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [ebp - 0x98], ecx
movups xmm0, xmmword [ebp - 0xa4]
pxor xmm1, xmm0
movups xmmword [ebp - 0x94], xmm1
nop dword [eax]
mov edx, dword [eax + 0x100520c0]
xor edx, dword [ebp + eax - 0x90]
xor edx, dword [ebp + eax - 0x8c]
xor edx, dword [ebp + eax - 0x88]
mov ecx, edx
shr ecx, 0x18
movzx esi, byte [ecx + 0x10051fb0]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x10051fb0]
or esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x10051fb0]
or esi, ecx
movzx ecx, dl
shl esi, 8
movzx ecx, byte [ecx + 0x10051fb0]
or esi, ecx
mov edx, esi
mov ecx, esi
rol edx, 0xd
ror ecx, 9
xor edx, ecx
xor edx, dword [ebp + eax - 0x94]
xor edx, esi
mov dword [ebp + eax - 0x84], edx
mov dword [eax + edi], edx
add eax, 4
cmp eax, 0x80
jb 0x10012f00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002c009
mov esp, ebp
pop ebp
ret

Function at 0x1002bacb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100325ca
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1002bb0a
sub eax, 1
je 0x1002bb05
sub eax, 1
je 0x1002bb01
xor eax, eax
leave
ret
push 3
jmp 0x1002bb0c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1003ac10
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003ac4f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003ac4f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ac4f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003ac4f
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ac4f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003e45a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f80
push 0x10056f78
push str.FlsAlloc
push 0x1f
call fcn.1003e2c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e48e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005019c]
call esi
jmp 0x1003e494
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003e4d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f90
push 0x10056f88
push str.FlsGetValue
push 0x21
call fcn.1003e2c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e50f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005019c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003e517
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f98
push 0x10056f90
push str.FlsSetValue
push 0x22
call fcn.1003e2c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e551
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005019c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10043e90
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10043f2d
push ebx
push esi
call fcn.10043e59
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1003de9b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10043eda
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10043f2c
push edi
push eax
call fcn.1003dc20
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10043efa
call fcn.1003dbe6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10043f2b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003de9b
add esp, 0x20
test eax, eax
jne 0x10043f19
push edi
call fcn.1003dbe6
jmp 0x10043f21
push ebx
call fcn.1003dbe6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10043f30
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10043f41
pop esi
ret
push ebx
push edi
push esi
call fcn.10043e59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003dc20
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10043f69
push ebx
push esi
push edi
call fcn.1002d670
add esp, 0xc
push 0
call fcn.1003dbe6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10044339
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10043f7e

Function at 0x1004661f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1003be35
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004668e
cmp esi, dword [ebp - 4]
je 0x10046689
cmp dword [ebp + 0xc], 0
je 0x10046689
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10046666
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004615c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10046690
xor eax, eax
inc eax
jmp 0x10046690
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100466f5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100662ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1003be35
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1003be35
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004676c
cmp word [ecx], dx
je 0x1004676c
mov eax, dword [0x1005781c]
push edi
dec eax
push eax
push 0x10057708
call fcn.10046694
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100467df
cmp word [eax], dx
je 0x100467df
mov eax, dword [edi]
test eax, eax
je 0x10046790
cmp word [eax], dx
je 0x10046790
lea eax, [ebp - 0x10]
push eax
call fcn.10046062
jmp 0x10046799
lea eax, [ebp - 0x10]
push eax
call fcn.100460fd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10046809
mov eax, dword [0x10057704]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100573f8
call fcn.10046694
add esp, 0xc
test al, al
je 0x10046809
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100467d4
cmp word [eax], di
je 0x100467d4
lea eax, [ebp - 0x10]
push eax
call fcn.10046062
pop ecx
jmp 0x1004680b
lea eax, [ebp - 0x10]
push eax
call fcn.100460fd
jmp 0x100467d1
mov eax, dword [edi]
test eax, eax
je 0x100467f6
cmp word [eax], dx
je 0x100467f6
lea eax, [ebp - 0x10]
push eax
call fcn.10046017
pop ecx
jmp 0x10046809
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100468d4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10046519
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100468d4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100468d4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100468d4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10046861
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1003e6f3
test ebx, ebx
je 0x100468cf
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1003e6f3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100468d4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100468d4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1004a9ad
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100468d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c009
leave
ret
Function at 0x1004be10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004be3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004be3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4f6670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x99000]
mov dword [edi + 0xcf740], 0xeb761d14
push edi
jmp 0x4f669a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f66a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f6690
mov eax, 1
add ebx, ebx
jne 0x4f66b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f66c4
jne 0x4f66e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f66e3
dec eax
add ebx, ebx
jne 0x4f66d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f66a8
add ebx, ebx
jne 0x4f66df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f6735
xor ecx, ecx
sub eax, 3
jb 0x4f66fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f676a
sar eax, 1
mov ebp, eax
jmp 0x4f6706
add ebx, ebx
jne 0x4f6706
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f66d4
inc ecx
add ebx, ebx
jne 0x4f6714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f66d4
add ebx, ebx
jne 0x4f6721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f6716
jne 0x4f6732
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f6716
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f6754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f6746
jmp 0x4f6696
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f6754
add edi, ecx
jmp 0x4f6696
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f6772
cmp byte [edi], 0x11
jne 0x4f6772
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 0x4f6777
lea edi, [esi + 0xef000]
mov eax, dword [edi]
or eax, eax
je 0x4f67ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1074e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x107660]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f67a4
mov ecx, edi
jns 0x4f67d3
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 + 0x107664]
or eax, eax
je 0x4f67e9
mov dword [ebx], eax
add ebx, 4
jmp 0x4f67c1
call dword [esi + 0x107674]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f6820
cmp al, 0xef
ja 0x4f6813
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f67f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f6802
mov ebp, dword [esi + 0x107668]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x4f6854
sub esp, 0xffffff80
jmp 0x420577
Function at 0x3001f282
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x30005dc8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.3001f217
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x3001f2d1
cmp dword [ebp - 0x1c], 5
jb 0x3001f2e9
jmp 0x3001f2e5
cmp dword [ebp - 0x10], 1
jne 0x3001f2e9
cmp dword [ebp - 0x1c], 4
ja 0x3001f2e5
jne 0x3001f2e9
cmp dword [ebp - 0x18], 0
jbe 0x3001f2e9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x30005db8
call fcn.3000ca04
test eax, eax
jge 0x3001f30a
mov byte [0x30026d28], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.3001f470
add ebp, 0x78
leave
ret

Function at 0x3001f3bc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30005de8
push 0x30005dcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3001f3f1
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30005dc8
push ebx
call edi
test esi, esi
mov dword [0x30005dc8], esi
jne 0x3001f455
mov dword [0x30005dc8], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30026d04], 0x44bf19b1
pop ebx
leave
ret
Function at 0x3001f470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30005dc8]
jne 0x3002016b
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30031e30], eax
mov dword [0x30031e2c], ecx
mov dword [0x30031e28], edx
mov dword [0x30031e24], ebx
mov dword [0x30031e20], esi
mov dword [0x30031e1c], edi
mov word [0x30031e48], ss
mov word [0x30031e3c], cs
mov word [0x30031e18], ds
mov word [0x30031e14], es
mov word [0x30031e10], fs
mov word [0x30031e0c], gs
pushfd
pop dword [0x30031e40]
mov eax, dword [ebp]
mov dword [0x30031e34], eax
mov eax, dword [ebp + 4]
mov dword [0x30031e38], eax
lea eax, [ebp + 8]
mov dword [0x30031e44], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30031d80], 0x10001
mov eax, dword [0x30031e38]
mov dword [0x30031d34], eax
mov dword [0x30031d28], 0xc0000409
mov dword [0x30031d2c], 1
mov eax, dword [0x30005dc8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30026d04]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30031d78], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30006140
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30031d78], 0
jne 0x3002025b
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x3001f488
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30005e14
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3001f4e0
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x30005e0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3001f4e0
mov al, 1
jmp 0x3001f4e2
xor al, al
leave
ret 8
Function at 0x3001fd1a
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x300228c8
call fcn.300200cd
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3003208c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3001fab9
cmp eax, esi
jne 0x3001faac
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3001fabc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3001fa93
xor esi, esi
inc esi
mov eax, dword [0x30032088]
cmp eax, esi
jne 0x3001facf
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3001fafe
mov eax, dword [0x30032088]
test eax, eax
jne 0x3001faf8
mov dword [0x30032088], esi
push 0x30001404
push 0x300013f8
call fcn.301ab000
pop ecx
pop ecx
test eax, eax
je 0x3001fafe
jmp 0x3001fc26
mov dword [0x30031d20], esi
mov eax, dword [0x30032088]
cmp eax, esi
jne 0x3001fb22
push 0x300013f4
push 0x300013d4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30032088], 2
test ebx, ebx
jne 0x3001fb2e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30032098], 0
je 0x3001fb52
push 0x30032098
call fcn.3002032e
pop ecx
test eax, eax
je 0x3001fb52
push 0
push 2
push 0
call dword [0x30032098]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3001fbae
test al, al
je 0x3001fb6c
cmp dword [ebp - 0x1c], 0
jne 0x3001fbae
mov al, byte [esi]
test al, al
je 0x3001fb7c
cmp al, 0x20
ja 0x3001fb7c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3001fb6c
test byte [ebp - 0x3c], 1
je 0x3001fb88
movzx eax, word [ebp - 0x38]
jmp 0x3001fb8b
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30031d1c], eax
cmp dword [0x30031d10], 0
jne 0x3001fc02
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3001fbbd
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3001fbd0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3001fb59
cmp dword [0x30031d20], 0
jne 0x3001fc11
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30031d1c]
jmp 0x3001fc32
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30020112
ret
call fcn.3001f3bc
jmp 0x3001fa59