joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d269
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d280
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d282
add eax, eax
dec edx
test edx, edx
jg 0x41d273
mov dword [ecx*4 + 0x453bd8], eax
inc ecx
cmp ecx, 0x100
jb 0x41d26b
ret
Function at 0x42c33b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42c349
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42c385
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42c363
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42c385
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040e0e7
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x42f9c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42fb13
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42fa03
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42fa08
inc esi
cmp esi, dword [ebp - 8]
jb 0x42f9fa
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42faf4
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42fa87
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42fa34
cmp cl, 0xff
jne 0x42fab6
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42fac7
movzx edi, byte [edx + 0x4459e0]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42fa77
cmp bl, 0xff
jne 0x42fac4
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42fa4f
dec ecx
shl edx, cl
and edx, 7
je 0x42fa21
movzx ecx, byte [edx + 0x4459e0]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4459d8], 0
mov cl, byte [ebx + 4]
je 0x42fab3
test cl, cl
je 0x42fab3
cmp cl, 0xff
jne 0x42fa21
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42f9f5
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42f9f5
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x42fcca
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x42ffb1
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x455fd8], al
inc eax
cmp eax, 0x100
jb 0x42ffb9
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0xff
movzx ebx, byte [edi + str.cw]
mov eax, ebx
and al, 0x80
neg al
lea ecx, [ebx + ebx]
sbb eax, eax
and eax, 0x1b
xor eax, ecx
and eax, esi
mov ecx, eax
mov edx, ecx
xor edx, ebx
mov dword [ebp - 8], edx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, edi
shl eax, 2
mov dword [eax + 0x453fd8], edx
mov edx, ebx
shl edx, 8
mov edi, edx
or edi, ebx
or edx, ecx
shl edi, 8
or edi, ecx
shl edx, 8
or edx, dword [ebp - 8]
shl edi, 8
or edi, dword [ebp - 8]
shl ecx, 8
or ecx, dword [ebp - 8]
shl edx, 8
shl ecx, 8
mov dword [eax + 0x4543d8], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x4547d8], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x454bd8], ecx
movzx ecx, byte [edi + 0x455fd8]
mov edx, ecx
and dl, 0x80
neg dl
lea ebx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
sbb edx, edx
and edx, 0x1b
xor edx, ebx
and edx, esi
mov ebx, edx
and bl, 0x80
neg bl
mov dword [ebp - 0x10], edx
sbb ebx, ebx
and ebx, 0x1b
add edx, edx
xor ebx, edx
and ebx, esi
mov edx, ebx
and bl, 0x80
neg bl
mov dword [ebp - 0x14], edx
sbb ebx, ebx
add edx, edx
and ebx, 0x1b
xor ebx, edx
and ebx, esi
mov edx, ebx
xor edx, ecx
mov dword [ebp - 8], edx
mov edx, ebx
xor edx, dword [ebp - 0x10]
xor edx, ecx
mov dword [ebp - 0xc], edx
shl edx, 8
mov ecx, ebx
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
or edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 0x454fd8], edx
mov edx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, dword [ebp - 0xc]
mov dword [eax + 0x4553d8], edx
mov edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl ecx, 8
or ecx, dword [ebp - 0xc]
shl edx, 8
or edx, dword [ebp - 0xc]
shl ecx, 8
or ecx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 4]
shl ecx, 8
or ecx, dword [ebp - 8]
inc edi
cmp edi, 0x100
mov dword [eax + 0x4557d8], edx
mov dword [eax + 0x455bd8], ecx
mov dword [ebp - 0x10], edi
jb 0x42ffdb
mov dword [0x4573c8], 0x430b26
mov dword [0x4573d0], 0x430b7f
mov dword [0x4573cc], 0x430c02
call fcn.0040feb9
test eax, eax
pop edi
pop esi
pop ebx
je 0x43018b
mov dword [0x4573c8], 0x43180a
mov dword [0x4573d0], 0x43180f
mov dword [0x4573cc], 0x431814
leave
ret
Function at 0x43018d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x4301c4
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x4301b7
cmp esi, edi
jae 0x430294
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x430234
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x450420]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x43027c
cmp dword [ebp + 8], 6
jbe 0x43027c
cmp edx, 4
jne 0x43027c
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4301d6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x431759
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.004143df
test al, al
je 0x431770
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043283e
test eax, eax
pop ecx
je 0x43178b
push esi
push 0x43170c
mov esi, eax
call fcn.0040ed23
jmp 0x43178d
xor eax, eax
push ebx
mov ebx, eax
call fcn.0040bf9a
mov eax, edi
call fcn.004073cb
pop ebx
pop edi
pop esi
jmp fcn.0040edce

Function at 0x4327bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f4e8]
jne 0x4327c5
repz ret
jmp fcn.004350f8

Function at 0x436190
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44f500]
je 0x4361ab
inc edi
cmp edi, 0x17
jb 0x43619c
cmp edi, 0x17
jae 0x43632b
push ebp
push 3
call fcn.0043be3e
cmp eax, 1
pop ecx
je 0x4362f7
push 3
call fcn.0043be3e
test eax, eax
pop ecx
jne 0x4361df
cmp dword [0x44f0e0], 1
je 0x4362f7
cmp ebx, 0xfc
je 0x43632a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4533b8
push ebp
call fcn.00438eca
add esp, 0xc
test eax, eax
je 0x436215
push esi
push esi
push esi
push esi
push esi
call fcn.004328b2
add esp, 0x14
push 0x104
mov esi, 0x4533d1
push esi
push 0
mov byte [0x4534d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436259
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00438eca
add esp, 0xc
test eax, eax
je 0x436259
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004328b2
add esp, 0x14
push esi
call fcn.00432730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43629e
push esi
call fcn.00432730
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4536cc
push 0x442a74
sub ecx, eax
push ecx
push eax
call fcn.00436d36
add esp, 0x14
test eax, eax
je 0x43629e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004328b2
add esp, 0x14
jmp 0x4362a0
xor esi, esi
push 0x442a70
push ebx
push ebp
call fcn.0043bdcd
add esp, 0xc
test eax, eax
je 0x4362c0
push esi
push esi
push esi
push esi
push esi
call fcn.004328b2
add esp, 0x14
push dword [edi*8 + 0x44f504]
push ebx
push ebp
call fcn.0043bdcd
add esp, 0xc
test eax, eax
je 0x4362e2
push esi
push esi
push esi
push esi
push esi
call fcn.004328b2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043bc10
add esp, 0xc
jmp 0x43632a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43632a
cmp ebp, 0xffffffff
je 0x43632a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44f504]
push dword [esi]
call fcn.00432730
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43bc10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043541c
xor ebx, ebx
cmp dword [0x453af4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43bce6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43bdc6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43bdc6
push eax
call fcn.004353ae
mov dword [esp], 0x4432f0
push edi
mov dword [0x453af4], eax
call esi
push eax
call fcn.004353ae
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453af8], eax
call esi
push eax
call fcn.004353ae
mov dword [0x453afc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00435c2a
test eax, eax
pop ecx
pop ecx
je 0x43bcb4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004328b2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43bce6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004353ae
cmp eax, ebx
pop ecx
mov dword [0x453b04], eax
je 0x43bce6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004353ae
pop ecx
mov dword [0x453b00], eax
mov eax, dword [0x453b00]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43bd6b
cmp dword [0x453b04], ecx
je 0x43bd6b
push eax
call fcn.00435425
push dword [0x453b04]
mov esi, eax
call fcn.00435425
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43bd6b
cmp edi, ebx
je 0x43bd6b
call esi
cmp eax, ebx
je 0x43bd38
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bd38
test byte [ebp - 0x18], 1
jne 0x43bd6b
lea eax, [ebp - 0x10]
push eax
call fcn.00435c61
test eax, eax
pop ecx
je 0x43bd53
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004328b2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43bd62
or dword [ebp + 0x10], 0x200000
jmp 0x43bda6
or dword [ebp + 0x10], 0x40000
jmp 0x43bda6
mov eax, dword [0x453af8]
cmp eax, dword [ebp - 8]
je 0x43bda6
push eax
call fcn.00435425
cmp eax, ebx
pop ecx
je 0x43bda6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43bda6
mov eax, dword [0x453afc]
cmp eax, dword [ebp - 8]
je 0x43bda6
push eax
call fcn.00435425
cmp eax, ebx
pop ecx
je 0x43bda6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453af4]
call fcn.00435425
cmp eax, ebx
pop ecx
je 0x43bdc6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bdc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5003972
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x50039b2
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x5003990
and esi, 3
xor eax, eax
dec esi
je 0x50039ce
dec esi
je 0x50039c7
dec esi
jne 0x50039d3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

Function at 0x42e3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.042e378f
jae 0x42e370e
xor ecx, ecx
call fcn.042e378f
jae 0x42e373d
xor eax, eax
call fcn.042e378f
jae 0x42e374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.042e378f
adc al, al
jae 0x42e372f
jne 0x42e3779
stosb byte es:[edi], al
jmp 0x42e3711
call fcn.042e379b
sub ecx, ebx
jne 0x42e3756
call fcn.042e3799
jmp 0x42e3775
lodsb al, byte [esi]
shr eax, 1
je 0x42e3783
adc ecx, ecx
jmp 0x42e3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.042e3799
cmp eax, 0x7d00
jae 0x42e3772
cmp ah, 5
jae 0x42e3773
cmp eax, 0x7f
ja 0x42e3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x42e3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043a8
test esi, esi
jne 0x402e23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404498
jmp 0x402e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c88
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034a8
Capabilities:
Query or enumerate registry value

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

Function at 0x404224
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x451048], 0
je 0x404285
cmp word [0x45121c], 0xd7b2
jne 0x40424d
cmp dword [0x451224], 0
jbe 0x40424d
mov eax, 0x451218
call dword [0x451234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44f06c
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 0x4042ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44f030], 0
jne 0x4042a1
push 0
push 0x44f064
push 0x44f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405fcc
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 0x406032
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.00404618
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040306c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40601c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406039
lea eax, [ebp - 0x10]
call fcn.004043a8
ret

Function at 0x40b05c
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 0x40b095
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404498
jmp 0x40b09e
mov eax, ebx
mov edx, esi
call fcn.004043fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b760
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5c8
mov eax, dword [0x44ffa4]
cmp byte [eax], 0
je 0x40b7dc
mov eax, dword [0x44fddc]
call fcn.00402ed8
call fcn.00402bb4
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.0040884c
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 0x40b824
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b812
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44fd90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x451664]
call fcn.00405438
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 0x40c080
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 0x40c156
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404440
lea eax, [ebp - 8]
call fcn.004048b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404868
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c140
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c139
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.00404868
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c123
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c168
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c123
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 0x40c140
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c15d
lea eax, [ebp - 8]
call fcn.004043a8
ret

Function at 0x40c630
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 0x40c694
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.00404618
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408394
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c69b
lea eax, [ebp - 0xc]
call fcn.004043a8
ret
Function at 0x41a910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x451884
cmp dword [esi], 0
jne 0x41a9b6
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x451880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x44f3ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a8e8
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a908
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041a908
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41a97d
mov eax, dword [ebp - 8]
mov dword [0x451880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41bb8c
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 0x41bb92
ret

Function at 0x41e004
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e055
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e03c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e02c
jmp 0x41e055
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e03d
pop ebx
mov esp, ebp
pop ebp
ret