joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9c7b
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x515087
call fcn.004ac410
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00508109
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], eax
call fcn.00501a9a
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.00501d2d
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00501d2d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18

Function at 0x4a9f3c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x18], ebx
je 0x4a9f51
cmp dword [esi + 0x14], ebx
jne 0x4a9f5b
push 6
push dword [esi + 0x1c]
call fcn.004aa597
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
jne 0x4a9f8a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4a9f82
push ebx
push dword [esi + 0x1c]
call fcn.004aa597
mov eax, dword [ebp - 4]
jmp 0x4aa05c
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x38]
cmp edi, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
jb 0x4a9fdb
sub edx, eax
js 0x4a9f9e
mov ebx, edx
add eax, ecx
push ebx
push eax
push dword [ebp + 8]
call fcn.004ac5d0
mov eax, dword [esi + 0x34]
add esp, 0xc
mov dword [esi + 0x38], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub edi, ebx
add eax, ebx
push edi
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4a9fd6
push eax
push dword [esi + 0x1c]
call fcn.004aa597
mov eax, dword [ebp - 4]
jmp 0x4aa044
lea ebx, [edi + eax]
cmp ebx, edx
jb 0x4aa048
sub edx, eax
jns 0x4a9fea
xor ebx, ebx
jmp 0x4a9fec
mov ebx, edx
add eax, ecx
push ebx
push eax
push dword [ebp + 8]
call fcn.004ac5d0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4aa01b
push eax
push dword [esi + 0x1c]
call fcn.004aa597
mov eax, dword [ebp + 0xc]
sub edi, ebx
cmp edi, eax
mov dword [esi + 0x40], eax
jae 0x4aa02a
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, ebx
push dword [esi + 0x3c]
push eax
call fcn.004ac5d0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x38], eax
add eax, ebx
jmp 0x4aa05c
add eax, ecx
push edi
push eax
push dword [ebp + 8]
call fcn.004ac5d0
add esp, 0xc
add dword [esi + 0x38], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4aa063
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x4aa078
cmp dword [esi + 0x14], edi
jne 0x4aa082
push 6
push dword [esi + 0x1c]
call fcn.004aa597
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jne 0x4aa0b2
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4aa0aa
push edi
push dword [esi + 0x1c]
call fcn.004aa597
cmp dword [ebp - 4], ebx
je 0x4aa119
push edi
jmp 0x4aa0f9
mov eax, dword [esi + 0x2c]
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.WININET.dll_InternetWriteFile]
lea edx, [ebx + eax]
cmp edx, dword [esi + 0x28]
jb 0x4aa0e2
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x4aa0de
push eax
push dword [esi + 0x1c]
call fcn.004aa597
and dword [esi + 0x2c], 0
cmp ebx, dword [esi + 0x28]
jb 0x4aa103
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x4aa119
push eax
push dword [esi + 0x1c]
call fcn.004aa597
jmp 0x4aa119
mov eax, dword [esi + 0x2c]
push ebx
push dword [ebp + 8]
add eax, dword [esi + 0x30]
push eax
call fcn.004ac5d0
add esp, 0xc
add dword [esi + 0x2c], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4ac200
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520120
push 0x4b1038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x552a14], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x552a10], ecx
shl ecx, 8
add ecx, edx
mov dword [0x552a0c], ecx
shr eax, 0x10
mov dword [0x552a08], eax
call fcn.004b2df0
test eax, eax
jne 0x4ac26a
push 0x1c
call fcn.004ac3e0
add esp, 4
call fcn.004afa30
test eax, eax
jne 0x4ac27d
push 0x10
call fcn.004ac3e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004b4bf0
call fcn.004adf50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5c015c], eax
call fcn.004b4a90
mov dword [0x5529f8], eax
test eax, eax
je 0x4ac2b0
mov eax, dword [0x5c015c]
test eax, eax
jne 0x4ac2ba
push 0xffffffffffffffff
call fcn.004ad360
add esp, 4
call fcn.004b47e0
call fcn.004b46f0
call fcn.004ad330
mov esi, dword [0x5c015c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4ac399
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4ac301
test al, al
je 0x4ac301
and eax, 0xff
push eax
call fcn.004b4690
add esp, 4
test eax, eax
je 0x4ac2db
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4ac2db
cmp byte [esi], 0x22
jne 0x4ac30a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4ac31a
cmp al, 0x20
ja 0x4ac31a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4ac30a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4ac33b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4ac340
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004ad360
jmp 0x4ac37e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4ac30a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4ac399

Function at 0x4ac3e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x552a00], 1
jne 0x4ac3ee
call fcn.004b4e00
mov eax, dword [esp + 4]
push eax
call fcn.004b4e40
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4ad3a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004ad460
mov eax, dword [0x552a44]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4ad3c4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x552a40], 1
mov byte [0x552a3c], bl
jne 0x4ad41e
mov ecx, dword [0x5c0158]
test ecx, ecx
je 0x4ad40c
mov esi, dword [0x5c0154]
sub esi, 4
cmp esi, ecx
jb 0x4ad40c
mov eax, dword [esi]
test eax, eax
je 0x4ad405
call eax
mov ecx, dword [0x5c0158]
sub esi, 4
cmp esi, ecx
jae 0x4ad3f7
push 0x533270
push 0x533268
call fcn.004ad480
add esp, 8
push 0x53327c
push 0x533274
call fcn.004ad480
add esp, 8
test ebx, ebx
je 0x4ad43d
call fcn.004ad470
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x552a44], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4ae1f0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.004b5c20
mov esi, eax
add esp, 8
test esi, esi
je 0x4ae250
push esi
call fcn.004afa90
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x4ae270
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4ae268
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004ac500
add esp, 4
test edi, edi
je 0x4ae266
push edi
call fcn.004ae360
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x4afa30
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004af880
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x540188], eax
je 0x4afa88
push 0x74
push 1
call fcn.004b5c20
mov esi, eax
add esp, 8
test esi, esi
je 0x4afa88
mov eax, dword [0x540188]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4afa88
push esi
call fcn.004afa90
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4afab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x540188]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4afb1e
push 0x74
push 1
call fcn.004b5c20
mov esi, eax
add esp, 8
test esi, esi
je 0x4afb14
mov ecx, dword [0x540188]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4afb14
push esi
call fcn.004afa90
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.004ac3b0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4afb30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x540188]
cmp eax, 0xffffffff
je 0x4afbdf
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4afb54
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4afbd0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4afb64
push eax
call fcn.004ac500
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4afb74
push eax
call fcn.004ac500
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4afb84
push eax
call fcn.004ac500
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4afb94
push eax
call fcn.004ac500
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4afba4
push eax
call fcn.004ac500
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4afbb4
push eax
call fcn.004ac500
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x542698
je 0x4afbc7
push eax
call fcn.004ac500
add esp, 4
push esi
call fcn.004ac500
add esp, 4
mov eax, dword [0x540188]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x4b4a90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x552e58]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4b4ad2
call edi
mov esi, eax
test esi, esi
je 0x4b4abc
mov eax, 1
jmp 0x4b4acd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4b4bdf
mov eax, 2
mov dword [0x552e58], eax
cmp eax, 1
jne 0x4b4b72
test esi, esi
jne 0x4b4aeb
call edi
mov esi, eax
test esi, esi
je 0x4b4bdf
cmp word [esi], 0
mov eax, esi
je 0x4b4b05
add eax, 2
cmp word [eax], 0
jne 0x4b4af3
add eax, 2
cmp word [eax], 0
jne 0x4b4af3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4b4b64
push edi
call fcn.004ac430
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b4b64
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4b4b56
push ebx
call fcn.004ac500
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4b4bdf
test ebx, ebx
jne 0x4b4b83
call ebp
mov ebx, eax
test ebx, ebx
je 0x4b4bdf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4b4b9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4b4b8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4b4b8b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004ac430
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4b4bbd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4b4e40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x542748
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4b4e64
add eax, 8
inc ebp
cmp eax, 0x5427d8
jb 0x4b4e55
cmp ecx, dword [ebp*8 + 0x542748]
jne 0x4b500b
mov eax, dword [0x552a00]
cmp eax, 1
je 0x4b4fcd
test eax, eax
jne 0x4b4e90
cmp dword [0x53fdac], 1
je 0x4b4fcd
cmp ecx, 0xfc
je 0x4b500b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b4ecb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4b4f14
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x5207b0
add ebx, ecx
push ebx
call fcn.004b8740
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x520790
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x54274c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004b8b40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x5c0040]
test eax, eax
je 0x4b4fde
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4b4fe8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x54274c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4b5e90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x4b5f05
push ebx
call fcn.004b5fc0
add esp, 4
test eax, eax
jne 0x4b5ed3
call fcn.004ae3f0
mov dword [eax], 0xf
call fcn.004ae3e0
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4b5f15
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4b5faf
inc eax
cmp eax, 0x104
ja 0x4b5faf
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x4b5f67
cmp eax, ecx
jg 0x4b5f41
mov eax, ecx
push eax
call fcn.004ac430
mov edx, eax
add esp, 4
test edx, edx
jne 0x4b5f82
call fcn.004ae3e0
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x4b5f82
call fcn.004ae3e0
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x4b5fc0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4b5fce
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4b5ffd
cmp eax, 1
je 0x4b5ffd
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4b6690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4b66bc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x5c0040]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4b66f7
push 2
push ebp
push ecx
call fcn.004b6a20
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b6859
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4b67a1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4b6752
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4b673f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4b6722
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b684a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4b679d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4b671e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b6839
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b67f5
cmp eax, 5
jne 0x4b67de
call fcn.004ae3e0
mov dword [eax], 9
call fcn.004ae3f0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004ae360
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4b6815
cmp byte [ebp], 0x1a
jne 0x4b6815
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.004ae3e0
mov dword [eax], 0x1c
call fcn.004ae3f0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4b679d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b688a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4b67a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4b67a1
Function at 0x4ba7d0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x552fe0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4ba818
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ba7fc
mov eax, 1
jmp 0x4ba813
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4ba8f8
mov eax, 2
mov dword [0x552fe0], eax
cmp eax, 2
jne 0x4ba838
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4ba90a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4ba853
mov ecx, dword [0x552d10]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4ba872
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004ac430
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ba889
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ba8ef
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4ba8d0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4ba8ef
push esi
call fcn.004ac500
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4ba8ff
push esi
call fcn.004ac500
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004ac500
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret