joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444449
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44461d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x469d00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44461d
test cl, 0x48
je 0x4444b4
cmp byte [eax + 5], 0xa
je 0x4444b4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444506
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4444ee
call fcn.00442c95
mov dword [eax], 9
call fcn.00442c9e
mov dword [eax], esi
jmp 0x4444fe
cmp eax, 0x6d
je 0x44461d
push eax
call fcn.00442ca7
pop ecx
or eax, 0xffffffff
jmp 0x44461f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x444618
test eax, eax
je 0x44452d
cmp byte [ebx], 0xa
jne 0x44452d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x444536
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x444612
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x444602
cmp al, 0xd
je 0x444568
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4445f4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x444582
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44457d
add dword [ebp + 0x10], 2
jmp 0x4445d6
mov dword [ebp + 0x10], eax
jmp 0x4445f0
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4445aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4445f0
cmp dword [ebp - 0xc], 0
je 0x4445f0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4445cb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4445d6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4445f3
cmp ebx, dword [ebp + 0xc]
jne 0x4445db
cmp byte [ebp - 1], 0xa
jne 0x4445db
mov byte [ebx], 0xa
jmp 0x4445f3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00444b01
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4445f4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44454c
jmp 0x444612
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x444612
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44461f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4446cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x46159c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x444700
xor eax, eax
jmp 0x444889
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x469d00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44473c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0044786e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x444817
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x444855
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4447a0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x444791
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x444771
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4447e0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4447e9
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x444762
jmp 0x4447eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x444884
cmp dword [ebp - 0x6c], edi
je 0x444855
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x44484a
call fcn.00442c95
mov dword [eax], 9
call fcn.00442c9e
mov dword [eax], esi
jmp 0x44487f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44483f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4447eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4447eb
push dword [ebp - 0x6c]
call fcn.00442ca7
pop ecx
jmp 0x44487f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44486d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x44486d
xor eax, eax
jmp 0x444887
call fcn.00442c95
mov dword [eax], 0x1c
call fcn.00442c9e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x444887
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00439dac
add ebp, 0x3a0
leave
ret
Function at 0x444d69
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x468948], ebx
push esi
push edi
jne 0x444de9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x444e24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45970c
push edi
call esi
test eax, eax
mov dword [0x468948], eax
je 0x444e24
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46894c], eax
call esi
cmp dword [0x46852c], 2
mov dword [0x468950], eax
jne 0x444de9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x468958], eax
je 0x444de9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x468954], eax
mov eax, dword [0x468954]
test eax, eax
je 0x444e2e
call eax
test eax, eax
je 0x444e15
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x468958]
test eax, eax
je 0x444e15
test byte [ebp - 8], 1
jne 0x444e2e
cmp dword [0x468538], 4
jb 0x444e28
or byte [ebp + 0x12], 0x20
jmp 0x444e4d
xor eax, eax
jmp 0x444e5d
or byte [ebp + 0x12], 4
jmp 0x444e4d
mov eax, dword [0x46894c]
test eax, eax
je 0x444e4d
call eax
mov ebx, eax
test ebx, ebx
je 0x444e4d
mov eax, dword [0x468950]
test eax, eax
je 0x444e4d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x468948]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x448691
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0043b480
mov eax, dword [0x46159c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00444b01
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4487c4
push 2
push esi
push dword [ebp + 8]
call fcn.00444b01
add esp, 0xc
cmp eax, ebx
je 0x4487c4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x448764
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0043b4c0
push 0x8000
push dword [ebp + 8]
call fcn.0044931d
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x44871a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004446cf
add esp, 0xc
cmp eax, 0xffffffff
je 0x44873a
sub edi, eax
test edi, edi
jg 0x448712
jmp 0x448752
call fcn.00442c9e
cmp dword [eax], 5
jne 0x44874f
call fcn.00442c95
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0044931d
pop ecx
pop ecx
jmp 0x4487ac
jge 0x4487ac
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00444b01
push dword [ebp + 8]
call fcn.004475ef
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4487ac
call fcn.00442c95
mov dword [eax], 0xd
call fcn.00442c9e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00444b01
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4487c6
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00439dac
leave
ret
Function at 0x4487d2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x45a630
call fcn.0043b328
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4689f4], edi
jne 0x448816
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448801
mov dword [0x4689f4], ebx
jmp 0x448816
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x448816
mov dword [0x4689f4], 2
mov eax, dword [0x4689f4]
cmp eax, ebx
jne 0x448836
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4488f9
cmp eax, 2
je 0x44883f
cmp eax, edi
jne 0x448867
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x448852
mov eax, dword [0x4689a0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x44886e
xor eax, eax
jmp 0x4488f9
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0043b480
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4488a1
cmp esi, edi
jne 0x4488b7
push dword [ebp - 0x20]
call fcn.0043b1c1
pop ecx
mov esi, eax
cmp esi, edi
je 0x448867
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4488ea
cmp dword [ebp + 0x14], edi
jne 0x4488d4
push edi
push edi
jmp 0x4488da
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4488f6
push esi
call fcn.0043b1d3
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0043b363
ret
Function at 0x448902
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x45a640
call fcn.0043b328
xor esi, esi
cmp dword [0x4689f8], esi
jne 0x448946
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448931
mov dword [0x4689f8], edi
jmp 0x448946
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x448946
mov dword [0x4689f8], 2
mov eax, dword [0x4689f8]
cmp eax, 2
je 0x448a27
cmp eax, esi
je 0x448a27
cmp eax, 1
jne 0x44898b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x448974
mov eax, dword [0x4689a0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x448992
xor eax, eax
jmp 0x448a39
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0043b480
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4489c8
cmp edi, esi
jne 0x4489e3
lea eax, [ebx + ebx]
push eax
call fcn.0043b1c1
pop ecx
mov edi, eax
cmp edi, esi
je 0x44898b
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448a16
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x448a00
push esi
push esi
jmp 0x448a06
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x448a22
push edi
call fcn.0043b1d3
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x448a39
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0043b363
ret
Function at 0x449148
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x449161
or eax, 0xffffffff
jmp 0x4491c2
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4491be
push 0x3d
push esi
call fcn.00449389
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4491be
cmp esi, eax
je 0x4491be
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x46854c]
sete cl
cmp eax, dword [0x468550]
mov dword [ebp - 8], ecx
jne 0x4491a4
mov edi, eax
call fcn.004490e7
mov dword [0x46854c], eax
cmp eax, ebx
jne 0x4491fd
cmp dword [ebp + 0xc], ebx
je 0x4491c6
cmp dword [0x468554], ebx
je 0x4491c6
call fcn.00448601
test eax, eax
je 0x4491fd
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4491cf
xor eax, eax
jmp 0x4491c1
push 4
call fcn.0043b1c1
cmp eax, ebx
pop ecx
mov dword [0x46854c], eax
je 0x4491be
mov dword [eax], ebx
cmp dword [0x468554], ebx
jne 0x4491fd
push 4
call fcn.0043b1c1
cmp eax, ebx
pop ecx
mov dword [0x468554], eax
je 0x4491be
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x46854c]
call fcn.0044909a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x44925e
cmp dword [esi], ebx
je 0x44925e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0043b1d3
cmp dword [ebp - 8], ebx
pop ecx
jne 0x449241
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x44929f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x449238
mov eax, edi
shl eax, 2
push eax
push dword [0x46854c]
call fcn.0043babb
cmp eax, ebx
pop ecx
pop ecx
je 0x44929f
jmp 0x44929a
cmp dword [ebp - 8], ebx
jne 0x44930a
cmp edi, ebx
jge 0x44926d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46854c]
call fcn.0043babb
cmp eax, ebx
pop ecx
pop ecx
je 0x4491be
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x46854c], eax
cmp dword [ebp + 0xc], ebx
je 0x4492f4
push dword [ebp - 4]
call fcn.00439dc0
inc eax
inc eax
push eax
call fcn.0043b1c1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4492f4
push dword [ebp - 4]
push esi
call fcn.00439e60
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4492ed
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0043b1d3
pop ecx
cmp dword [ebp - 8], ebx
je 0x449302
push dword [ebp - 4]
call fcn.0043b1d3
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4491c1
push dword [ebp - 4]
call fcn.0043b1d3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4491cb
Function at 0x4059d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a3a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40ae04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40ae46
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae50
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae71
mov al, byte [esp]
jmp 0x40ae73
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b4f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b370
mov eax, dword [0x46da0c]
cmp byte [eax], 0
je 0x40b574
mov eax, dword [0x46d81c]
call fcn.004029a4
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040832c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b5bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46d7cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e664]
call fcn.00404ee8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40be10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bee6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ee4
lea eax, [ebp - 8]
call fcn.0040435c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bed0
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bec9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40beb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bef8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40beb3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bed0
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beed
lea eax, [ebp - 8]
call fcn.00403e4c
ret

Function at 0x40c3f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c454
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e74
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c45b
lea eax, [ebp - 0xc]
call fcn.00403e4c
ret

Function at 0x41a5bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46e884
cmp dword [edi], 0
jne 0x41a638
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46e880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46c3ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a594
lea eax, [esi + 5]
call fcn.0041a5b4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a5b4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a60d
mov dword [0x46e880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bbbc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bbc2
ret
Function at 0x41e094
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e0e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e0cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e0bc
jmp 0x41e0e5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e0cd
pop ebx
mov esp, ebp
pop ebp
ret