joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f878
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41f9fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403dfc
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x41f9e2
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x41f9e2
xor edx, edx
push ebp
push 0x41f9db
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x41f9a8
push 0
mov eax, ebx
call fcn.004040d0
push eax
mov eax, ebx
call fcn.004042c8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x41f9a8
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x41f9a8
mov eax, dword [ebp - 0x10]
call fcn.00402534
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x41f9a8
mov edi, dword [ebp - 0x10]
test edi, edi
jbe 0x41f9a8
push dword [esi]
lea eax, [ebp - 0x14]
xor edx, edx
mov dl, byte [ebx]
shr edx, 4
and edx, 0xf
mov dl, byte [edx + 0x4779cc]
call fcn.00403fdc
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov dl, byte [ebx]
and dl, 0xf
and edx, 0xff
mov dl, byte [edx + 0x4779cc]
call fcn.00403fdc
push dword [ebp - 0x18]
mov eax, esi
mov edx, 3
call fcn.00404190
inc ebx
dec edi
jne 0x41f95f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f9e2
cmp dword [ebp - 0xc], 0
je 0x41f9c6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00402554
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa04
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403e20
ret
Function at 0x4205c8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov esi, dword [eax]
mov edi, edx
mov edx, ecx
test dx, dx
jbe 0x4205f9
mov ecx, esi
xor cl, byte [edi]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4779f0]
shr esi, 8
and esi, 0xffffff
xor ecx, esi
mov esi, ecx
inc edi
dec dx
jne 0x4205d5
mov dword [eax], esi
pop edi
pop esi
ret
Function at 0x436a54
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov ebx, 0x478690
test edx, edx
jne 0x436a64
xor eax, eax
pop esi
pop ebx
ret
xor eax, 0xffffffff
cmp ecx, 8
jb 0x436b2c
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
sub ecx, 8
cmp ecx, 8
jae 0x436a70
test ecx, ecx
je 0x436b4b
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
mov esi, dword [ebx + esi*4]
shr eax, 8
xor esi, eax
mov eax, esi
inc edx
dec ecx
test ecx, ecx
jne 0x436b30
xor eax, 0xffffffff
pop esi
pop ebx
ret
Function at 0x43a3f8
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042b8
mov eax, dword [ebp - 8]
call fcn.004042b8
xor eax, eax
push ebp
push 0x43a62a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00403dfc
mov eax, dword [ebp - 4]
call fcn.004040d0
test eax, eax
je 0x43a60f
mov eax, dword [ebp - 8]
call fcn.004040d0
test eax, eax
je 0x43a60f
xor eax, eax
push ebp
push 0x43a5fd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptAcquireContextA_1
test eax, eax
jne 0x43a47b
call fcn.00416c0c
xor eax, eax
push ebp
push 0x43a5ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x1c
call fcn.00402d9c
mov byte [ebp - 0x3c], 8
mov byte [ebp - 0x3b], 2
mov dword [ebp - 0x38], 0x660e
mov dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 8]
call fcn.004040d0
cmp eax, 0x10
jge 0x43a4c7
mov eax, dword [ebp - 8]
call fcn.004040d0
mov ebx, eax
jmp 0x43a4cc
mov ebx, 0x10
lea eax, [ebp - 8]
call fcn.00404320
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.004026d0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptImportKey
test eax, eax
jne 0x43a4fe
call fcn.00416c0c
xor eax, eax
push ebp
push 0x43a5cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 1
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSetKeyParam
test eax, eax
jne 0x43a52d
call fcn.00416c0c
mov dword [ebp - 0x20], 1
push 0
lea eax, [ebp - 0x20]
push eax
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSetKeyParam
test eax, eax
jne 0x43a54e
call fcn.00416c0c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00403e50
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004040d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004040d0
inc eax
mov edx, 0x10
call fcn.0043a3f0
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004043f8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004040d0
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404320
push eax
push 0
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptEncrypt
test eax, eax
jne 0x43a5b5
call fcn.00416c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a5d3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptDestroyKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a631
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e20
ret
Function at 0x43a638
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042b8
mov eax, dword [ebp - 8]
call fcn.004042b8
xor eax, eax
push ebp
push 0x43a84b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00403dfc
mov eax, dword [ebp - 4]
call fcn.004040d0
test eax, eax
je 0x43a830
mov eax, dword [ebp - 8]
call fcn.004040d0
test eax, eax
je 0x43a830
xor eax, eax
push ebp
push 0x43a81e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptAcquireContextA_1
test eax, eax
jne 0x43a6bb
call fcn.00416c0c
xor eax, eax
push ebp
push 0x43a80d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x1c
call fcn.00402d9c
mov byte [ebp - 0x3c], 8
mov byte [ebp - 0x3b], 2
mov dword [ebp - 0x38], 0x660e
mov dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 8]
call fcn.004040d0
cmp eax, 0x10
jge 0x43a707
mov eax, dword [ebp - 8]
call fcn.004040d0
mov ebx, eax
jmp 0x43a70c
mov ebx, 0x10
lea eax, [ebp - 8]
call fcn.00404320
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.004026d0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptImportKey
test eax, eax
jne 0x43a73e
call fcn.00416c0c
xor eax, eax
push ebp
push 0x43a7ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 1
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSetKeyParam
test eax, eax
jne 0x43a76d
call fcn.00416c0c
mov dword [ebp - 0x20], 1
push 0
lea eax, [ebp - 0x20]
push eax
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSetKeyParam
test eax, eax
jne 0x43a78e
call fcn.00416c0c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00403e50
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004040d0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404320
push eax
push 0
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptDecrypt
test eax, eax
jne 0x43a7cb
call fcn.00416c0c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004043f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a7f4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptDestroyKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a852
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e20
ret
Function at 0x43d474
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0x2001f
push 0
push 0x43d518
push 0
mov eax, ebx
call fcn.004042c8
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x43d4e4
mov eax, esi
call fcn.004040d0
inc eax
push eax
mov eax, esi
call fcn.004042c8
push eax
push 1
push 0
mov eax, edi
call fcn.004042c8
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x43d510
xor eax, eax
mov dword [esp + 8], eax
mov byte [esp + 0xc], 5
lea eax, [esp + 8]
push eax
push 0
mov ecx, 0x43d524
mov dl, 1
mov eax, dword [0x415320]
call fcn.004160a4
call fcn.00403888
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x34], eax
call fcn.00401298
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5c8]
add edi, 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0xae374c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401328
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae374c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xae3748]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0xae3748], eax
mov eax, dword [0xae36a0]
cmove eax, dword [ebp - 0x24]
mov dword [0xae36a0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0xae3744], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4012f0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d6b9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004051e5
mov dword [ebp - 0x14], eax
cmp dword [0x43ef00], esi
jne 0x40d7ac
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d739
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d88c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d88c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d88c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ef00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ef04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ef08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ef10], eax
test eax, eax
je 0x40d7a9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ef0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d7d1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d7c4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d7e6
push 4
pop eax
jmp 0x40d88e
cmp dword [ebp - 0x14], esi
je 0x40d7e6
push dword [0x43ef00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d7cb
mov eax, dword [0x43ef0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d844
cmp dword [0x43ef10], edi
je 0x40d844
push eax
call ebx
push dword [0x43ef10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d844
test eax, eax
je 0x40d844
call ecx
test eax, eax
je 0x40d839
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d839
test byte [ebp - 8], 1
jne 0x40d844
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d874
mov eax, dword [0x43ef04]
cmp eax, edi
je 0x40d871
push eax
call ebx
test eax, eax
je 0x40d871
call eax
mov esi, eax
test esi, esi
je 0x40d871
mov eax, dword [0x43ef08]
cmp eax, edi
je 0x40d871
push eax
call ebx
test eax, eax
je 0x40d871
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ef00]
call ebx
test eax, eax
je 0x40d88c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d88e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044f2
mov esp, ebp
pop ebp
ret
Function at 0x402af8
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.0040426c
test esi, esi
jne 0x402b2e
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.0040435c
jmp 0x402b4c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a0c
mov edi, eax
test esi, esi
je 0x402b4c
cmp dword [ebx], 0
je 0x402b4c
dec esi
jmp 0x402b35
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40328c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403324
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403304
xor eax, eax
push ebp
push 0x4032fd
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 0x403340
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 0x403304
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49d04c], 0
je 0x404131
cmp word [0x49d220], 0xd7b2
jne 0x4040f9
cmp dword [0x49d228], 0
jbe 0x4040f9
mov eax, 0x49d21c
call dword [0x49d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b06c
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 0x404158
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b030], 0
jne 0x40414d
push 0
push 0x49b064
push 0x49b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406530
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406596
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406580
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40659d
lea eax, [ebp - 0x10]
call fcn.0040426c
ret

Function at 0x40bed8
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 0x40bf11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040435c
jmp 0x40bf1a
mov eax, ebx
mov edx, esi
call fcn.004042c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bf24
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 0x40bf45
mov al, byte [esp]
jmp 0x40bf47
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c5cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c444
mov eax, dword [0x49cbdc]
cmp byte [eax], 0
je 0x40c648
mov eax, dword [0x49c8d4]
call fcn.00402c14
call fcn.00402938
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004090f4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c67e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49c860]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49d668]
call fcn.00405a28
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cf5c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d032
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404304
lea eax, [ebp - 8]
call fcn.0040477c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040472c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d01c
mov eax, ebx
call fcn.004027d0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d015
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 - 8]
call fcn.0040472c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cfff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d044
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cfff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d01c
mov eax, dword [ebp - 0x10]
call fcn.004027f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d039
lea eax, [ebp - 8]
call fcn.0040426c
ret

Function at 0x40d53c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d5a0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408be8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5a7
lea eax, [ebp - 0xc]
call fcn.0040426c
ret

Function at 0x4248cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49d888
cmp dword [edi], 0
jne 0x424948
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49d884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b64c
mov ecx, 2
call fcn.004029cc
mov edx, 0x4248a4
lea eax, [esi + 5]
call fcn.004248c4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004248c4
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 0x42491d
mov dword [0x49d884], 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

Function at 0x425e8c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425e92
ret