joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eeb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4776ad
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x49a1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], 0
push str.unknow
lea ecx, [ebp - 0x28]
call fcn.00402680
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.0044ad20
add esp, 0xc
mov dword [ebp - 0x144], 0x11c
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f064
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x148], 5
jne 0x41ef6a
cmp dword [ebp - 0x14c], 1
jne 0x41ef6a
push str.winxp
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x148], 6
jne 0x41ef8e
cmp dword [ebp - 0x14c], 0
jne 0x41ef8e
push str.winvista
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x148], 6
jne 0x41efb2
cmp dword [ebp - 0x14c], 1
jne 0x41efb2
push str.win7
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x148], 6
jne 0x41efd6
cmp dword [ebp - 0x14c], 2
jne 0x41efd6
push str.win8
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x148], 6
jne 0x41eff7
cmp dword [ebp - 0x14c], 3
jne 0x41eff7
push str.win8.1
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x140], 0xa
jne 0x41f024
cmp dword [ebp - 0x13c], 0
jne 0x41f024
cmp dword [ebp - 0x138], 0x55f0
jb 0x41f024
push 0x47d294
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x148], 0xa
jne 0x41f045
cmp dword [ebp - 0x14c], 0
jne 0x41f045
push str.win10
lea ecx, [ebp - 0x28]
call fcn.0041af80
jmp 0x41f064
cmp dword [ebp - 0x148], 0xa
jne 0x41f064
cmp dword [ebp - 0x14c], 0
jle 0x41f064
push str.win11
lea ecx, [ebp - 0x28]
call fcn.0041af80
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025a0
mov edx, dword [ebp - 0x150]
or edx, 1
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403790
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b53
mov esp, ebp
pop ebp
ret

Function at 0x41f0b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x28]
cmp ecx, 9
je 0x41f0d6
movzx edx, word [ebp - 0x28]
cmp edx, 0xc
jne 0x41f0da
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x41ffb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477750
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x49a1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 4
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x240]
push edx
push 0
push str.SystemComponent
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x238], 1
jne 0x42002b
mov al, 1
jmp 0x420149
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0044ad20
add esp, 0xc
mov dword [ebp - 0x23c], 0x208
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push 0
push str.DisplayName
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x420089
mov al, 1
jmp 0x420149
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x244]
push ecx
push 0
push 0
push 0
push str.ParentKeyName
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4200ba
mov al, 1
jmp 0x420149
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x240]
push edx
push 0
push str.ClickToRunComponent
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x238], 1
jne 0x4200f7
mov al, 1
jmp 0x420149
mov ecx, dword [ebp + 0x14]
call fcn.0040feb0
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.004274b0
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x248]
mov ecx, dword [eax]
call fcn.00421470
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403790
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b53
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x42f7a0
jl 0x42f797
cmp dword [ebp + 0xc], 0
ja 0x42f7a0
xor eax, eax
xor edx, edx
jmp 0x42f8d7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x42f7c2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040ea40
jmp 0x42f8d7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00407b30
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x42f831
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00401800
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00408d40
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405600
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040dab0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x42f8c8
mov ecx, dword [ebp - 8]
call fcn.00407fb0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x42f8a1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0045f4a1
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x42f89f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x42f8d7
jmp 0x42f84d
cmp dword [ebp - 4], 0
jbe 0x42f8c8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0045f4a1
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478c0c
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x49a1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x454], ecx
mov ecx, dword [ebp - 0x454]
call fcn.00402860
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x454]
add ecx, 0x18
call fcn.00402860
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x454]
mov dword [eax + 0x30], 0xe10
mov ecx, dword [ebp - 0x454]
add ecx, 0x34
call fcn.00402860
mov byte [ebp - 4], 2
mov dword [ebp - 0x45c], 1
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0044ad20
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0044ad20
add esp, 0xc
mov dword [ebp - 0x458], 0x208
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x45c]
push edx
push 0x47eaf8
push str.SOFTWAREjiebangbang
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x458], 0x208
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x45c]
push edx
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalljiebangbang
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.004274b0
add esp, 8
mov dword [ebp - 0x460], eax
mov edx, dword [ebp - 0x460]
push edx
mov ecx, dword [ebp - 0x454]
call fcn.004126e0
lea ecx, [ebp - 0x438]
call fcn.00403790
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
push ecx
call fcn.004274b0
add esp, 8
mov dword [ebp - 0x464], eax
mov edx, dword [ebp - 0x464]
push edx
mov ecx, dword [ebp - 0x454]
add ecx, 0x18
call fcn.004126e0
lea ecx, [ebp - 0x450]
call fcn.00403790
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b53
mov esp, ebp
pop ebp
ret
Function at 0x4339b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49a1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00401d50
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00433b50
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00433760
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00433bf0
mov dword [ebp - 0x20], 0x433920
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00403c80
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.0045fdb6
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x433a4f
lea ecx, [ebp - 0x14]
call fcn.00434030
jmp 0x433a60
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004483cb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00433bf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x449b67
Capabilities:
Parse pe header

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

Function at 0x466c57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48774c
push 0x487744
push str.FlsAlloc
push 0x1f
call fcn.00466a82
mov esi, eax
add esp, 0x10
test esi, esi
je 0x466c8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x47a30c]
call esi
jmp 0x466c91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x466cd5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48775c
push 0x487754
push str.FlsGetValue
push 0x21
call fcn.00466a82
mov esi, eax
add esp, 0x10
test esi, esi
je 0x466d0c
push dword [ebp + 8]
mov ecx, esi
call dword [0x47a30c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x466d14
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x487764
push 0x48775c
push str.FlsSetValue
push 0x22
call fcn.00466a82
mov esi, eax
add esp, 0x10
test esi, esi
je 0x466d4e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47a30c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46b4ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00449000
mov eax, dword [0x49a1c0]
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.0046738f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46b50c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46b668
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00448ba0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x49f170]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046c26f
mov ecx, dword [esi*4 + 0x49f170]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x46b661
cmp eax, dword [ecx + edi + 0x24]
jne 0x46b661
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b661
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c26f
add esp, 0x14
test edx, edx
jl 0x46b661
jg 0x46b5d7
test eax, eax
jb 0x46b661
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46b661
jl 0x46b5f1
cmp dword [ebp - 0x1008], eax
ja 0x46b661
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46b60f
test ebx, ebx
je 0x46b648
cmp ecx, edi
jae 0x46b648
mov al, byte [ecx]
cmp al, 0xd
jne 0x46b629
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46b635
cmp byte [ecx + 1], 0xa
jne 0x46b635
inc ecx
jmp 0x46b635
movzx eax, al
movsx eax, byte [eax + 0x49a660]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46b60f
cmp edx, ebx
jne 0x46b60f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46b666
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00448b53
leave
ret
Function at 0x46b707
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x49f170]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46b747
cmp byte [ebx], 0xa
jne 0x46b747
or byte [edi + eax + 0x28], 4
jmp 0x46b74c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46b84b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46b82e
inc eax
cmp dl, 0xd
je 0x46b778
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46b79e
cmp eax, ecx
jae 0x46b7ac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46b760
jmp 0x46b84b
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 0x46b829
cmp dword [ebp - 0x10], 0
je 0x46b829
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49f170]
test byte [eax + edi + 0x28], 0x48
je 0x46b803
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46b7ee
mov byte [esi], dl
jmp 0x46b7ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49f170]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46b84b
cmp byte [ebp - 1], 0xa
jne 0x46b812
cmp esi, ebx
jne 0x46b812
mov byte [esi], 0xa
jmp 0x46b84a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046c28d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46b84b
mov byte [esi], 0xd
jmp 0x46b84a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49f170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46b848
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46b84b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46b854
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x49f170]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46b89a
cmp word [ebx], dx
jne 0x46b89a
or byte [eax + edi + 0x28], 4
jmp 0x46b89f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46ba02
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46b9e2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46b8e0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46b916
cmp eax, edx
jae 0x46b924
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46b8bb
jmp 0x46ba02
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b9dd
cmp dword [ebp - 0x18], 0
je 0x46b9dd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x49f170]
test byte [eax + edi + 0x28], 0x48
je 0x46b9b3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46b977
mov word [esi], cx
jmp 0x46b9ae
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x49f170]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x49f170]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x49f170]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46ba02
pop eax
cmp word [ebp - 4], ax
jne 0x46b9c3
cmp esi, ebx
jne 0x46b9c3
mov word [esi], ax
jmp 0x46b9ff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046c28d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46ba02
push 0xd
pop eax
jmp 0x46b9be
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x49f170]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46b9fc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46ba02
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d1e6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49a1c0]
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 0x46d231
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046d381
test al, al
jne 0x46d22b
sub edx, 2
cmp edx, edi
jne 0x46d211
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46d253
lea eax, [edi + 2]
cmp edx, eax
je 0x46d253
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046d132
add esp, 0x10
jmp 0x46d34d
push esi
lea ecx, [ebp - 0x255]
call fcn.0046d381
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46d296
push dword [ebp - 0x25c]
jmp 0x46d243
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 0x46d2d3
cmp word [ebp - 0x226], 0
je 0x46d2f4
cmp word [ebp - 0x226], ax
jne 0x46d2d3
cmp word [ebp - 0x224], 0
je 0x46d2f4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046d132
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46d340
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46d2ad
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46d328
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46d34d
push 0x46cf62
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045d9c0
add esp, 0x10
jmp 0x46d31d
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.00448b53
leave
ret

Function at 0x46dc63
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46dc74
pop esi
ret
push ebx
push edi
push esi
call fcn.0046dc2c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00469120
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46dc9c
push ebx
push esi
push edi
call fcn.0044a7a0
add esp, 0xc
push 0
call fcn.004667a3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x46e06c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046dcb1
Function at 0x4704ca
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046645b
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 0x470539
cmp esi, dword [ebp - 4]
je 0x470534
cmp dword [ebp + 0xc], 0
je 0x470534
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x470511
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0047001c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47053b
xor eax, eax
inc eax
jmp 0x47053b
xor eax, eax
pop edi
pop esi
leave
ret