joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fcd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x1001fda1
cmp word [esi], 0
je 0x1001fda1
push ebx
push edi
mov edi, esi
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1001fd00
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100216b9
mov ebx, eax
add esp, 4
mov edx, ebx
sub edx, esi
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [edx + esi - 2], cx
test cx, cx
jne 0x1001fd31
xor eax, eax
mov dword [ebx + edi*2], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov eax, 0x14
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x12], 0
mov dword [ebp - 0xa], 0
mov dword [ebp - 0xe], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov esi, eax
call fcn.10021691
add esp, 4
xor eax, eax
test esi, esi
sete al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100212e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100212e2
mov esp, ebp
pop ebp
ret

Function at 0x10020000
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1006f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100200c0
nop dword [eax]
mov eax, esi
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1002007e
test dx, dx
je 0x1002007a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1002007e
add ecx, 4
add eax, 4
test dx, dx
jne 0x10020058
xor eax, eax
jmp 0x10020083
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100200ae
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100200a8
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10020050
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100212e2
mov esp, ebp
pop ebp
ret
Function at 0x100200e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1006f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov dword [ebp - 0x234], ecx
xor bl, bl
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10020171
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
je 0x10020170
nop word [eax + eax]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.100319a4
add esp, 8
movzx ebx, bl
test eax, eax
mov eax, 1
cmove ebx, eax
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x10020140
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.100212e2
mov esp, ebp
pop ebp
ret

Function at 0x10026c3d
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10047470
push 0x10047468
push str.FlsAlloc
push 0
call fcn.10026bb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10026c6f
push dword [ebp + 8]
mov ecx, esi
call fcn.10021bf1
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x10026cb1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10047480
push 0x10047478
push str.FlsGetValue
push 2
call fcn.10026bb6
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x10026ce2
mov ecx, esi
call fcn.10021bf1
call esi
jmp 0x10026ce8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x10026ceb
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10047488
push 0x10047480
push str.FlsSetValue
push 3
call fcn.10026bb6
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x10026d1f
mov ecx, esi
call fcn.10021bf1
call esi
jmp 0x10026d25
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x4089f4
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.00408eb4
mov byte [esp], al
cmp byte [esp], 0
jne 0x408b7d
test edi, edi
je 0x408b7d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408abd
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408a98
cmp edi, 0xffffffff
je 0x408a59
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a59
mov byte [esp], 0
jmp 0x408b7d
cmp dword [esi], 1
jg 0x408a98
cmp dword [esi], 0
jne 0x408a8a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408a8a
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408b7d
lea eax, [esp + 0xc]
call fcn.004086a4
dec ebp
test ebp, ebp
jg 0x408a3e
cmp edi, 0xffffffff
je 0x408abd
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408abb
mov byte [esp], 0
jmp 0x408b7d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408a02
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408abd
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408bf8
mov edx, eax
mov ebx, dword [0x4d58f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408b21
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408b1f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408b21
xor edi, edi
cmp byte [esp], 0
je 0x408b47
mov ebx, dword [esi]
test bl, 1
jne 0x408b5d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b27
mov byte [esp + 1], 1
jmp 0x408b5d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b47
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ad4
cmp byte [esp], 0
je 0x408b7d
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 0x409a44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d5058], 0
je 0x409aab
cmp word [0x4d5344], 0xd7b2
jne 0x409a6d
cmp dword [0x4d534c], 0
jbe 0x409a6d
mov eax, 0x4d5340
call dword [0x4d535c]
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, 0x409ad8
call fcn.0040a5c4
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4d1036], 0
jne 0x409ac7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409c6c
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 [0x4d1038], 0
je 0x409c97
mov edx, edi
mov eax, esi
call dword [0x4d1038]
mov ebx, eax
jmp 0x409ca8
mov eax, 8
call fcn.00406f40
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d5059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409c34
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 0x409cd8
mov eax, ebx
call fcn.00406f5c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d390
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 0x40d4f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409dac
cmp si, word [0x4d1a10]
jb 0x40d428
cmp si, word [0x4d1c10]
ja 0x40d428
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d428
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d1a10]
jae 0x40d402
mov edi, ebx
dec edi
jmp 0x40d423
cmp si, word [ebx*8 + 0x4d1a10]
jbe 0x40d412
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d423
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d1a14]
call fcn.0040d2ac
jmp 0x40d428
cmp edi, dword [ebp - 8]
jae 0x40d3ec
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d4d7
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d4d7
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.0040a8ac
push dword [ebp - 0x160]
push 0x40d514
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a8ac
push dword [ebp - 0x164]
push 0x40d524
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a8ac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4fe
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409e0c
pop eax
jmp eax
Function at 0x40d6ac
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 0x40d7b2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d7c10
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x4d7c28]
jne 0x40d6f8
mov eax, esi
mov edx, 0x4d7c2a
mov ecx, 0x55
call fcn.0040a8ac
push 0x4d7c10
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40d79a
push 0x4d7c10
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00409dac
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d767
cmp byte [0x4d7c0c], 0
je 0x40d72c
mov edx, esi
mov eax, ebx
call fcn.0040d590
jmp 0x40d767
mov edx, esi
mov eax, ebx
call fcn.0040d390
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d767
cmp dword [esi], 0
je 0x40d750
mov eax, esi
mov edx, 0x40d7cc
call fcn.0040aa04
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d390
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa04
push 0x4d7c10
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x4d7c28], bx
mov eax, dword [esi]
call fcn.0040a810
mov ecx, eax
mov eax, 0x4d7c2a
mov edx, 0xaa
call fcn.0040d20c
push 0x4d7c10
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7b9
lea eax, [ebp - 4]
call fcn.00409dac
pop eax
jmp eax
Function at 0x40d9f4
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.00409ea0
xor eax, eax
push ebp
push 0x40dc1c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40da3a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40da54
mov eax, dword [ebp - 4]
call fcn.0040a810
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d20c
cmp word [ebp - 0x21e], 0
je 0x40dbff
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db23
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db23
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db23
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db23
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db23
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dcd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dbff
xor eax, eax
push ebp
push 0x40dbf8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040d7f4
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 0x40db86
mov eax, dword [ebp - 0x14]
call fcn.00406f40
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.0040a870
jmp 0x40dbd1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40dd10
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dbd1
mov eax, dword [ebp - 0x14]
call fcn.00406f40
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40dd10
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbff
cmp dword [ebp - 0xc], 0
je 0x40dbec
mov eax, dword [ebp - 0xc]
call fcn.00406f5c
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 0x40dc23
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409e0c
pop eax
jmp eax
Function at 0x40df30
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.00409ea0
xor eax, eax
push ebp
push 0x40dff2
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.0040a8ac
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aa5c
mov eax, dword [ebx]
call fcn.0040ddd8
test al, al
jne 0x40dfcd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a8ac
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aa5c
mov eax, dword [ebx]
call fcn.0040ddd8
test al, al
jne 0x40dfcd
mov eax, ebx
call fcn.00409dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dff9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409e0c
lea eax, [ebp - 4]
call fcn.00409dac
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x41fcf5
test eax, edx
je 0x41fcf8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41fcb3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41fcda
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 0x41fcdb
add ecx, 4
js 0x41fccb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41fcd8
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41fcda
xor eax, eax
ret
test eax, eax
je 0x41fd04
test edx, edx
jne 0x41fca4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420b60
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.0040a810
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420bca
test ah, 4
je 0x420bc3
test bl, bl
jne 0x420b88
mov al, 1
jmp 0x420bf1
test al, 0x10
je 0x420b90
xor eax, eax
jmp 0x420bf1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x420bb4
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x420bf1
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x420bf1
test al, 0x10
sete al
jmp 0x420bf1
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x420beb
cmp ebx, 3
je 0x420beb
cmp ebx, 0x7b
je 0x420beb
mov eax, esi
call fcn.00420b20
test al, al
jne 0x420bef
xor eax, eax
jmp 0x420bf1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4251d4
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 0x42520d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409f44
jmp 0x425216
mov eax, ebx
mov edx, esi
call fcn.0040a19c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425220
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 0x425244
movzx eax, word [esp]
jmp 0x425246
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x426960
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 0x426a87
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426768
mov esi, eax
mov eax, dword [0x4d4bd8]
cmp byte [eax], 0
je 0x426a2d
mov eax, dword [0x4d4a1c]
call fcn.00407808
call fcn.004070b4
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 [0x426930]
call fcn.0040c914
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 0x426aa0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x426a69
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d49e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d8634]
call fcn.0040ceb0
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 0x426a8e
lea eax, [ebp - 4]
mov edx, dword [0x426930]
call fcn.0040ca38
pop eax
jmp eax

Function at 0x428b68
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.0040a290
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040faac
mov edi, eax
cmp edi, 0x104
jbe 0x428b13
mov eax, edi
add eax, eax
call fcn.00406f40
mov esi, eax
jmp 0x428b15
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040faac
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x428b4e
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 0x428b38
mov eax, esp
cmp esi, eax
je 0x428b5b
mov eax, esi
call fcn.00406f5c
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 0x428b94
cmp bl, 0
je 0x428b90
cmp bl, 0x41
jl 0x428b8b
cmp bl, 0x5a
jg 0x428b8b
or bl, 0x20
xor al, bl
inc esi
jmp 0x428b6f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428ad4

Function at 0x42948c
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
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a8ac
add esp, 0x800
pop ebx
ret
Function at 0x42be9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42bebc
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42bed6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42bed1
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42bedb
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42bf49
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42bf92
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42bf07
inc dword [ebp - 0xc]
jmp 0x42bf1f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42bf1f
cmp dword [ebp - 0xc], 0
jle 0x42bf1f
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42bf41
xor eax, eax
jmp 0x42bf3d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42bf3c
mov eax, esi
jmp 0x42bf95
inc eax
cmp eax, ecx
jle 0x42bf29
inc esi
cmp esi, dword [ebp - 8]
jl 0x42bef3
jmp 0x42bf92
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42bf92
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42bf6a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42bf8c
xor eax, eax
jmp 0x42bf88
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42bf87
mov eax, esi
jmp 0x42bf95
inc eax
cmp eax, ecx
jle 0x42bf74
inc esi
cmp esi, dword [ebp - 8]
jl 0x42bf52
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10