joyce8/EMBER2024-capa huggingface dataset:
Function at 0x865058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8651a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x86507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86506a
add dl, dl
jne 0x865089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8650dc
xor eax, eax
add dl, dl
jne 0x865096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86517d
add dl, dl
jne 0x8650a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8650d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x865075
mov eax, 1
add dl, dl
jne 0x8650ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8650e1
sub eax, ebx
mov ebx, 1
jne 0x865128
mov ecx, 1
add dl, dl
jne 0x86510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x865119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x865105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x865075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x865136
cmp eax, 0x7d00
jae 0x86516d
cmp eax, 0x500
jb 0x865168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x865075
cmp eax, 0x7f
ja 0x865170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x865075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x865075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x6d01378d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x6d030030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x6d013830
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.6d01fc2d
pop ecx
pop ecx
test eax, eax
je 0x6d013819
test ebx, ebx
je 0x6d01380d
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.6d01fc2d
pop ecx
pop ecx
test eax, eax
jle 0x6d013819
push ebx
call fcn.6d015895
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.6d015874
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x6d0137da
xor edi, edi
cmp ebx, edi
jne 0x6d013834
xor eax, eax
jmp 0x6d0138a0
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x6d013863
call fcn.6d015895
pop ecx
cmp dword [ebp - 0x70], edi
je 0x6d013830
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x6d013830
call fcn.6d015895
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d013853
cmp dword [ebp - 0x70], edi
je 0x6d013896
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.6d015874
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d018259
add ebp, 0x9c
leave
ret
Function at 0x6d01555d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x6d030030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.6d0153ca
push 8
mov esi, eax
call fcn.6d01582d
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x6d0155c8
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x6d0155cf
and dword [ebx + 4], 0
jmp 0x6d0155e4
xor eax, eax
jmp 0x6d0156af
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x6d015695
push edi
call fcn.6d017a10
pop ecx
cmp eax, 4
jl 0x6d0155bb
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x6d0155bb
add eax, 0xfffffffd
push 0x6d02982c
push eax
mov dword [ebp - 0x74], eax
call fcn.6d018270
pop ecx
pop ecx
test eax, eax
je 0x6d01562a
push 0x6d029828
push dword [ebp - 0x74]
call fcn.6d018270
pop ecx
pop ecx
test eax, eax
jne 0x6d0155bb
push 0x3b
push edi
call fcn.6d0193f0
pop ecx
pop ecx
test eax, eax
jne 0x6d0155bb
push dword [ebp - 0x78]
call fcn.6d017a10
push edi
mov ebx, eax
call fcn.6d017a10
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.6d01582d
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.6d01fc2d
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.6d01fc2d
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.6d015420
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x6d0155bb
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.6d015895
push ebx
call fcn.6d015895
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d018259
add ebp, 0x214
leave
ret

Function at 0x6d018259
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d030030]
jne 0x6d018263
repz ret
jmp fcn.6d01e721
Function at 0x2983656f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x2983657e
pop dword [ebp - 0x18]
mov eax, 0x5bce5500
add eax, 0xcdb5107e
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x40104018
add dword [ebp - 0x28], 0xe420533
mov dword [ebp - 0x24], 0x23f2a47d
sub dword [ebp - 0x24], 0xf1bf5838
mov dword [ebp - 0x20], 0xf838978f
add dword [ebp - 0x20], 0x5413ac9f
mov dword [ebp - 0x1c], 0xdf7c1a5c
sub dword [ebp - 0x1c], 0xdf7c1a5c
lea eax, [ebp - 0x28]
push eax
mov eax, 0x925dd74f
add eax, 0x972669a9
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xcb191682
add dword [ebp - 0x28], 0xa95952d4
mov dword [ebp - 0x24], 0xd44de1da
sub dword [ebp - 0x24], 0x92e18065
mov dword [ebp - 0x20], 0x7f16b126
sub dword [ebp - 0x20], 0x1ba744ba
mov dword [ebp - 0x1c], 0x224ace79
add dword [ebp - 0x1c], 0xddb53187
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb0da12c6
sub eax, 0x8755d1d6
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3fcc0
push 0
call eax
mov ecx, 0x3d7e7bc4
sub ecx, 0x3d7e45f6
xor esi, esi
add esi, eax
mov edx, 0x2987c000
add edx, dword [ebp - 0x18]
mov edi, 0x4c2c8311
add edi, 0xddd8d095
mov dword [ebp - 0x10], 0x32c8e4bd
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0xa10c8dbc
sub ebx, edi
mov dword [ebp - 0x14], 0x282d2749
mov dword [esi], ebx
xor dword [ebp - 0x14], esi
add esi, 4
add edx, 4
loop 0x2983669c
add eax, 0xca0b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x589b22a7
add ecx, 0xd0e4dd59
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, str.svchost.exe
mov al, byte [ebx + esi + str.svchost.exe]
push ebp
xor al, 1
mov byte [esi + str.svchost.exe], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + str.svchost.exe], 0
pop edi
pop esi
mov eax, str.svchost.exe
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x386b6822
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x45603e73
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1448eb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd60000]
push edi
or ebp, 0xffffffff
jmp 0x1448ed2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1448ed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1448ec8
mov eax, 1
add ebx, ebx
jne 0x1448eeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1448efc
jne 0x1448f1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1448f1b
dec eax
add ebx, ebx
jne 0x1448f08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1448ee0
add ebx, ebx
jne 0x1448f17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1448f6d
xor ecx, ecx
sub eax, 3
jb 0x1448f33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1448fa2
sar eax, 1
mov ebp, eax
jmp 0x1448f3e
add ebx, ebx
jne 0x1448f3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1448f0c
inc ecx
add ebx, ebx
jne 0x1448f4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1448f0c
add ebx, ebx
jne 0x1448f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1448f4e
jne 0x1448f6a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1448f4e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1448f8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1448f7e
jmp 0x1448ece
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1448f8c
add edi, ecx
jmp 0x1448ece
pop esi
mov edi, esi
mov ecx, 0x38992
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1448faa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1448faf
lea edi, [esi + 0x1044000]
mov eax, dword [edi]
or eax, eax
je 0x1449017
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1094d98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1094ed8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1448fd5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1094edc]
or eax, eax
je 0x1449011
mov dword [ebx], eax
add ebx, 4
jmp 0x1448ff2
call dword [esi + 0x1094eec]
mov ebp, dword [esi + 0x1094ee0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x144904b
sub esp, 0xffffff80
jmp 0xaa5d2c

Function at 0x4637e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4637e9
lcall 0x5de5, 0x8b10c483
jmp loc.03114c38
Function at 0x40d2c7
Capabilities:
Parse pe header

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

Function at 0x40fd8d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4f1ca0
push str.FlsAlloc
push 0x1f
call fcn.0040fa5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fdc1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x40fdc7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fe0b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4f1cc4
push str.FlsGetValue
push 0x21
call fcn.0040fa5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fe42
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40fe4a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4f1cd8
push str.FlsSetValue
push 0x22
call fcn.0040fa5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fe84
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x410643
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004105ba
Function at 0x412318
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x526338]
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 0x412363
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00412574
test al, al
jne 0x41235d
sub edx, 2
cmp edx, edi
jne 0x412343
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x412385
lea eax, [edi + 2]
cmp edx, eax
je 0x412385
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00411fdf
add esp, 0x10
jmp 0x41247f
push esi
lea ecx, [ebp - 0x255]
call fcn.00412574
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 0x4123c8
push dword [ebp - 0x25c]
jmp 0x412375
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 0x412405
cmp word [ebp - 0x226], 0
je 0x412426
cmp word [ebp - 0x226], ax
jne 0x412405
cmp word [ebp - 0x224], 0
je 0x412426
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00411fdf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x412472
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4123df
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41245a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41247f
push 0x411a2f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00419a60
add esp, 0x10
jmp 0x41244f
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.00409d5f
leave
ret

Function at 0x4151a7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040e63b
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 0x415216
cmp esi, dword [ebp - 4]
je 0x415211
cmp dword [ebp + 0xc], 0
je 0x415211
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4151ee
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00414cf9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x415218
xor eax, eax
inc eax
jmp 0x415218
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41527d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x526338]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040e63b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040e63b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4152f4
cmp word [ecx], dx
je 0x4152f4
mov eax, dword [0x4f2fac]
push edi
dec eax
push eax
push 0x4f2e98
call fcn.0041521c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x415367
cmp word [eax], dx
je 0x415367
mov eax, dword [edi]
test eax, eax
je 0x415318
cmp word [eax], dx
je 0x415318
lea eax, [ebp - 0x10]
push eax
call fcn.00414bff
jmp 0x415321
lea eax, [ebp - 0x10]
push eax
call fcn.00414c9a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x415391
mov eax, dword [0x4f2e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4f2b88
call fcn.0041521c
add esp, 0xc
test al, al
je 0x415391
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41535c
cmp word [eax], di
je 0x41535c
lea eax, [ebp - 0x10]
push eax
call fcn.00414bff
pop ecx
jmp 0x415393
lea eax, [ebp - 0x10]
push eax
call fcn.00414c9a
jmp 0x415359
mov eax, dword [edi]
test eax, eax
je 0x41537e
cmp word [eax], dx
je 0x41537e
lea eax, [ebp - 0x10]
push eax
call fcn.00414b96
pop ecx
jmp 0x415391
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41545c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004150a1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41545c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41545c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41545c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4153e9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040ff8a
test ebx, ebx
je 0x415457
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040ff8a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41545c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41545c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041bdad
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41545e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409d5f
leave
ret
Function at 0x4160e9
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 0x416186
push ebx
push esi
call fcn.004160a5
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.0041631b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416133
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416185
push edi
push eax
call fcn.0040ee4b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416153
call fcn.0040de80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416184
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041631b
add esp, 0x20
test eax, eax
jne 0x416172
push edi
call fcn.0040de80
jmp 0x41617a
push ebx
call fcn.0040de80
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 0x416189
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41619a
pop esi
ret
push ebx
push edi
push esi
call fcn.004160a5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040ee4b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4161c2
push ebx
push esi
push edi
call fcn.00422c20
add esp, 0xc
push 0
call fcn.0040de80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x416af0
Capabilities:
Set environment variable

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