joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5930
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x511760]
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.004ae84f
mov dword [ebp - 0x14], eax
cmp dword [0x518f7c], esi
jne 0x4c5a23
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c59b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c5b03
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c5b03
push 0x501338
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c5b03
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x518f7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x518f80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x518f84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x518f8c], eax
test eax, eax
je 0x4c5a20
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x518f88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c5a48
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c5a3b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c5a5d
push 4
pop eax
jmp 0x4c5b05
cmp dword [ebp - 0x14], esi
je 0x4c5a5d
push dword [0x518f7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c5a42
mov eax, dword [0x518f88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c5abb
cmp dword [0x518f8c], edi
je 0x4c5abb
push eax
call ebx
push dword [0x518f8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c5abb
test eax, eax
je 0x4c5abb
call ecx
test eax, eax
je 0x4c5ab0
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 0x4c5ab0
test byte [ebp - 8], 1
jne 0x4c5abb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c5aeb
mov eax, dword [0x518f80]
cmp eax, edi
je 0x4c5ae8
push eax
call ebx
test eax, eax
je 0x4c5ae8
call eax
mov esi, eax
test esi, esi
je 0x4c5ae8
mov eax, dword [0x518f84]
cmp eax, edi
je 0x4c5ae8
push eax
call ebx
test eax, eax
je 0x4c5ae8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x518f7c]
call ebx
test eax, eax
je 0x4c5b03
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c5b05
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004acdd8
mov esp, ebp
pop ebp
ret
Function at 0x4c9890
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.004cfa50
mov esi, eax
add esp, 0xc
mov dword [ebp - 4], esi
test esi, esi
je 0x4c98e8
push esi
call fcn.004cab70
push 0
push esi
call fcn.004d6110
mov esi, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x4c98f0
push dword [esi + 0xac]
push esi
call fcn.004cfb20
push esi
mov dword [esi + 0xac], 0
call fcn.004cfac0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.004cfc40
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004cf9b0
mov edx, dword [ebp + 8]
mov ecx, str.1.2.1
mov edi, edx
add esp, 0x20
sub edi, ecx
lea ecx, [ecx]
mov al, byte [edi + ecx]
cmp al, byte [ecx]
je 0x4c992e
or dword [esi + 0x6c], 0x20000
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9920
test dword [esi + 0x6c], 0x20000
je 0x4c99b9
test edx, edx
je 0x4c9987
mov cl, byte [edx]
cmp cl, byte [str.1.2.1]
jne 0x4c9967
cmp cl, 0x31
jne 0x4c995c
mov al, byte [edx + 2]
cmp al, byte [0x5015ea]
jne 0x4c9967
cmp cl, 0x30
jne 0x4c99b9
cmp byte [edx + 2], 0x39
jge 0x4c99b9
test edx, edx
je 0x4c9987
push edx
lea eax, [ebp - 0x54]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.004a8ad0
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.004cf9d0
add esp, 0x14
push str.1.2.1
lea eax, [ebp - 0x54]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.004a8ad0
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.004cf9d0
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], 0
call fcn.004cf860
add esp, 0x1c
push 0x2000
push esi
mov dword [esi + 0xb0], 0x2000
call fcn.004cfb80
mov dword [esi + 0xac], eax
lea eax, [esi + 0x74]
push 0x38
mov dword [esi + 0x94], fcn.004cac60
push str.1.1.4
mov dword [esi + 0x98], fcn.004cacc0
push eax
mov dword [esi + 0x9c], esi
call fcn.004d4000
add eax, 6
add esp, 0x14
cmp eax, 6
ja case.0x4c9a09.5
jmp dword [eax*4 + 0x4c9a5c]
push str.zlib_memory_error
jmp 0x4c9a23
push str.zlib_version_error
jmp 0x4c9a23
push str.Unknown_zlib_error
push esi
call fcn.004cf860
add esp, 8
mov ecx, dword [esi + 0xac]
push 0
mov dword [esi + 0x80], ecx
mov ecx, dword [esi + 0xb0]
push 0
push esi
mov dword [esi + 0x84], ecx
call fcn.004cf520
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cab30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x120
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
jae 0x4cab54
push eax
call fcn.004cfac0
push 2
call fcn.004cfa30
add esp, 8
mov dword [esi], eax
push 0x120
push 0
push eax
call fcn.004a4860
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x4ce220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 8]
mov byte [ebp + 0xb], al
cmp al, 3
je 0x4ce3e4
mov edx, dword [esi]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edx
test al, 2
je 0x4ce272
mov ebx, dword [ebp + 0x10]
movzx edx, byte [esi + 9]
mov ecx, edx
movzx eax, byte [ebx]
sub ecx, eax
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x18], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [ebx + 2]
sub edx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
lea ebx, [edi + 3]
mov edx, dword [ebp - 4]
jmp 0x4ce287
mov eax, dword [ebp + 0x10]
mov ebx, 1
movzx ecx, byte [esi + 9]
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x18], ecx
test byte [ebp + 0xb], 4
je 0x4ce29f
mov eax, dword [ebp + 0x10]
movzx ecx, byte [esi + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [ebp + ebx*4 - 0x18], ecx
inc ebx
xor eax, eax
test ebx, ebx
jle case.0x4ce2eb.3
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x18], 0
jg 0x4ce2c1
mov dword [ebp + eax*4 - 0x18], 0
jmp 0x4ce2c6
mov edi, 1
inc eax
cmp eax, ebx
jl 0x4ce2b0
test di, di
je case.0x4ce2eb.3
movzx eax, byte [esi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4ce2eb.3
movzx eax, byte [eax + 0x4ce400]
jmp dword [eax*4 + 0x4ce3ec]
mov edx, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
test edx, edx
je case.0x4ce2eb.3
mov al, byte [ecx]
lea ecx, [ecx + 1]
shr al, 1
and al, 0x55
mov byte [ecx - 1], al
dec edx
jne 0x4ce300
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov ebx, pe_nt_image_headers32
mov esi, dword [esi + 4]
mov eax, 0xf
mov edx, dword [ebp + 0xc]
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test esi, esi
je case.0x4ce2eb.3
lea ebx, [ebx]
mov al, byte [edx]
lea edx, [edx + 1]
shr al, cl
mov ecx, dword [ebp - 0x18]
and al, bl
mov byte [edx - 1], al
dec esi
jne 0x4ce340
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
xor edi, edi
imul edx, ebx
mov dword [ebp - 4], edx
test edx, edx
je case.0x4ce2eb.3
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ebx
mov cl, byte [ebp + edx*4 - 0x18]
shr byte [esi - 1], cl
cmp edi, dword [ebp - 4]
jb 0x4ce368
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
xor eax, eax
imul edx, ebx
mov dword [ebp + 8], esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
test edx, edx
je case.0x4ce2eb.3
mov ecx, 0x100
nop
xor edx, edx
lea edi, [esi + 1]
div ebx
movzx esi, byte [esi]
movzx eax, byte [edi]
imul si, cx
mov cx, word [ebp + edx*4 - 0x18]
mov edx, dword [ebp + 8]
add si, ax
shr si, cl
movzx ecx, si
mov esi, edi
mov eax, ecx
shr eax, 8
mov byte [edx], al
mov eax, dword [ebp - 8]
mov byte [esi], cl
inc eax
inc esi
mov dword [ebp - 8], eax
mov ecx, 0x100
mov dword [ebp + 8], esi
cmp eax, dword [ebp - 4]
jb 0x4ce3a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d4070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4d407e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4d4153
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
dec edi
jne 0x4d4096
pop edi
test esi, esi
je 0x4d4172
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x502898]
dec esi
jne 0x4d4157
not eax
pop esi
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4031d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41b008], 0x8088405
inc edx
mov dword [ebx + 0x41b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403804
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40389c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40387c
xor eax, eax
push ebp
push 0x403875
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 0x4038d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40387c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41b024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404700
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c04c], 0
je 0x404761
cmp word [0x41c328], 0xd7b2
jne 0x404729
cmp dword [0x41c330], 0
jbe 0x404729
mov eax, 0x41c324
call dword [0x41c340]
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 0x40478c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b030], 0
jne 0x40477d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406dec
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406dd8
add esp, 0x208
pop ebx
ret

Function at 0x40bd58
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 0x40bd91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004050f0
jmp 0x40bd9a
mov eax, ebx
mov edx, esi
call fcn.00404fb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c550
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 0x40c675
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040c364
mov esi, eax
mov eax, dword [0x41bd50]
cmp byte [eax], 0
je 0x40c61d
mov eax, dword [0x41bc64]
call fcn.0040326c
call fcn.0040305c
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 [0x40c52c]
call fcn.00405e40
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 0x40c690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c659
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41bc44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41eb48]
call fcn.00405ef8
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 0x40c67c
lea eax, [ebp - 4]
mov edx, dword [0x40c52c]
call fcn.00405e4c
ret
Function at 0x40df0f
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.00404ba8
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 0x40df32
mov eax, edi
add eax, eax
call fcn.00402ef4
mov esi, eax
jmp 0x40df34
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 0x40df6d
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 0x40df57
mov eax, esp
cmp esi, eax
je 0x40df7a
mov eax, esi
call fcn.00402f10
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 0x40dfb4
cmp bl, 0
je 0x40dfb0
cmp bl, 0x41
jl 0x40dfab
cmp bl, 0x5a
jg 0x40dfab
or bl, 0x20
xor al, bl
inc esi
jmp 0x40df8f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40def4

Function at 0x40f084
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f0ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040f018
mov eax, dword [ebp - 4]
call fcn.00405040
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0d1
lea eax, [ebp - 4]
call fcn.00404fa4
ret

Function at 0x40f2e8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f37f
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40f333
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.004050f0
jmp 0x40f369
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40f34c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405008
jmp 0x40f35f
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040f1a8
mov ebx, eax
test esi, esi
je 0x40f35f
dec esi
jmp 0x40f33a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f386
lea eax, [ebp - 4]
call fcn.00404fa4
ret

Function at 0x40f390
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00409084
add esp, 0x208
pop ebx
ret

Function at 0x40f3bc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00409084
add esp, 0x208
pop ebx
ret
Function at 0x40f520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40f658
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40f642
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40f57d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40f642
cmp dword [ebp - 0x14], 0
jne 0x40f594
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404fb4
mov bl, 1
jmp 0x40f642
cmp dword [ebp - 0x14], 0x70000000
jb 0x40f5a2
call fcn.0040c6bc
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.004050f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004057c8
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40f546
test eax, eax
jne 0x40f642
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40f5f0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40f642
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40f5f8
dec esi
test esi, esi
je 0x40f607
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40f5f7
cmp dword [ebp - 0x10], 7
jne 0x40f612
test esi, esi
je 0x40f612
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040521c
cmp dword [ebp - 0x10], 7
jne 0x40f635
test esi, esi
je 0x40f635
lea eax, [ebp - 4]
call fcn.004057c8
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404fb4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f65f
lea eax, [ebp - 4]
call fcn.00404fa4
ret

Function at 0x41009c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x420d9c
mov eax, esi
mov edx, 8
test al, 1
je 0x4100b8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4100ba
shr eax, 1
dec edx
jne 0x4100ab
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4100a4
pop esi
ret

Function at 0x4100d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x420d98], 0
jne 0x4100f3
call fcn.0041009c
push 1
push 0x420d98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x41011e
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x420d9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4100f9
mov eax, ebx
pop edi
pop esi
pop ebx
ret