joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401968
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push edi
mov edi, eax
mov eax, 0x8a4bc0
cmp dword [esp + 8], edx
jbe 0x4019a5
push ebx
push esi
mov esi, ecx
sub esi, eax
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ebx, edi
shr ebx, 0xc
xor bl, byte [esi + edx + 0x8a4bc0]
inc edx
mov byte [edx + 0x8a4bbf], bl
cmp edx, dword [esp + 0x10]
jb 0x40197e
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov byte [ecx + 0x8a4bc0], 0
pop edi
ret

Function at 0x4019b2
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push ebx
mov ebx, eax
test esi, esi
je 0x4019e8
push edi
mov edi, ecx
sub edi, 0x8a4bc0
imul ebx, ebx, 0x19660d
add ebx, 0x3c6ef35f
mov eax, ebx
shr eax, 0xc
xor al, byte [edi + edx + 0x8a4bc0]
inc edx
mov byte [edx + 0x8a4bbf], al
cmp edx, esi
jb 0x4019c4
pop edi
mov byte [esi + 0x8a4bc0], 0
mov byte [esi + 0x8a4bc1], 0
mov eax, 0x8a4bc0
pop ebx
ret
Function at 0x401b3c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov edi, ecx
and dword [edi + 0x30], 0
call fcn.00401a04
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov ebp, dword [ebx]
cmp ebp, ebx
je 0x401c21
push esi
push 0xa
pop esi
push esi
mov ecx, 0x7802fc
mov eax, 0x3114b604
call fcn.004019b2
push eax
push dword [ebp + 0x30]
call fcn.00401a72
add esp, 0xc
test eax, eax
je 0x401b90
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x401b61
jmp 0x401c20
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x401c20
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax + ebx + 0x78]
and dword [esp + 0x10], 0
add esi, ebx
mov eax, dword [esi + 0x1c]
mov ebp, dword [esi + 0x20]
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x24]
add eax, ebx
add ebp, ebx
cmp dword [esi + 0x18], 0
mov dword [esp + 0x18], eax
jbe 0x401c1d
mov eax, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
add eax, ebx
mov dword [esp + 0x14], eax
push 0x16
mov ecx, 0x7802e4
mov eax, 0x40704011
call fcn.00401968
push eax
push dword [esp + 0x1c]
call fcn.00401a9e
add esp, 0xc
test eax, eax
je 0x401c05
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
jb 0x401bc6
jmp 0x401c1d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov dword [edi + 4], eax
mov dword [edi + 0x30], ebx
pop esi
cmp dword [edi + 0x30], 0
je 0x401d72
push 0xa
mov ecx, 0x7802d8
mov eax, 0x29a1a909
call fcn.00401968
pop ecx
push eax
push edi
mov ecx, edi
call fcn.00401b14
push 0xc
mov ecx, 0x7802c8
mov eax, 0x13cbcee9
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 8]
push eax
mov ecx, edi
call fcn.00401b14
push 0x18
mov ecx, 0x7802ac
mov eax, 0x17ce53be
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0xc]
push eax
mov ecx, edi
call fcn.00401b14
push 0xf
mov ecx, 0x78029c
mov eax, 0x26b30b69
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x10]
push eax
mov ecx, edi
call fcn.00401b14
push 0x12
mov ecx, 0x780288
mov eax, 0x3d924530
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x14]
push eax
mov ecx, edi
call fcn.00401b14
push 7
mov ecx, 0x780280
mov eax, 0x2236409a
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x18]
push eax
mov ecx, edi
call fcn.00401b14
push 0x14
mov ecx, 0x780268
mov eax, 0x149ccd04
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x1c]
push eax
mov ecx, edi
call fcn.00401b14
push 0x11
mov ecx, 0x780254
mov eax, 0x673ebfe9
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x20]
push eax
mov ecx, edi
call fcn.00401b14
push 0x11
mov ecx, 0x780240
mov eax, 0x68d29b96
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x24]
push eax
mov ecx, edi
call fcn.00401b14
push 0x16
mov ecx, 0x780228
mov eax, 0x7db65c79
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x28]
push eax
mov ecx, edi
call fcn.00401b14
push 0x13
mov ecx, 0x780214
mov eax, 0x65fa79df
call fcn.00401968
pop ecx
push eax
lea eax, [edi + 0x2c]
push eax
mov ecx, edi
call fcn.00401b14
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401d7b
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push edi
mov edi, eax
mov eax, 0x8a53c0
cmp dword [esp + 8], edx
jbe 0x401db8
push ebx
push esi
mov esi, ecx
sub esi, eax
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ebx, edi
shr ebx, 0xc
xor bl, byte [esi + edx + 0x8a53c0]
inc edx
mov byte [edx + 0x8a53bf], bl
cmp edx, dword [esp + 0x10]
jb 0x401d91
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov byte [ecx + 0x8a53c0], 0
pop edi
ret

Function at 0x401dc5
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push ebx
mov ebx, eax
test esi, esi
je 0x401dfb
push edi
mov edi, ecx
sub edi, 0x8a53c0
imul ebx, ebx, 0x19660d
add ebx, 0x3c6ef35f
mov eax, ebx
shr eax, 0xc
xor al, byte [edi + edx + 0x8a53c0]
inc edx
mov byte [edx + 0x8a53bf], al
cmp edx, esi
jb 0x401dd7
pop edi
mov byte [esi + 0x8a53c0], 0
mov byte [esi + 0x8a53c1], 0
mov eax, 0x8a53c0
pop ebx
ret

Function at 0x401e7f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x39b7
mov esi, 0x122fbb
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401e8f
pop esi
ret
Function at 0x402383
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40239c
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x4023bf
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4023c4
inc edi
cmp edi, dword [ebp - 4]
jb 0x4023b6
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x4024bc
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40241b
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4023ef
cmp cl, 0xff
jne 0x402446
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x402454
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40245b
dec ecx
shl edx, cl
and edx, 7
je 0x4023e0
movzx ecx, byte [edx + 0x780394]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x78038c], 0
mov cl, byte [ebx + 4]
je 0x402443
test cl, cl
je 0x402443
cmp cl, 0xff
jne 0x4023e0
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4023b1
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x40248f
movzx esi, byte [edx + 0x780394]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40247a
cmp al, 0xff
jne 0x40248c
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x40240d
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4023b1
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x41a477
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a119

Function at 0x41a482
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a2a8

Function at 0x41a87c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ef0
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004183b6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a8be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41aa1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425120
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47c468]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ba4c
mov ecx, dword [esi*4 + 0x47c468]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41aa13
cmp eax, dword [edi + ecx + 0x24]
jne 0x41aa13
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aa13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ba4c
add esp, 0x14
test edx, edx
jl 0x41aa13
jg 0x41a989
test eax, eax
jb 0x41aa13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41aa13
jl 0x41a9a3
cmp dword [ebp - 0x1008], eax
ja 0x41aa13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a9c1
test ebx, ebx
je 0x41a9fa
cmp ecx, edi
jae 0x41a9fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a9db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a9e7
cmp byte [ecx + 1], 0xa
jne 0x41a9e7
inc ecx
jmp 0x41a9e7
movzx eax, al
movsx eax, byte [eax + 0x431310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a9c1
cmp edx, ebx
jne 0x41a9c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41aa18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408141
leave
ret
Function at 0x41aeea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c468]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41af2a
cmp byte [ebx], 0xa
jne 0x41af2a
or byte [eax + edi + 0x28], 4
jmp 0x41af2f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b02d
mov al, byte [edx]
cmp al, 0x1a
je 0x41b00f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41af5e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41af83
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41af8d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41af40
jmp 0x41b02d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b00a
cmp dword [ebp - 0xc], 0
je 0x41b00a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c468]
test byte [eax + edi + 0x28], 0x48
je 0x41afe4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41afcf
mov byte [esi], dl
jmp 0x41afe0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c468]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b02d
cmp byte [ebp - 1], 0xa
jne 0x41aff3
cmp esi, ebx
jne 0x41aff3
mov byte [esi], 0xa
jmp 0x41b02c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ba6a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b02d
mov byte [esi], 0xd
jmp 0x41b02c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b029
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b02d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b036
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47c468]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b079
cmp word [esi], dx
jne 0x41b079
or byte [edi + eax + 0x28], 4
jmp 0x41b07e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b1d1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b1b1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b0c0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b0f6
cmp eax, edx
jae 0x41b102
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b098
jmp 0x41b1d1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b1ad
cmp dword [ebp - 0x14], 0
je 0x41b1ad
mov eax, dword [ebx*4 + 0x47c468]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b185
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b14e
mov word [esi], cx
jmp 0x41b181
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c468]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c468]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c468]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b1d1
pop ebx
cmp word [ebp - 4], bx
jne 0x41b196
cmp esi, dword [ebp + 0xc]
jne 0x41b196
mov word [esi], bx
jmp 0x41b1ce
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ba6a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b1d1
push 0xd
jmp 0x41b1ca
mov ecx, dword [ebx*4 + 0x47c468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1d1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4029e4
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.00403f5c
test esi, esi
jne 0x402a1a
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.0040404c
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40309c
Capabilities:
Query or enumerate registry value

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

Function at 0x403de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x403e41
cmp word [0x45421c], 0xd7b2
jne 0x403e09
cmp dword [0x454224], 0
jbe 0x403e09
mov eax, 0x454218
call dword [fcn.00454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
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 0x403e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x403e5d
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ab4
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 0x405b1a
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.004041cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b21
lea eax, [ebp - 0x10]
call fcn.00403f5c
ret

Function at 0x40aa00
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 0x40aa39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040404c
jmp 0x40aa42
mov eax, ebx
mov edx, esi
call fcn.00403fb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba0c
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 0x40bae2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ff4
lea eax, [ebp - 8]
call fcn.0040446c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bacc
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bac5
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.0040441c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40baaf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40baf4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40baaf
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 0x40bacc
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bae9
lea eax, [ebp - 8]
call fcn.00403f5c
ret
Function at 0x40bf60
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 0x40bfc4
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.004041cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e04
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfcb
lea eax, [ebp - 0xc]
call fcn.00403f5c
ret

Function at 0x41a0f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454884
cmp dword [edi], 0
jne 0x41a170
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4523ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a0cc
lea eax, [esi + 5]
call fcn.0041a0ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a0ec
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 0x41a145
mov dword [0x454880], 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 0x41b384
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 0x41b38a
ret

Function at 0x41d7cc
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 0x41d81d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d804
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d7f4
jmp 0x41d81d
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 0x41d805
pop ebx
mov esp, ebp
pop ebp
ret