joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fe95
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5967be
call fcn.00593620
sub esp, 0x260
push ebx
push esi
push edi
push 0x5e4264
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov edi, ecx
mov dword [ebp - 0x20], esi
call fcn.0043229f
mov dword [ebp - 4], esi
call fcn.0044f863
movzx eax, byte [eax + 0x20]
mov dword [ebp - 0x14], esi
cmp eax, esi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
je 0x48fefa
cmp dword [edi + 0x14], esi
jne 0x48fefa
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x10]
push edx
push 0x20119
push esi
push eax
push ecx
mov dword [ebp - 0x10], esi
call ebx
cmp eax, esi
je 0x48ff19
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x10]
push edx
push 0x20219
push esi
push eax
push ecx
mov dword [ebp - 0x10], esi
call ebx
cmp eax, esi
jne 0x48ffc0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x619864]
mov ecx, 0x619864
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x208
lea eax, [ebp - 0x26a]
mov byte [ebp - 4], 2
push esi
push eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x26c], si
call fcn.0049a380
mov edi, dword [edi + 0xc]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49004a
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x490011
cmp eax, 2
je 0x490011
cmp eax, 7
je 0x490011
cmp eax, 4
jne 0x48ffe5
push 0xa
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x26c]
call fcn.004a218f
lea eax, [ebp - 0x60]
push eax
call fcn.0049a28b
add esp, 0x14
lea ecx, [ebp - 0x60]
jmp 0x490024
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040135c
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
jmp 0x490092
cmp eax, 0xb
jne 0x49002f
push 0xa
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
call fcn.004a22b7
lea eax, [ebp - 0x60]
push eax
call fcn.0049a28b
add esp, 0x18
jmp 0x48ffbb
lea eax, [ebp - 0x26c]
push eax
call fcn.0049a28b
pop ecx
lea ecx, [ebp - 0x26c]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.004013f5
lea ecx, [ebp - 0x10]
call fcn.00480ff9
lea ecx, [ebp - 0x10]
call fcn.004810e5
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.004013b4
cmp dword [ebp - 0x14], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x49005d
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040135c
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
cmp dword [ebp - 0x14], esi
je 0x490085
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x494f37
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x494f50
mov eax, dword [ebp - 4]
jmp 0x49502a
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x495005
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5e8440]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5e8440]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5e8440]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5e8440]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5e8440]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5e8440]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5e8440]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5e8440]
dec ebp
jne 0x494f6f
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x495021
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x5e8440]
dec ecx
jne 0x49500f
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x497170
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x598320
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x6091e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x49734d
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x49734d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x49734d
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x497340
test edi, edi
jbe 0x497340
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00497720
push esi
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [esp + 0x1c]
call fcn.00448d45
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x48]
push eax
lea esi, [esp + 0x20]
call fcn.00493f7d
cmp dword [esp + 0x24], 0
je 0x4972f5
mov eax, dword [ebp]
push eax
mov eax, esi
call fcn.00492eef
test eax, eax
je 0x49726c
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004941bb
mov byte [esp + 0x40], 2
call fcn.00492edb
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00432265
mov byte [esp + 0x40], 1
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x20]
call fcn.00492eef
test eax, eax
je 0x4972aa
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x24]
call fcn.004941bb
mov byte [esp + 0x40], 3
call fcn.00492edb
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00432265
mov dword [esp + 0x10], vtable.cf::BkJson::Handle.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00493f3a
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4972e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00493f3a
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49734d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
Function at 0x497f68
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
xor bl, bl
call fcn.0049a380
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x497fea
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x497fe2
lea eax, [ebp - 0x20c]
push eax
push str.vmusr
call fcn.0049cb04
test eax, eax
pop ecx
pop ecx
je 0x497fe8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x497fbe
jmp 0x497fea
mov bl, 1
test esi, esi
je 0x497ff5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a32b3
leave
ret

Function at 0x498423
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x498453
mov byte [ebp - 1], bl
jmp 0x4984b6
push esi
push 0x80
call fcn.0049c932
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x49848e
mov byte [ebp - 1], bl
jmp 0x4984a1
push dword [ebp + 0x10]
push esi
call fcn.00499ea8
test eax, eax
pop ecx
pop ecx
je 0x4984a1
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x4984ac
push esi
call fcn.0049af3d
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x498684
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, ecx
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x4987fa
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0049a380
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.0040132b
or ebx, 0xffffffff
cmp eax, ebx
jne 0x4987c5
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
jne 0x4987c5
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
jne 0x4987c5
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49874d
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4987d9
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0047d7fb
mov eax, esi
call fcn.004321a3
mov edi, 0x5eea90
jmp 0x4987e9
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49876f
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x498729
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x4987b0
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0049a380
add esp, 0xc
push 0x105
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x498731
mov edi, 0x5f0cb4
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49873c
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00498810
test eax, eax
pop ecx
pop ecx
jne 0x498731
xor eax, eax
jmp 0x4987f8
push 0x5e4df4
push edi
push esi
call fcn.0047d7fb
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
jne 0x4987dd
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004a32b3
add ebp, 0x190
leave
ret
Function at 0x498810
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fa988
call fcn.004a5fe4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4988c1
cmp dword [ebp + 0xc], eax
je 0x4988c1
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x4988c1
mov ebx, 0x103
cmp esi, ebx
ja 0x4988c1
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00498b00
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4988ba
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049a380
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4988ba
cmp eax, ebx
ja 0x4988ba
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0049ec36
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4988ba
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x4988d0
push dword [ebp - 0x1c]
call fcn.0049a3fa
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a6029
ret

Function at 0x498997
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov ax, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [edi + 8]
push esi
mov word [ebp - 0x12], ax
call ebx
mov word [ebp - 0x10], ax
mov ax, word [edi + 8]
mov word [ebp - 0xe], ax
mov ax, word [edi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call ebx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor ebx, ebx
mov esi, 0x104
movzx eax, word [ebp + ebx*2 - 0x14]
movzx ecx, word [ebp + ebx*2 - 0x12]
inc ebx
push 0x5ec5a0
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push 0x5f0560
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
inc ebx
call fcn.0049a2bd
and dword [ebp - 0x220], 0
add esp, 0x1c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x498a59
cmp dword [ebp - 0x220], 0
jne 0x498a70
cmp ebx, 8
jb 0x4989fa
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a32b3
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0049a28b
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041da58
mov al, 1
jmp 0x498a60
Function at 0x4998ad
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004997ec
mov eax, 0x400000
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 fcn.0049a380
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 0x4998fc
cmp dword [ebp - 0x1c], 5
jb 0x499914
jmp 0x499910
cmp dword [ebp - 0x10], 1
jne 0x499914
cmp dword [ebp - 0x1c], 4
ja 0x499910
jne 0x499914
cmp dword [ebp - 0x18], 0
jbe 0x499914
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59bae4
call fcn.00440c38
test eax, eax
jge 0x499935
mov byte [0x61c5c0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a32b3
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x6198e8], 0
push esi
jne 0x499a5a
call fcn.00499985
test eax, eax
je 0x499a9d
mov eax, dword [0x6198e8]
cmp eax, 1
jne 0x499a7b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x499a9d
pop esi
ret
push eax
call dword [0x6198f0]
test eax, eax
jne 0x499ae5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x499aa1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x6198e8]
call dword [0x6198f0]
mov edi, eax
test edi, edi
je 0x499ac8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x499ae4
lea edi, [esi + 0xff0]
push esi
push dword [0x6198e8]
call dword [0x6198ec]
add esi, 0x10
cmp esi, edi
jb 0x499ace
mov eax, esi
pop edi
pop esi
ret
jmp 0x499a47

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x49ed2c
call fcn.004a4f61
mov dword [eax], esi
call fcn.004a4f4e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049b455
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x49ed08
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49ed5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a4f74
pop ecx
call fcn.004a4f4e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x49ed82
test al, 1
je 0x49ed82
test byte [esp + 0xc], 2
je 0x49ed82
call fcn.004a4f61
mov dword [eax], 5
call fcn.004a4f4e
mov dword [eax], 0xd
jmp 0x49ed52
xor eax, eax
pop esi
ret
Function at 0x4a1f23
Capabilities:
Get system information on windows

Disassembly:
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a2012
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x14], esi
xor ebx, ebx
call fcn.004a438e
test eax, eax
pop ecx
je 0x4a1f67
push edi
push edi
push edi
push edi
push edi
call fcn.0049b359
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4a1fa3
push 0x59bb2c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
je 0x4a1fa3
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4a1fa3
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], edi
call eax
cmp eax, 1
pop ecx
jne 0x4a1fa3
cmp dword [ebp - 0xc], edi
jbe 0x4a1fa3
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
lea eax, [esi - 1]
lea ebx, [ebx + esi - 1]
not eax
inc edi
and ebx, eax
je 0x4a1fc1
add ebx, esi
lea eax, [esi + esi]
cmp ebx, eax
jae 0x4a1fca
mov ebx, eax
dec esi
not esi
and esi, dword [ebp - 0x10]
sub esi, ebx
cmp dword [ebp - 8], 1
jne 0x4a1fdd
push 0x11
pop eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
cmp esi, eax
jb 0x4a2012
push 4
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x4a2012
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4a2012
xor eax, eax
inc eax
jmp 0x4a2014
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a32b3
leave
ret

Function at 0x4a4175
Capabilities:
Terminate process

Disassembly:
push 0x14
sub byte [eax - 0x61], bl
pop edi
add al, ch
arpl word [esi], bx
add byte [eax], al
xor ebx, ebx
mov dword [edi - 0x20], ebx
cmp dword [ebp + 8], 5
ja 0x4a41ab
call 0x24a4e4e
mov dword [esi + edx*2], 0x53000000
push ebx
push ebx
push ebx
push ebx
jmp fcn.0049b455
call fcn.004a6509
mov esi, eax
mov dword [ebp - 0x1c], esi
pop ecx
and eax, dword [eax]
add byte [ebx - 0x1b8a7610], cl
clc
jle 0x4a41ac
invalid
Function at 0x4ae4e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x609f20]
je 0x4ae4fb
inc edi
cmp edi, 0x17
jb 0x4ae4ec
cmp edi, 0x17
jae 0x4ae67b
push ebp
push 3
call fcn.004b95f8
mov al, 0
add byte [ebx + 0xf5901f8], al
test byte [ecx], dh
add dword [eax], eax
invalid
push 3
call fcn.004b95f8
test eax, eax
pop ecx
jne 0x4ae52f
cmp dword [0x6091d4], 1
je 0x4ae647
cmp ebx, 0xfc
je 0x4ae67a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x619c18
push ebp
call fcn.004a1510
add esp, 0xc
test eax, eax
je 0x4ae565
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
push 0x104
mov esi, 0x619c31
push esi
push 0
mov byte [0x619d35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ae5a9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a1510
add esp, 0xc
test eax, eax
je 0x4ae5a9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049b359
add esp, 0x14
push esi
call fcn.0049c030
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4ae5ee
push esi
call fcn.0049c030
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x619f2c
push 0x5a30a4
sub ecx, eax
push ecx
push eax
call fcn.004a19d8
add esp, 0x14
test eax, eax
je 0x4ae5ee
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
jmp 0x4ae5f0
xor esi, esi
push 0x5a30a0
push ebx
push ebp
call fcn.004b55f1
add esp, 0xc
test eax, eax
je 0x4ae610
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
push dword [edi*8 + 0x609f24]
push ebx
push ebp
call fcn.004b55f1
add esp, 0xc
test eax, eax
je 0x4ae632
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b943b
add esp, 0xc
jmp 0x4ae67a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4ae67a
cmp ebp, 0xffffffff
je 0x4ae67a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x609f24]
push dword [esi]
call fcn.0049c030
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b5c16
Capabilities:
Get geographical location

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.004a6509
mov ebp, dword [esp + 0x14]
mov esi, eax
xor ebx, ebx
add esi, 0x9c
cmp ebp, ebx
jne 0x4b5c03
or dword [esi + 8], 0x104
jmp 0x4b5cb4
lea eax, [ebp + 0x40]
cmp eax, ebx
lea edi, [esi + 4]
mov dword [esi], ebp
mov dword [edi], eax
je 0x4b5c25
cmp byte [eax], bl
je 0x4b5c25
push edi
push 0x16
push 0x5a3a20
call fcn.004b5662
add esp, 0xc
mov eax, dword [esi]
cmp eax, ebx
mov dword [esi + 8], ebx
je 0x4b5c79
cmp byte [eax], bl
je 0x4b5c79
mov eax, dword [edi]
cmp eax, ebx
je 0x4b5c43
cmp byte [eax], bl
je 0x4b5c43
call fcn.004b5b3b
jmp 0x4b5c48
call fcn.004b5ba0
cmp dword [esi + 8], ebx
jne 0x4b5cc9
push esi
push 0x40
push 0x5a3818
call fcn.004b5662
add esp, 0xc
test eax, eax
je 0x4b5cc0
mov edi, dword [edi]
cmp edi, ebx
je 0x4b5c72
cmp byte [edi], bl
je 0x4b5c72
call fcn.004b5b3b
jmp 0x4b5cc0
call fcn.004b5ba0
jmp 0x4b5cc0
mov edi, dword [edi]
cmp edi, ebx
je 0x4b5cad
cmp byte [edi], bl
je 0x4b5cad
push edi
call fcn.0049c030
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x4b57a4
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x4b5cc0
mov dword [esi + 8], ebx
jmp 0x4b5cc0
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], ebx
je 0x4b5db8
mov ecx, ebp
add ebp, 0x80
neg ecx
sbb ecx, ecx
and ecx, ebp
mov edi, esi
call fcn.004b56c2
mov ebx, eax
test ebx, ebx
je 0x4b5db8
cmp ebx, 0xfde8
je 0x4b5db8
cmp ebx, 0xfde9
je 0x4b5db8
movzx eax, bx
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b5db8
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b5db8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b5d40
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], bx
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4b5db3
cmp word [eax], 0x814
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x4b5d7a
push str.Norwegian_Nynorsk
push 0x40
push edi
call fcn.004a1510
add esp, 0xc
test eax, eax
je 0x4b5d8b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049b359
add esp, 0x14
jmp 0x4b5d8b
push 0x40
push edi
push 0x1001
push dword [esi + 0x18]
call ebp
test eax, eax
je 0x4b5db8
push 0x40
lea eax, [edi + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call ebp
test eax, eax
je 0x4b5db8
push 0xa
push 0x10
add edi, 0x80
push edi
push ebx
call fcn.004a5fbc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b5dba
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret