joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40e622
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e618
mov eax, 1
add ebx, ebx
jne 0x40e63b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e630
jne 0x40e64c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e630
xor ecx, ecx
sub eax, 3
jb 0x40e660
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e6d2
mov ebp, eax
add ebx, ebx
jne 0x40e66b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e69c
inc ecx
add ebx, ebx
jne 0x40e688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e67d
jne 0x40e699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e67d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e6bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e6ad
jmp 0x40e61e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e6bc
add edi, ecx
jmp 0x40e61e
pop esi
mov edi, esi
mov ecx, 0x17b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e6da
cmp byte [edi], 7
jne 0x40e6da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x40e6df
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e74e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe958]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e70c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe9b8]
or eax, eax
je 0x40e748
mov dword [ebx], eax
add ebx, 4
jmp 0x40e729
call dword [esi + 0xe9b4]
mov ebp, dword [esi + 0xe9bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x40e782
sub esp, 0xffffff80
jmp 0x402752

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 0x404160
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405a20
test esi, esi
jne 0x404196
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405b78
jmp 0x4041b4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004040a4
mov edi, eax
test esi, esi
je 0x4041b4
cmp dword [ebx], 0
je 0x4041b4
dec esi
jmp 0x40419d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404be0
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.00404e7c
mov byte [esp], al
cmp byte [esp], 0
jne 0x404d6a
test edi, edi
je 0x404d6a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404caa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x404c85
cmp edi, 0xffffffff
je 0x404c45
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404c45
mov byte [esp], 0
jmp 0x404d6a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404c85
test ebx, ebx
jne 0x404c77
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x404c77
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404d6a
lea eax, [esp + 0xc]
call fcn.00404974
dec ebp
test ebp, ebp
jg 0x404c2a
cmp edi, 0xffffffff
je 0x404caa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404ca8
mov byte [esp], 0
jmp 0x404d6a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404bee
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404caa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404dd8
mov edx, eax
mov ebx, dword [0x4428f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404d0e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404d0c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404d0e
xor edi, edi
cmp byte [esp], 0
je 0x404d34
mov ebx, dword [esi]
test bl, 1
jne 0x404d4a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404d14
mov byte [esp + 1], 1
jmp 0x404d4a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404d34
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404cc1
cmp byte [esp], 0
je 0x404d6a
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 0x40574c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x442054], 0
je 0x4057b3
cmp word [0x442340], 0xd7b2
jne 0x405775
cmp dword [0x442348], 0
jbe 0x405775
mov eax, 0x44233c
call dword [0x442358]
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, 0x4057e0
call fcn.00406130
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43c02e], 0
jne 0x4057cf
push 0
push 0x43c9ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4078bc
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 0x407a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405a20
cmp si, word [0x43c9f8]
jb 0x407954
cmp si, word [0x43cbf8]
ja 0x407954
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407954
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x43c9f8]
jae 0x40792e
mov edi, ebx
dec edi
jmp 0x40794f
cmp si, word [ebx*8 + 0x43c9f8]
jbe 0x40793e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40794f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x43c9fc]
call fcn.004077dc
jmp 0x407954
cmp edi, dword [ebp - 8]
jae 0x407918
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407a03
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407a03
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.004064d4
push dword [ebp - 0x160]
push 0x407a3c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004064d4
push dword [ebp - 0x164]
push 0x407a4c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004064d4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004066a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a28
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405a80
ret
Function at 0x407bd4
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 0x407cd8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x444b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x444b9c]
jne 0x407c20
mov eax, esi
mov edx, 0x444b9e
mov ecx, 0x55
call fcn.004064d4
push 0x444b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407cc2
push 0x444b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405a20
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407c8f
cmp byte [0x444b80], 0
je 0x407c54
mov edx, esi
mov eax, ebx
call fcn.00407ab8
jmp 0x407c8f
mov edx, esi
mov eax, ebx
call fcn.004078bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407c8f
cmp dword [esi], 0
je 0x407c78
mov eax, esi
mov edx, 0x407cf0
call fcn.004065c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004078bc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004065c0
push 0x444b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x444b9c], bx
mov eax, dword [esi]
call fcn.00406430
mov ecx, eax
mov eax, 0x444b9e
mov edx, 0xaa
call fcn.0040773c
push 0x444b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cdf
lea eax, [ebp - 4]
call fcn.00405a20
ret
Function at 0x407f08
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.00405b04
xor eax, eax
push ebp
push 0x40812d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407f48
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407f62
mov eax, dword [ebp - 4]
call fcn.00406430
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040773c
cmp word [ebp - 0x21a], 0
je 0x408117
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40813c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408031
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40813c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408031
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408178
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408031
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408178
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408031
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408031
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408117
xor eax, eax
push ebp
push 0x408110
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407d18
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 0x4080a0
mov eax, dword [ebp - 0x10]
call fcn.00403e00
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.00406498
jmp 0x4080eb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408220
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4080eb
mov eax, dword [ebp - 0x10]
call fcn.00403e00
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408220
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408117
cmp dword [ebp - 8], 0
je 0x408106
mov eax, dword [ebp - 8]
call fcn.00403e1c
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 0x408134
lea eax, [ebp - 4]
call fcn.00405a20
ret
Function at 0x40841c
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.00405b04
xor eax, eax
push ebp
push 0x4084dc
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.004064d4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406618
mov eax, dword [ebx]
call fcn.004082e4
test al, al
jne 0x4084b9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004064d4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406618
mov eax, dword [ebx]
call fcn.004082e4
test al, al
jne 0x4084b9
mov eax, ebx
call fcn.00405a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084e3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405a80
lea eax, [ebp - 4]
call fcn.00405a20
ret

Function at 0x408b00
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 0x41298c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4129e5
test eax, edx
je 0x4129e8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4129a3
movzx eax, word [eax]
sub eax, ecx
jmp 0x4129ca
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 0x4129cb
add ecx, 4
js 0x4129bb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4129c8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4129ca
xor eax, eax
ret
test eax, eax
je 0x4129f4
test edx, edx
jne 0x412994
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41363c
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 0x413669
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4136fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00406430
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4137b1
test esi, 0x400
jne 0x413738
test esi, 0x10
setne bl
jmp 0x4137e1
cmp byte [ebp - 1], 0
je 0x413773
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.00406430
push eax
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4137e1
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4137e1
test esi, 0x10
je 0x41377f
mov bl, 1
jmp 0x4137e1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.00406430
push eax
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4137ad
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4137e1
mov bl, 1
jmp 0x4137e1
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4137db
cmp eax, 3
je 0x4137db
cmp eax, 0xa1
je 0x4137db
cmp eax, 0x7b
je 0x4137db
cmp eax, 0x35
je 0x4137db
cmp eax, 0x15
je 0x4137db
cmp eax, 0x43
jne 0x4137df
xor ebx, ebx
jmp 0x4137e1
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x417284
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_1
test eax, eax
jle 0x4172bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405b78
jmp 0x4172c6
mov eax, ebx
mov edx, esi
call fcn.00405dd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4172d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4172f4
movzx eax, word [ebp - 4]
jmp 0x4172f6
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x418270
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 0x418395
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418078
mov esi, eax
mov eax, dword [0x441338]
cmp byte [eax], 0
je 0x41833d
mov eax, dword [0x441220]
call fcn.00404270
call fcn.00403f54
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x418240]
call fcn.00407318
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4183b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418379
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4411f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x444c4c]
call fcn.004073dc
push eax
call sub.user32.dll_LoadStringW_1
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 0x41839c
lea eax, [ebp - 4]
mov edx, dword [0x418240]
call fcn.00407324
ret

Function at 0x4198e4
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419910
cmp bl, 0
je 0x41990c
cmp bl, 0x41
jl 0x419907
cmp bl, 0x5a
jg 0x419907
or bl, 0x20
xor al, bl
inc esi
jmp 0x4198eb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp fcn.00419840

Function at 0x422cd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422d26
test eax, edx
je 0x422d29
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x422ce9
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x422d0f
add ecx, 4
js 0x422cff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x422d0c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x422d35
test edx, edx
jne 0x422cdc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x434440
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x43f0d4
test edx, edx
jne 0x43445f
xor eax, eax
jmp 0x43457d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x43447c
push esi
push edx
push eax
call fcn.00434584
add esp, 0xc
jmp 0x43457d
push esi
push edx
push eax
call fcn.00434844
add esp, 0xc
jmp 0x43457d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x435414
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edx, eax
mov ecx, edx
mov ebx, dword [ecx + 0x3c]
add ebx, edx
mov edx, ebx
cmp word [ecx], 0x5a4d
jne 0x43543d
cmp dword [edx], 0x4550
je 0x435444
mov eax, 1
jmp 0x435490
mov eax, edx
add eax, 0xf8
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
movzx esi, word [edx + 6]
dec esi
test esi, esi
jl 0x435471
inc esi
mov edi, dword [eax + 0x14]
cmp ecx, edi
jae 0x43546b
mov ecx, edi
add edi, dword [eax + 0x10]
mov dword [ebp - 0xc], edi
add eax, 0x28
dec esi
jne 0x43545c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
lea eax, [edx + 0x98]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43549c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x4354b1
add esp, 0xfffffff0
call fcn.004048bc
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
test esi, esi
jbe 0x4355e4
cmp dword [ebp + 8], 0
jne 0x4354d1
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebp + 8], eax
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x435507
mov eax, ebx
call fcn.00434fec
mov ecx, 0x435614
mov dl, 1
mov eax, dword [0x434e48]
call fcn.004183c0
call fcn.004051b8
push 0
push 0
push 0
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x43553e
mov eax, ebx
call fcn.00434fec
mov ecx, 0x43563c
mov dl, 1
mov eax, dword [0x434e48]
call fcn.004183c0
call fcn.004051b8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.00435414
test eax, eax
jne 0x435560
cmp dword [ebp - 0xc], 0
jbe 0x435560
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x435589
inc edx
mov esi, dword [ebx + 4]
add esi, eax
mov esi, dword [esi]
inc esi
cmp esi, 0x4034b51
jne 0x435585
mov ecx, eax
jmp 0x435589
inc eax
dec edx
jne 0x435571
test ecx, ecx
jge 0x4355b3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x4355b3
inc edx
mov esi, dword [ebx + 4]
add esi, eax
mov esi, dword [esi]
inc esi
cmp esi, 0x6054b51
jne 0x4355af
mov ecx, eax
jmp 0x4355b3
inc eax
dec edx
jne 0x43559b
test ecx, ecx
jge 0x4355d4
mov eax, ebx
call fcn.00434fec
mov ecx, 0x435668
mov dl, 1
mov eax, dword [0x434e48]
call fcn.004183c0
call fcn.004051b8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, ebx
call fcn.0043503c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4355fb
call fcn.00404914
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43611c
Capabilities:
Get common file path

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

Function at 0x43614c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406430
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret