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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b13c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004afa98
xor eax, eax
push ebp
push 0x4b1398
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004b0048
test al, al
je 0x4b137c
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407db0
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4b137c
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004af9f8
test al, al
je 0x4b1370
mov eax, dword [ebp - 4]
call fcn.0040895c
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004089bc
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004b0a8c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b1370
xor eax, eax
push ebp
push 0x4b1369
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.004afa98
xor eax, eax
push ebp
push 0x4b134b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040895c
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004089bc
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004afa9c
mov eax, dword [ebp - 4]
call fcn.0040895c
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004089bc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004b0a8c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4b1328
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004b103c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004b1174
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b132f
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4b11ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b139f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004afa98
ret
Function at 0x4b2b30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
add eax, 0x10
test eax, eax
jns 0x4b2b40
call fcn.00405fc0
push eax
push 8
mov eax, dword [0x69be38]
push eax
call sub.kernel32.dll_HeapAlloc
mov ebx, eax
test ebx, ebx
jne 0x4b2b6f
mov eax, 0x4b2b8c
call fcn.004b1b7c
call sub.kernel32.dll_GetLastError_1
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [str.PLEH]
mov dword [ebx], eax
add ebx, 0x10
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4b2e24
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0
push 0x500000
push 0
call sub.kernel32.dll_HeapCreate
mov dword [0x69be38], eax
cmp dword [0x69be38], 0
jne 0x4b2e56
push 0
push 0
push 0
call sub.kernel32.dll_HeapCreate
mov dword [0x69be38], eax
cmp dword [0x69be38], 0
jne 0x4b2e7a
mov eax, 0x4b2ebc
call fcn.004b1b7c
call sub.kernel32.dll_GetLastError_1
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0x18], fcn.004b2b30
mov dword [ebp - 0x14], 0x4b2bc8
mov dword [ebp - 0x10], 0x4b2c30
mov dword [ebp - 0xc], 0x4b2d88
mov dword [ebp - 8], 0x4b2e1c
mov dword [ebp - 4], 0x4b2e20
lea eax, [ebp - 0x18]
call fcn.004049e4
mov esp, ebp
pop ebp
ret
Function at 0x4b514c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
mov edi, 1
mov byte [ebp - 1], 1
jmp 0x4b5276
dec edi
test esi, esi
je 0x4b516f
cmp edi, dword [esi - 4]
jb 0x4b5174
call fcn.00405fc0
inc edi
cmp word [esi + edi*2 - 2], 0x2e
je 0x4b5181
mov bl, 1
jmp 0x4b51e2
lea eax, [edi + 1]
dec eax
test esi, esi
je 0x4b518e
cmp eax, dword [esi - 4]
jb 0x4b5193
call fcn.00405fc0
inc eax
movzx eax, word [esi + eax*2 - 2]
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
cmp ax, 0x61
jb 0x4b51b7
movzx eax, word [ebp - 4]
cmp ax, 0x7a
ja 0x4b51b7
mov byte [ebp - 6], 1
jmp 0x4b51d4
movzx eax, word [ebp - 4]
cmp ax, 0x41
jb 0x4b51cb
movzx eax, word [ebp - 4]
cmp ax, 0x5a
jbe 0x4b51cf
xor eax, eax
jmp 0x4b51d1
mov al, 1
mov byte [ebp - 6], al
movzx eax, byte [ebp - 6]
mov byte [ebp - 5], al
movzx ebx, byte [ebp - 5]
xor bl, 1
test bl, bl
je 0x4b51ef
mov byte [ebp - 1], 0
jmp 0x4b5292
add edi, 2
jmp 0x4b51f5
inc edi
dec edi
test esi, esi
je 0x4b51ff
cmp edi, dword [esi - 4]
jb 0x4b5204
call fcn.00405fc0
inc edi
movzx eax, word [esi + edi*2 - 2]
call fcn.004b5124
test al, al
jne 0x4b51f4
dec edi
test esi, esi
je 0x4b521d
cmp edi, dword [esi - 4]
jb 0x4b5222
call fcn.00405fc0
inc edi
cmp word [esi + edi*2 - 2], 0x2e
jne 0x4b524c
lea eax, [edi + 1]
dec eax
test esi, esi
je 0x4b5238
cmp eax, dword [esi - 4]
jb 0x4b523d
call fcn.00405fc0
inc eax
movzx eax, word [esi + eax*2 - 2]
call fcn.004ddce0
test al, al
jne 0x4b5252
mov byte [ebp - 1], 0
jmp 0x4b5292
add edi, 2
jmp 0x4b5258
inc edi
dec edi
test esi, esi
je 0x4b5262
cmp edi, dword [esi - 4]
jb 0x4b5267
call fcn.00405fc0
inc edi
movzx eax, word [esi + edi*2 - 2]
call fcn.004ddce0
test al, al
jne 0x4b5257
dec edi
test esi, esi
je 0x4b5280
cmp edi, dword [esi - 4]
jb 0x4b5285
call fcn.00405fc0
inc edi
cmp word [esi + edi*2 - 2], 0
jne 0x4b5165
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c7618
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov edx, 0x40
mov eax, esi
call fcn.0041234c
test al, al
je 0x4c768e
xor edx, edx
push ebp
push 0x4c7682
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x4c764f
cmp dword [eax + 0x3c], 0
jne 0x4c7659
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c768e
mov ebx, dword [eax + 0x3c]
add ebx, esi
mov edx, 0xf8
mov eax, ebx
call fcn.0041234c
test al, al
je 0x4c7676
cmp dword [ebx], 0x4550
je 0x4c7678
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c768e
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c7698
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov edx, 0x40
mov eax, esi
call fcn.0041234c
test al, al
je 0x4c770e
xor edx, edx
push ebp
push 0x4c7702
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x4c76cf
cmp dword [eax + 0x3c], 0
jne 0x4c76d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c770e
mov ebx, dword [eax + 0x3c]
add ebx, esi
mov edx, 0x108
mov eax, ebx
call fcn.0041234c
test al, al
je 0x4c76f6
cmp dword [ebx], 0x4550
je 0x4c76f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c770e
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4c77bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4c785b
push 0
push 0
mov eax, ebx
call fcn.00466a80
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x40
call fcn.004052b4
lea edx, [ebp - 0x44]
mov ecx, 0x40
mov eax, ebx
call fcn.00466cb4
cmp word [ebp - 0x44], 0x5a4d
jne 0x4c785b
cmp dword [ebp - 8], 0
je 0x4c785b
mov eax, pe_nt_image_headers32
call fcn.004048e0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cdq
push edx
push eax
mov eax, ebx
call fcn.00466a80
mov edx, dword [ebp - 4]
mov ecx, 0xf8
mov eax, ebx
call fcn.00466cb4
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x4c7849
lea eax, [ebp - 4]
xor edx, edx
call fcn.004b3ef8
jmp 0x4c785b
mov eax, dword [ebp - 8]
cdq
mov ecx, dword [ebp - 4]
add ecx, 0xf8
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c7864
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4c7903
push 0
push 0
mov eax, ebx
call fcn.00466a80
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x40
call fcn.004052b4
lea edx, [ebp - 0x44]
mov ecx, 0x40
mov eax, ebx
call fcn.00466cb4
cmp word [ebp - 0x44], 0x5a4d
jne 0x4c7903
cmp dword [ebp - 8], 0
je 0x4c7903
mov eax, 0x110
call fcn.004048e0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cdq
push edx
push eax
mov eax, ebx
call fcn.00466a80
mov edx, dword [ebp - 4]
mov ecx, 0x108
mov eax, ebx
call fcn.00466cb4
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x4c78f1
lea eax, [ebp - 4]
xor edx, edx
call fcn.004b3ef8
jmp 0x4c7903
mov eax, dword [ebp - 8]
cdq
mov ecx, dword [ebp - 4]
add ecx, 0x108
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc044
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4cc18f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x595590]
mov dword [eax], fcn.004caa7c
mov eax, dword [0x59564c]
mov dword [eax], 0x4cad5c
mov eax, fcn.0042a418
mov edx, dword [0x595648]
mov dword [edx], eax
mov eax, dword [0x5958c0]
mov dword [eax], 0x4cbedc
call fcn.00404d88
mov ebx, eax
test ebx, ebx
jle 0x4cc16c
mov esi, 1
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00404de8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00441234
mov eax, dword [ebp - 0xc]
mov edx, 0x4cc1a8
call fcn.00408d58
jne 0x4cc164
mov eax, dword [0x5957f0]
mov byte [eax], 1
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00404de8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0044279c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0x4cc1cc
call fcn.00408bc0
lea eax, [ebp - 4]
xor ecx, ecx
mov dl, 1
call fcn.004d7108
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x4cc1f4
call fcn.00408bc0
mov eax, dword [ebp - 0x1c]
call fcn.004caa7c
push 0
push 0x88000000
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [0x69beec], eax
cmp dword [0x69beec], 0
je 0x4cc16c
push 0
lea eax, [ebp - 8]
push eax
push 2
mov eax, dword [0x595b04]
push eax
mov eax, dword [0x69beec]
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4cc16c
inc esi
dec ebx
jne 0x4cc0a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc196
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00407c88
lea eax, [ebp - 4]
call fcn.00407c28
ret
Function at 0x4cf530
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4cf539
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cf760
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00407c28
mov eax, edi
call fcn.00407c28
xor eax, eax
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, ebx
call fcn.004423a8
test al, al
je 0x4cf73d
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.0040895c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x4cf73d
mov eax, esi
call fcn.00404930
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4cf736
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
push esi
push 0
mov eax, ebx
call fcn.0040895c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4cf720
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4cf770
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4cf670
push 0x4cf7b0
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00441da0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00441da0
push dword [ebp - 0x24]
push 0x4cf7e4
lea eax, [ebp - 4]
mov edx, 4
call fcn.00408c48
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4cf670
cmp dword [ebp - 0x10], 1
jbe 0x4cf670
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00442bfc
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00407db0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4cf808
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4cf720
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
mov eax, dword [ebp - 0x1c]
movzx esi, word [eax + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
mov word [ebp - 0x14], ax
lea edx, [ebp - 0x28]
movzx eax, bx
call fcn.00441bf8
push dword [ebp - 0x28]
push 0x4cf818
lea edx, [ebp - 0x2c]
movzx eax, si
call fcn.00441bf8
push dword [ebp - 0x2c]
push 0x4cf818
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x12]
call fcn.00441bf8
push dword [ebp - 0x30]
push 0x4cf818
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x14]
call fcn.00441bf8
push dword [ebp - 0x34]
mov eax, edi
mov edx, 7
call fcn.00408c48
mov eax, dword [edi]
mov edx, 0x4cf828
call fcn.00408d58
jne 0x4cf720
mov eax, edi
call fcn.00407c28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf73d
mov eax, dword [ebp - 0x18]
call fcn.0040494c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf767
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00407c88
lea eax, [ebp - 4]
call fcn.00407c28
ret
Function at 0x4cfa10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [edi], eax
mov eax, ebx
call fcn.004cf488
test al, al
je 0x4cfa65
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_FindResourceW
mov esi, eax
test esi, esi
je 0x4cfa65
push esi
push ebx
call sub.kernel32.dll_SizeofResource
mov dword [edi], eax
push esi
push ebx
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x4cfa65
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4d1ff4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407d0c
xor eax, eax
push ebp
push 0x4d2141
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 2
mov edx, dword [ebp - 4]
mov eax, 0x4d215c
call fcn.004b368c
mov ebx, eax
lea ecx, [ebx + 1]
mov edx, dword [ebp - 4]
mov eax, 0x4d215c
call fcn.004b368c
mov ebx, eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x4d204d
sub esi, 4
mov esi, dword [esi]
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00408d90
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d2066
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, eax
mov eax, ebx
xchg edx, eax
call fcn.00408dd8
mov si, 0x41
lea eax, [ebp - 8]
mov edx, 0x2800
call fcn.00408ae8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4d2090
sub ebx, 4
mov ebx, dword [ebx]
test ebx, ebx
jns 0x4d2099
call fcn.00405fc0
push ebx
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.0040897c
lea eax, [ebp - 0xc]
mov edx, 0x4d216c
call fcn.00408b68
mov eax, dword [ebp - 0xc]
call fcn.0040895c
push eax
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x4d2114
mov eax, dword [ebp - 8]
call fcn.0040895c
call fcn.00442bfc
mov edx, eax
lea eax, [ebp - 8]
call fcn.00408ae8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00441434
test al, al
je 0x4d2114
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.0040897c
push dword [ebp - 0x10]
push 0x4d216c
push dword [edi]
mov eax, edi
mov edx, 3
call fcn.00408c48
jmp 0x4d2126
inc esi
cmp si, 0x5b
jne 0x4d2077
mov eax, edi
call fcn.00407c28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2148
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407c88
ret
Function at 0x4d2dc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4d2e9a
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.004089bc
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.00441578
cmp dword [ebx], 0
je 0x4d2e7f
mov eax, 1
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4d2e0e
cmp eax, dword [edx - 4]
jb 0x4d2e13
call fcn.00405fc0
inc eax
cmp word [edx + eax*2 - 2], 0x22
jne 0x4d2e34
push ebx
mov eax, dword [ebx]
mov ecx, 0x7fffffff
mov edx, 2
call fcn.00408d90
mov si, 0x22
jmp 0x4d2e38
mov si, 0x20
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040897c
mov eax, dword [ebp - 8]
mov edx, dword [ebx]
call fcn.00408efc
mov esi, eax
test esi, esi
jle 0x4d2e64
push ebx
lea edx, [esi + 1]
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.00408d90
jmp 0x4d2e6b
mov eax, ebx
call fcn.00407c28
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
call fcn.00441578
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00408008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2ea1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407c88
ret

Function at 0x4d3550
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d35fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x400
call fcn.00408ae8
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4d358c
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00408208
mov edx, 1
dec edx
test eax, eax
je 0x4d35a3
cmp edx, dword [eax - 4]
jb 0x4d35a8
call fcn.00405fc0
inc edx
lea eax, [eax + edx*2 - 2]
mov edx, ebx
add edx, edx
xor ecx, ecx
call fcn.004052b4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4d35c4
sub ebx, 4
mov ebx, dword [ebx]
sar ebx, 1
jns 0x4d35cb
adc ebx, 0
push ebx
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004089bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3604
lea eax, [ebp - 4]
call fcn.00407c28
ret
Function at 0x4d3740
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d386a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x69bf28], 0
jne 0x4d3798
push 0x4d3878
call fcn.00410444
push eax
call fcn.0040d334
mov dword [0x69bf28], eax
push 0x4d3878
call fcn.00410444
push eax
call fcn.0040d334
mov dword [0x69bf2c], eax
mov eax, dword [0x4d38a4]
mov dword [ebp - 0xb], eax
mov ax, word [0x4d38a8]
mov word [ebp - 7], ax
mov al, byte [0x4d38aa]
mov byte [ebp - 5], al
push 6
lea eax, [ebp - 0xb]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 4]
lea edx, [ebp - 0xb]
mov ecx, 7
push 0
call fcn.004083cc
call sub.kernel32.dll_GetACP_1
test eax, eax
jns 0x4d37ea
call fcn.00405fc0
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00408a2c
mov eax, dword [ebp - 0x34]
pop edx
call fcn.00441e40
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x10]
mov ecx, 2
call fcn.004d3720
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.00441d74
push dword [ebp - 0x38]
push 0x4d38b8
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00441d74
push dword [ebp - 0x3c]
mov eax, ebx
mov edx, 3
call fcn.00408c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3871
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00407c88
lea eax, [ebp - 4]
call fcn.00407c4c
ret

Function at 0x4d38fc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [ebp - 1], 0
push 0x4d39b8
call fcn.00410404
push eax
call fcn.0040d334
mov ebx, eax
test ebx, ebx
je 0x4d3979
lea eax, [ebp - 0x41]
xor ecx, ecx
mov edx, 0x40
call fcn.004052b4
mov dword [ebp - 0x41], 0x40
lea eax, [ebp - 0x41]
push eax
call ebx
test eax, eax
je 0x4d3979
mov eax, dword [ebp - 0x39]
mov dword [edi], eax
mov eax, dword [ebp - 0x35]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x31]
mov dword [esi], eax
mov eax, dword [ebp - 0x2d]
mov dword [esi + 4], eax
mov byte [ebp - 1], 1
jmp 0x4d39ac
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x20
call fcn.004052b4
mov dword [ebp - 0x64], 0x20
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], edx
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret