joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460884
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
test ebx, ebx
jne 0x46089b
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x460895
stc
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
add byte [eax], al
or byte [eax], al
jne 0x460937
test esi, esi
jne 0x4608cd
mov ecx, 0x4609e0
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040cb60
call fcn.00404338
jmp 0x46092d
pop edi
cmp word [ebx + 0x10242], 0
jne 0x4608f0
mov ecx, 0x4609e0
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040cb60
call fcn.00404338
jmp 0x46092d
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 9]
mov eax, dword [ebx + 0x10244]
call dword [ebx + 0x10240]
cmp byte [ebp - 9], 0
jne 0x46092c
mov ecx, 0x4609e0
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040cb60
call fcn.00404338
jmp 0x46092d
inc esi
cmp dword [ebp + 8], 0
je 0x4608b2
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.00460720
cmp dword [ebx + 0x10044], 0
jne 0x460964
mov ecx, 0x4609f8
mov dl, 1
mov eax, dword [0x45ffa0]
call fcn.0040cb60
call fcn.00404338
mov ecx, 0x460a10
mov dl, 2
mov eax, ebx
call fcn.00460bd4
mov word [ebx + 0x10040], 2
mov ax, word [ebx + 0x10038]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x10042], ax
mov eax, 0x10
push eax
lea eax, [ebx + 0x10040]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0x1022a], 0
je 0x4609ca
mov edx, ebx
mov eax, dword [ebx + 0x1022c]
call dword [ebx + 0x10228]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x460cc8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460d9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xffff
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x10030], eax
cmp word [ebx + 0x10222], 0
je 0x460d86
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x460db0
call fcn.0040a1b8
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x10030]
mov edx, ebx
mov eax, dword [ebx + 0x10224]
call dword [ebx + 0x10220]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460da3
lea eax, [ebp - 8]
call fcn.0040499c
ret
Function at 0x4a1474
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a16a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4a16b0
mov edx, 0x4a16bc
mov eax, 0x80000001
call fcn.004589ec
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.00402b9c
mov eax, dword [ebp - 0x228]
xor edx, edx
call fcn.0040963c
lea eax, [ebp - 0x22c]
call fcn.0049fd3c
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 4]
mov ecx, 0x4a1704
call fcn.00404ca8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402f50
lea eax, [ebp - 0x1d0]
call fcn.00402cec
call fcn.004028cc
mov edx, 0x4a171c
lea eax, [ebp - 0x1d0]
call fcn.00405078
call fcn.0040366c
call fcn.004028cc
push 0x4a172c
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.00402b9c
push dword [ebp - 0x234]
push 0x4a173c
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00404d1c
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.00405078
call fcn.0040366c
call fcn.004028cc
push 0x4a1748
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.00402b9c
push dword [ebp - 0x23c]
push 0x4a173c
push 0x4a175c
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00404d1c
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.00405078
call fcn.0040366c
call fcn.004028cc
mov edx, 0x4a1770
lea eax, [ebp - 0x1d0]
call fcn.00405078
call fcn.0040366c
call fcn.004028cc
mov edx, 0x4a1780
lea eax, [ebp - 0x1d0]
call fcn.00405078
call fcn.0040366c
call fcn.004028cc
lea eax, [ebp - 0x1d0]
call fcn.004030f4
call fcn.004028cc
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.004032e4
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
nop
jmp 0x4a21bb
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a167c
mov eax, dword [ebp - 0x1dc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a16a9
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.004049c0
lea eax, [ebp - 4]
call fcn.0040499c
ret
push 0
push 0
push 0x40
jmp 0x4a164c
Function at 0x405f90
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.00406388
mov byte [esp], al
cmp byte [esp], 0
jne 0x40611c
test edi, edi
je 0x40611c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406053
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40602e
cmp edi, 0xffffffff
je 0x405fef
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405fef
mov byte [esp], 0
jmp 0x40611c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40602e
test ebx, ebx
jne 0x406024
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026a8
test eax, eax
jne 0x406024
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40611c
call 0x4064ac
dec ebp
test ebp, ebp
jg 0x405fd4
cmp edi, 0xffffffff
je 0x406053
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 0x406051
mov byte [esp], 0
jmp 0x40611c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405f9e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026a8
cmp ebx, eax
jne 0x406053
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040618c
mov edx, eax
mov ebx, dword [0x4d58f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4060ba
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 0x4060b8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4060ba
xor edi, edi
cmp byte [esp], 0
je 0x4060e3
mov ebx, dword [esi]
test bl, 1
jne 0x4060fc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026a8
cmp ebx, eax
jne 0x4060c0
mov byte [esp + 1], 1
jmp 0x4060fc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026a8
cmp ebx, eax
jne 0x4060e3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40606d
cmp byte [esp], 0
je 0x40611c
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 0x406eac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d5050], 0
je 0x406f13
cmp word [0x4d533c], 0xd7b2
jne 0x406ed5
cmp dword [0x4d5344], 0
jbe 0x406ed5
mov eax, 0x4d5338
call dword [0x4d5354]
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, 0x406f40
call fcn.00407978
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4cf032], 0
jne 0x406f2f
push 0
push 0x4cf9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4070d0
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 [0x4cf034], 0
je 0x4070fb
mov edx, edi
mov eax, esi
call dword [0x4cf034]
mov ebx, eax
jmp 0x40710c
mov eax, 8
call fcn.00404488
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d5051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407098
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 0x407141
mov edx, 8
mov eax, ebx
call fcn.004044a4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409450
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 0x4095b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407214
cmp si, word [0x4cfa08]
jb 0x4094e8
cmp si, word [0x4cfc08]
ja 0x4094e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4094e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4cfa08]
jae 0x4094c2
mov edi, ebx
dec edi
jmp 0x4094e3
cmp si, word [ebx*8 + 0x4cfa08]
jbe 0x4094d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4094e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cfa0c]
call fcn.00409360
jmp 0x4094e8
cmp edi, dword [ebp - 8]
jae 0x4094ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409597
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x409597
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.00407d54
push dword [ebp - 0x160]
push 0x4095d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407d54
push dword [ebp - 0x164]
push 0x4095e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407d54
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407274
ret
Function at 0x409768
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 0x40986b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d7b80
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x4d7b98]
jne 0x4097b4
mov eax, esi
mov edx, 0x4d7b9a
mov ecx, 0x55
call fcn.00407d54
push 0x4d7b80
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x409855
push 0x4d7b80
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.00407214
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x409823
cmp byte [0x4d7b7c], 0
je 0x4097e8
mov edx, esi
mov eax, ebx
call fcn.0040964c
jmp 0x409823
mov edx, esi
mov eax, ebx
call fcn.00409450
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409823
cmp dword [esi], 0
je 0x40980c
mov eax, esi
mov edx, 0x409884
call fcn.00407eac
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409450
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407eac
push 0x4d7b80
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x4d7b98], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407cb0
push eax
push 0x4d7b9a
call sub.KERNEL32.DLL_lstrcpynW
push 0x4d7b80
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409872
lea eax, [ebp - 4]
call fcn.00407214
ret
Function at 0x409aa0
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.004072f8
xor eax, eax
push ebp
push 0x409cc5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409ae0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x409afa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407cb0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409caf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cd4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x409bc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cd4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x409bc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x409bc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x409bc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x409bc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x409caf
xor eax, eax
push ebp
push 0x409ca8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004098ac
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_1
test eax, eax
jne 0x409c38
mov eax, dword [ebp - 0x10]
call fcn.00404488
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_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407d18
jmp 0x409c83
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409db8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x409c83
mov eax, dword [ebp - 0x10]
call fcn.00404488
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409db8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409caf
cmp dword [ebp - 8], 0
je 0x409c9e
mov eax, dword [ebp - 8]
call fcn.004044a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ccc
lea eax, [ebp - 4]
call fcn.00407214
ret
Function at 0x409fa8
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.004072f8
xor eax, eax
push ebp
push 0x40a068
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.00407d54
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407f04
mov eax, dword [ebx]
call fcn.00409e70
test al, al
jne 0x40a045
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407d54
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407f04
mov eax, dword [ebx]
call fcn.00409e70
test al, al
jne 0x40a045
mov eax, ebx
call fcn.00407214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a06f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407274
lea eax, [ebp - 4]
call fcn.00407214
ret

Function at 0x419434
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41948d
test eax, edx
je 0x419490
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41944b
movzx eax, word [eax]
sub eax, ecx
jmp 0x419472
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 0x419473
add ecx, 4
js 0x419463
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x419470
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x419472
xor eax, eax
ret
test eax, eax
je 0x41949c
test edx, edx
jne 0x41943c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41a76c
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.00407cb0
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41a7d6
test ah, 4
je 0x41a7cf
test bl, bl
jne 0x41a794
mov al, 1
jmp 0x41a7fd
test al, 0x10
je 0x41a79c
xor eax, eax
jmp 0x41a7fd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x41a7c0
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x41a7fd
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41a7fd
test al, 0x10
sete al
jmp 0x41a7fd
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41a7f7
cmp ebx, 3
je 0x41a7f7
cmp ebx, 0x7b
je 0x41a7f7
mov eax, esi
call fcn.0041a72c
test al, al
jne 0x41a7fb
xor eax, eax
jmp 0x41a7fd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41e4e0
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 0x41e519
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040737c
jmp 0x41e522
mov eax, ebx
mov edx, esi
call fcn.004075d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e52c
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 0x41e54e
movzx eax, word [esp]
jmp 0x41e550
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41f224
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 0x41f349
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041f02c
mov esi, eax
mov eax, dword [0x4d4c08]
cmp byte [eax], 0
je 0x41f2f1
mov eax, dword [0x4d474c]
call fcn.00404bb8
call fcn.004045dc
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 [0x41f1f4]
call fcn.00408ed0
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 0x41f364
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41f32d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d46b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d7c48]
call fcn.00408f94
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 0x41f350
lea eax, [ebp - 4]
mov edx, dword [0x41f1f4]
call fcn.00408edc
ret
Function at 0x420e28
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.004076fc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a930
mov edi, eax
cmp edi, 0x104
jbe 0x420dcf
mov eax, edi
add eax, eax
call fcn.00404488
mov esi, eax
jmp 0x420dd1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a930
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x420e0c
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 0x420df6
mov eax, esp
cmp esi, eax
je 0x420e19
mov eax, esi
call fcn.004044a4
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 0x420e54
cmp bl, 0
je 0x420e50
cmp bl, 0x41
jl 0x420e4b
cmp bl, 0x5a
jg 0x420e4b
or bl, 0x20
xor al, bl
inc esi
jmp 0x420e2f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x420d90

Function at 0x42163c
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.00407d54
add esp, 0x800
pop ebx
ret

Function at 0x421aec
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00407214
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00407cb0
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x421b31
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040737c
jmp 0x421b4a
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407e2c
push ebx
mov eax, dword [esi]
call fcn.00407cb0
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x446dc8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x446e66
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x446e2a
cmp byte [ebx + 0x10], 0
jne 0x446e2a
cmp byte [ebx + 0x3c], 0
jne 0x446e2a
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 0x446e4b
lea edx, [ebp - 4]
mov eax, dword [0x4d4b5c]
call fcn.0040a89c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4369b8]
call fcn.0041f388
call fcn.00406948
jmp 0x446e4b
lea edx, [ebp - 8]
mov eax, dword [0x4d4b5c]
call fcn.0040a89c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4369b8]
call fcn.0041f388
call fcn.00406948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446e6d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407274
ret