joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c7e2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x240], eax
mov ebx, 0x104
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.1002b9cf
pop ecx
pop ecx
test eax, eax
jne 0x1002c81f
or eax, 0xffffffff
jmp 0x1002c9fa
cmp word [ebp - 0x22c], 0
push esi
lea esi, [ebp - 0x22c]
push edi
mov dword [ebp - 0x238], esi
je 0x1002c845
inc esi
inc esi
cmp word [esi], 0
jne 0x1002c837
mov dword [ebp - 0x238], esi
xor edi, edi
inc edi
push edi
call fcn.1002a635
mov dword [esp], 0x100034e0
call fcn.10025f1c
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x248], eax
cmp eax, 0x64
jbe 0x1002c871
mov dword [ebp - 0x230], edi
mov eax, esi
lea ecx, [ebp - 0x22c]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x234], eax
mov esi, 0x80
mov edi, 0xc0000000
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push 0x10003190
push 0xffffffffffffffff
push eax
call fcn.1002ae58
add esp, 0x10
cmp dword [ebp - 0x234], 0
jl 0x1002c9a5
push dword [ebp - 0x234]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.10029a58
add esp, 0xc
mov ecx, eax
call fcn.100209e7
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x24]
push eax
call fcn.10030a01
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.10036d44
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x1002c9aa
cmp dword [ebp - 0x230], 0x64
jb 0x1002c916
and dword [ebp - 0x230], 0
inc dword [ebp - 0x230]
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x248]
jne 0x1002c88d
push eax
push 0x10003190
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.1002ae58
add esp, 0x10
cmp dword [ebp - 0x234], 0
jl 0x1002c9a5
push dword [ebp - 0x234]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.10029a58
add esp, 0xc
mov ecx, eax
call fcn.100209e7
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x24]
push eax
call fcn.10030a01
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push ebx
push esi
push 2
push ebx
push 1
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.10036d44
mov dword [ebp - 0x23c], eax
jmp 0x1002c9ac
call fcn.1001fd5d
xor ebx, ebx
cmp dword [ebp - 0x230], 0x64
pop edi
pop esi
jb 0x1002c9bd
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x230]
inc eax
push eax
push 0x100034e0
call fcn.10025ac5
call fcn.1002a68d
cmp dword [ebp - 0x240], ebx
je 0x1002c9f4
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push dword [ebp - 0x240]
push eax
call fcn.1002574e
add esp, 0xc
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004da72
leave
ret
Function at 0x1002ca07
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
xor edi, edi
push eax
inc edi
call fcn.1002b9cf
pop ecx
pop ecx
test eax, eax
je 0x1002cacc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100031a0
call fcn.10031e84
call fcn.1002aa6e
test eax, eax
je 0x1002caca
call fcn.1002a979
test eax, eax
jne 0x1002caca
call fcn.1002c080
test eax, eax
jne 0x1002ca81
call fcn.1002b98c
test eax, eax
je 0x1002caca
push dword [0x10089bc0]
call fcn.1002d630
pop ecx
test eax, eax
jne 0x1002caca
call fcn.1002b94b
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1002c7e2
push 0
lea ecx, [ebp - 0x20c]
push ecx
push edi
push eax
call fcn.1002bd3b
mov edi, eax
add esp, 0x18
lea eax, [ebp - 0x414]
test edi, edi
jne 0x1002cabb
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1002caca
push esi
push 0x10089bec
push eax
call fcn.1002574e
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004da72
leave
ret

Function at 0x1002db10
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x100896f0]
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.1002d770
add esp, 0x10
call fcn.1002daf6
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.1002d770
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.1002d770
call fcn.10026347
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.1002d770
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002d716
add esp, 0x30
pop edi
pop esi
pop ebp
ret

Function at 0x1002fc50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp edi, ebx
jne 0x1002fc72
xor esi, esi
jmp 0x1002fcf7
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1002fc6b
push esi
call fcn.10024ea1
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1002fc99
push ebx
push 0x33753468
jmp 0x1002fce2
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1002fcb0
push ebx
push 0x33753469
jmp 0x1002fce2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10003174
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002fcdc
cmp dword [ebp - 4], 0x34
jne 0x1002fcdc
mov esi, dword [ebp - 8]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
jmp 0x1002fce9
push ebx
push 0x3375346a
call fcn.10026d28
xor esi, esi
cmp dword [ebp + 0xc], ebx
je 0x1002fcf7
push dword [ebp + 0xc]
call fcn.1001fd7c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10030010
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.10025688
test eax, eax
jne 0x1003002d
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push edi
push eax
push 0x11
call fcn.1002d610
push dword [ebp - 0x1c]
push 0x12
call fcn.1002d610
push 0x1000dc64
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
cmp eax, edi
je 0x1003012e
push esi
push 0x1000dc44
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x1003012d
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003012d
push dword [ebp - 4]
call fcn.10024ea1
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10030125
lea ecx, [ebp - 4]
push ecx
push eax
call esi
test eax, eax
je 0x10030125
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor esi, esi
mov dword [ebp - 8], edi
cmp eax, edi
jbe 0x10030125
mov edx, dword [ebp - 0xc]
push ebx
mov ebx, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x100300dc
dec eax
dec eax
jne 0x100300ed
push dword [edx]
call fcn.1002f602
pop ecx
cmp edi, eax
ja 0x100300ed
mov edi, eax
jmp 0x100300ed
push dword [edx]
inc dword [ebp - 8]
call fcn.1002f602
pop ecx
cmp esi, eax
ja 0x100300ed
mov esi, eax
add edx, 0x18
dec ebx
jne 0x100300c0
pop ebx
test esi, esi
je 0x10030103
push esi
push 0x19e1
call fcn.1002d610
test edi, edi
je 0x10030112
push edi
push 0x19e2
call fcn.1002d610
cmp dword [ebp - 8], 0
je 0x10030125
push dword [ebp - 8]
push 0x19e0
call fcn.1002d610
push dword [ebp - 0xc]
call fcn.10024ed5
pop esi
call fcn.1002989f
pop edi
test eax, eax
jne 0x10030141
push dword [ebp - 0x1c]
call fcn.1002fefe
pop ecx
leave
ret
Function at 0x10030143
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1000dccc
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x138]
push ebx
push eax
mov dword [ebp - 0x140], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x13c], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push 1
push ebx
push 0x1000dca0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100301fc
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
push 0x1000dc90
push dword [ebp - 0x144]
mov dword [ebp - 0x14c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100301ee
push dword [ebp - 0x148]
push 0x22df
call fcn.1002d610
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10030207
push ebx
push 0x66397234
call fcn.10026d28
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x13c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10030291
push dword [ebp - 0x130]
push 0x1a
call fcn.1002d610
movzx eax, word [ebp - 0x28]
movzx ecx, word [ebp - 0x26]
shl eax, 0x10
or eax, ecx
push eax
push 0x43
call fcn.1002d610
movzx eax, word [ebp - 0x24]
push eax
push 0x3a5
call fcn.1002d610
push dword [ebp - 0x138]
push 0x22e1
call fcn.1002d610
push dword [ebp - 0x134]
push 0x22e2
call fcn.1002d610
movzx eax, word [ebp - 0x28]
push eax
push 0x22e4
call fcn.1002d610
movzx eax, word [ebp - 0x26]
push eax
push 0x22e5
call fcn.1002d610
call fcn.10036ade
test eax, eax
je 0x10030324
lea eax, [ebp - 0x20]
push eax
call fcn.10020a1d
mov esi, eax
cmp esi, ebx
jne 0x100302b5
push ebx
push 0x38317137
jmp 0x10030302
push 0x1000dc80
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x100302cd
push ebx
push 0x38317138
jmp 0x10030302
lea ecx, [ebp - 0x140]
push ecx
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x28]
push ecx
push dword [ebp - 0x134]
push dword [ebp - 0x138]
call eax
test eax, eax
jne 0x10030309
push 0xffffffffffffffff
push 0x1af7
call fcn.1002d610
push ebx
push 0x38317139
call fcn.10026d28
jmp 0x10030319
push dword [ebp - 0x140]
push 0x1af7
call fcn.1002d610
cmp esi, ebx
je 0x10030324
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004da72
leave
ret
Function at 0x1003058c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x100305fc
push esi
lea eax, [ebp - 4]
push eax
call fcn.100251dc
test eax, eax
je 0x100305fc
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100305f4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10003174
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100305f4
cmp dword [ebp - 8], ebx
je 0x100305f4
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.10025006
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x1003686e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0x20]
push edi
test bl, 8
je 0x100368ae
cmp dword [esp + 0x20], 1
jge 0x1003689e
push 0
push 0x10003170
push 0x7176667a
push 0x10003170
call fcn.1002f5e2
pop edi
or eax, 0xffffffff
pop ebx
ret 0x20
mov edi, dword [esp + 0x1c]
test bl, 1
je 0x100368ed
xor eax, eax
mov word [edi], ax
jmp 0x100368f0
cmp dword [esp + 0x20], 2
jge 0x100368d3
push 0
push 0x10003170
push 0x64616c77
push 0x10003170
call fcn.1002f5e2
pop edi
or eax, 0xffffffff
pop ebx
ret 0x20
mov edi, dword [esp + 0x1c]
test bl, 1
je 0x100368e9
xor ecx, ecx
xor edx, edx
mov word [edi + 2], cx
mov word [edi], dx
jmp 0x100368f0
mov byte [edi + 1], 0
mov byte [edi], 0
push ebp
push esi
mov esi, dword [esp + 0x18]
push esi
call fcn.10041160
test eax, eax
jne 0x10036932
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 1]
movzx ecx, ax
push 0xd9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10036932
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10036932
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1003693c
pop esi
pop ebp
pop edi
or eax, 0xffffffff
pop ebx
ret 0x20
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
push ebx
push ecx
movzx ecx, word [esp + 0x2c]
movzx edx, bp
push edi
shl edx, 0x10
or edx, ecx
push edx
mov edx, dword [esp + 0x28]
push eax
push esi
push edx
call fcn.1003671d
pop esi
pop ebp
pop edi
pop ebx
ret 0x20

Function at 0x10036aeb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10036bbe
cmp dword [ebp - 0x90], 2
mov ecx, dword [ebp - 0x98]
mov al, byte [ebp - 6]
push esi
mov dword [0x1008a708], ecx
mov byte [0x1008a70e], al
jne 0x10036baa
mov eax, dword [ebp - 0x9c]
mov dx, word [ebp - 0xc]
mov dword [0x1008a704], eax
mov word [0x1008a70c], dx
cmp eax, 5
jne 0x10036b8c
mov esi, 0x10003170
cmp ecx, 1
jae 0x10036b6e
push 0
push esi
push 0x3535796e
push esi
call fcn.1002f5e2
cmp dword [ebp - 0x98], 1
jne 0x10036b8c
cmp word [ebp - 0xc], 1
ja 0x10036b8c
push 0
push esi
push 0x3535796f
push esi
call fcn.1002f5e2
movzx eax, word [ebp - 8]
mov ecx, eax
and ecx, 0x110
and eax, 0x100
mov dword [0x1008a714], ecx
mov dword [0x1008a718], eax
jmp 0x10036bbd
push 0
mov esi, 0x10003170
push esi
push 0x31343461
push esi
call fcn.1002f5e2
pop esi
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [0x1008a710], eax
call fcn.1004da72
leave
ret

Function at 0x10036cb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10036cd2
test al, 0x10
je 0x10036cd2
xor eax, eax
inc eax
jmp 0x10036cd4
xor eax, eax
pop ebp
ret 4
Function at 0x10036da4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001b1b0
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10036e1a
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0x1001b194
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10036e11
cmp dword [ebp - 8], 1
jne 0x10036e11
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x10003854
call esi
test eax, eax
jne 0x10036e0e
push 0x10003840
call esi
test eax, eax
je 0x10036e11
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10036e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x224], esi
call fcn.10036be9
test eax, eax
je 0x10036f3b
push ebx
push edi
lea eax, [ebp - 0x218]
push eax
push 0x20019
push esi
mov ebx, 0x1001b230
push ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x10036f39
lea eax, [ebp - 0x214]
push eax
push 0x20119
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x10036f2d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov edi, 0x1001b21c
push edi
push dword [ebp - 0x218]
mov ebx, 0x20a
mov dword [ebp - 0x220], ebx
call esi
test eax, eax
jne 0x10036f21
cmp dword [ebp - 0x21c], 1
jne 0x10036f21
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x220], ebx
call esi
test eax, eax
jne 0x10036f21
xor esi, esi
inc esi
cmp dword [ebp - 0x21c], esi
jne 0x10036f21
call fcn.10036da4
test eax, eax
jne 0x10036f21
mov dword [ebp - 0x224], esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
xor ecx, ebp
pop esi
call fcn.1004da72
leave
ret
Function at 0x10038214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100844b8], 0xffffffff
jne 0x10038290
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [0x100844b0]
mov dword [0x100844b8], 1
push Ordinal_4
call fcn.10036f77
test eax, eax
jne 0x10038290
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x100844b4]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10038287
cmp dword [ebp - 0xc], 4
jne 0x10038287
cmp dword [ebp - 0x10], eax
je 0x10038287
mov dword [0x100844b8], 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100844b8]
leave
ret
Function at 0x1003ff05
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x100501d0
call fcn.1004e649
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x1003ff43
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x1003ff43
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x1003ff43
mov eax, dword [ecx + 0x50]
jmp 0x1003ff64
mov ecx, 0x4550
cmp dx, cx
jne 0x1003ff70
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x1003ff70
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x1003ff70
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x1003ff74
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.1004e68e
ret 4
Function at 0x10043674
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR90.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004da72
leave
ret

Function at 0x10046df0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x1008b884
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x10046e41
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x1008b888], eax
mov ax, word [ebp - 0x30]
mov word [0x1008b88c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x1008b890], eax
mov eax, dword [ebp - 0x40]
mov dword [0x1008b894], eax
mov eax, esi
pop esi
leave
ret
Function at 0x10048e48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x1008b928
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x1f], 2
jne 0x1004905d
mov eax, dword [esi + 0x14]
push edi
mov edi, 0x1008b964
cmp eax, ebx
je 0x10048e9e
push eax
mov ecx, edi
call fcn.1004a568
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10048f9f
lea eax, [ebp - 0x23c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x1001df00
push ebx
call fcn.1004a200
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x10048f9f
mov eax, dword [ebp - 0x238]
push 4
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or eax, ecx
push eax
mov ecx, edi
call fcn.1004a53e
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10048faf
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x238], ebx
jbe 0x10048f73
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x23c]
push dword [eax + ecx*4]
call fcn.10048c1e
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x10048f58
movzx eax, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x224]
mov dword [ecx + eax*4], edx
inc byte [esi + 0x1d]
jmp 0x10048f5f
cmp eax, 0x8007000e
je 0x10048f8a
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x238]
jb 0x10048f1e
cmp byte [esi + 0x1d], bl
jne 0x10049049
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
jmp 0x10049049
push dword [esi + 0x14]
mov ecx, edi
call fcn.1004a568
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
jmp 0x1004905c
push 4
mov ecx, edi
call fcn.1004a53e
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x10048fbe
mov dword [ebp - 0x218], 0x8007000e
jmp 0x1004905c
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
call fcn.1004a6a3
test al, al
je 0x10048fee
cmp dword [esi + 8], 0x1000
jne 0x10048fee
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 4]
call fcn.1004a671
jmp 0x10049005
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x10049049
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.1004818f
test eax, eax
je 0x1004903d
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.1004a4ab
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x1004905c
cmp dword [esi + 8], 0xc00
je 0x10049056
or byte [esi + 0x1f], 2
mov dword [ebp - 0x218], ebx
pop edi
push 0x1008b928
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], ebx
pop esi
pop ebx
je 0x1004907e
lea eax, [ebp - 0x23c]
push eax
call fcn.1004a26d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.1004da72
leave
ret 4