joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411384
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x4113a0
mov al, 1
pop edx
ret
xor eax, eax
pop edx
ret

Function at 0x411aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x411b70
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
test ebx, ebx
je 0x411b55
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.004113cc
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
mov eax, 0x411b84
call fcn.00411228
mov eax, dword [ebp - 0xc]
call fcn.004046b4
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404498
mov edx, dword [ebp - 8]
pop eax
call fcn.00404548
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
push 1
push 1
push 1
push 0xf01ff
lea edx, [ebp - 0x10]
mov eax, 0x411ba8
call fcn.00411228
mov eax, dword [ebp - 0x10]
call fcn.004046b4
push eax
lea edx, [ebp - 0x14]
mov eax, 0x411ba8
call fcn.00411228
mov eax, dword [ebp - 0x14]
call fcn.004046b4
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b77
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004042c4
ret
Function at 0x4046f8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40473a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x40475a
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00407ae4
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4049b0
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.00406d14
test esi, esi
jne 0x4049e6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406e9c
jmp 0x404a04
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404894
mov edi, eax
test esi, esi
je 0x404a04
cmp dword [ebx], 0
je 0x404a04
dec esi
jmp 0x4049ed
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x405a24
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.00405e68
mov byte [esp], al
cmp byte [esp], 0
jne 0x405bb0
test edi, edi
je 0x405bb0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405ae7
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405ac2
cmp edi, 0xffffffff
je 0x405a83
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a83
mov byte [esp], 0
jmp 0x405bb0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405ac2
test ebx, ebx
jne 0x405ab8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027e8
test eax, eax
jne 0x405ab8
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405bb0
call 0x405fac
dec ebp
test ebp, ebp
jg 0x405a68
cmp edi, 0xffffffff
je 0x405ae7
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405ae5
mov byte [esp], 0
jmp 0x405bb0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405a32
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027e8
cmp ebx, eax
jne 0x405ae7
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405c20
mov edx, eax
mov ebx, dword [0x51d8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405b4e
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405b4c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405b4e
xor edi, edi
cmp byte [esp], 0
je 0x405b77
mov ebx, dword [esi]
test bl, 1
jne 0x405b90
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027e8
cmp ebx, eax
jne 0x405b54
mov byte [esp + 1], 1
jmp 0x405b90
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027e8
cmp ebx, eax
jne 0x405b77
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b01
cmp byte [esp], 0
je 0x405bb0
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x4069ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51d058], 0
je 0x406a13
cmp word [0x51d344], 0xd7b2
jne 0x4069d5
cmp dword [0x51d34c], 0
jbe 0x4069d5
mov eax, 0x51d340
call dword [0x51d35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406a40
call fcn.00407574
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x518032], 0
jne 0x406a2f
push 0
push 0x5189c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406bd0
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 [0x518034], 0
je 0x406bfb
mov edx, edi
mov eax, esi
call dword [0x518034]
mov ebx, eax
jmp 0x406c0c
mov eax, 8
call fcn.00404574
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x51d059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406b98
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 0x406c41
mov edx, 8
mov eax, ebx
call fcn.00404590
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409500
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 0x409665
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406d14
cmp si, word [0x518a00]
jb 0x409598
cmp si, word [0x518c00]
ja 0x409598
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409598
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x518a00]
jae 0x409572
mov edi, ebx
dec edi
jmp 0x409593
cmp si, word [ebx*8 + 0x518a00]
jbe 0x409582
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409593
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x518a04]
call fcn.00409410
jmp 0x409598
cmp edi, dword [ebp - 8]
jae 0x40955c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409647
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x409647
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ae4
push dword [ebp - 0x160]
push 0x409680
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407ae4
push dword [ebp - 0x164]
push 0x409690
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ae4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40966c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406d74
ret
Function at 0x409818
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 0x40991b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x51fb88
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x51fba0]
jne 0x409864
mov eax, esi
mov edx, 0x51fba2
mov ecx, 0x55
call fcn.00407ae4
push 0x51fb88
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x409905
push 0x51fb88
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.00406d14
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x4098d3
cmp byte [0x51fb84], 0
je 0x409898
mov edx, esi
mov eax, ebx
call fcn.004096fc
jmp 0x4098d3
mov edx, esi
mov eax, ebx
call fcn.00409500
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4098d3
cmp dword [esi], 0
je 0x4098bc
mov eax, esi
mov edx, 0x409934
call fcn.00407c3c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409500
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407c3c
push 0x51fb88
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x51fba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407a40
push eax
push 0x51fba2
call sub.KERNEL32.DLL_lstrcpynW
push 0x51fb88
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409922
lea eax, [ebp - 4]
call fcn.00406d14
ret
Function at 0x409b50
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.00406df8
xor eax, eax
push ebp
push 0x409d75
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409b90
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x409baa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409d5f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409dc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409dc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409df4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409e28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409d5f
xor eax, eax
push ebp
push 0x409d58
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040995c
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 0x409ce8
mov eax, dword [ebp - 0x10]
call fcn.00404574
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.00407aa8
jmp 0x409d33
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409e68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409d33
mov eax, dword [ebp - 0x10]
call fcn.00404574
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409e68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d5f
cmp dword [ebp - 8], 0
je 0x409d4e
mov eax, dword [ebp - 8]
call fcn.00404590
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 0x409d7c
lea eax, [ebp - 4]
call fcn.00406d14
ret
Function at 0x40a058
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.00406df8
xor eax, eax
push ebp
push 0x40a118
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ae4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c94
mov eax, dword [ebx]
call fcn.00409f20
test al, al
jne 0x40a0f5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407ae4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407c94
mov eax, dword [ebx]
call fcn.00409f20
test al, al
jne 0x40a0f5
mov eax, ebx
call fcn.00406d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a11f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406d74
lea eax, [ebp - 4]
call fcn.00406d14
ret

Function at 0x41b4dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b535
test eax, edx
je 0x41b538
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b4f3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b51a
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 0x41b51b
add ecx, 4
js 0x41b50b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b518
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b51a
xor eax, eax
ret
test eax, eax
je 0x41b544
test edx, edx
jne 0x41b4e4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c968
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.00407a40
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41c9d2
test ah, 4
je 0x41c9cb
test bl, bl
jne 0x41c990
mov al, 1
jmp 0x41c9f9
test al, 0x10
je 0x41c998
xor eax, eax
jmp 0x41c9f9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x41c9bc
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x41c9f9
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41c9f9
test al, 0x10
sete al
jmp 0x41c9f9
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41c9f3
cmp ebx, 3
je 0x41c9f3
cmp ebx, 0x7b
je 0x41c9f3
mov eax, esi
call fcn.0041c928
test al, al
jne 0x41c9f7
xor eax, eax
jmp 0x41c9f9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41ca00
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.00407a40
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41caa7
test esi, 0x400
jne 0x41ca3c
test esi, 0x10
setne bl
jmp 0x41cac6
cmp byte [esp], 0
je 0x41ca70
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x41cac6
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x41cac6
test esi, 0x10
je 0x41ca7c
mov bl, 1
jmp 0x41cac6
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x41caa3
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x41cac6
mov bl, 1
jmp 0x41cac6
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x41cac0
cmp eax, 3
je 0x41cac0
cmp eax, 0x7b
je 0x41cac0
cmp eax, 0x35
jne 0x41cac4
xor ebx, ebx
jmp 0x41cac6
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41cbcc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407a40
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41cc21
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41cc1b
test ah, 4
je 0x41cc1b
test al, 0x10
je 0x41cc1b
mov eax, esi
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41cc21
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420b90
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 0x420bc9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406e9c
jmp 0x420bd2
mov eax, ebx
mov edx, esi
call fcn.004070f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x420bdc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x420bfe
movzx eax, word [esp]
jmp 0x420c00
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4218d4
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 0x4219f9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004216dc
mov esi, eax
mov eax, dword [0x51be9c]
cmp byte [eax], 0
je 0x4219a1
mov eax, dword [0x51bc0c]
call fcn.00404b40
call fcn.004046c8
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 [0x4218a4]
call fcn.00408d28
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 0x421a14
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4219dd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x51bbac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x51fc50]
call fcn.00409044
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 0x421a00
lea eax, [ebp - 4]
mov edx, dword [0x4218a4]
call fcn.00408e4c
ret

Function at 0x423664
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.00407224
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040aae8
mov edi, eax
cmp edi, 0x104
jbe 0x42360b
mov eax, edi
add eax, eax
call fcn.00404574
mov esi, eax
jmp 0x42360d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040aae8
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x423648
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 0x423632
mov eax, esp
cmp esi, eax
je 0x423655
mov eax, esi
call fcn.00404590
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 0x423690
cmp bl, 0
je 0x42368c
cmp bl, 0x41
jl 0x423687
cmp bl, 0x5a
jg 0x423687
or bl, 0x20
xor al, bl
inc esi
jmp 0x42366b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4235cc

Function at 0x423ea8
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.00407ae4
add esp, 0x800
pop ebx
ret
Function at 0x44e080
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44e11e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44e0e2
cmp byte [ebx + 0x10], 0
jne 0x44e0e2
cmp byte [ebx + 0x3c], 0
jne 0x44e0e2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x44e103
lea edx, [ebp - 4]
mov eax, dword [0x51be10]
call fcn.0040aa54
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43d540]
call fcn.00421a24
call fcn.00406448
jmp 0x44e103
lea edx, [ebp - 8]
mov eax, dword [0x51be10]
call fcn.0040aa54
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43d540]
call fcn.00421a24
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e125
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d74
ret

Function at 0x44ea20
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44ea6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044dfb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44ea87
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4501dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x521fc0
cmp dword [edi], 0
jne 0x450258
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x521fbc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x51ab04
mov ecx, 2
call fcn.00404794
mov edx, 0x4501b4
lea eax, [esi + 5]
call fcn.004501d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004501d4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x45022d
mov dword [0x521fbc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8