joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40506c]
sub esp, 4
test ebx, ebx
je 0x401e25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e1e
test esi, esi
je 0x401e1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e00
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402150
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402175
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402180
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402175
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4021c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4021be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4021ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4021b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x7b4b00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x357000]
push edi
jmp 0x7b4b1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b4b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b10
mov eax, 1
add ebx, ebx
jne 0x7b4b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b4b44
jne 0x7b4b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b63
dec eax
add ebx, ebx
jne 0x7b4b50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b4b28
add ebx, ebx
jne 0x7b4b5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b4bb5
xor ecx, ecx
sub eax, 3
jb 0x7b4b7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b4bea
sar eax, 1
mov ebp, eax
jmp 0x7b4b86
add ebx, ebx
jne 0x7b4b86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b54
inc ecx
add ebx, ebx
jne 0x7b4b94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b54
add ebx, ebx
jne 0x7b4ba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b4b96
jne 0x7b4bb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b4b96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b4bd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b4bc6
jmp 0x7b4b16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b4bd4
add edi, ecx
jmp 0x7b4b16
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b4bf2
cmp byte [edi], 0x11
jne 0x7b4bf2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7b4bf7
lea edi, [esi + 0x3ad000]
mov eax, dword [edi]
or eax, eax
je 0x7b4c6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x682fec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x683168]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b4c24
mov ecx, edi
jns 0x7b4c53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x68316c]
or eax, eax
je 0x7b4c69
mov dword [ebx], eax
add ebx, 4
jmp 0x7b4c41
call dword [esi + 0x68317c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b4ca0
cmp al, 0xef
ja 0x7b4c93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b4c75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7b4c82
mov ebp, dword [esi + 0x683170]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7b4cd4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x404894
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407804
test esi, esi
jne 0x4048cc
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.00407940
jmp 0x4048ea
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404778
mov edi, eax
test esi, esi
je 0x4048ea
cmp dword [ebx], 0
je 0x4048ea
dec esi
jmp 0x4048d3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4068a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ce054], 0
je 0x406905
cmp word [0x5ce330], 0xd7b2
jne 0x4068cd
cmp dword [0x5ce338], 0
jbe 0x4068cd
mov eax, 0x5ce32c
call dword [0x5ce348]
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
push 0x406930
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5c4030], 0
jne 0x406921
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5c4038], 0
je 0x406ad6
mov edx, esi
mov eax, ebx
call dword [0x5c4038]
jmp 0x406ae5
mov eax, 8
call fcn.004044b4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5ce055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406a78
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4099ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409b13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407804
cmp si, word [0x5c4800]
jb 0x409a46
cmp si, word [0x5c4a00]
ja 0x409a46
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409a46
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5c4800]
jae 0x409a20
mov edi, ebx
dec edi
jmp 0x409a41
cmp si, word [ebx*8 + 0x5c4800]
jbe 0x409a30
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409a41
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5c4804]
call fcn.004098bc
jmp 0x409a46
cmp edi, dword [ebp - 0xc]
jae 0x409a0a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409af5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409af5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004079fc
push dword [ebp - 0x164]
push 0x409b30
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004079fc
push dword [ebp - 0x168]
push 0x409b40
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004079fc
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407db4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b1a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004077fc
ret
Function at 0x409ccc
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 0x409dd1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5d0b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5d0b74]
jne 0x409d18
mov eax, esi
mov edx, 0x5d0b78
mov ecx, 0x55
call fcn.004079fc
push 0x5d0b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409dbb
push 0x5d0b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407804
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409d89
cmp byte [0x5d0b58], 0
je 0x409d4e
mov edx, esi
mov eax, ebx
call fcn.00409bac
jmp 0x409d89
mov edx, esi
mov eax, ebx
call fcn.004099ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409d89
cmp dword [esi], 0
je 0x409d72
mov eax, esi
mov edx, 0x409dec
call fcn.00407c10
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004099ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407c10
push 0x5d0b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5d0b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407890
push eax
push 0x5d0b78
call sub.kernel32.dll_lstrcpynW
push 0x5d0b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409dd8
lea eax, [ebp - 4]
call fcn.004077f4
ret
Function at 0x40a010
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.004077ec
xor eax, eax
push ebp
push 0x40a1f5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a050
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a06a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407890
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a1df
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a204
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a204
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a238
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a26c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a1df
xor eax, eax
push ebp
push 0x40a1d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409e14
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 0x40a168
mov eax, dword [ebp - 0x10]
call fcn.004044b4
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.004079c0
jmp 0x40a1b3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a2ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a1b3
mov eax, dword [ebp - 0x10]
call fcn.004044b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a2ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004079c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1df
cmp dword [ebp - 8], 0
je 0x40a1ce
mov eax, dword [ebp - 8]
call fcn.004044d0
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 0x40a1fc
lea eax, [ebp - 4]
call fcn.004077f4
ret
Function at 0x40a4c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004077ec
mov eax, dword [ebp - 0x21c]
call fcn.004077ec
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a65f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407804
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407890
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40a560
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a572
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a55d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a62b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40a59b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.0040a010
cmp dword [ebp - 0x220], 0
je 0x40a5d3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a3b4
pop ecx
mov ebx, eax
jmp 0x40a62b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409ccc
mov eax, dword [ebp - 0x224]
call fcn.0040a3b4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a61e
cmp byte [0x5d0b58], 0
jne 0x40a61e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409ccc
mov eax, dword [ebp - 0x228]
call fcn.0040a3b4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a62b
push ebp
call fcn.0040a464
pop ecx
mov ebx, eax
test bl, bl
je 0x40a641
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004079fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a666
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004077fc
ret

Function at 0x40e960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x5d0c5c
push 0xa
push 0x40e9f4
mov eax, dword [0x5d0c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e984
call fcn.0041d65c
push ebx
mov eax, dword [0x5d0c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e99b
call fcn.0041d65c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e9ad
call fcn.0041d65c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5d0c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5d0c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5d0c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5d0c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5d0c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x5d0c74], edx
pop esi
pop ebx
ret
Function at 0x413b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413be9
test eax, edx
je 0x413bec
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413b69
push edx
mov edx, eax
mov eax, esp
call fcn.00407a18
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x413b7f
push eax
lea eax, [esp + 8]
call fcn.00407a18
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413b8e
movzx eax, word [eax]
sub eax, ecx
jmp 0x413bb5
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 0x413bcf
add ecx, 4
js 0x413ba6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413bcc
push eax
mov eax, ecx
mov edx, 2
call fcn.00406b50
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413bb3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413bb5
xor eax, eax
ret
test eax, eax
je 0x413bfc
test edx, edx
jne 0x413b50
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407890
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415222
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x415243
cmp ebx, 3
je 0x415243
cmp ebx, 0x7b
je 0x415243
mov eax, esi
call fcn.004151c4
test al, al
jne 0x415247
xor eax, eax
jmp 0x415249
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407890
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415265
test al, 0x10
jne 0x415269
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x41a5ec
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 0x41a625
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407940
jmp 0x41a62e
mov eax, ebx
mov edx, esi
call fcn.00407804
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41a638
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 0x41a65a
movzx eax, word [esp]
jmp 0x41a65c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41adec
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 0x41af11
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041abfc
mov esi, eax
mov eax, dword [0x5cd278]
cmp byte [eax], 0
je 0x41aeb9
mov eax, dword [0x5ccc78]
call fcn.00404d0c
call fcn.0040461c
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 [0x41adc4]
call fcn.00409294
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 0x41af2c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41aef5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5ccbac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d0c40]
call fcn.0040949c
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 0x41af18
lea eax, [ebp - 4]
mov edx, dword [0x41adc4]
call fcn.004093b4
ret

Function at 0x41c0fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41c1d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407858
lea eax, [ebp - 4]
call fcn.00408258
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407890
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41c1bc
mov eax, ebx
call fcn.004044b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41c1b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407890
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41c19f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41c1e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41c19f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c1bc
mov eax, dword [ebp - 0x10]
call fcn.004044d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c1d9
lea eax, [ebp - 4]
call fcn.004077f4
ret
Function at 0x41d48b
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.00406ea0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41d4ae
mov eax, edi
add eax, eax
call fcn.004044b4
mov esi, eax
jmp 0x41d4b0
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41d4e9
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 0x41d4d3
mov eax, esp
cmp esi, eax
je 0x41d4f6
mov eax, esi
call fcn.004044d0
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 0x41d530
cmp bl, 0
je 0x41d52c
cmp bl, 0x41
jl 0x41d527
cmp bl, 0x5a
jg 0x41d527
or bl, 0x20
xor al, bl
inc esi
jmp 0x41d50b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41d470

Function at 0x447480
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44751e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4474e2
cmp byte [ebx + 0x10], 0
jne 0x4474e2
cmp byte [ebx + 0x3c], 0
jne 0x4474e2
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 0x447503
lea edx, [ebp - 4]
mov eax, dword [0x5cd1ac]
call fcn.0040ad80
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x437ca8]
call fcn.0041af64
call fcn.004062e8
jmp 0x447503
lea edx, [ebp - 8]
mov eax, dword [0x5cd1ac]
call fcn.0040ad80
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x437ca8]
call fcn.0041af64
call fcn.004062e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447525
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077fc
ret

Function at 0x447d9c
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 0x447dea
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.00447404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x447e03
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x447e0c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00447404
dec esi
jne 0x447e2e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret