joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4209b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x415015
lea edi, [esi - 0x14015]
push edi
jmp 0x4209ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4209d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4209c0
mov eax, 1
add ebx, ebx
jne 0x4209e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4209d8
jne 0x4209f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4209d8
xor ecx, ecx
sub eax, 3
jb 0x420a08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420a7a
mov ebp, eax
add ebx, ebx
jne 0x420a13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420a20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x420a44
inc ecx
add ebx, ebx
jne 0x420a30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x420a25
jne 0x420a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420a25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x420a64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x420a55
jmp 0x4209c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x420a64
add edi, ecx
jmp 0x4209c6
pop esi
mov edi, esi
mov ecx, 0x4cb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x420a82
cmp byte [edi], 6
jne 0x420a82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x420a87
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420aff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20e0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x420ab4
mov ecx, edi
jns 0x420ae3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20e14]
or eax, eax
je 0x420af9
mov dword [ebx], eax
add ebx, 4
jmp 0x420ad1
call dword [esi + 0x20e10]
mov ebp, dword [esi + 0x20e18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x420b33
sub esp, 0xffffff80
jmp 0x409460
Function at 0x1013a560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101403a0], 0
mov byte [0x101403a4], 0
mov esi, dword [0x10140398]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffff6be
mov dword [0x10140394], ecx
mov dword [0x1014039c], 0
mov dword [ebp - 0x20], eax
jmp 0x1013a5c6
mov dword [0x1014039c], 0
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1013a5f8
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10140398], 0x1057
mov eax, dword [0x1014039c]
add eax, 1
mov dword [0x1014039c], eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jl 0x1013a5c6
jmp 0x1013a5b5
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x101403a8], 0
mov dword [0x10140398], 0x526
mov edx, dword [0x101403a0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x28], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101403a8], edi
mov dword [0x10140398], 0x253a
mov eax, edi
cdq
idiv ecx
mov dword [0x101403a0], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov cl, byte [ecx + edi]
mov byte [0x101403a4], cl
mov dword [0x10140394], 0x179b
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x10140394]
add ecx, 0xffffe180
mov dword [0x10140394], ecx
mov cl, byte [0x101403a4]
mov edx, dword [0x101403a0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1014039c]
add edx, 1
mov dword [0x1014039c], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x1013a5f8
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013ab70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
mov dword [ebp - 8], 0
mov dword [0x10140394], 0x114c
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x10140398], 0x255
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1013ac1d
mov eax, dword [ebp - 0x18]
add esp, 0x30
pop esi
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
jne 0x1013abb1
xor eax, eax
mov dword [0x10140398], 0xb65
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
je 0x1013ac5e
jmp 0x1013abb1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dword [0x10140394], ecx
mov dword [0x10140398], 0x1c19
mov esi, dword [ebp - 0x10]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
je 0x1013abba
jmp 0x1013abb1
mov eax, dword [ebp - 0x14]
mov ecx, 0x17ef
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
je 0x1013abee
mov eax, 0x1b2b
mov ecx, dword [ebp - 0x2c]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
jl 0x1013ac1d
jmp 0x1013abee
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffdd9
mov dword [0x10140394], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x1013abb1
mov eax, dword [ebp - 0x28]
add eax, 0x1fb
mov dword [0x10140394], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x30], ecx
xor eax, eax
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x64
mov dword [ebp - 0x18], eax
jne 0x1013abb1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x34], ecx
xor eax, eax
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x6c
mov dword [ebp - 0x18], eax
jne 0x1013abb1
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
jne 0x1013abb1
mov dword [0x10140394], 0xff8
mov eax, 1
mov dword [ebp - 0x18], eax
jmp 0x1013abb1
Function at 0x1013ad10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x10140398]
add edx, 0xfffff095
mov dword [0x10140394], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1013a6e0
lea ecx, [0x1013b090]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x84], edx
mov dword [esp + 0x60], 0x11fe00
mov edx, dword [0x10140380]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10140384]
mov dword [esp + 0x70], edx
mov edx, dword [0x10140388]
mov dword [esp + 0x44], edx
mov edx, dword [0x1014038c]
mov dword [esp + 0x7c], edx
mov edx, dword [0x10140390]
mov dword [esp + 0x4c], edx
mov dword [0x10140398], 0x207b
mov dword [0x10140394], 0x202a
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1013adfe
lea eax, [esp + 0x38]
mov dword [0x10140394], 0x1bcd
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1013b410
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x1013ae69
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
je 0x1013ae2b
jmp 0x1013ae0d
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
je 0x1013ade4
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x10140398], 0x1067
mov dword [esp + 0x1c], eax
jmp 0x1013adfe
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov dword [0x10140398], 0x336
mov dword [0x10140394], 0xa55
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x40], eax
call fcn.1013ab70
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x1013adab
mov eax, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1013af10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1014039c], 0
mov dword [0x101403a0], 0
mov dword [0x101403ac], 0
mov edi, dword [0x10140398]
add edi, 0xfffff42c
mov dword [0x10140394], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1013b07e
jmp 0x1013b04c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1014039c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101403a0], edx
mov dword [0x10140398], 0xc7e
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101403a4], cl
mov dword [0x10140394], 0xffffeec8
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101403a4]
mov edx, dword [0x101403a0]
mov byte [edi + edx], cl
mov dword [0x10140394], 0x13fb
mov edx, dword [0x1014039c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101403a0]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101403ac], ebx
mov dword [0x10140394], 0xffffe559
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov dword [0x10140398], 0xd2
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x38], ebx
je 0x1013b07c
jmp 0x1013b060
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
jmp 0x1013af71
mov eax, dword [0x1014039c]
mov ecx, dword [0x101403a0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x1013af71
jmp 0x1013b07e
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013b200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x10140394], 0x2410
mov dword [ebp - 0x10], eax
call fcn.10139f60
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov dword [0x10140398], 0x336
mov dword [0x10140394], 0xa55
mov eax, dword [eax + edx + 0x78]
mov dword [0x10140394], 0x1f57
mov edx, eax
add edx, 0x20
mov esi, ecx
add esi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx]
mov dword [0x10140398], 0x1824
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi + edi + 0x18]
cmp ebx, 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
je 0x1013b2ab
jmp 0x1013b2d0
mov eax, dword [ebp - 0x2c]
add eax, 2
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x20]
cmp ecx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
jb 0x1013b2e2
jmp 0x1013b2c9
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0x39]
test al, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
jne 0x1013b367
jmp 0x1013b28b
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x1013b2ab
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [0x10140394], 0x2410
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
mov byte [ebp - 0x39], bl
je 0x1013b2b6
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x4e]
mov byte [ebp - 0x39], dl
mov dword [ebp - 0x48], eax
jne 0x1013b306
jmp 0x1013b2b6
mov eax, dword [ebp - 0x40]
movzx eax, word [eax]
mov dword [0x10140394], 0x1488
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, dword [ecx + edx + 0x1c]
mov dword [0x10140398], 0x1415
mov esi, dword [ebp - 0x14]
add esi, dword [ecx + eax*4]
mov dword [ebp - 0x28], esi
jmp 0x1013b2ab
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ed0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x60863935
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x42051a64
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402e00
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40327c
Capabilities:
Query or enumerate registry value

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

Function at 0x4040c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fd04c], 0
je 0x404129
cmp word [0x4fd220], 0xd7b2
jne 0x4040f1
cmp dword [0x4fd228], 0
jbe 0x4040f1
mov eax, 0x4fd21c
call dword [0x4fd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4fa070
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 0x404150
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fa034], 0
jne 0x404145
push 0
push 0x4fa068
push 0x4fa070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406554
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 0x4065ba
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.004044b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e1c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4065a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065c1
lea eax, [ebp - 0x10]
call fcn.00404244
ret

Function at 0x40c0e4
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 0x40c11d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404334
jmp 0x40c126
mov eax, ebx
mov edx, esi
call fcn.00404298
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c7d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c650
mov eax, dword [0x4fc02c]
cmp byte [eax], 0
je 0x40c854
mov eax, dword [0x4fbd4c]
call fcn.00402c30
call fcn.00402a44
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.00409518
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 0x40c89c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c88a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4fbce4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fd668]
call fcn.00405a1c
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 0x40d144
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 0x40d21a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042dc
lea eax, [ebp - 8]
call fcn.00404754
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404704
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d204
mov eax, ebx
call fcn.004028dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d1fd
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.00404704
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d1e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d22c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d1e7
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 0x40d204
mov eax, dword [ebp - 0x10]
call fcn.004028fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d221
lea eax, [ebp - 8]
call fcn.00404244
ret

Function at 0x40d724
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 0x40d788
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.004044b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408fb0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d78f
lea eax, [ebp - 0xc]
call fcn.00404244
ret

Function at 0x422f9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fd888
cmp dword [edi], 0
jne 0x423018
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fd884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4fa610
mov ecx, 2
call fcn.00402ad8
mov edx, 0x422f74
lea eax, [esi + 5]
call fcn.00422f94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422f94
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 0x422fed
mov dword [0x4fd884], 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 0x42455c
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 0x424562
ret
Function at 0x426b2c
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 0x426b7d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426b64
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426b54
jmp 0x426b7d
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 0x426b65
pop ebx
mov esp, ebp
pop ebp
ret