joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e0be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42e0e0
cmp dword [edi + 0x3c], 0
jne 0x42e0e0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0043769d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042e10d
pop edi
pop esi
pop ebx
ret 8

Function at 0x430cc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x430d07
call fcn.0043769d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x430d07
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x430cfe
xor eax, eax
jmp 0x430d0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00430d15
pop edi
pop esi
pop ebx
ret 4

Function at 0x438630
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43865e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43867c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00438596
jmp 0x43867c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43867c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00438596
test edi, edi
mov eax, edi
jne 0x438666
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x3fd763c8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0xb7709e5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x8ccba3
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x8cc92e
pop edx
or eax, ebx
mov ebx, eax
mov ebx, 0xede63d23
call fcn.008ccbdf
mov eax, 0x51adaf5b
xor dword [ecx], edx
mov ebx, ebx
add eax, 0x54aa3caa
inc ecx
and eax, eax
cmp ecx, esi
jne fcn.008ccba3
add ebx, 0x17bb8e51
ret
Function at 0x403b05
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x40c080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4012fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x403b36
xor al, al
jmp 0x403b65
movzx eax, word [ebp - 0x84]
lea edx, [ebp - 0x82]
test eax, eax
je 0x403b63
mov ecx, dword [0x40c8b8]
and eax, 0x1f
bts ecx, eax
movzx eax, word [edx]
lea edx, [edx + 2]
test eax, eax
jne 0x403b4d
mov dword [0x40c8b8], ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004097e0
leave
ret
Function at 0x405bbb
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x40c080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x86c], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov edi, eax
cmp dword [0x40c0b4], 0xffffffff
jne 0x405c84
lea eax, [ebp - 0x868]
mov dword [0x40c0b4], ebx
push eax
push ecx
push ecx
mov edx, 0x401508
mov dword [ebp - 0x868], ebx
call fcn.00403082
add esp, 0xc
test eax, eax
jne 0x405c84
lea eax, [ebp - 0x858]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x870], 0x50
push eax
push ebx
push ebx
push 0x401564
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c6d
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x40c0b4], eax
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x864]
call fcn.0040870a
cmp dword [0x40c914], ebx
je 0x405d2a
cmp dword [ebp - 0x86c], ebx
je 0x405d2a
mov eax, 0x20006
mov dword [ebp - 0x868], ebx
cmp byte [0x40cd92], bl
jne 0x405cbc
cmp byte [0x40caad], bl
je 0x405cbc
mov eax, 0x20106
push ebx
lea ecx, [ebp - 0x868]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push 0x401570
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405d2a
push 4
lea eax, [ebp - 0x86c]
push eax
push 4
push ebx
push 0x4015e0
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push 0x4015f4
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [0x40c0b4], 3
je 0x405d99
push 0x802
lea eax, [ebp - 0x808]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
cmp dword [ebp - 0x86c], ebx
je 0x405d75
push dword [ebp - 0x86c]
push 0x401618
push 0x401
push eax
call fcn.00402f47
add esp, 0x14
jmp 0x405d88
push 0x40163c
push 0x401
push eax
call fcn.00402f47
add esp, 0x10
test eax, eax
js 0x405d99
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e0
leave
ret
Function at 0x409e60
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40a650
call fcn.0040a160
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409ec0
cmp eax, 0xffffffff
je 0x409ec0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x409eb9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x409eb9
cmp edx, 0x10000000
jae 0x409eb9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x409eb6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409f40
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 0x409f7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409f76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409f80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409f66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a060
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 0x40a091
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a091
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40a091
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xa21ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c5000]
push edi
or ebp, 0xffffffff
jmp 0xa21ec2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa21ec9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa21eb8
mov eax, 1
add ebx, ebx
jne 0xa21edb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa21eec
jne 0xa21f0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa21f0b
dec eax
add ebx, ebx
jne 0xa21ef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa21ed0
add ebx, ebx
jne 0xa21f07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa21f5d
xor ecx, ecx
sub eax, 3
jb 0xa21f23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa21f92
sar eax, 1
mov ebp, eax
jmp 0xa21f2e
add ebx, ebx
jne 0xa21f2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa21efc
inc ecx
add ebx, ebx
jne 0xa21f3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa21efc
add ebx, ebx
jne 0xa21f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa21f3e
jne 0xa21f5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa21f3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa21f7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa21f6e
jmp 0xa21ebe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa21f7c
add edi, ecx
jmp 0xa21ebe
pop esi
mov edi, esi
mov ecx, 0x13708
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa21f9a
cmp byte [edi], 0x82
jne 0xa21f9a
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 0xa21f9f
lea edi, [esi + 0x5f5000]
mov eax, dword [edi]
or eax, eax
je 0xa2200e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x636d00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x636df0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa21fcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x636df4]
or eax, eax
je 0xa22008
mov dword [ebx], eax
add ebx, 4
jmp 0xa21fe9
call dword [esi + 0x636e04]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xa2203f
cmp al, 0xef
ja 0xa22032
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xa22014
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xa22021
mov ebp, dword [esi + 0x636df8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xa22073
sub esp, 0xffffff80
jmp 0x7ca600
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x251818cb
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x38c0a33
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x9bfc05
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9bfc2c
call fcn.00962138
mov dword [eax], esi
call fcn.00962125
push 0x16
pop esi
mov dword [eax], esi
call fcn.00962d7a
mov eax, esi
jmp 0x9bfc81
test dword [ebp + 0xc], 0xfffffff9
jne 0x9bfc12
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9bfc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0096214b
pop ecx
call fcn.00962125
mov eax, dword [eax]
jmp 0x9bfc81
test al, 0x10
jne 0x9bfc7f
test al, 1
je 0x9bfc7f
test byte [ebp + 0xc], 2
je 0x9bfc7f
call fcn.00962138
mov dword [eax], 5
call fcn.00962125
mov dword [eax], 0xd
jmp 0x9bfc50
xor eax, eax
pop esi
pop ebp
ret

Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov edx, dword [esp]
add esp, 4
add ecx, 0x7257b764
add edi, edi
call fcn.0040896e
and edi, edi
and edi, ecx
xor dword [ebx], edx
sub ecx, 0xbc6b9374
inc ebx
cmp ebx, esi
jne fcn.00408939
sub edi, edi
sub edi, 0x8623d6a4
ret
Function at 0x100013a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret

Function at 0x100015b9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100016a9
mov eax, 0x94
call fcn.10002710
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000171e
mov ecx, dword [esi + 0x10]
mov dword [0x100153b8], ecx
mov eax, dword [esi + 4]
mov dword [0x100153c4], eax
mov edx, dword [esi + 8]
mov dword [0x100153c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100153bc], esi
je 0x10001624
or esi, 0x8000
mov dword [0x100153bc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100153c0], eax
call fcn.10002635
test eax, eax
pop ecx
je 0x1000171e
call fcn.10001d8c
test eax, eax
jne 0x10001651
call fcn.10002686
jmp 0x1000171e
call fcn.10002593
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10015bd4], eax
call fcn.10002471
mov dword [0x100153a4], eax
call fcn.10001f52
test eax, eax
jl 0x100016a2
call fcn.100023cf
test eax, eax
jl 0x1000169d
call fcn.1000219c
test eax, eax
jl 0x1000169d
push 0
call fcn.100019f3
test eax, eax
pop ecx
jne 0x1000169d
inc dword [0x100153a0]
jmp 0x1000172f
call fcn.10002150
call fcn.10001b69
jmp 0x10001647
test eax, eax
jne 0x100016d9
cmp dword [0x100153a0], eax
jle 0x1000171e
dec dword [0x100153a0]
cmp dword [0x100153f4], eax
jne 0x100016c8
call fcn.10001b42
call fcn.10002150
call fcn.10001b69
call fcn.10002686
jmp 0x1000172f
cmp eax, 2
jne 0x10001722
push 0x8c
push 1
call fcn.10001e7b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000171e
push esi
push dword [0x10014a7c]
call dword [0x10015404]
test eax, eax
push esi
je 0x10001718
call fcn.10001b86
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000172f
call fcn.1000190a
pop ecx
xor eax, eax
jmp 0x10001732
cmp eax, 3
jne 0x1000172f
push 0
call fcn.10001d51
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10001a5d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000d048
call fcn.100028f8
push 8
call fcn.10002d93
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100153f8], esi
jne 0x10001a91
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100153f4], esi
mov al, byte [ebp + 0x10]
mov byte [0x100153f0], al
cmp dword [ebp + 0xc], edi
jne 0x10001adb
cmp dword [0x10015bc8], edi
je 0x10001acb
mov eax, dword [0x10015bc4]
sub eax, 4
mov dword [0x10015bc4], eax
cmp eax, dword [0x10015bc8]
jb 0x10001acb
mov eax, dword [eax]
cmp eax, edi
je 0x10001aac
call eax
jmp 0x10001aac
push 0x10010020
mov eax, 0x1001001c
call fcn.100019bd
pop ecx
push 0x10010028
mov eax, 0x10010024
call fcn.100019bd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10001b0c
cmp dword [ebp + 0x10], edi
jne 0x10001b1a
mov dword [0x100153f8], esi
push dword [ebp + 8]
call fcn.1000197b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10001b19
push 8
call fcn.10002cc6
pop ecx
ret
call fcn.10002933
ret

Function at 0x10002a4d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10014fe0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10014b38]
je 0x10002a84
inc eax
cmp eax, 0x13
jb 0x10002a75
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10014b38]
jne 0x10002ba7
mov eax, dword [0x100153ac]
cmp eax, 1
je 0x10002b82
cmp eax, edx
jne 0x10002ab4
cmp dword [0x100153b0], 1
je 0x10002b82
cmp ecx, 0xfc
je 0x10002ba7
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002aea
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.10005060
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.10005160
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10002b1e
mov eax, edi
push eax
call fcn.10005160
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000d4c8
push edi
call fcn.10005940
add esp, 0x10
push edi
call fcn.10005160
push dword [esi + 0x10014b3c]
mov ebx, eax
call fcn.10005160
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10002710
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10005060
push edi
push ebx
call fcn.10005070
push 0x1000d4a8
push ebx
call fcn.10005070
push dword [esi + 0x10014b3c]
push ebx
call fcn.10005070
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10005847
add esp, 0x2c
jmp 0x10002ba7
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x10014b3c]
push dword [esi]
call fcn.10005160
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.10005a95
add ebp, 0x90
leave
ret
Function at 0x10005847
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100156dc], ebx
push esi
push edi
jne 0x100058c7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10005902
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100156dc], eax
je 0x10005902
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100156e0], eax
call esi
cmp dword [0x100153b8], 2
mov dword [0x100156e4], eax
jne 0x100058c7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100156ec], eax
je 0x100058c7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100156e8], eax
mov eax, dword [0x100156e8]
test eax, eax
je 0x1000590c
call eax
test eax, eax
je 0x100058f3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100156ec]
test eax, eax
je 0x100058f3
test byte [ebp - 8], 1
jne 0x1000590c
cmp dword [0x100153c4], 4
jb 0x10005906
or byte [ebp + 0x12], 0x20
jmp 0x1000592b
xor eax, eax
jmp 0x1000593b
or byte [ebp + 0x12], 4
jmp 0x1000592b
mov eax, dword [0x100156e0]
test eax, eax
je 0x1000592b
call eax
mov ebx, eax
test ebx, ebx
je 0x1000592b
mov eax, dword [0x100156e4]
test eax, eax
je 0x1000592b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100156dc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100093ae
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10002710
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009449
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100153b8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10009449
cmp eax, 1
je 0x1000946a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009449
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10009416
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009445
xor eax, eax
inc eax
jmp 0x10009489
cmp edi, eax
jae 0x1000944d
xor eax, eax
jmp 0x10009489
cmp eax, esi
jae 0x10009454
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100153b8]
jmp 0x1000946d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009f00
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1000eef0
call fcn.100028f8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10015830], edi
jne 0x10009f44
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10009f2f
mov dword [0x10015830], ebx
jmp 0x10009f44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10009f44
mov dword [0x10015830], 2
mov eax, dword [0x10015830]
cmp eax, ebx
jne 0x10009f64
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1000a027
cmp eax, 2
je 0x10009f6d
cmp eax, edi
jne 0x10009f95
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10009f80
mov eax, dword [0x10015738]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x10009f9c
xor eax, eax
jmp 0x1000a027
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10002710
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10009fcf
cmp esi, edi
jne 0x10009fe5
push dword [ebp - 0x20]
call fcn.100018f8
pop ecx
mov esi, eax
cmp esi, edi
je 0x10009f95
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000a018
cmp dword [ebp + 0x14], edi
jne 0x1000a002
push edi
push edi
jmp 0x1000a008
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x1000a024
push esi
call fcn.1000190a
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10002933
ret