joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b87c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10234660]
jne 0x1000b886
repz ret
jmp fcn.1000bb2d

Function at 0x1000c2ef
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x20f3
mov dword [0x10234638], 0x20f3
mov dword [0x10234644], 0
mov byte [0x10234648], 0
mov dword [0x1023463c], 0x1f84
mov dword [0x10234640], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x1000c365
xor eax, eax
mov dword [0x10234640], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x1856
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x1000c3c0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
mov bl, dl
add eax, 0xffffed74
mov dword [0x1023463c], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov ecx, dword [0x1023463c]
mov edx, ecx
add edx, 0x22fb
mov dword [0x10234638], edx
mov esi, dword [0x10234640]
add esi, 1
mov dword [0x10234640], esi
cmp esi, 0x100
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edx
jl 0x1000c365
jmp 0x1000c348
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, 0x23e
mov esi, 0x100
mov dword [0x1023464c], 0
mov dword [ebp - 0x30], eax
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x34], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov ebx, dword [ebp - 0x30]
mov dword [0x1023463c], ebx
mov ebx, dword [0x10234644]
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + ecx]
add edi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1023464c], edi
mov eax, edi
cdq
idiv esi
mov dword [0x10234644], edx
mov dword [0x10234638], 0x133c
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x10234648], bl
mov dword [0x1023463c], 0x2285
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10234648]
mov ecx, dword [0x10234644]
mov byte [esi + ecx], bl
mov dword [0x10234638], 0xce3
mov ecx, dword [0x10234640]
add ecx, 1
mov dword [0x10234640], ecx
cmp ecx, 0x100
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jl 0x1000c3c0
jmp 0x1000c3b8
Function at 0x1000c50a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1023463c], 0x1669
mov dword [0x10234638], 0x5a0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1023077d]
mov dh, byte [eax + str.___C]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
jne 0x1000c535
lea eax, [ebp - 0x20]
mov dword [0x10234638], 0x26eb
mov dword [0x1023463c], 0x7fc
mov dword [ebp - 0x30], eax
call fcn.1000ce40
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1000bf0f
xor ecx, ecx
mov dword [0x10234638], 0x79
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1000c656
mov eax, dword [ebp - 0x34]
mov dword [0x10234638], 0xb1f
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10234638], 0xc6
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1000c122
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x10234638], 0xf02
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x40], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x28], ecx
mov dword [0x1023463c], 0x123a
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x1000c656
mov dword [0x1023463c], 0x1815
mov eax, dword [ebp - 0x3c]
add eax, 0x2474
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x1000c715
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, dword [0x1023463c]
add ecx, 0xfffff6df
mov dword [0x10234638], ecx
mov dword [0x1023463c], 0x1131
mov dword [ebp - 0x10], eax
call fcn.1000d1fc
xor ecx, ecx
mov edx, eax
mov dword [0x1023463c], 0x1283
mov dword [0x10234638], 0x15c6
mov esi, dword [eax + 0x3c]
mov dword [0x1023463c], 0x8cd
mov esi, dword [eax + esi + 0x78]
mov dword [0x1023463c], 0x3582
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10234638], 0xffffecce
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1000c89e
jmp 0x1000c805
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
je 0x1000c7fc
jmp 0x1000c840
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x3c]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x24], eax
jb 0x1000c817
jmp 0x1000c89e
mov al, byte [ebp - 0x32]
test al, 1
jne 0x1000c86f
jmp 0x1000c7d3
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [0x10234638], 0x2c61
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edx
jmp 0x1000c7a8
mov al, byte [ebp - 0x31]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x30]
add edx, 1
mov ah, byte [ebp - 0x32]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x28], edx
jne 0x1000c7a8
jmp 0x1000c7fc
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [0x1023463c], 0x553
mov ecx, dword [edx + ecx*4]
mov dword [0x10234638], 0x15a4
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c8a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1023463c], 0x1d26
mov dword [0x10234638], 0x60c
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x1c
mov edi, edx
add edi, esi
add edi, 0x18
imul esi, eax, 0x1c
add edx, esi
add edx, 0x14
add eax, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, ecx
cmp eax, 0x1ef
mov ecx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
jne 0x1000c8d6
xor eax, eax
mov dword [0x1023463c], 0x780
mov dword [0x10234638], 0x5a0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1023077d]
mov dh, byte [eax + str.___C]
sub dh, dl
mov byte [ebp + eax - 0x2c], dh
cmp ecx, 0xe
mov dword [ebp - 0x40], ecx
jne 0x1000c939
lea eax, [ebp - 0x2c]
mov dword [0x10234638], 0xfffe294f
mov dword [0x1023463c], 0xfffe0a60
mov dword [ebp - 0x44], eax
call fcn.1000ce40
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.1000bf0f
mov ecx, eax
mov dword [0x10234654], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x10234638]
add edx, 0xffffe776
mov dword [0x10234638], edx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
mov esi, dword [ebp - 0x48]
add esi, ecx
imul edi, eax, 0x1c
mov ebx, edx
add ebx, edi
imul edi, eax, 0x1c
mov dword [ebp - 0x54], eax
mov eax, edx
add eax, edi
add eax, 0x14
mov edi, dword [ebp - 0x54]
imul edi, edi, 0x1c
add edx, edi
add edx, 0x18
mov edi, dword [ebp - 0x54]
add edi, 1
mov edx, dword [edx]
mov ebx, dword [ebx]
movzx eax, word [eax]
xor eax, edx
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edi
call fcn.1000d157
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x60]
cmp edx, 0x1ef
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
jne 0x1000c9d8
mov eax, dword [ebp - 0x48]
add eax, 0x9150b
mov ecx, dword [ebp - 0x48]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], edx
mov dword [ebp - 0x64], eax
call fcn.1000cd93
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x7ba5a
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x64]
mov dword [edx], esi
mov dword [edx + 4], 0x154c00
mov dword [edx + 8], ecx
mov ecx, dword [0x10234638]
add ecx, 0x1cd8
mov dword [0x1023463c], ecx
mov dword [edx + 0xc], 0x2090
mov ecx, dword [0x1023463c]
add ecx, 0xffffe7ff
mov dword [0x1023463c], ecx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000cf7e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x10234638], 0x1557
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x1023463c], 0x43b
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000cfef
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000d0b2
mov dword [0x10234638], 0xffffeee6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1000d03a
jmp 0x1000d0b2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1000d026
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [0x10234638], 0x96f
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1000cfef
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1000cfbe
jmp 0x1000d0b2
mov dword [0x1023463c], 0xffffd45e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000d0b2
mov dword [0x1023463c], 0xfffff81a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000d0b2
mov dword [0x10234638], 0x2244
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000d0b2
mov dword [0x1023463c], 0x220f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x1000d0b2
mov eax, 1
mov dword [0x10234638], 0x720
mov dword [ebp - 0x20], eax
jmp 0x1000d0c1
xor eax, eax
mov dword [0x1023463c], 0xe66
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1000d394
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10234640], 0
mov dword [0x10234644], 0
mov dword [0x10234650], 0
mov ebx, dword [0x10234638]
add ebx, 0xffffe9e9
mov dword [0x1023463c], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x1000d51f
jmp 0x1000d424
mov eax, dword [0x10234644]
mov ecx, dword [0x10234640]
mov edx, dword [0x1023463c]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add edx, 0xffffe742
mov ebx, eax
add ebx, 1
add esi, 1
mov dword [ebp - 0x34], eax
mov eax, esi
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x10234640], edx
mov dword [0x10234638], 0x1896
mov esi, dword [ebp - 0x24]
movzx esi, byte [esi + edx]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x10234644], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x10234648], cl
mov edi, dword [ebp - 0x38]
mov dword [0x10234638], edi
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10234648]
mov edx, dword [0x10234644]
mov byte [edi + edx], cl
mov edx, dword [0x10234638]
add edx, 0xffffee17
mov dword [0x1023463c], edx
mov edx, dword [0x10234640]
movzx edx, byte [edi + edx]
mov ecx, dword [0x10234644]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10234650], ecx
mov dword [0x10234638], 0x1309
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x1023463c], 0x904
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov dword [0x10234638], 0x1ce0
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x30], ebx
jne 0x1000d404
mov dword [0x10234638], 0x129a
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000d531
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x10234638]
add edx, 0x148
mov dword [0x1023463c], edx
mov dword [0x10234638], 0x1530
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000c8a9
lea ecx, [0x1000c277]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], 0x154c00
mov edx, dword [0x10234624]
mov dword [esp + 0x28], edx
mov edx, dword [0x10234628]
mov dword [esp + 0x2c], edx
mov edx, dword [0x1023462c]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10234630]
mov dword [esp + 0x58], edx
mov edx, dword [0x10234634]
mov dword [esp + 0x50], edx
mov dword [0x10234638], 0xfe6
mov dword [0x1023463c], 0xf09
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1000d5fa
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1000d618
mov dword [0x10234638], 0x1c76
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000d5d7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [0x10234638], 0x15c6
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
mov dword [0x1023463c], 0x10f6
call fcn.1000cf7e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1000d6a3
lea eax, [esp + 0x20]
mov ecx, dword [0x10234638]
add ecx, 0xffffdda3
mov dword [0x1023463c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000c50a
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x10234638]
add ecx, 0xffffe64c
mov dword [0x10234638], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x40331c
Capabilities:
Query or enumerate registry value

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

Function at 0x404098
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a8048], 0
je 0x4040f9
cmp word [0x4a821c], 0xd7b2
jne 0x4040c1
cmp dword [0x4a8224], 0
jbe 0x4040c1
mov eax, 0x4a8218
call dword [0x4a8234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e06c
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 0x404120
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e030], 0
jne 0x404115
push 0
push 0x45e064
push 0x45e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404254
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a64
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a8049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40421c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405f2c
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 0x405f92
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.00404510
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ee0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f7c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f99
lea eax, [ebp - 0x10]
call fcn.004042a0
ret

Function at 0x40b028
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 0x40b061
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404390
jmp 0x40b06a
mov eax, ebx
mov edx, esi
call fcn.004042f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b72c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b594
mov eax, dword [0x4a7220]
cmp byte [eax], 0
je 0x40b7a8
mov eax, dword [0x4a7034]
call fcn.00402d4c
call fcn.00402bf0
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.00408818
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 0x40b7f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a6fe0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a8664]
call fcn.00405398
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 0x41aee0
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, 0x4a8888
cmp dword [esi], 0
jne 0x41af86
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 [0x4a8884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x45e408
mov ecx, 2
call fcn.00402c84
mov edx, 0x41aeb8
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041aed8
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.0041aed8
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 0x41af4d
mov eax, dword [ebp - 8]
mov dword [0x4a8884], 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 0x41c1c4
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 0x41c1ca
ret

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