joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a1630
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x5aa730], 0x1554
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x5aa730], 0x1692
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x5a1715
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [0x5aa730], 0x1ca7
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x5a17af
xor eax, eax
mov dword [0x5aa730], 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x1c], eax
je 0x5a1755
jmp 0x5a17af
xor eax, eax
mov dword [0x5aa730], 0x117f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
je 0x5a178d
jmp 0x5a17af
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x5a17af
mov eax, 1
mov dword [0x5aa730], 0x25d4
mov dword [ebp - 0x1c], eax
jmp 0x5a17af
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x5a1673
mov dword [0x5aa734], 0x1592
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x5a1715
jmp 0x5a1673
xor eax, eax
mov dword [0x5aa730], 0x25b9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
jne 0x5a17af
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
je 0x5a16bf
jmp 0x5a17af
xor eax, eax
mov dword [0x5aa730], 0x109a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
je 0x5a16e6
mov eax, dword [ebp - 0x1c]
add esp, 0x20
pop ebp
ret
Function at 0x5a1a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.005a1610
xor ecx, ecx
mov edx, dword [0x5aa734]
add edx, 0x1bc6
mov dword [0x5aa730], edx
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0x14
mov edi, edx
add edi, esi
add edi, 0x10
mov esi, eax
add esi, 1
imul eax, eax, 0x14
add edx, eax
add edx, 4
mov eax, dword [edi]
movzx edx, word [edx]
xor edx, eax
add edx, ecx
cmp esi, 0x45b
mov eax, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
jne 0x5a1ab3
lea eax, [0x5a3161]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
call fcn.005a1300
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.005a2030
mov ecx, eax
mov dword [0x5aa74c], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0x14
mov ebx, edx
add ebx, edi
add ebx, 4
imul edi, ecx, 0x14
mov dword [ebp - 0x58], eax
mov eax, edx
add eax, edi
add eax, 0x10
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
add edi, eax
imul ecx, ecx, 0x14
add edx, ecx
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov edx, dword [edx]
movzx ebx, word [ebx]
xor ebx, eax
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], ebx
call fcn.005a1f00
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x60]
cmp edx, 0x45b
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], eax
jne 0x5a1b69
mov eax, dword [ebp - 0x4c]
add eax, 0x68c43
mov ecx, dword [ebp - 0x4c]
add ecx, 0x5b25b
mov dword [0x5aa730], 0x1aac
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x40]
mov dword [esp + 8], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
call fcn.005a1420
xor eax, eax
mov dword [0x5aa734], 0x160
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x68]
mov dword [ecx], edx
mov dword [ecx + 4], 0x12c600
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x20b0
mov dword [0x5aa730], 0x2e1
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5a1c90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.005a1c90]
mov dword [ebp - 4], eax
jmp 0x5a1cb2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x5a1cc1
jmp 0x5a1cc9
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x5a1ca1
jmp 0x5a1cc9
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov dword [0x5aa730], 0x205d
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x5a1cb2

Function at 0x5a1dd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x5aa73c], 0
mov byte [0x5aa740], 0
mov dword [0x5aa730], 0x2573
mov dword [0x5aa738], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x5a1e1a
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x5aa738]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x5aa734], 0x1ba
mov eax, dword [0x5aa738]
add eax, 1
mov dword [0x5aa738], eax
cmp eax, 0x100
jl 0x5a1e1a
mov dword [0x5aa738], 0
mov eax, 0x100
mov dword [0x5aa744], 0
mov ecx, dword [0x5aa73c]
mov edx, dword [0x5aa738]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x5aa744], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x5aa73c], edx
mov ecx, dword [0x5aa738]
mov bl, byte [esi + ecx]
mov byte [0x5aa740], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov dword [0x5aa734], 0xfb9
mov bl, byte [0x5aa740]
mov ecx, dword [0x5aa73c]
mov byte [esi + ecx], bl
mov ecx, dword [0x5aa738]
add ecx, 1
mov dword [0x5aa738], ecx
cmp ecx, 0x100
jl 0x5a1e53
jmp 0x5a1e12

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x417a6
cmp eax, 0xffffffff
je 0x417a6
cmp dword [ebp + 8], ebx
je 0x417a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f302
cmp esi, dword [ebp - 4]
jne 0x4f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x4179e

Function at 0x4227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x5621c
call fcn.00041350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x5b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00042097
test eax, eax
jne 0x423c4
lea eax, [ebp - 0x20]
push eax
push dword [0x5b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.000423dc
test eax, eax
jne 0x423c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x423c4
lea eax, [ebp - 0x20]
push eax
push dword [0x5b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.000423dc
test eax, eax
jne 0x423bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x423bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x423bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x423b2
cmp dword [ebp + 8], ebx
je 0x4ea08
push dword [0x5b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x423b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.000421cb
push dword [0x5b460]
push edi
push dword [ebp - 0x18]
call fcn.00042436
push dword [ebp - 0x14]
call fcn.000413c0
pop ecx
push dword [ebp - 0x1c]
call fcn.000413c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00041f10
mov eax, dword [ebp - 0x18]
call fcn.00041390
ret 4
Function at 0x423dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x4242c
cmp dword [ebp - 4], 2
ja 0x4e965
mov ecx, dword [edi]
test cl, 1
jne 0x4242c
cmp esi, ebx
je 0x42425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x4242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x42425

Function at 0x424ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x56b05
call fcn.00041350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x42519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x4265b
cmp dword [ebp + 0xc], edi
je 0x4265b
push 1
call fcn.0004227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.000421cb
mov ebx, eax
test ebx, ebx
jl 0x4259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00042436
mov ebx, eax
test ebx, ebx
jl 0x4259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x42632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.000421cb
mov ebx, eax
test ebx, ebx
jl 0x42623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00042436
mov ebx, eax
test ebx, ebx
jl 0x42623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x42623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x42632
push dword [ebp - 0x14]
call fcn.000413c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x42641
push dword [ebp - 0x18]
call fcn.000413c0
pop ecx
push dword [ebp - 0x1c]
call fcn.000413c0
pop ecx
mov eax, ebx
call fcn.00041390
ret 8
mov ebx, 0x8007000e
jmp 0x425fe
mov ebx, 0x80070057
jmp 0x4264a
Function at 0x43a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x43ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x43ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x43ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x4e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x44267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x5b00c], esi
jne 0x442be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x42c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5b00c], eax
cmp eax, esi
je 0x4e4ec
push 0xffffffffffffffff
push dword [0x5b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x5b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x5b018], esi
jl 0x4e50a
pop esi
leave
ret

Function at 0x44441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x44498
call fcn.00042712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x44490
cmp ecx, 0xffffffff
je 0x44490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x44489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x44489
cmp edx, 0x10000000
jae 0x44489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x4e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00042757
ret 4

Function at 0x4681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x46933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x4ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.000421cb
test eax, eax
jl 0x46932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x468c3
push 0x46994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00042436
test eax, eax
jl 0x46932
push 0x46980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00042436
test eax, eax
jl 0x46932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x4ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46970
push eax
call edi
push 0x4695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x46948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x46940
cmp dword [esi + 0x34], 0
je 0x46940
test eax, eax
je 0x46940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.000420d4
leave
ret
mov eax, 0x8007007f
jmp 0x46932
Function at 0x471f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x5608c
call fcn.000439dd
lea ecx, [ebp - 0x34]
call fcn.00046c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0004758b
test eax, eax
jl 0x4722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.000472a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x47298
cmp ax, si
jne 0x4e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00041451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0004758b
mov esi, eax
test esi, esi
jl 0x47280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.000472a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0004760b
mov eax, esi
call fcn.00042b9f
ret

Function at 0x4791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x47900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x479a8
push 1
lea ecx, [ebp - 0x20]
call fcn.000479e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x478ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.000471e0
cmp esi, ebx
jl 0x479a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x47992
push 0x24
mov eax, 0x55c85
call fcn.000426dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x47854
push 1
lea ecx, [ebp - 0x20]
call fcn.000479e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x43984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x479a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x479d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00047455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.000471e0
mov eax, esi
call fcn.00041390
ret 0xc
Function at 0x47b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x55fc0
call fcn.000439dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00047c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x47b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x47b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x47b5b
inc esi
cmp esi, edi
jb 0x47b46
cmp esi, edi
jb 0x47c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x47c0e
cmp word [edx], 0x30
jne 0x47b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x47b6f
cmp eax, edi
jae 0x47c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x47b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x47c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x47c03
movzx eax, ax
movzx eax, ax
push eax
push 0x47c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00041451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00046c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0004760b
mov eax, dword [ebp - 0x54]
call fcn.00042b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x47bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x47be9

Function at 0x47f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x56a7d
call fcn.00041350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x48046
push 1
call fcn.0004227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.000421cb
mov ebx, eax
test ebx, ebx
jl 0x48024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00042436
mov ebx, eax
test ebx, ebx
jl 0x48024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x48024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x48024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x4f353
cmp dword [ebp - 0x14], 0
je 0x48033
push dword [ebp - 0x14]
call fcn.000413c0
pop ecx
push dword [ebp - 0x18]
call fcn.000413c0
pop ecx
mov eax, ebx
call fcn.00041390
ret 4
mov ebx, 0x80070057
jmp 0x4803c
Function at 0x485f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x48684
cmp eax, 0xffffffff
je 0x48684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x48684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.000485b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00048692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f2da
cmp esi, dword [ebp - 0xc]
jne 0x4f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.000420d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x4866d

Function at 0x488ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x56be9
call fcn.000420e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000413e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x48999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x489a4
push esi
push edi
call fcn.00041451
add esp, 0x14
mov eax, edi
call fcn.00042126
ret 4