joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003c8f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 8
push 0x1001c650
call fcn.10005fa4
xor eax, eax
xor esi, esi
xor edi, edi
cmp edi, dword [ebp + 0xc]
jae 0x10003d33
inc eax
and eax, 0x800000ff
jns 0x10003cb9
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [eax + 0x1001ffe8]
movzx ecx, dl
add esi, ecx
and esi, 0x800000ff
jns 0x10003cd4
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [esi + 0x1001ffe8]
mov bl, byte [ecx]
mov byte [eax + 0x1001ffe8], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x1001ffe8]
movzx edx, dl
add ecx, edx
and ecx, 0x800000ff
jns 0x10003d00
dec ecx
or ecx, 0xffffff00
inc ecx
and dword [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, edi
movzx ecx, byte [ecx + 0x1001ffe8]
movzx ebx, byte [edx]
xor ecx, ebx
mov byte [edx], cl
mov dword [ebp - 4], 0xfffffffe
inc edi
jmp 0x10003ca1
mov al, 1
call fcn.10005fe9
ret

Function at 0x100049f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e454]
jne 0x100049fb
repz ret
jmp fcn.1000a6e0

Function at 0x100144da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100095b9
and dword [ebp - 4], 0
cmp dword [0x10020c00], 0
mov ebx, eax
jne 0x1001458b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001463c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001463c
push eax
call fcn.10009547
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10020c00], eax
call esi
push eax
call fcn.10009547
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10020c04], eax
call esi
push eax
call fcn.10009547
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10020c08], eax
call esi
push eax
call fcn.10009547
pop ecx
mov dword [0x10020c10], eax
test eax, eax
je 0x1001458b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10009547
pop ecx
mov dword [0x10020c0c], eax
mov eax, dword [0x10020c0c]
cmp eax, ebx
je 0x100145e3
cmp dword [0x10020c10], ebx
je 0x100145e3
push eax
call fcn.100095c2
push dword [0x10020c10]
mov esi, eax
call fcn.100095c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100145e3
test edi, edi
je 0x100145e3
call esi
test eax, eax
je 0x100145da
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100145da
test byte [ebp - 0xc], 1
jne 0x100145e3
or dword [ebp + 0x10], 0x200000
jmp 0x1001461c
mov eax, dword [0x10020c04]
cmp eax, ebx
je 0x1001461c
push eax
call fcn.100095c2
pop ecx
test eax, eax
je 0x1001461c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001461c
mov eax, dword [0x10020c08]
cmp eax, ebx
je 0x1001461c
push eax
call fcn.100095c2
pop ecx
test eax, eax
je 0x1001461c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10020c00]
call fcn.100095c2
pop ecx
test eax, eax
je 0x1001463c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001463e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404800
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.00406fe4
test esi, esi
jne 0x404836
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.0040713c
jmp 0x404854
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046e4
mov edi, eax
test esi, esi
je 0x404854
cmp dword [ebx], 0
je 0x404854
dec esi
jmp 0x40483d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406308
mov byte [esp], al
cmp byte [esp], 0
jne 0x4061e4
test edi, edi
je 0x4061e4
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40611b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4060f6
cmp edi, 0xffffffff
je 0x4060b7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4060b7
mov byte [esp], 0
jmp 0x4061e4
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4060f6
test ebx, ebx
jne 0x4060ec
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402694
test eax, eax
jne 0x4060ec
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4061e4
call 0x40634c
dec ebp
test ebp, ebp
jg 0x40609c
cmp edi, 0xffffffff
je 0x40611b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406119
mov byte [esp], 0
jmp 0x4061e4
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406066
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x40611b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406254
mov edx, eax
mov ebx, dword [0x4598f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406182
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406180
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406182
xor edi, edi
cmp byte [esp], 0
je 0x4061ab
mov ebx, dword [esi]
test bl, 1
jne 0x4061c4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x406188
mov byte [esp + 1], 1
jmp 0x4061c4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x4061ab
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406135
cmp byte [esp], 0
je 0x4061e4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406d4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459050], 0
je 0x406db3
cmp word [0x45933c], 0xd7b2
jne 0x406d75
cmp dword [0x459344], 0
jbe 0x406d75
mov eax, 0x459338
call dword [0x459354]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4569c8
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, 0x406de0
call fcn.00407744
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456032], 0
jne 0x406dcf
push 0
push 0x4569c2
push 0x4569c8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4090a8
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 0x40920d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406fe4
cmp si, word [0x456a00]
jb 0x409140
cmp si, word [0x456c00]
ja 0x409140
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409140
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x456a00]
jae 0x40911a
mov edi, ebx
dec edi
jmp 0x40913b
cmp si, word [ebx*8 + 0x456a00]
jbe 0x40912a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40913b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x456a04]
call fcn.00408fb8
jmp 0x409140
cmp edi, dword [ebp - 8]
jae 0x409104
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4091ef
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4091ef
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.00407aa4
push dword [ebp - 0x160]
push 0x409228
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407aa4
push dword [ebp - 0x164]
push 0x409238
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407aa4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409214
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407044
ret
Function at 0x4093c0
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 0x4094c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45bb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x45bb98]
jne 0x40940c
mov eax, esi
mov edx, 0x45bb9a
mov ecx, 0x55
call fcn.00407aa4
push 0x45bb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4094ad
push 0x45bb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406fe4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40947b
cmp byte [0x45bb7c], 0
je 0x409440
mov edx, esi
mov eax, ebx
call fcn.004092a4
jmp 0x40947b
mov edx, esi
mov eax, ebx
call fcn.004090a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40947b
cmp dword [esi], 0
je 0x409464
mov eax, esi
mov edx, 0x4094dc
call fcn.00407bfc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090a8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407bfc
push 0x45bb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x45bb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407a10
push eax
push 0x45bb9a
call sub.kernel32.dll_lstrcpynW
push 0x45bb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094ca
lea eax, [ebp - 4]
call fcn.00406fe4
ret
Function at 0x4096f8
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.004070c8
xor eax, eax
push ebp
push 0x40991d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409738
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409752
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407a10
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409907
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40992c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40992c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409968
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409968
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40999c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409907
xor eax, eax
push ebp
push 0x409900
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409504
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 0x409890
mov eax, dword [ebp - 0x10]
call fcn.00404440
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.00407a68
jmp 0x4098db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098db
mov eax, dword [ebp - 0x10]
call fcn.00404440
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409907
cmp dword [ebp - 8], 0
je 0x4098f6
mov eax, dword [ebp - 8]
call fcn.0040445c
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 0x409924
lea eax, [ebp - 4]
call fcn.00406fe4
ret
Function at 0x409c00
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.004070c8
xor eax, eax
push ebp
push 0x409cc0
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.00407aa4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c54
mov eax, dword [ebx]
call fcn.00409ac8
test al, al
jne 0x409c9d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407aa4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c54
mov eax, dword [ebx]
call fcn.00409ac8
test al, al
jne 0x409c9d
mov eax, ebx
call fcn.00406fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cc7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407044
lea eax, [ebp - 4]
call fcn.00406fe4
ret

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

Disassembly:
cmp eax, edx
je 0x418b39
test eax, edx
je 0x418b3c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x418af7
movzx eax, word [eax]
sub eax, ecx
jmp 0x418b1e
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 0x418b1f
add ecx, 4
js 0x418b0f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x418b1c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x418b1e
xor eax, eax
ret
test eax, eax
je 0x418b48
test edx, edx
jne 0x418ae8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x419098
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x4190b0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4190b8
mov al, 1
jmp 0x4190d5
movzx esi, word [ebp]
mov eax, esi
call fcn.0040b7ac
test al, al
jne 0x4190d1
cmp si, 0x5f
je 0x4190d1
xor eax, eax
jmp 0x4190d3
mov al, 1
xor al, 1
test al, al
jne 0x419165
test bl, bl
je 0x419125
mov eax, ebp
test eax, eax
je 0x4190ec
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x419161
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040b838
test al, al
jne 0x419119
cmp di, 0x5f
je 0x419119
cmp di, 0x2e
je 0x419119
xor eax, eax
jmp 0x41911b
mov al, 1
test al, al
je 0x419165
inc esi
dec ebx
jne 0x4190f9
jmp 0x419161
mov eax, ebp
test eax, eax
je 0x419130
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x419161
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040b838
test al, al
jne 0x419157
cmp di, 0x5f
je 0x419157
xor eax, eax
jmp 0x419159
mov al, 1
test al, al
je 0x419165
inc esi
dec ebx
jne 0x41913d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407a10
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x419d36
test ah, 4
je 0x419d2f
test bl, bl
jne 0x419cf4
mov al, 1
jmp 0x419d5d
test al, 0x10
je 0x419cfc
xor eax, eax
jmp 0x419d5d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x419d20
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x419d5d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x419d5d
test al, 0x10
sete al
jmp 0x419d5d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x419d57
cmp ebx, 3
je 0x419d57
cmp ebx, 0x7b
je 0x419d57
mov eax, esi
call fcn.00419c8c
test al, al
jne 0x419d5b
xor eax, eax
jmp 0x419d5d
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x419d64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407a10
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x419e0b
test esi, 0x400
jne 0x419da0
test esi, 0x10
setne bl
jmp 0x419e2a
cmp byte [esp], 0
je 0x419dd4
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x419e2a
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x419e2a
test esi, 0x10
je 0x419de0
mov bl, 1
jmp 0x419e2a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x419e07
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x419e2a
mov bl, 1
jmp 0x419e2a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x419e24
cmp eax, 3
je 0x419e24
cmp eax, 0x7b
je 0x419e24
cmp eax, 0x35
jne 0x419e28
xor ebx, ebx
jmp 0x419e2a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d9fc
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 0x41da35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040713c
jmp 0x41da3e
mov eax, ebx
mov edx, esi
call fcn.00407394
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41da48
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_1
test eax, eax
jle 0x41da6a
movzx eax, word [esp]
jmp 0x41da6c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41e740
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 0x41e865
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041e548
mov esi, eax
mov eax, dword [0x458bb0]
cmp byte [eax], 0
je 0x41e80d
mov eax, dword [0x458a2c]
call fcn.00404cc8
call fcn.00404594
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 [0x41e710]
call fcn.00408b28
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 0x41e880
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41e849
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4589f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45bc48]
call fcn.00408bec
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 0x41e86c
lea eax, [ebp - 4]
mov edx, dword [0x41e710]
call fcn.00408b34
ret

Function at 0x420344
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004074bc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a588
mov edi, eax
cmp edi, 0x104
jbe 0x4202eb
mov eax, edi
add eax, eax
call fcn.00404440
mov esi, eax
jmp 0x4202ed
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a588
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x420328
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x420312
mov eax, esp
cmp esi, eax
je 0x420335
mov eax, esi
call fcn.0040445c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x420370
cmp bl, 0
je 0x42036c
cmp bl, 0x41
jl 0x420367
cmp bl, 0x5a
jg 0x420367
or bl, 0x20
xor al, bl
inc esi
jmp 0x42034b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4202ac

Function at 0x420b58
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407aa4
add esp, 0x800
pop ebx
ret