joyce8/EMBER2024-capa huggingface dataset:
Function at 0x96e2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x96e4f4
sub esp, 0xa4
lea edi, [esp + 0x2c]
xor eax, eax
call fcn.00460dd2
mov ecx, dword [str.AuthReq]
mov edx, dword [0x10d89f4]
mov ebx, dword [0x10d89f8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov ecx, dword [str.License]
mov edx, dword [0x10d8a34]
mov ebx, dword [0x10d8a38]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov ecx, dword [str.BucketUserTrack]
mov edx, dword [0x10d8a94]
mov ebx, dword [0x10d8a98]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
mov ecx, dword [str.FEATURE]
mov edx, dword [0x10d8a24]
mov ebx, dword [0x10d8a28]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov ecx, dword [0x10d8a50]
mov edx, dword [0x10d8a54]
mov ebx, dword [0x10d8a58]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ebx
mov ecx, dword [0x10d8a70]
mov edx, dword [0x10d8a74]
mov ebx, dword [0x10d8a78]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebx
mov ecx, dword [str.CachedAuthResp]
mov edx, dword [0x10d8a04]
mov ebx, dword [0x10d8a08]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
mov ecx, dword [0x10d89e0]
mov edx, dword [0x10d89e4]
mov ebx, dword [0x10d89e8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
mov ecx, dword [str.Usages]
mov edx, dword [0x10d8a84]
mov ebx, dword [0x10d8a88]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ebx
mov ecx, dword [str.LocalUserInfo]
mov edx, dword [0x10d8a44]
mov ebx, dword [0x10d8a48]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ebx
lea eax, [esp + 0x2c]
xor ecx, ecx
jmp 0x96e455
mov edx, dword [esp + 0x14]
add edx, 0xc
mov ecx, eax
mov eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea edx, [0x970ba0]
mov dword [esp + 0x18], edx
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0xa8]
mov ebp, dword [ebx]
mov dword [esp], ebp
lea ebp, [esp + 0x18]
mov dword [esp + 4], ebp
call fcn.00948e60
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x96e4df
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
jl 0x96e44a
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0xa4
ret
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0xa4
ret
call fcn.0045f5f0
jmp fcn.0096e2d0
Function at 0x1000aaa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000aab2
pop dword [ebp - 0x18]
mov eax, 0x4df19838
sub eax, 0x3df0ed86
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xffaec6d8
sub dword [ebp - 0x28], 0xb15c818d
mov dword [ebp - 0x24], 0x85431a62
sub dword [ebp - 0x24], 0x530fce1d
mov dword [ebp - 0x20], 0x759f20b0
sub dword [ebp - 0x20], 0x2952dc82
mov dword [ebp - 0x1c], 0xd0952537
add dword [ebp - 0x1c], 0x2f6adac9
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xce333ff
add dword [ebp - 0x28], 0x678f3557
mov dword [ebp - 0x24], 0x5d8bd32a
sub dword [ebp - 0x24], 0x1c1f71b5
mov dword [ebp - 0x20], 0x95b182cf
sub dword [ebp - 0x20], 0x32421663
mov dword [ebp - 0x1c], 0x990c0a9
add dword [ebp - 0x1c], 0xf66f3f57
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x199356de
sub eax, 0x99296b2
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38207
push 0
call eax
mov ecx, 0x3120220f
sub ecx, 0x311fd990
mov edx, eax
mov edi, 0x2ea84c70
add edi, 0xe15c2790
add edi, dword [ebp - 0x18]
mov esi, 0x555ee4c3
mov ebx, dword [edi]
xor dword [ebp - 0x14], ebx
add ebx, esi
xor dword [ebp - 4], eax
mov dword [edx], ebx
xor dword [ebp - 8], 0xae689293
add edx, 4
add edi, 4
loop 0x1000abc9
add eax, 0x114cf
mov ebx, eax
add eax, 0x25c383d7
sub eax, 0x25c383d2
mov ecx, 0x592e49b6
sub ecx, 0x492e49b6
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x405634
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x405676
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x405696
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00408cf4
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406a34
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406ef4
mov byte [esp], al
cmp byte [esp], 0
jne 0x406bbd
test edi, edi
je 0x406bbd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406afd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406ad8
cmp edi, 0xffffffff
je 0x406a99
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406a99
mov byte [esp], 0
jmp 0x406bbd
cmp dword [esi], 1
jg 0x406ad8
cmp dword [esi], 0
jne 0x406aca
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406aca
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406bbd
lea eax, [esp + 0xc]
call fcn.00406714
dec ebp
test ebp, ebp
jg 0x406a7e
cmp edi, 0xffffffff
je 0x406afd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406afb
mov byte [esp], 0
jmp 0x406bbd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406a42
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406afd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406c38
mov edx, eax
mov ebx, dword [0x6488fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406b61
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406b5f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406b61
xor edi, edi
cmp byte [esp], 0
je 0x406b87
mov ebx, dword [esi]
test bl, 1
jne 0x406b9d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406b67
mov byte [esp + 1], 1
jmp 0x406b9d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406b87
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406b14
cmp byte [esp], 0
je 0x406bbd
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407a7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64805c], 0
je 0x407ae3
cmp word [0x648348], 0xd7b2
jne 0x407aa5
cmp dword [0x648350], 0
jbe 0x407aa5
mov eax, 0x648344
call dword [0x648360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407b10
call fcn.00408820
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x63e032], 0
jne 0x407aff
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407ca4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x63e034], 0
je 0x407ccf
mov edx, edi
mov eax, esi
call dword [0x63e034]
mov ebx, eax
jmp 0x407ce0
mov eax, 8
call fcn.00405490
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x64805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407c6c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407d10
mov eax, ebx
call fcn.004054ac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40af14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b079
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407de4
cmp si, word [0x63ea08]
jb 0x40afac
cmp si, word [0x63ec08]
ja 0x40afac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40afac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x63ea08]
jae 0x40af86
mov edi, ebx
dec edi
jmp 0x40afa7
cmp si, word [ebx*8 + 0x63ea08]
jbe 0x40af96
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40afa7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x63ea0c]
call fcn.0040ae34
jmp 0x40afac
cmp edi, dword [ebp - 8]
jae 0x40af70
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b05b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b05b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408cf4
push dword [ebp - 0x160]
push 0x40b094
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408cf4
push dword [ebp - 0x164]
push 0x40b0a4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408cf4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b080
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407e44
ret
Function at 0x40b22c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b330
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64ac14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x64ac2c]
jne 0x40b278
mov eax, esi
mov edx, 0x64ac2e
mov ecx, 0x55
call fcn.00408cf4
push 0x64ac14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b31a
push 0x64ac14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407de4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b2e7
cmp byte [0x64ac10], 0
je 0x40b2ac
mov edx, esi
mov eax, ebx
call fcn.0040b110
jmp 0x40b2e7
mov edx, esi
mov eax, ebx
call fcn.0040af14
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b2e7
cmp dword [esi], 0
je 0x40b2d0
mov eax, esi
mov edx, 0x40b348
call fcn.00408e4c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040af14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408e4c
push 0x64ac14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x64ac2c], bx
mov eax, dword [esi]
call fcn.00408c3c
mov ecx, eax
mov eax, 0x64ac2e
mov edx, 0xaa
call fcn.0040ad94
push 0x64ac14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b337
lea eax, [ebp - 4]
call fcn.00407de4
ret
Function at 0x40b560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407ec8
xor eax, eax
push ebp
push 0x40b785
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b5a0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40b5ba
mov eax, dword [ebp - 4]
call fcn.00408c3c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ad94
cmp word [ebp - 0x21a], 0
je 0x40b76f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b794
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b689
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b794
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b689
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b7d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b689
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b7d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b689
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b804
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b689
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b838
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b76f
xor eax, eax
push ebp
push 0x40b768
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b370
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b6f8
mov eax, dword [ebp - 0x10]
call fcn.00405490
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408ca0
jmp 0x40b743
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b878
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b743
mov eax, dword [ebp - 0x10]
call fcn.00405490
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b878
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408ca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b76f
cmp dword [ebp - 8], 0
je 0x40b75e
mov eax, dword [ebp - 8]
call fcn.004054ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b78c
lea eax, [ebp - 4]
call fcn.00407de4
ret
Function at 0x40ba8c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407ec8
xor eax, eax
push ebp
push 0x40bb4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408cf4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408ea4
mov eax, dword [ebx]
call fcn.0040b93c
test al, al
jne 0x40bb29
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408cf4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408ea4
mov eax, dword [ebx]
call fcn.0040b93c
test al, al
jne 0x40bb29
mov eax, ebx
call fcn.00407de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb53
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407e44
lea eax, [ebp - 4]
call fcn.00407de4
ret

Function at 0x40d594
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4125ac
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00412598
add esp, 0x208
pop ebx
ret

Function at 0x41f114
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f16d
test eax, edx
je 0x41f170
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f12b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f152
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41f153
add ecx, 4
js 0x41f143
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f150
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f152
xor eax, eax
ret
test eax, eax
je 0x41f17c
test edx, edx
jne 0x41f11c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42049c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4204c9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x420768
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00408c3c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4207bd
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4207b7
test ah, 4
je 0x4207b7
test al, 0x10
je 0x4207b7
mov eax, esi
call fcn.00408c3c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4207bd
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424834
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42486d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407f6c
jmp 0x424876
mov eax, ebx
mov edx, esi
call fcn.004081c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424880
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4248a2
movzx eax, word [esp]
jmp 0x4248a4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4258f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x425a19
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004256fc
mov esi, eax
mov eax, dword [0x647414]
cmp byte [eax], 0
je 0x4259c1
mov eax, dword [0x6470a8]
call fcn.00405adc
call fcn.00405604
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4258c4]
call fcn.0040a618
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x425a34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4259fd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x647014]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x64b634]
call fcn.0040aa38
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425a20
lea eax, [ebp - 4]
mov edx, dword [0x4258c4]
call fcn.0040a73c
ret
Function at 0x4267dc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4268b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040820c
lea eax, [ebp - 4]
call fcn.004083a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408c3c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42689c
mov eax, ebx
call fcn.00405490
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x426895
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408c3c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42687f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4268c4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42687f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42689c
mov eax, dword [ebp - 0x10]
call fcn.004054ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268b9
lea eax, [ebp - 4]
call fcn.00407de4
ret

Function at 0x4268c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4269c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040820c
lea eax, [ebp - 4]
call fcn.004083a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408c3c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4269b2
mov eax, ebx
call fcn.00405490
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4269ab
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408c3c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x426995
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4269dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x426995
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4269b2
mov eax, dword [ebp - 0x10]
call fcn.004054ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4269cf
lea eax, [ebp - 4]
call fcn.00407de4
ret