joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487051
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4a788f
call fcn.0048e4de
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4870e6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
push eax
call fcn.00403dfc
and dword [ebp - 4], 0
push 0x5c
call fcn.0043406b
cmp eax, 0xffffffff
je 0x4870ac
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.0042927c
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.004085dd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403d84
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4870da
lea eax, [ebp - 0x14]
push eax
call fcn.00403dfc
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00486f70
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403d84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403d84
call fcn.0048e5b6
ret

Function at 0x4874c1
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x4ada65
call fcn.0048e547
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x60], esi
mov edi, edx
mov dword [ebp - 0x5c], ebx
call fcn.0040572b
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 4], ebx
push esi
inc ebx
push edi
mov dword [ebp - 0x5c], ebx
call fcn.00487273
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x48751c
mov eax, dword [esi + 4]
jmp 0x48751f
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4875f4
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.004424d0
lea edi, [ebp - 0x7c]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00443230
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00442460
mov eax, edi
push eax
mov byte [ebp - 4], 4
call fcn.0047ed56
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x48]
call fcn.00443090
mov edi, eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00443090
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004055be
xor edi, edi
push edi
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x49], al
mov byte [ebp - 4], 5
call fcn.004043a7
push edi
push ebx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.004043a7
cmp byte [ebp - 0x49], 0
je 0x4875db
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4875c2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4875db
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00404072
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
call fcn.0040ca60
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0
call fcn.0040ca60
mov eax, esi
call fcn.0048e5ca
ret
Function at 0x487c32
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4e52f4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0048a3e0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x487c8b
cmp dword [ebp - 0x7c], 5
jae 0x487c87
cmp dword [ebp - 0x7c], 4
jne 0x487c8b
cmp dword [ebp - 0x78], 0x5a
jb 0x487c8b
xor eax, eax
jmp 0x487c8e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00489b1b
add ebp, 0x98
leave
ret

Function at 0x487f30
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
cmp dword [0x4e79b8], 0
push esi
jne 0x488bfa
call fcn.00488b20
test eax, eax
je 0x488c3d
mov eax, dword [0x4e79b8]
cmp eax, 1
jne 0x488c1b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x488c3d
pop esi
ret
push eax
call dword [0x4e79c0]
test eax, eax
jne 0x488c85
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x488c41
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4e79b8]
call dword [0x4e79c0]
mov edi, eax
test edi, edi
je 0x488c66
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x488c82
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4e79b8]
call dword [0x4e79bc]
add edi, 0x10
cmp edi, esi
jb 0x488c6e
mov eax, edi
pop edi
pop esi
ret
jmp 0x488be7

Function at 0x489b1b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e52f4]
jne 0x489b25
repz ret
jmp fcn.0049131c
Function at 0x49b37b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0048d07c
and dword [ebp - 4], 0
cmp dword [0x4e8870], 0
mov ebx, eax
jne 0x49b42c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49b4dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x49b4dd
push eax
call fcn.0048d00a
mov dword [esp], 0x4bae30
push edi
mov dword [0x4e8870], eax
call esi
push eax
call fcn.0048d00a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e8874], eax
call esi
push eax
call fcn.0048d00a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e8878], eax
call esi
push eax
call fcn.0048d00a
pop ecx
mov dword [0x4e8880], eax
test eax, eax
je 0x49b42c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048d00a
pop ecx
mov dword [0x4e887c], eax
mov eax, dword [0x4e887c]
cmp eax, ebx
je 0x49b484
cmp dword [0x4e8880], ebx
je 0x49b484
push eax
call fcn.0048d085
push dword [0x4e8880]
mov esi, eax
call fcn.0048d085
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49b484
test edi, edi
je 0x49b484
call esi
test eax, eax
je 0x49b47b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49b47b
test byte [ebp - 0xc], 1
jne 0x49b484
or dword [ebp + 0x10], 0x200000
jmp 0x49b4bd
mov eax, dword [0x4e8874]
cmp eax, ebx
je 0x49b4bd
push eax
call fcn.0048d085
pop ecx
test eax, eax
je 0x49b4bd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49b4bd
mov eax, dword [0x4e8878]
cmp eax, ebx
je 0x49b4bd
push eax
call fcn.0048d085
pop ecx
test eax, eax
je 0x49b4bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e8870]
call fcn.0048d085
pop ecx
test eax, eax
je 0x49b4dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49b4df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1413
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movsx ecx, ax
shr eax, 0x10
cwde
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [eax], 0
push edi
mov edi, dword [esi + 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x4a146d
mov ebx, dword [edi]
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call dword [eax + 0x24]
push dword [ebp - 8]
lea eax, [ebp - 0x38]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4a146a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x60]
test al, al
je 0x4a146a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
test al, al
jne 0x4a1488
mov edi, dword [edi + 4]
test edi, edi
jne 0x4a1433
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4a1480
mov eax, dword [ecx]
call dword [eax + 0x40]
and dword [esi + 0x30], edi
pop edi
xor eax, eax
pop ebx
leave
ret 4
mov ecx, dword [esi + 0x30]
cmp ebx, ecx
je 0x4a149b
test ecx, ecx
je 0x4a1498
mov eax, dword [ecx]
call dword [eax + 0x40]
mov dword [esi + 0x30], ebx
push 1
xor edi, edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jbe 0x4a14b0
inc edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x4a1480
Function at 0x401280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4012ab
mov edx, dword [ebp + 8]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x401294
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x407520
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4540d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004301ef
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00419286
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004078d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
sar esi, 1
add esi, esi
je 0x4095a1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x409590
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4300ef
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0043958c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x430132
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x430132
sub eax, 1
je 0x43012d
sub eax, 1
je 0x430129
xor eax, eax
leave
ret
push 3
jmp 0x430134
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x430ff1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x431030
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431030
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431030
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x431030
cmp dword [ecx + 0x74], 0xe
jbe 0x431030
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x446eaf
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x446ec9
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x446ee0
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x446f38
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004476e6
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x446f38
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x446f38
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x446f38
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x446f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x446f34
xor bl, bl
mov al, bl
jmp 0x446f3a
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x447b65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00431160
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00438714
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x447ba7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x447d1e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004535c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46a930]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00447fbd
mov ecx, dword [esi*4 + 0x46a930]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x447d17
cmp eax, dword [edi + ecx + 0x24]
jne 0x447d17
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x447d17
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00447fbd
add esp, 0x14
cmp edx, esi
jl 0x447d17
jg 0x447c72
cmp eax, esi
jb 0x447d17
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x447d17
jl 0x447c94
cmp dword [ebp - 0x1008], eax
ja 0x447d17
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x447cb9
cmp ebx, esi
je 0x447cfe
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x447cfe
mov al, byte [ecx]
cmp al, 0xd
jne 0x447cdf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x447ceb
cmp byte [ecx + 1], 0xa
jne 0x447ceb
inc ecx
jmp 0x447ceb
movzx eax, al
movsx eax, byte [eax + 0x468a08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x447cc5
cmp edx, ebx
jne 0x447cc5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x447d1c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004301e1
leave
ret
Function at 0x44a49a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44a4e5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044a633
test al, al
jne 0x44a4df
sub edx, 2
cmp edx, edi
jne 0x44a4c5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44a507
lea eax, [edi + 2]
cmp edx, eax
je 0x44a507
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044a3e6
add esp, 0x10
jmp 0x44a5ff
push esi
lea ecx, [ebp - 0x255]
call fcn.0044a633
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44a548
push dword [ebp - 0x25c]
jmp 0x44a4f7
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44a585
cmp word [ebp - 0x226], 0
je 0x44a5a6
cmp word [ebp - 0x226], ax
jne 0x44a585
cmp word [ebp - 0x224], 0
je 0x44a5a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044a3e6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44a5f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44a55f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44a5da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44a5ff
push 0x44a216
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00451270
add esp, 0x10
jmp 0x44a5cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004301e1
leave
ret

Function at 0x44aefc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44af0d
pop esi
ret
push ebx
push edi
push esi
call fcn.0044aec5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00442c10
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44af35
push ebx
push esi
push edi
call fcn.004319e0
add esp, 0xc
push 0
call fcn.00442bc0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44b304
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044af4a
Function at 0x44d288
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004444c7
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44d2f7
cmp esi, dword [ebp - 4]
je 0x44d2f2
cmp dword [ebp + 0xc], 0
je 0x44d2f2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44d2cf
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044cddd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44d2f9
xor eax, eax
inc eax
jmp 0x44d2f9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44d364
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004444c7
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004444c7
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x44d3db
cmp word [ecx], dx
je 0x44d3db
mov eax, dword [0x45c91c]
push edi
dec eax
push eax
push 0x45c808
call fcn.0044d2fd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44d44e
cmp word [eax], dx
je 0x44d44e
mov eax, dword [edi]
test eax, eax
je 0x44d3ff
cmp word [eax], dx
je 0x44d3ff
lea eax, [ebp - 0x10]
push eax
call fcn.0044cce3
jmp 0x44d408
lea eax, [ebp - 0x10]
push eax
call fcn.0044cd7e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44d478
mov eax, dword [0x45c804]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45c4f8
call fcn.0044d2fd
add esp, 0xc
test al, al
je 0x44d478
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44d443
cmp word [eax], di
je 0x44d443
lea eax, [ebp - 0x10]
push eax
call fcn.0044cce3
pop ecx
jmp 0x44d47a
lea eax, [ebp - 0x10]
push eax
call fcn.0044cd7e
jmp 0x44d440
mov eax, dword [edi]
test eax, eax
je 0x44d465
cmp word [eax], dx
je 0x44d465
lea eax, [ebp - 0x10]
push eax
call fcn.0044cc98
pop ecx
jmp 0x44d478
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x44d543
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044d182
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44d543
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44d543
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44d543
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44d4d0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004458b6
test ebx, ebx
je 0x44d53e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004458b6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44d543
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44d543
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045194d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44d545
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004301e1
leave
ret
Function at 0x44fb98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46a930]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44fbda
cmp byte [ebx], 0xa
jne 0x44fbda
or byte [edi + eax + 0x28], 4
jmp 0x44fbdf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44fce2
mov cl, byte [eax]
cmp cl, 0x1a
je 0x44fcbd
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x44fc0e
mov eax, dword [ebp - 8]
jmp 0x44fc2e
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x44fc4a
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x44fc28
add eax, 2
mov cl, 0xa
jmp 0x44fc2b
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x44fbf0
jmp 0x44fce2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44fcb8
cmp dword [ebp - 0x10], 0
je 0x44fcb8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x46a930]
test byte [eax + edi + 0x28], 0x48
je 0x44fc97
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x44fc87
mov byte [esi], 0xa
jmp 0x44fce1
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x46a930]
mov byte [eax + edi + 0x2a], cl
jmp 0x44fce1
cmp byte [ebp - 1], 0xa
jne 0x44fca1
cmp esi, ebx
je 0x44fc82
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00447fdb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44fce2
mov byte [esi], 0xd
jmp 0x44fce1
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x46a930]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x44fcdf
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x44fce2
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret