joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b990
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407c1c
xor eax, eax
push ebp
push 0x40ba50
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408620
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004087d0
mov eax, dword [ebx]
call fcn.0040b840
test al, al
jne 0x40ba2d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408620
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004087d0
mov eax, dword [ebx]
call fcn.0040b840
test al, al
jne 0x40ba2d
mov eax, ebx
call fcn.00407b38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba57
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407b98
lea eax, [ebp - 4]
call fcn.00407b38
ret

Function at 0x40d2f0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40ed34
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040ed20
add esp, 0x208
pop ebx
ret

Function at 0x419ea4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x419efd
test eax, edx
je 0x419f00
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x419ebb
movzx eax, word [eax]
sub eax, ecx
jmp 0x419ee2
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x419ee3
add ecx, 4
js 0x419ed3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x419ee0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x419ee2
xor eax, eax
ret
test eax, eax
je 0x419f0c
test edx, edx
jne 0x419eac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e6ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41e725
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407cc0
jmp 0x41e72e
mov eax, ebx
mov edx, esi
call fcn.00407f18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e738
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41e75a
movzx eax, word [esp]
jmp 0x41e75c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41f75c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41f881
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041f564
mov esi, eax
mov eax, dword [0x4bf6f0]
cmp byte [eax], 0
je 0x41f829
mov eax, dword [0x4bf550]
call fcn.00405858
call fcn.00405578
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41f72c]
call fcn.0040a54c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41f89c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41f865
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4bf524]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c3634]
call fcn.0040a93c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f888
lea eax, [ebp - 4]
mov edx, dword [0x41f72c]
call fcn.0040a670
ret
Function at 0x4206ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4207ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407f60
lea eax, [ebp - 4]
call fcn.004080c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408580
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x420796
mov eax, ebx
call fcn.00405404
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42078f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408580
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x420779
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4207c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x420779
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420796
mov eax, dword [ebp - 0x10]
call fcn.00405420
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4207b3
lea eax, [ebp - 4]
call fcn.00407b38
ret

Function at 0x42340c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x423452
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004233a0
mov eax, dword [ebp - 4]
call fcn.00408580
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423459
lea eax, [ebp - 4]
call fcn.00407b38
ret

Function at 0x423668
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4236fd
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4236b3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00407cc0
jmp 0x4236e7
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x4236ca
lea eax, [ebp - 4]
call fcn.00407b38
jmp 0x4236dd
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00423528
mov ebx, eax
test esi, esi
je 0x4236dd
dec esi
jmp 0x4236ba
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423704
lea eax, [ebp - 4]
call fcn.00407b38
ret
Function at 0x42370c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041af38
add esp, 0x208
pop ebx
ret

Function at 0x423738
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041af38
add esp, 0x208
pop ebx
ret

Function at 0x423894
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4239ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4239b4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4238f1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x4239b4
cmp dword [ebp - 0x14], 0
jne 0x423906
mov eax, dword [ebp - 0xc]
call fcn.00407b38
mov bl, 1
jmp 0x4239b4
cmp dword [ebp - 0x14], 0x70000000
jb 0x423914
call fcn.0041f8c0
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407cc0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004080b8
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x4238ba
test eax, eax
jne 0x4239b4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x423962
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x4239b4
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x42396a
dec esi
test esi, esi
je 0x423979
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x423969
cmp dword [ebp - 0x10], 7
jne 0x423984
test esi, esi
je 0x423984
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.004086f8
cmp dword [ebp - 0x10], 7
jne 0x4239a7
test esi, esi
je 0x4239a7
lea eax, [ebp - 4]
call fcn.004080b8
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407f18
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4239d1
lea eax, [ebp - 4]
call fcn.00407b38
ret

Function at 0x424f90
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4c5d1c
mov eax, esi
mov edx, 8
test al, 1
je 0x424fac
shr eax, 1
xor eax, 0xedb88320
jmp 0x424fae
shr eax, 1
dec edx
jne 0x424f9f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x424f98
pop esi
ret
Function at 0x424fc4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c5d18], 0
jne 0x424fee
call fcn.00424f90
mov dword [esp], 0x4c5d18
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x425018
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c5d1c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x424ff4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x427b48
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00427afc
test al, al
jne 0x427b69
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x427bb5
xor eax, eax
push ebp
push 0x427ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408580
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427bac
lea eax, [ebp - 0xc]
call fcn.00427b38
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b4cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x46b4d4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49c1dc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49c22a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0049bcb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c243
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b41e4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b41ec
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b42dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00423764
mov edx, dword [ebp - 8]
mov ecx, 0x4b42f8
xor eax, eax
call fcn.004b40c4
push 0
mov eax, dword [ebp - 4]
call fcn.00408580
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4b42ab
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4b4206
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov ax, 0x3d
call fcn.004278fc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0041a654
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00423ce0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov ax, 0x81
call fcn.004278cc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4155dc]
call fcn.0041f8cc
call fcn.00407234
jmp 0x4b4206
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b42e4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407b98
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407b98
ret

Function at 0x4b430c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.00420644
cmp eax, 2
jne 0x4b4374
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4b432f
xor eax, eax
jmp 0x4b4383
lea eax, [esp + 8]
push eax
push 0x4b4388
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4b4374
xor eax, eax
jmp 0x4b4383
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4b43b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4b440a
inc esi
xor edi, edi
cmp edi, 1
jne 0x4b43d6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4b43e4
cmp edi, 1
jle 0x4b43e4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00427b48
test eax, eax
jne 0x4b440a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4b440a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4b440a
inc edi
dec esi
jne 0x4b43c6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4b4414
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4b4438
mov eax, dword [ebp - 4]
jmp 0x4b443b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b4440
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4b448d
xor ebx, ebx
jmp 0x4b4482
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00419fa4
test eax, eax
jne 0x4b4481
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4b4538
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b4463
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4b4499
je 0x4b44a2
jmp 0x4b44ab
call fcn.00423a10
mov esi, eax
jmp 0x4b44ad
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4b44ad
xor esi, esi
test si, si
je 0x4b4538
xor ebx, ebx
jmp 0x4b44d3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4b44d2
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b4538
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b44ba
xor ebx, ebx
jmp 0x4b452d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4b452c
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4b4521
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004b4414
push eax
mov eax, esi
call fcn.004b4414
pop edx
cmp edx, eax
jne 0x4b452c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b4538
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b44e2
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4b4924
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b49fb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b4a18
push ebx
push 0x4b4a28
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00408858
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004058bc
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00408580
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4b49a6
mov ax, 0x83
call fcn.004b4548
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004b48f8
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4b49af
call fcn.004b48f8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4a02
lea eax, [ebp - 4]
call fcn.00407b38
ret

Function at 0x4b4b18
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4b4be1
jmp 0x4b4bd5
cmp dword [esi + 0x10], 0x1000
jne 0x4b4bc3
test byte [esi + 0x15], 1
jne 0x4b4bc3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4b4b74
cmp ebp, 2
je 0x4b4b74
cmp ebp, 0x10
je 0x4b4b74
cmp ebp, 0x20
jne 0x4b4b90
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4b4b90
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4b4ba1
mov eax, dword [esi]
add eax, ebx
call fcn.004b4b10
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4b4b94
cmp byte [esp + 4], 0
je 0x4b4bc3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4b4be1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4b4b49
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10003ef1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10003f15
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x100044f8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x10003f1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10259b00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x253c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.100069ea
mov esi, eax
mov dword [esp], 0x253c
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x253c]
mov dword [ebx + 8], eax
call fcn.100a2020
lea eax, [esi + 0x253c]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10003f87
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0x188b27
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x253c
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fd88
leave
ret