joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x432f95
cmp dword [ebp + 0x14], edi
je 0x432f95
cmp ecx, edi
jne 0x432f9c
call fcn.00436dfe
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00433e18
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x432fb0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x432fd1
cmp ebx, 0xffffffff
je 0x432fc0
push ebx
push edi
push ecx
call fcn.00432df0
add esp, 0xc
cmp esi, edi
je 0x432f7d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x432f7d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x432fed
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x432ff4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4330e5
test word [esi + 0xc], 0x10c
je 0x433048
mov eax, dword [esi + 4]
test eax, eax
je 0x433048
jl 0x433146
cmp ebx, eax
mov edi, ebx
jb 0x433019
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4330ed
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00431e48
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4330dd
cmp ebx, dword [ebp - 0xc]
jb 0x4330b5
cmp dword [ebp - 0xc], 0
je 0x433072
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x433067
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43306e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43307d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43307d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x433119
push eax
push dword [ebp - 8]
push esi
call fcn.0043a8b3
pop ecx
push eax
call fcn.0043b368
add esp, 0xc
test eax, eax
je 0x433158
cmp eax, 0xffffffff
je 0x433146
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4330dd
push esi
call fcn.0043ac87
cmp eax, 0xffffffff
pop ecx
je 0x43314a
cmp dword [ebp - 4], 0
je 0x433119
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x432ffc
mov eax, dword [ebp + 0x14]
jmp 0x432f97
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x433104
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00432df0
add esp, 0xc
call fcn.00436dfe
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x432f8d
cmp dword [ebp + 0xc], 0xffffffff
je 0x43312f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00432df0
add esp, 0xc
call fcn.00436dfe
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x432f8d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x432f97
or dword [esi + 0xc], 0x10
jmp 0x43314a
Function at 0x436bca
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e5bc8]
je 0x436be5
inc edi
cmp edi, 0x17
jb 0x436bd6
cmp edi, 0x17
jae 0x436d65
push ebp
push 3
call fcn.00444dd1
cmp eax, 1
pop ecx
je 0x436d31
push 3
call fcn.00444dd1
test eax, eax
pop ecx
jne 0x436c19
cmp dword [0x4e5a90], 1
je 0x436d31
cmp ebx, 0xfc
je 0x436d64
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f2600
push ebp
call fcn.00437f65
add esp, 0xc
test eax, eax
je 0x436c4f
push esi
push esi
push esi
push esi
push esi
call fcn.00433ce4
add esp, 0x14
push 0x104
mov esi, 0x4f2619
push esi
push 0
mov byte [0x4f271d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436c93
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00437f65
add esp, 0xc
test eax, eax
je 0x436c93
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00433ce4
add esp, 0x14
push esi
call fcn.00435310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x436cd8
push esi
call fcn.00435310
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f2914
push 0x4c612c
sub ecx, eax
push ecx
push eax
call fcn.00444d1e
add esp, 0x14
test eax, eax
je 0x436cd8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00433ce4
add esp, 0x14
jmp 0x436cda
xor esi, esi
push 0x4c6128
push ebx
push ebp
call fcn.00444cad
add esp, 0xc
test eax, eax
je 0x436cfa
push esi
push esi
push esi
push esi
push esi
call fcn.00433ce4
add esp, 0x14
push dword [edi*8 + 0x4e5bcc]
push ebx
push ebp
call fcn.00444cad
add esp, 0xc
test eax, eax
je 0x436d1c
push esi
push esi
push esi
push esi
push esi
call fcn.00433ce4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00444af0
add esp, 0xc
jmp 0x436d64
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x436d64
cmp ebp, 0xffffffff
je 0x436d64
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e5bcc]
push dword [esi]
call fcn.00435310
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x444af0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437503
xor ebx, ebx
cmp dword [0x4f2ea0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x444bc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x444ca6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c64e4
push edi
call esi
cmp eax, ebx
je 0x444ca6
push eax
call fcn.00437495
mov dword [esp], 0x4c64d4
push edi
mov dword [0x4f2ea0], eax
call esi
push eax
call fcn.00437495
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4f2ea4], eax
call esi
push eax
call fcn.00437495
mov dword [0x4f2ea8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00436835
test eax, eax
pop ecx
pop ecx
je 0x444b94
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433ce4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x444bc6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00437495
cmp eax, ebx
pop ecx
mov dword [0x4f2eb0], eax
je 0x444bc6
push 0x4c648c
push edi
call esi
push eax
call fcn.00437495
pop ecx
mov dword [0x4f2eac], eax
mov eax, dword [0x4f2eac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x444c4b
cmp dword [0x4f2eb0], ecx
je 0x444c4b
push eax
call fcn.0043750c
push dword [0x4f2eb0]
mov esi, eax
call fcn.0043750c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x444c4b
cmp edi, ebx
je 0x444c4b
call esi
cmp eax, ebx
je 0x444c18
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x444c18
test byte [ebp - 0x18], 1
jne 0x444c4b
lea eax, [ebp - 0x10]
push eax
call fcn.004368e4
test eax, eax
pop ecx
je 0x444c33
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433ce4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x444c42
or dword [ebp + 0x10], 0x200000
jmp 0x444c86
or dword [ebp + 0x10], 0x40000
jmp 0x444c86
mov eax, dword [0x4f2ea4]
cmp eax, dword [ebp - 8]
je 0x444c86
push eax
call fcn.0043750c
cmp eax, ebx
pop ecx
je 0x444c86
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x444c86
mov eax, dword [0x4f2ea8]
cmp eax, dword [ebp - 8]
je 0x444c86
push eax
call fcn.0043750c
cmp eax, ebx
pop ecx
je 0x444c86
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f2ea0]
call fcn.0043750c
cmp eax, ebx
pop ecx
je 0x444ca6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x444ca8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ead0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x104
call fcn.00432dc0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x45eb19
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x45eb19
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push eax
push ecx
call fcn.0043aae6
add eax, 0x40
push eax
call fcn.004b957f
add esp, 0xc
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00432d99
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x45eb9a
call fcn.0045ea10
test eax, eax
je 0x45eb9a
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x104
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x104
ret
Function at 0x48e250
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x48e269
mov edi, ebx
mov ebx, eax
jmp 0x48e26b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x48e281
push eax
push esi
call fcn.00469560
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x48e29d
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x48e288
cmp eax, dword [edi + 4]
jge 0x48e2b2
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x48e2a2
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x48e2d6
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x48e2d6
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x48e2c5
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x405af4
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.00405fb4
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c7d
test edi, edi
je 0x405c7d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405bbd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405b98
cmp edi, 0xffffffff
je 0x405b59
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b59
mov byte [esp], 0
jmp 0x405c7d
cmp dword [esi], 1
jg 0x405b98
cmp dword [esi], 0
jne 0x405b8a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405b8a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c7d
lea eax, [esp + 0xc]
call fcn.0040578c
dec ebp
test ebp, ebp
jg 0x405b3e
cmp edi, 0xffffffff
je 0x405bbd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405bbb
mov byte [esp], 0
jmp 0x405c7d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405b02
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405bbd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405cf8
mov edx, eax
mov ebx, dword [0x4238f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405c21
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405c1f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405c21
xor edi, edi
cmp byte [esp], 0
je 0x405c47
mov ebx, dword [esi]
test bl, 1
jne 0x405c5d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c27
mov byte [esp + 1], 1
jmp 0x405c5d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c47
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405bd4
cmp byte [esp], 0
je 0x405c7d
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 0x4069b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423054], 0
je 0x406a1f
cmp word [0x423344], 0xd7b2
jne 0x4069e1
cmp dword [0x42334c], 0
jbe 0x4069e1
mov eax, 0x423340
call dword [0x42335c]
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, 0x406a4c
call fcn.004070e8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421026], 0
jne 0x406a3b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409604
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 0x40976b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406c3c
cmp si, word [0x4219f8]
jb 0x40969c
cmp si, word [0x421bf8]
ja 0x40969c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40969c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4219f8]
jae 0x409676
mov edi, ebx
dec edi
jmp 0x409697
cmp si, word [ebx*8 + 0x4219f8]
jbe 0x409686
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409697
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4219fc]
call fcn.00409524
jmp 0x40969c
cmp edi, dword [ebp - 8]
jae 0x409660
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40974b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40974b
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.00407218
push dword [ebp - 0x160]
push 0x409788
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407218
push dword [ebp - 0x164]
push 0x409798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407218
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004073d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409772
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406c9c
pop eax
jmp eax
Function at 0x409920
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 0x409a26
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x425c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x425c28]
jne 0x40996c
mov eax, esi
mov edx, 0x425c2a
mov ecx, 0x55
call fcn.00407218
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409a0e
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406c3c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4099db
cmp byte [0x425c0c], 0
je 0x4099a0
mov edx, esi
mov eax, ebx
call fcn.00409804
jmp 0x4099db
mov edx, esi
mov eax, ebx
call fcn.00409604
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4099db
cmp dword [esi], 0
je 0x4099c4
mov eax, esi
mov edx, 0x409a40
call fcn.004072f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409604
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004072f4
push 0x425c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x425c28], bx
mov eax, dword [esi]
call fcn.0040718c
mov ecx, eax
mov eax, 0x425c2a
mov edx, 0xaa
call fcn.00409484
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a2d
lea eax, [ebp - 4]
call fcn.00406c3c
pop eax
jmp eax
Function at 0x409c68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d30
xor eax, eax
push ebp
push 0x409e90
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409cae
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409cc8
mov eax, dword [ebp - 4]
call fcn.0040718c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.00409484
cmp word [ebp - 0x21e], 0
je 0x409e73
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409ea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d97
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409ea0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d97
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409edc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d97
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409edc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d97
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d97
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409e73
xor eax, eax
push ebp
push 0x409e6c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.00409a68
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409dfa
mov eax, dword [ebp - 0x14]
call fcn.004042f0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004071dc
jmp 0x409e45
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x409f84
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409e45
mov eax, dword [ebp - 0x14]
call fcn.004042f0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x409f84
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004071dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e73
cmp dword [ebp - 0xc], 0
je 0x409e60
mov eax, dword [ebp - 0xc]
call fcn.0040430c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e97
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406c9c
pop eax
jmp eax
Function at 0x40a1a0
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.00406d30
xor eax, eax
push ebp
push 0x40a262
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.00407218
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040734c
mov eax, dword [ebx]
call fcn.0040a04c
test al, al
jne 0x40a23d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407218
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040734c
mov eax, dword [ebx]
call fcn.0040a04c
test al, al
jne 0x40a23d
mov eax, ebx
call fcn.00406c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a269
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406c9c
lea eax, [ebp - 4]
call fcn.00406c3c
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x415f2d
test eax, edx
je 0x415f30
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x415eeb
movzx eax, word [eax]
sub eax, ecx
jmp 0x415f12
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x415f13
add ecx, 4
js 0x415f03
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x415f10
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x415f12
xor eax, eax
ret
test eax, eax
je 0x415f3c
test edx, edx
jne 0x415edc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41812c
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 0x418165
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d88
jmp 0x41816e
mov eax, ebx
mov edx, esi
call fcn.00406f04
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418178
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41819c
movzx eax, word [esp]
jmp 0x41819e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret