joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458700
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
cmp dword [0x564de8], 0
jne 0x458773
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov eax, esi
dec eax
test eax, esi
jne 0x45872a
mov edx, ebx
dec edx
test edx, ebx
je 0x45872f
call fcn.004be388
mov dword [0x564df0], esi
mov dword [0x564dec], ebx
mov dword [0x564df4], 0x40000
mov eax, 5
mov dword [0x564df8], 0x200000
mov dword [0x564dfc], eax
mov dword [0x564fbc], eax
call sub.KERNEL32.DLL_GetTickCount
xor eax, 0x55555555
or eax, 8
and eax, 0xfffffff8
mov dword [0x564de8], eax
mov eax, 1
add esp, 0x24
pop esi
pop ebx
ret

Function at 0x45c670
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
mov eax, dword [ebp + 8]
cmp eax, 0x68
jg 0x45c6d0
je 0x45c7ae
cmp eax, 4
jg 0x45c6b4
je 0x45c775
sub eax, 1
jb 0x45c71d
je 0x45c731
dec eax
je 0x45c750
dec eax
je 0x45c764
jmp 0x45c7ed
sub eax, 0x65
je 0x45c779
dec eax
je 0x45c790
dec eax
je 0x45c797
jmp 0x45c7ed
cmp eax, 0x3eb
jg 0x45c6fd
je 0x45c7c2
sub eax, 0x69
je 0x45c7b2
sub eax, 0x380
je 0x45c7b6
dec eax
je 0x45c7be
jmp 0x45c7ed
sub eax, 0x3ec
je 0x45c7c9
dec eax
je 0x45c7d6
sub eax, 2
je 0x45c7ba
jmp 0x45c7ed
lea edx, [ebp - 0x20]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
shr eax, 0xa
jmp 0x45c7ef
lea edx, [ebp - 0x40]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
cmp dword [ebp - 0x34], 0xffffffff
jae 0x45c745
mov eax, dword [ebp - 0x34]
jmp 0x45c748
or eax, 0xffffffff
shr eax, 0xa
jmp 0x45c7ef
lea edx, [ebp - 0x60]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x54]
shr eax, 0xa
jmp 0x45c7ef
lea edx, [ebp - 0x80]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x64]
shr eax, 0xa
jmp 0x45c7ef
xor eax, eax
jmp 0x45c7ef
lea edx, [ebp - 0xa0]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x98]
shr eax, 0xa
jmp 0x45c7ef
mov eax, 1
jmp 0x45c7ef
lea edx, [ebp - 0xc0]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0xac]
shr eax, 0xa
jmp 0x45c7ef
xor eax, eax
jmp 0x45c7ef
xor eax, eax
jmp 0x45c7ef
xor eax, eax
jmp 0x45c7ef
xor eax, eax
jmp 0x45c7ef
xor eax, eax
jmp 0x45c7ef
call fcn.004558c0
jmp 0x45c7ef
call fcn.004558c0
shl eax, 3
lea eax, [eax + eax*2]
jmp 0x45c7ef
mov eax, dword [0x564ae4]
sub eax, dword [0x564aec]
test eax, eax
jns 0x45c7e8
add eax, 3
sar eax, 2
jmp 0x45c7ef
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x45cc8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
jmp 0x45ccfe
test edx, 0x10000
jne 0x45cdcf
test edx, 0x20000
je 0x45ccb5
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax + 0xc]
call dword [eax + 0x10]
pop ecx
pop ebp
ret
test byte [eax + 1], 0x40
jne 0x45ccf7
cmp dword [eax + 0xc], 0
jne 0x45ccf7
cmp dword [eax + 0x10], 0
jl 0x45ccf7
mov ecx, dword [eax + 8]
add ecx, 0xfffffff0
mov eax, ecx
movzx ecx, word [0x54b6a0]
movzx edx, word [eax + 0xe]
and edx, 0xfffffffd
cmp edx, ecx
jne 0x45cdcf
xor word [eax + 0xe], 1
lea edx, [eax + 0x10]
push edx
mov eax, dword [eax + 8]
call dword [eax + 4]
pop ecx
pop ebp
ret
push eax
call fcn.004602c8
pop ecx
mov edx, dword [eax]
test dh, 0x20
jne 0x45cc94
test byte [eax + 1], 0x80
je 0x45cd39
mov eax, dword [eax + 8]
add eax, 0xfffffff0
movzx ecx, word [eax + 0xe]
and ecx, 0xfffffffd
movzx edx, word [0x54b6a0]
cmp ecx, edx
jne 0x45cdcf
xor word [eax + 0xe], 1
lea ecx, [eax + 0x10]
push ecx
mov eax, dword [eax + 8]
call dword [eax + 4]
pop ecx
pop ebp
ret
test byte [eax], 4
je 0x45cd68
mov eax, dword [eax + 8]
add eax, 0xfffffff0
movzx edx, word [eax + 0xe]
and edx, 0xfffffffd
movzx ecx, word [0x54b6a0]
cmp edx, ecx
jne 0x45cdcf
xor word [eax + 0xe], 1
lea edx, [eax + 0x10]
push edx
mov eax, dword [eax + 8]
call dword [eax + 4]
pop ecx
pop ebp
ret
test byte [eax + 1], 0x10
je 0x45cd9a
mov ecx, dword [eax + 8]
add ecx, 0xfffffff0
mov eax, ecx
movzx ecx, word [0x54b6a0]
movzx edx, word [eax + 0xe]
and edx, 0xfffffffd
cmp edx, ecx
jne 0x45cdcf
xor word [eax + 0xe], 1
lea edx, [eax + 0x10]
push edx
mov eax, dword [eax + 8]
call dword [eax + 4]
pop ecx
pop ebp
ret
test byte [eax], 1
je 0x45cdcf
cmp dword [eax + 0xc], 0
je 0x45cdcf
mov ecx, dword [eax + 8]
add ecx, 0xfffffff0
mov eax, ecx
movzx ecx, word [0x54b6a0]
movzx edx, word [eax + 0xe]
and edx, 0xfffffffd
cmp edx, ecx
jne 0x45cdcf
xor word [eax + 0xe], 1
lea edx, [eax + 0x10]
push edx
mov eax, dword [eax + 8]
call dword [eax + 4]
pop ecx
pop ebp
ret
Function at 0x4a15e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x4a1623
push esi
call fcn.00427fb8
pop ecx
mov edi, eax
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a160f
test al, 0x50
je 0x4a1613
xor ebx, ebx
jmp 0x4a1618
mov ebx, 1
test edi, edi
je 0x4a1623
push edi
call fcn.0045c528
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x4a1667
push esi
call fcn.00427fb8
pop ecx
mov edi, eax
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a1653
test al, 0x10
jne 0x4a1657
xor ebx, ebx
jmp 0x4a165c
mov ebx, 1
test edi, edi
je 0x4a1667
push edi
call fcn.0045c528
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a1680
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 8]
push eax
call fcn.004696b4
pop ecx
mov ebx, eax
push 0
push 0
push ebx
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov esi, eax
test esi, esi
je 0x4a16d4
mov eax, esi
add eax, eax
push eax
call fcn.0045c458
pop ecx
mov dword [ebp - 4], eax
push esi
mov edx, dword [ebp - 4]
push edx
push ebx
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ecx, dword [ebp - 4]
push ecx
call fcn.004697a8
pop ecx
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call fcn.0045c528
pop ecx
push ebx
call fcn.0045c528
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a8a7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edi, eax
push 0x2000
push 0
push 0
push 0
push ebx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.USER32.DLL_LoadImageA
test eax, eax
je 0x4a8ae2
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 1
push 0x5641c0
lea edx, [ebp - 0x20]
push edx
call sub.OLEAUT32.DLL_OleCreateFontIndirect
jmp 0x4a8b94
push str.HMGPICTURE
push ebx
push edi
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x4a8afb
xor eax, eax
jmp 0x4a8bb7
push ebx
push edi
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
jne 0x4a8b0f
xor eax, eax
jmp 0x4a8bb7
push esi
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a8b25
xor eax, eax
jmp 0x4a8bb7
push ebx
push edi
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push edi
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x4a8b40
xor eax, eax
jmp 0x4a8bb7
push edi
mov edx, dword [ebp - 0xc]
push edx
push ebx
call fcn.004b5670
add esp, 0xc
push esi
call sub.KERNEL32.DLL_FreeResource
lea ecx, [ebp - 8]
push ecx
push 1
push ebx
call sub.OLE32.DLL_CreateStreamOnHGlobal
cmp dword [ebp - 8], 0
jne 0x4a8b70
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x4a8bb7
lea edx, [ebp - 4]
push edx
push 0x5641c0
push 1
push edi
mov ecx, dword [ebp - 8]
push ecx
call sub.OLEAUT32.DLL_OleCreatePictureIndirect
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push ebx
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 4], 0
je 0x4a8bb4
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8bc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a8bfc
xor eax, eax
jmp 0x4a8ca4
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
lea eax, [edi + 0x1000]
push eax
push 2
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GlobalLock
push 0
lea edx, [ebp - 0xc]
push edx
push edi
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
push esi
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 4]
push eax
push 1
push ebx
call sub.OLE32.DLL_CreateStreamOnHGlobal
cmp dword [ebp - 4], 0
jne 0x4a8c52
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x4a8ca4
lea edx, [ebp - 8]
push edx
push 0x5641c0
push 1
push edi
mov ecx, dword [ebp - 4]
push ecx
call sub.OLEAUT32.DLL_OleCreatePictureIndirect
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_GlobalFree
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0
je 0x4a8ca1
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac2c8
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x55fbfc
call fcn.004b5b98
mov word [ebp - 0x18], 0xc
mov edx, 0x5600bc
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004b0cb0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4ac315
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.004af4e8
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4ac318
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1aa8
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x560fb4
call fcn.004b5b98
mov word [ebp - 0x18], 0xc
mov edx, 0x561324
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004b0cb0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4b1af5
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.004af4e8
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4b1af8
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b533c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4b67d0
call fcn.004b7e44
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4b67ee
test bl, 1
je 0x4b67ee
mov dword [0x5636d4], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4b69a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4b69bf
mov eax, dword [0x5623f8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4b69cc
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4b69f9
je 0x4b6a0b
sub ecx, 0x100
je 0x4b6a19
sub ecx, 0x100
je 0x4b6a20
sub ecx, 0x100
je 0x4b6a12
jmp 0x4b6a27
sub ecx, 0x600
je 0x4b6a20
sub ecx, 0x100
je 0x4b6a0b
jmp 0x4b6a27
mov edi, 1
jmp 0x4b6a2c
mov edi, 2
jmp 0x4b6a2c
mov edi, 4
jmp 0x4b6a2c
mov edi, 5
jmp 0x4b6a2c
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4b6a53
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x561e70]
test al, 0x80
je 0x4b6a4c
mov ebx, 0x80
jmp 0x4b6a65
mov ebx, 1
jmp 0x4b6a65
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4b6a65
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4b6a77
je 0x4b6a80
dec eax
je 0x4b6a89
jmp 0x4b6a92
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4b6aa1
mov dword [ebp - 4], 0x40000000
jmp 0x4b6aa1
mov dword [ebp - 4], 0xc0000000
jmp 0x4b6aa1
push 1
call fcn.004b7de0
pop ecx
mov ebx, eax
jmp 0x4b6b91
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4b6abd
sub eax, 0x10
je 0x4b6ac4
sub eax, 0x10
je 0x4b6acd
sub eax, 0x10
je 0x4b6ad6
jmp 0x4b6ad6
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4b6add
mov dword [ebp - 8], 1
jmp 0x4b6add
mov dword [ebp - 8], 2
jmp 0x4b6add
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4b6b4a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4b6b3f
test byte [ebp + 0xd], 1
je 0x4b6b3a
mov ebx, 0x50
jmp 0x4b6b3f
mov ebx, 2
push ebx
call fcn.004b7de0
pop ecx
mov ebx, eax
jmp 0x4b6b91
mov edi, esi
push edi
call fcn.004b6910
pop ecx
test eax, eax
je 0x4b6b5e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4b6b6a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004b7b24
add esp, 8
mov ebx, eax
inc eax
jne 0x4b6b91
push 4
call fcn.004b7de0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6d38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4b6d57
mov eax, dword [0x5623f8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4b6d64
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4b6d91
je 0x4b6da3
sub ecx, 0x100
je 0x4b6db1
sub ecx, 0x100
je 0x4b6db8
sub ecx, 0x100
je 0x4b6daa
jmp 0x4b6dbf
sub ecx, 0x600
je 0x4b6db8
sub ecx, 0x100
je 0x4b6da3
jmp 0x4b6dbf
mov edi, 1
jmp 0x4b6dc4
mov edi, 2
jmp 0x4b6dc4
mov edi, 4
jmp 0x4b6dc4
mov edi, 5
jmp 0x4b6dc4
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4b6deb
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x561e70]
test al, 0x80
je 0x4b6de4
mov ebx, 0x80
jmp 0x4b6dfd
mov ebx, 1
jmp 0x4b6dfd
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4b6dfd
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4b6e0f
je 0x4b6e18
dec eax
je 0x4b6e21
jmp 0x4b6e2a
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4b6e39
mov dword [ebp - 4], 0x40000000
jmp 0x4b6e39
mov dword [ebp - 4], 0xc0000000
jmp 0x4b6e39
push 1
call fcn.004b7de0
pop ecx
mov ebx, eax
jmp 0x4b6f29
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4b6e55
sub eax, 0x10
je 0x4b6e5c
sub eax, 0x10
je 0x4b6e65
sub eax, 0x10
je 0x4b6e6e
jmp 0x4b6e6e
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4b6e75
mov dword [ebp - 8], 1
jmp 0x4b6e75
mov dword [ebp - 8], 2
jmp 0x4b6e75
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4b6ee2
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4b6ed7
test byte [ebp + 0xd], 1
je 0x4b6ed2
mov ebx, 0x50
jmp 0x4b6ed7
mov ebx, 2
push ebx
call fcn.004b7de0
pop ecx
mov ebx, eax
jmp 0x4b6f29
mov edi, esi
push edi
call fcn.004b6910
pop ecx
test eax, eax
je 0x4b6ef6
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4b6f02
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004b7b24
add esp, 8
mov ebx, eax
inc eax
jne 0x4b6f29
push 4
call fcn.004b7de0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba8b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b57ac
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004b583c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b583c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x562fe1
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b57ac
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004b583c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004bbbe0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4ba9c5
push esi
call fcn.004b583c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004b583c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0045acfc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4ba99c
xor eax, eax
jmp 0x4baa4c
push esi
call fcn.004b583c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004b583c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004b5704
add esp, 0xc
jmp 0x4baa05
mov edi, dword [ebx + 0x24]
push edi
call fcn.004b583c
pop ecx
push eax
push esi
call fcn.004b583c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004b583c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0045c060
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4baa05
xor eax, eax
jmp 0x4baa4c
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b57ac
add esp, 8
push 0x562fe3
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b57ac
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b57ac
add esp, 8
push 0x562fe5
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b57ac
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4be0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4be10d
jmp 0x4be144
call fcn.004be090
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004b583c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004b583c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4be1a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5636dc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4be27e
cmp dword [0x5636d8], 0
jne 0x4be27e
cmp dword [0x5638cc], 0
je 0x4be238
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004bdf90
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4be21e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004bdf90
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4be21e
lea ebx, [ebp - 0x84]
jmp 0x4be21f
inc ebx
call fcn.004be160
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4be2b9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5636e0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004b583c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5636e3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4be2b9
cmp dword [0x5636d8], 0
je 0x4be298
cmp dword [0x5636d8], 0xffffffff
je 0x4be2b9
push esi
call dword [0x5636d8]
pop ecx
mov eax, dword [0x5636dc]
test eax, eax
je 0x4be2b9
cmp dword [0x5636dc], 0xffffffff
je 0x4be2b9
cmp byte [eax], 0
je 0x4be2b9
push esi
push eax
call fcn.004be0e0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret