joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a820
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push 0x28
mov dword [ebp - 4], ebx
call fcn.0040f747
mov edi, eax
add esp, 4
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 + 0x24], 0
mov eax, dword [0x489fdc]
mov dword [edi + 0x20], eax
mov dword [0x489fdc], edi
mov dword [edi], esi
mov dword [edi + 4], ebx
call fcn.00402280
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
cmp dword [0x48a008], 0
mov esi, eax
jne 0x40a8e9
call ebx
cmp esi, eax
je 0x40a8e9
push 8
call fcn.0040f747
add esp, 4
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40a8d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push ebx
call fcn.0040f777
add esp, 8
mov dword [0x48a008], esi
mov dword [0x48a014], 0
jmp 0x40a8e9
mov eax, dword [0x48a01c]
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov dword [0x48a01c], ebx
mov edx, dword [ebp - 4]
sub esp, 0xc
mov ecx, edi
call fcn.00402740
call fcn.00402310
mov edx, dword [edi]
mov eax, edi
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push 8
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
call fcn.0040f747
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x28
mov dword [ebx], esi
mov ecx, dword [esi]
lea esi, [ecx + edi*4]
mov dword [ebx + 4], esi
call fcn.0040f747
mov ecx, dword [0x489fdc]
mov edx, eax
xorps xmm0, xmm0
mov dword [0x489fdc], edx
add esp, 8
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
push 0x48a0e4
movq qword [edx + 0x20], xmm0
mov dword [edx + 0x20], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
mov dword [edx], eax
mov dword [edx + 0x24], ebx
mov dword [edx + 0xc], 0
mov dword [ecx], eax
mov esi, dword [ebx + 4]
push 4
push esi
call edi
test eax, eax
je 0x40a9ba
mov eax, dword [ebp - 4]
push 0x48a0e4
mov dword [esi], eax
push dword [0x48a0e4]
push 4
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a9d0
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 [0x489fd0]
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 0x40aa23
mov eax, dword [esi + 0xc]
add eax, ebx
push str.nxgsm.dll
push eax
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40aa23
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x40aa03
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 0x40aa47
nop
add edi, 4
cmp dword [edi], eax
jne 0x40aa40
push 4
call fcn.0040f747
mov esi, eax
push 0x28
mov dword [esi], edi
call fcn.0040f747
mov ecx, dword [0x489fdc]
mov edx, eax
xorps xmm0, xmm0
mov dword [ebp - 8], edx
add esp, 8
mov dword [0x489fdc], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
push 0x48a0e4
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 0x40aace
mov eax, dword [ebp - 4]
push 0x48a0e4
mov dword [esi], eax
push dword [0x48a0e4]
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 0x40b410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x442040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 4], 0
mov eax, dword [ebp + 8]
je 0x40b455
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 0x40b455
cmp dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x10]
je 0x40b458
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 8

Function at 0x40b4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x442040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov byte [0x48aae8], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 8], 0x200
je 0x40b501
lea edx, [ebp - 8]
push edx
push 0x48aae8
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 0x40b501
cmp dword [ebp - 0xc], 1
mov eax, 0x48aae8
cmovne eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 8
Function at 0x40cf30
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 0x40d13e
cmp eax, 3
jb 0x40cfa6
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 0x40cfe3
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x40cfe3
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x40cfcd
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.0040cc10
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x40d0ba
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.0040c590
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 0x40d089
cmp ecx, 3
jb 0x40d089
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 0x40d030
jmp 0x40d0d8
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 0x40d0e4
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.0040c590
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 0x40d11d
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x40d0fe
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x40d100
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.0040c1e0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x40d130
mov ecx, esi
call fcn.0040cdd0
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x40cf55
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40d152
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x40d154
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.0040c1e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dbe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40dbeb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40dca7
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 + 0x43bd80]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43bd80]
sub edi, 1
jne 0x40dc00
pop edi
test esi, esi
je 0x40dcca
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 + 0x43bd80]
sub esi, 1
jne 0x40dcb0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40dff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x442040]
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 0x40e05e
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebx + edi]
cmp eax, dword [esi + 0x20]
jb 0x40e039
pop edi
pop ebx
mov dword [esi + 0xc], 0x30000
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 8
push edi
push edx
add ecx, ebx
push ecx
call fcn.00411ba0
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.0040f2b7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x40e089
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.0040f2b7
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.0040f2b7
mov esp, ebp
pop ebp
ret 8

Function at 0x40e290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x442040]
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 0x40e2fd
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x68]
cmp ecx, esi
jae 0x40e34c
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.00411ba0
mov ecx, dword [edi + 0x58]
mov edx, ebx
add dword [edi + 0x6c], esi
add dword [edi + 0x54], esi
push esi
call fcn.0040dbe0
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.0040f2b7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x40e345
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 0x40e34c
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x58]
add dword [edi + 0x54], esi
push esi
call fcn.0040dbe0
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.0040f2b7
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.0040f2b7
mov esp, ebp
pop ebp
ret 8
Function at 0x40ff72
Capabilities:
Parse pe header

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

Function at 0x421bf5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436af0
push 0x436ae8
push str.FlsAlloc
push 0x1f
call fcn.00421a60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421c29
push dword [ebp + 8]
mov ecx, esi
call dword [0x433218]
call esi
jmp 0x421c2f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421c73
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436b00
push 0x436af8
push str.FlsGetValue
push 0x21
call fcn.00421a60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421caa
push dword [ebp + 8]
mov ecx, esi
call dword [0x433218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421cb2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436b08
push 0x436b00
push str.FlsSetValue
push 0x22
call fcn.00421a60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421cec
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x433218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42562f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00431af0
mov eax, dword [0x442040]
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.00422228
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x425671
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4257cd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00431940
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 + 0x489c00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00426499
mov ecx, dword [esi*4 + 0x489c00]
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 0x4257c6
cmp eax, dword [ecx + edi + 0x24]
jne 0x4257c6
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 0x4257c6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426499
add esp, 0x14
test edx, edx
jl 0x4257c6
jg 0x42573c
test eax, eax
jb 0x4257c6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4257c6
jl 0x425756
cmp dword [ebp - 0x1008], eax
ja 0x4257c6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x425774
test ebx, ebx
je 0x4257ad
cmp ecx, edi
jae 0x4257ad
mov al, byte [ecx]
cmp al, 0xd
jne 0x42578e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42579a
cmp byte [ecx + 1], 0xa
jne 0x42579a
inc ecx
jmp 0x42579a
movzx eax, al
movsx eax, byte [eax + 0x442380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x425774
cmp edx, ebx
jne 0x425774
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4257cb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f2b7
leave
ret
Function at 0x425931
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 + 0x489c00]
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 0x425971
cmp byte [ebx], 0xa
jne 0x425971
or byte [edi + eax + 0x28], 4
jmp 0x425976
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 0x425a75
mov dl, byte [eax]
cmp dl, 0x1a
je 0x425a58
inc eax
cmp dl, 0xd
je 0x4259a2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4259c8
cmp eax, ecx
jae 0x4259d6
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 0x42598a
jmp 0x425a75
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 0x425a53
cmp dword [ebp - 0x10], 0
je 0x425a53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x489c00]
test byte [eax + edi + 0x28], 0x48
je 0x425a2d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425a18
mov byte [esi], dl
jmp 0x425a29
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489c00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425a75
cmp byte [ebp - 1], 0xa
jne 0x425a3c
cmp esi, ebx
jne 0x425a3c
mov byte [esi], 0xa
jmp 0x425a74
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004264b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425a75
mov byte [esi], 0xd
jmp 0x425a74
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x489c00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425a72
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425a75
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425a7e
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 + 0x489c00]
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 0x425ac4
cmp word [ebx], dx
jne 0x425ac4
or byte [eax + edi + 0x28], 4
jmp 0x425ac9
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 0x425c2c
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 0x425c0c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x425b0a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425b40
cmp eax, edx
jae 0x425b4e
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 0x425ae5
jmp 0x425c2c
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 0x425c07
cmp dword [ebp - 0x18], 0
je 0x425c07
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x489c00]
test byte [eax + edi + 0x28], 0x48
je 0x425bdd
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 0x425ba1
mov word [esi], cx
jmp 0x425bd8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x489c00]
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 + 0x489c00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x489c00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x425c2c
pop eax
cmp word [ebp - 4], ax
jne 0x425bed
cmp esi, ebx
jne 0x425bed
mov word [esi], ax
jmp 0x425c29
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004264b7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x425c2c
push 0xd
pop eax
jmp 0x425be8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x489c00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x425c26
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x425c2c
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 0x427d29
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 0x427dc6
push ebx
push esi
call fcn.00427cf2
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.00427c86
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427d73
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427dc5
push edi
push eax
call fcn.00422c16
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427d93
call fcn.00421781
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427dc4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00427c86
add esp, 0x20
test eax, eax
jne 0x427db2
push edi
call fcn.00421781
jmp 0x427dba
push ebx
call fcn.00421781
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 0x427dc9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x427dda
pop esi
ret
push ebx
push edi
push esi
call fcn.00427cf2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00422c16
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x427e02
push ebx
push esi
push edi
call fcn.00411ba0
add esp, 0xc
push 0
call fcn.00421781
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4281d2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427e17

Function at 0x42ac49
Capabilities:
Get geographical location

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