joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [0x48cd00]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov esi, dword [esi + ebx + 0x80]
add esi, ebx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0xc], 0
je 0x40b3f3
mov eax, dword [esi + 0xc]
add eax, ebx
push str.nxgsm.dll
push eax
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40b3f3
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x40b3d3
push edi
push str.nxgsm.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esi + 0x10]
add edi, ebx
cmp dword [edi], eax
je 0x40b417
nop
add edi, 4
cmp dword [edi], eax
jne 0x40b410
push 4
call fcn.00410117
mov esi, eax
push 0x28
mov dword [esi], edi
call fcn.00410117
mov ecx, dword [0x48cd10]
mov edx, eax
xorps xmm0, xmm0
mov dword [ebp - 8], edx
add esp, 8
mov dword [0x48cd10], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
push 0x48ce14
movq qword [edx + 0x20], xmm0
mov dword [edx + 0x20], ecx
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
push 0x40
mov dword [edx], eax
mov dword [edx + 0x24], esi
mov dword [edx + 0x14], ebx
mov dword [edx + 0x18], str.nxgsm.dll
mov dword [ecx], eax
mov esi, dword [esi]
push 4
push esi
call edi
test eax, eax
je 0x40b49e
mov eax, dword [ebp - 4]
push 0x48ce14
mov dword [esi], eax
push dword [0x48ce14]
push 4
push esi
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 4], 0
mov eax, dword [ebp + 8]
je 0x40be25
lea edx, [ebp - 8]
mov dword [ebp - 8], 4
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40be25
cmp dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x10]
je 0x40be28
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8

Function at 0x40be70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov byte [0x48d818], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 8], 0x200
je 0x40bed1
lea edx, [ebp - 8]
push edx
push 0x48d818
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bed1
cmp dword [ebp - 0xc], 1
mov eax, 0x48d818
cmovne eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
Function at 0x40d900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x40db0e
cmp eax, 3
jb 0x40d976
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x40d9b3
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x40d9b3
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x40d99d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.0040d5e0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x40da8a
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.0040cf60
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x40da59
cmp ecx, 3
jb 0x40da59
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x40da00
jmp 0x40daa8
add dword [esi + 0x6af84], edi
xor edi, edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
jmp 0x40dab4
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.0040cf60
add esp, 4
mov dword [ebp - 4], eax
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
cmp dword [ebp - 4], 0
je 0x40daed
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x40dace
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x40dad0
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.0040cbb0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x40db00
mov ecx, esi
call fcn.0040d7a0
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x40d925
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40db22
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x40db24
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.0040cbb0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e5b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40e5bb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40e677
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
sub edi, 1
jne 0x40e5d0
pop edi
test esi, esi
je 0x40e69a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43cd80]
sub esi, 1
jne 0x40e680
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40e9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40ea2e
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebx + edi]
cmp eax, dword [esi + 0x20]
jb 0x40ea09
pop edi
pop ebx
mov dword [esi + 0xc], 0x30000
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
push edi
push edx
add ecx, ebx
push ecx
call fcn.00412570
add esp, 0xc
mov eax, edi
add dword [esi + 0x1c], edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x40ea59
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0xc], 0x1000000
xor ecx, ebp
pop esi
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8

Function at 0x40ec60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x40eccd
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x68]
cmp ecx, esi
jae 0x40ed1c
sub esi, ecx
lea eax, [ecx + edx]
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.00412570
mov ecx, dword [edi + 0x58]
mov edx, ebx
add dword [edi + 0x6c], esi
add dword [edi + 0x54], esi
push esi
call fcn.0040e5b0
add esp, 0x10
mov dword [edi + 0x58], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x40ed15
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ed1c
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x58]
add dword [edi + 0x54], esi
push esi
call fcn.0040e5b0
add esp, 4
mov dword [edi + 0x58], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0xc], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 8
Function at 0x410942
Capabilities:
Parse pe header

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

Function at 0x4225c5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437af0
push 0x437ae8
push str.FlsAlloc
push 0x1f
call fcn.00422430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4225f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x434218]
call esi
jmp 0x4225ff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422643
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437b00
push 0x437af8
push str.FlsGetValue
push 0x21
call fcn.00422430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42267a
push dword [ebp + 8]
mov ecx, esi
call dword [0x434218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x422682
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437b08
push 0x437b00
push str.FlsSetValue
push 0x22
call fcn.00422430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4226bc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x434218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x425fff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004324c0
mov eax, dword [0x443040]
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.00422bf8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x426041
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42619d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00432310
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 + 0x48c930]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00426e69
mov ecx, dword [esi*4 + 0x48c930]
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 0x426196
cmp eax, dword [ecx + edi + 0x24]
jne 0x426196
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 0x426196
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426e69
add esp, 0x14
test edx, edx
jl 0x426196
jg 0x42610c
test eax, eax
jb 0x426196
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x426196
jl 0x426126
cmp dword [ebp - 0x1008], eax
ja 0x426196
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x426144
test ebx, ebx
je 0x42617d
cmp ecx, edi
jae 0x42617d
mov al, byte [ecx]
cmp al, 0xd
jne 0x42615e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42616a
cmp byte [ecx + 1], 0xa
jne 0x42616a
inc ecx
jmp 0x42616a
movzx eax, al
movsx eax, byte [eax + 0x443380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x426144
cmp edx, ebx
jne 0x426144
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42619b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040fc87
leave
ret
Function at 0x426301
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 + 0x48c930]
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 0x426341
cmp byte [ebx], 0xa
jne 0x426341
or byte [edi + eax + 0x28], 4
jmp 0x426346
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 0x426445
mov dl, byte [eax]
cmp dl, 0x1a
je 0x426428
inc eax
cmp dl, 0xd
je 0x426372
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x426398
cmp eax, ecx
jae 0x4263a6
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 0x42635a
jmp 0x426445
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 0x426423
cmp dword [ebp - 0x10], 0
je 0x426423
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48c930]
test byte [eax + edi + 0x28], 0x48
je 0x4263fd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4263e8
mov byte [esi], dl
jmp 0x4263f9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48c930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x426445
cmp byte [ebp - 1], 0xa
jne 0x42640c
cmp esi, ebx
jne 0x42640c
mov byte [esi], 0xa
jmp 0x426444
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426e87
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x426445
mov byte [esi], 0xd
jmp 0x426444
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48c930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x426442
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x426445
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42644e
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 + 0x48c930]
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 0x426494
cmp word [ebx], dx
jne 0x426494
or byte [eax + edi + 0x28], 4
jmp 0x426499
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 0x4265fc
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 0x4265dc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4264da
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x426510
cmp eax, edx
jae 0x42651e
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 0x4264b5
jmp 0x4265fc
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 0x4265d7
cmp dword [ebp - 0x18], 0
je 0x4265d7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48c930]
test byte [eax + edi + 0x28], 0x48
je 0x4265ad
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 0x426571
mov word [esi], cx
jmp 0x4265a8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48c930]
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 + 0x48c930]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48c930]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4265fc
pop eax
cmp word [ebp - 4], ax
jne 0x4265bd
cmp esi, ebx
jne 0x4265bd
mov word [esi], ax
jmp 0x4265f9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00426e87
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4265fc
push 0xd
pop eax
jmp 0x4265b8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48c930]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4265f6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4265fc
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 0x4286f9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x428796
push ebx
push esi
call fcn.004286c2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00428656
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x428743
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428795
push edi
push eax
call fcn.004235e6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x428763
call fcn.00422151
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428794
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00428656
add esp, 0x20
test eax, eax
jne 0x428782
push edi
call fcn.00422151
jmp 0x42878a
push ebx
call fcn.00422151
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x428799
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4287aa
pop esi
ret
push ebx
push edi
push esi
call fcn.004286c2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004235e6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4287d2
push ebx
push esi
push edi
call fcn.00412570
add esp, 0xc
push 0
call fcn.00422151
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x428ba2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004287e7

Function at 0x42b619
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00423161
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 0x42b688
cmp esi, dword [ebp - 4]
je 0x42b683
cmp dword [ebp + 0xc], 0
je 0x42b683
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42b660
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042b16b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42b68a
xor eax, eax
inc eax
jmp 0x42b68a
xor eax, eax
pop edi
pop esi
leave
ret