joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ce88
cmp edx, dword [eax]
je 0x4079df
add eax, 8
inc ecx
cmp eax, 0x41cf18
jl 0x4079d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ce88]
jne 0x407b0d
mov eax, dword [0x41fb98]
cmp eax, 1
je 0x407ae7
test eax, eax
jne 0x407a10
cmp dword [0x41ca74], 1
je 0x407ae7
cmp edx, 0xfc
je 0x407b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407c40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418dcc
push edi
call fcn.00409af0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407c40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407c50
lea eax, [ebp - 0xa0]
push 0x418dac
push eax
call fcn.00407c50
push dword [esi + 0x41ce8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407c50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409a59
add esp, 0x2c
pop edi
jmp 0x407b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x41ce8c]
push 0
push eax
push dword [esi]
call fcn.00407d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40dc10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406000
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40dcdb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40dcdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40dc8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40dc99
or bh, 8
and edi, 0x8000000
je 0x40dcb4
mov eax, dword [0x42133c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40dcdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40e0db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40e0ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40e11a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4127d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41281a
call fcn.004153c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41281a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412811
xor eax, eax
jmp 0x412822
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00412828
pop edi
pop esi
pop ebx
ret 4

Function at 0x415b78
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x415ba6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415bc4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415ade
jmp 0x415bc4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415bc4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415ade
test edi, edi
mov eax, edi
jne 0x415bae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x43b338
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x2b
mov byte [esi], 0x52
mov byte [esi + 1], 0x43
mov byte [esi + 2], 0x36
mov byte [esi + 3], bl
mov dword [esi + 4], 0xb8
mov dword [esi + 8], 0xb7e15163
lea eax, [esi + 0xc]
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x43b368
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x84
mov eax, dword [ebp - 4]
push 3
lea edi, [esi + eax*4 + 8]
mov eax, dword [ebp + 0xc]
add eax, ebx
add eax, dword [edi]
push eax
call fcn.0043b4e2
mov ecx, dword [ebp - 8]
mov dword [edi], eax
mov ebx, eax
mov eax, dword [ebp + 8]
lea edi, [eax + ecx*4]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + ebx]
push ecx
mov ecx, dword [edi]
add ecx, eax
add ecx, ebx
push ecx
call fcn.0043b4e2
mov dword [edi], eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push 0x2c
inc eax
pop ecx
cdq
idiv ecx
mov eax, dword [ebp - 8]
push 4
inc eax
pop ecx
mov dword [ebp - 4], edx
cdq
idiv ecx
dec dword [ebp - 0xc]
mov dword [ebp - 8], edx
jne 0x43b389
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43bb06
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xc8
push esi
call fcn.0043baa0
mov bl, al
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x49
push dword [esi + 0x15]
mov byte [ebp - 0xf], 0xc2
mov byte [ebp - 0xe], bl
call dword [esi + 0xd]
test eax, eax
je 0x43bb3b
push 0x28
jmp 0x43bb81
lea eax, [ebp - 8]
push eax
push dword [esi + 0x15]
call dword [esi + 0x11]
test eax, eax
jne 0x43bb7f
cmp byte [ebp - 8], bl
jne 0x43bb7f
push edi
push 1
pop eax
push 7
pop edi
mov cl, byte [ebp + eax - 8]
mov edx, dword [esi + 5]
add cl, bl
xor cl, byte [ebp + eax - 9]
inc eax
dec edi
mov byte [edx + eax - 2], cl
jne 0x43bb55
mov al, byte [ebp - 1]
mov byte [ebp + 0xb], al
lea eax, [ebp - 8]
push eax
push dword [esi + 0x15]
call dword [esi + 0x11]
test eax, eax
pop edi
je 0x43bb84
push 0x5a
pop eax
jmp 0x43bb94
mov al, byte [ebp - 8]
mov ecx, dword [esi + 5]
add al, bl
xor al, byte [ebp + 0xb]
mov byte [ecx + 7], al
xor eax, eax
pop esi
pop ebx
leave
ret 4

Function at 0x43bb9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xc8
push esi
call fcn.0043baa0
mov bl, al
lea eax, [ebp - 8]
push eax
mov byte [ebp - 8], 0x53
push dword [esi + 0x15]
mov byte [ebp - 7], 0x39
mov byte [ebp - 6], bl
call dword [esi + 0xd]
test eax, eax
je 0x43bbcf
push 0x28
jmp 0x43bbe4
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x15]
call dword [esi + 0x11]
test eax, eax
jne 0x43bbe2
cmp byte [ebp - 0x10], bl
je 0x43bbe7
push 0x5a
pop eax
jmp 0x43bc06
push edi
push 1
pop eax
push 4
pop edi
mov edx, dword [esi + 5]
mov cl, bl
add cl, byte [ebp + eax - 0x10]
xor cl, byte [ebp + eax - 0x11]
inc eax
dec edi
mov byte [edx + eax - 2], cl
jne 0x43bbee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43bc5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xc8
push esi
call fcn.0043baa0
mov bl, al
lea eax, [ebp - 8]
push eax
mov byte [ebp - 8], 0x19
push dword [esi + 0x15]
mov byte [ebp - 7], 0xf5
mov byte [ebp - 6], bl
call dword [esi + 0xd]
test eax, eax
je 0x43bc93
push 0x28
jmp 0x43bca8
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x15]
call dword [esi + 0x11]
test eax, eax
jne 0x43bca6
cmp byte [ebp - 0x10], bl
je 0x43bcab
push 0x5a
pop eax
jmp 0x43bcca
push edi
push 1
pop eax
push 4
pop edi
mov edx, dword [esi + 5]
mov cl, bl
add cl, byte [ebp + eax - 0x10]
xor cl, byte [ebp + eax - 0x11]
inc eax
dec edi
mov byte [edx + eax - 2], cl
jne 0x43bcb2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43ef18
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x2b
mov byte [esi], 0x52
mov byte [esi + 1], 0x43
mov byte [esi + 2], 0x36
mov byte [esi + 3], bl
mov dword [esi + 4], 0xb8
mov dword [esi + 8], 0xb7e15163
lea eax, [esi + 0xc]
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x43ef48
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x84
mov eax, dword [ebp - 4]
push 3
lea edi, [esi + eax*4 + 8]
mov eax, dword [ebp + 0xc]
add eax, ebx
add eax, dword [edi]
push eax
call fcn.0043f0c2
mov ecx, dword [ebp - 8]
mov dword [edi], eax
mov ebx, eax
mov eax, dword [ebp + 8]
lea edi, [eax + ecx*4]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + ebx]
push ecx
mov ecx, dword [edi]
add ecx, eax
add ecx, ebx
push ecx
call fcn.0043f0c2
mov dword [edi], eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push 0x2c
inc eax
pop ecx
cdq
idiv ecx
mov eax, dword [ebp - 8]
push 4
inc eax
pop ecx
mov dword [ebp - 4], edx
cdq
idiv ecx
dec dword [ebp - 0xc]
mov dword [ebp - 8], edx
jne 0x43ef69
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4495f9
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x52
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], 0x43
mov eax, dword [ebp + 0xc]
mov byte [eax + 2], 0x36
mov eax, dword [ebp + 0xc]
mov byte [eax + 3], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 0xb8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0xb7e15163
mov dword [ebp - 0x18], 1
jmp 0x44964d
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x2b
jg 0x449675
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 4]
sub eax, 0x61c88647
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4 + 8], eax
jmp 0x44964a
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x2c
jg 0x4496a0
mov eax, 0x2c
lea eax, [eax + eax*2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
jmp 0x4496b5
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
jl 0x449746
push 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 8]
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
push eax
call fcn.00449a43
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
push eax
call fcn.00449a43
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, 0x2c
inc eax
cdq
idiv ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
inc eax
cdq
idiv dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
jmp 0x4496b2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403158
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d6c
test esi, esi
jne 0x40318e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e5c
jmp 0x4031ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040305c
mov edi, eax
test esi, esi
je 0x4031ac
cmp dword [ebx], 0
je 0x4031ac
dec esi
jmp 0x403195
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403dd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403db8
xor eax, eax
push ebp
push 0x403db1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403df4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403db8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x490020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404bec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49304c], 0
je 0x404c4d
cmp word [0x493220], 0xd7b2
jne 0x404c15
cmp dword [0x493228], 0
jbe 0x404c15
mov eax, 0x49321c
call dword [0x493238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404c74
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49002c], 0
jne 0x404c69
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40643b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40643b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406604
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064c4
xor eax, eax
push ebp
push 0x4064bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004061f4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406624
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4065de
cmp byte [ebp - 0xd], 0
jne 0x40650b
cmp byte [ebp - 0x12], 0
je 0x4065de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406524
dec ebx
cmp byte [ebx], 0x2e
je 0x406533
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406523
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4065de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406570
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4065de
cmp byte [ebp - 0xd], 0
je 0x4065de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4065de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408e9c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408e9c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408e4f
test edx, 3
jne 0x408e3e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408e49
jmp 0x408e4f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408e4f
cmp dword [ecx - 8], 1
je 0x408e59
mov edx, ebx
or edx, 3
call fcn.004054b8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408e6b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404d6c

Function at 0x408ea8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408f38
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408f38
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408eeb
test edx, 3
jne 0x408eda
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408ee5
jmp 0x408eeb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408eeb
cmp dword [ecx - 8], 1
je 0x408ef5
mov edx, ebx
or edx, 3
call fcn.004054b8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408f07
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404d6c

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405230
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4097ed
test al, 0x10
je 0x4097f1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c35c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c395
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e5c
jmp 0x40c39e
mov eax, ebx
mov edx, esi
call fcn.00404dc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c3a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3ca
movzx eax, byte [esp]
jmp 0x40c3cc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret