joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026c0
Capabilities:
Read file on windows

Disassembly:
cmp dword [eax + 0xc], 0
je 0x4026ef
mov ecx, dword [eax]
mov edx, dword [esi]
mov dword [ecx], edx
add dword [eax], 4
mov ecx, dword [eax]
sub ecx, dword [eax + 4]
cmp ecx, 0x32000
jl 0x402706
push 0x488260
push 0x488150
call fcn.00456ce0
add esp, 8
ret
mov eax, dword [eax + 8]
push eax
push 1
push 4
push esi
call fcn.00408e1e
add esp, 0x10
test eax, eax
jne 0x402706
mov dword [esi], eax
ret

Function at 0x402a50
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
lea eax, [ebx + 8]
push 0x48814c
push eax
call fcn.00408b67
mov edi, eax
add esp, 8
test edi, edi
je 0x402b09
push esi
lea esi, [ebx + 4]
push esi
push 0x4882a0
push edi
call fcn.00409783
add esp, 0xc
cmp dword [esi], 0
mov dword [esp + 0xc], 0
jle 0x402aff
push ebp
jmp 0x402a99
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov esi, dword [ebx]
add ebp, ebp
add ebp, ebp
mov eax, dword [esi + ebp]
add esi, ebp
test eax, eax
je 0x402abb
push eax
call fcn.00407edf
add esp, 4
mov dword [esi], 0
push 0x200
call fcn.0040823c
mov dword [esi], eax
mov byte [eax], 0
mov ecx, dword [ebx]
mov ebx, dword [ecx + ebp]
add esp, 4
call fcn.0046c160
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + ebp]
cmp byte [eax], 0
je 0x402aee
xor byte [eax], 0x84
inc eax
cmp byte [eax], 0
jne 0x402ae5
mov eax, dword [esp + 0x10]
inc eax
add ecx, 4
cmp eax, dword [ecx]
mov dword [esp + 0x10], eax
jl 0x402a95
pop ebp
push edi
call fcn.00408fa4
add esp, 4
pop esi
pop edi
pop ebx
pop ecx
ret 4

Function at 0x403320
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x599ef8], 0
je 0x4033d0
cmp dword [0x599efc], 0
je 0x4033d0
cmp byte [0x58cba0], 0
je 0x403370
push 0x58cba0
lea eax, [esp + 4]
push str._skidoku.dat
push eax
call fcn.00408143
add esp, 0xc
jmp 0x403398
mov ecx, dword [str.kidoku.dat]
mov edx, dword [0x48838c]
mov ax, word [0x488390]
mov dword [esp], ecx
mov cl, byte [0x488392]
mov dword [esp + 4], edx
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
push esi
lea edx, [esp + 4]
push 0x48829c
push edx
call fcn.00408b67
mov esi, eax
add esp, 8
test esi, esi
je 0x4033cf
mov eax, dword [0x599efc]
mov ecx, dword [0x599ef8]
push esi
push eax
push 1
push ecx
call fcn.0040a0f1
push esi
call fcn.00408fa4
add esp, 0x14
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00407ed0
add esp, 0x104
ret
Function at 0x404610
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x58cb54]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov dword [0x599efc], eax
call fcn.0040823c
mov ecx, dword [0x599efc]
push ecx
push 0
push eax
mov dword [0x599ef8], eax
call fcn.00411230
add esp, 0x10
jmp 0x404650
sub esp, 0x104
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0x100], eax
cmp byte [0x58cba0], 0
je 0x404686
push 0x58cba0
lea eax, [esp + 4]
push str._skidoku.dat
push eax
call fcn.00408143
add esp, 0xc
jmp 0x4046ae
mov ecx, dword [str.kidoku.dat]
mov edx, dword [0x48838c]
mov ax, word [0x488390]
mov dword [esp], ecx
mov cl, byte [0x488392]
mov dword [esp + 4], edx
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
push esi
lea edx, [esp + 4]
push 0x48814c
push edx
call fcn.00408b67
mov esi, eax
add esp, 8
test esi, esi
je 0x4046e5
mov eax, dword [0x599efc]
mov ecx, dword [0x599ef8]
push esi
push eax
push 1
push ecx
call fcn.00408e1e
push esi
call fcn.00408fa4
add esp, 0x14
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.00407ed0
add esp, 0x104
ret

Function at 0x404650
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x58cb54]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov dword [0x599efc], eax
call fcn.0040823c
mov ecx, dword [0x599efc]
push ecx
push 0
push eax
mov dword [0x599ef8], eax
call fcn.00411230
add esp, 0x10
jmp 0x404650
sub esp, 0x104
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0x100], eax
cmp byte [0x58cba0], 0
je 0x404686
push 0x58cba0
lea eax, [esp + 4]
push str._skidoku.dat
push eax
call fcn.00408143
add esp, 0xc
jmp 0x4046ae
mov ecx, dword [str.kidoku.dat]
mov edx, dword [0x48838c]
mov ax, word [0x488390]
mov dword [esp], ecx
mov cl, byte [0x488392]
mov dword [esp + 4], edx
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
push esi
lea edx, [esp + 4]
push 0x48814c
push edx
call fcn.00408b67
mov esi, eax
add esp, 8
test esi, esi
je 0x4046e5
mov eax, dword [0x599efc]
mov ecx, dword [0x599ef8]
push esi
push eax
push 1
push ecx
call fcn.00408e1e
push esi
call fcn.00408fa4
add esp, 0x14
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.00407ed0
add esp, 0x104
ret

Function at 0x405170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x204
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebp
lea eax, [edi + 8]
push 0x48829c
push eax
call fcn.00408b67
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4051ff
mov ecx, dword [edi + 4]
push ebx
push ecx
push 0x4882a0
push ebp
call fcn.0040a956
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 4], ebx
jle 0x4051f5
push esi
mov edx, dword [edi]
mov edx, dword [edx + ebx*4]
lea eax, [esp + 0xc]
mov esi, eax
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x4051c2
cmp byte [esp + 0xc], cl
je 0x4051db
xor byte [eax], 0x84
inc eax
cmp byte [eax], 0
jne 0x4051d2
lea eax, [esp + 0xc]
push eax
push str.__s_
push ebp
call fcn.0040a956
inc ebx
add esp, 0xc
cmp ebx, dword [edi + 4]
jl 0x4051b7
pop esi
push ebp
call fcn.00408fa4
add esp, 4
pop ebx
mov ecx, dword [esp + 0x204]
pop ebp
xor ecx, esp
call fcn.00407ed0
add esp, 0x204
ret
Function at 0x420760
Capabilities:
Read file on windows

Disassembly:
push ecx
cmp dword [ebx + 0x38], 0
push esi
mov esi, eax
je 0x420787
mov eax, dword [ebx + 0x44]
push eax
call dword [0x47806c]
mov ecx, dword [ebx + 0x38]
push ecx
call fcn.00407edf
add esp, 4
mov dword [ebx + 0x38], 0
push 0
push esi
call fcn.004084f2
add esp, 8
test eax, eax
je 0x42079b
xor eax, eax
pop esi
pop ecx
ret
push ebp
push edi
push 0x47c090
push esi
call fcn.00408b67
mov ebp, eax
push ebp
push 1
push 0xe
push ebx
call fcn.00408e1e
push ebp
push 1
lea esi, [ebx + 0x10]
push 0x28
push esi
call fcn.00408e1e
movzx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
lea ecx, [eax - 1]
add esp, 0x28
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edi
cmp ecx, 0x1f
ja case.0x4207e5.2
movzx ecx, byte [ecx + 0x4208ec]
jmp dword [ecx*4 + 0x4208d8]
mov dword [ebx + 0x54], 2
jmp case.0x4207e5.2
mov dword [ebx + 0x54], 0x10
jmp case.0x4207e5.2
mov dword [ebx + 0x54], 0x100
jmp case.0x4207e5.2
mov dword [ebx + 0x54], 0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x420818
mov ecx, dword [ebx + 0x54]
imul eax, edx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, edi
add eax, eax
add eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0xc], ecx
test eax, eax
je 0x420875
lea edx, [eax*4 + 0x28]
push edx
call fcn.0040823c
mov dword [ebx + 0x38], eax
mov edi, eax
mov eax, dword [esp + 0x10]
push ebp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x38]
push 1
lea ecx, [eax*4]
push ecx
add edx, 0x28
push edx
call fcn.00408e1e
add esp, 0x14
jmp 0x42088b
push 0x28
call fcn.0040823c
mov ecx, 0xa
mov edi, eax
mov dword [ebx + 0x38], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x10]
push 0
push 0
lea esi, [ebx + 0x40]
push esi
push 0
push eax
add ecx, eax
push 0
mov dword [ebx + 0x3c], ecx
call dword [0x478050]
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x44], eax
jne 0x4208c4
mov edx, dword [ebx + 0x50]
mov eax, dword [esi]
push ebp
push edx
push 1
push eax
call fcn.00408e1e
add esp, 0x10
push ebp
call fcn.00408fa4
add esp, 4
pop edi
pop ebp
mov eax, 1
pop esi
pop ecx
ret
Function at 0x420ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x47c094
push eax
mov ebx, ecx
mov esi, edx
call fcn.00408b67
mov ecx, dword [esp + 0x30]
push 0
push ecx
push eax
mov dword [0x54990c], eax
call fcn.0040a33f
add esp, 0x14
push ebx
push 2
call dword [0x4780a0]
mov edi, eax
cmp edi, 0xffffffff
je 0x421036
push edi
call dword [0x478098]
test eax, eax
jne 0x421063
test edi, edi
je 0x421041
push edi
call dword [0x4780c0]
mov edx, dword [0x54990c]
push edx
call fcn.00408fa4
push 0x47c098
push 0x47c0b8
xor edi, edi
call fcn.00456ce0
add esp, 0xc
jmp 0x42108c
mov ecx, dword [0x54990c]
push ecx
push ebx
push 1
push eax
call fcn.00408e1e
add esp, 0x10
push edi
call dword [0x4780a4]
mov edx, dword [0x54990c]
push edx
call fcn.00408fa4
add esp, 4
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [0x4783e8]
test eax, eax
jge 0x4210b0
push 0x47c0c0
push 0x47c0e0
call fcn.00456ce0
add esp, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x47855c
push 0
push 0
push edx
call dword [0x478278]
test eax, eax
jge 0x4210df
push 0x47c0e8
push 0x47c108
call fcn.00456ce0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [0x495010]
mov ebp, dword [0x478068]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push 0x58
push ecx
call ebp
mov edx, dword [0x495010]
push 0x5a
push edx
mov dword [esp + 0x30], eax
call ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push 0x9ec
push eax
push edi
mov edi, dword [0x4780ac]
call edi
mov ecx, dword [esp + 0x20]
push 0x9ec
push ecx
push ebx
mov ebp, eax
call edi
mov edi, eax
call fcn.004010f0
push 0
call dword [0x478058]
mov dword [esi + 0x218], eax
lea ebx, [esi + 0x21c]
mov eax, edi
mov ecx, ebp
call fcn.00466ec0
mov edx, dword [esi + 0x260]
mov eax, dword [esi + 0x218]
push edx
push eax
call dword [0x478054]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x24]
push edx
push 0
push 0
mov edx, edi
neg edx
push edx
mov edx, dword [esi + 0x218]
push ebp
push edi
push 0
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x425940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x476124
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4921c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov byte [0x4933e5], 0
call fcn.00403320
cmp dword [0x58cb28], 0
je 0x425acd
mov esi, dword [0x58cb04]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0
mov ebp, dword [0x4933e0]
cmp ebp, dword [0x4933d8]
jge 0x425a29
nop
cmp dword [esp + 0x1c], 0
mov eax, dword [0x4ea548]
lea edi, [eax + ebp*4]
je 0x4259ea
mov ecx, dword [edi]
mov dword [esi], ecx
add esi, 4
mov dword [esp + 0x10], esi
sub esi, dword [esp + 0x14]
cmp esi, 0x32000
jl 0x425a02
push 0x488260
push 0x488150
call fcn.00456ce0
add esp, 8
jmp 0x425a02
mov edx, dword [esp + 0x18]
push edx
push 1
push 4
push edi
call fcn.00408e1e
add esp, 0x10
test eax, eax
jne 0x425a02
mov dword [edi], eax
mov eax, dword [0x536fbc]
mov eax, dword [eax + ebp*4]
lea esi, [esp + 0x10]
test eax, eax
jne 0x425a17
mov eax, 0x47a203
call fcn.00402710
mov esi, dword [esp + 0x10]
inc ebp
cmp ebp, dword [0x4933d8]
jl 0x4259b0
cmp byte [0x58cba0], 0
je 0x425a52
mov ecx, dword [0x49731c]
push 0x58cba0
push 0x47c968
push ecx
call fcn.00408143
mov eax, dword [0x49731c]
add esp, 0xc
jmp 0x425a7c
mov edx, dword [0x47c978]
mov eax, dword [0x49731c]
mov dword [eax], edx
mov ecx, dword [0x47c97c]
mov dword [eax + 4], ecx
mov dx, word [0x47c980]
mov word [eax + 8], dx
mov cl, byte [0x47c982]
mov byte [eax + 0xa], cl
push 0x47c984
push eax
call fcn.00408b67
mov edi, eax
add esp, 8
test edi, edi
je 0x425aad
sub esi, dword [esp + 0x14]
mov edx, dword [0x58cb04]
push edi
push esi
push 1
push edx
call fcn.0040a0f1
push edi
call fcn.00408fa4
add esp, 0x14
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0
jne 0x425acd
mov eax, dword [esp + 0x18]
test eax, eax
je 0x425acd
push eax
call fcn.00408fa4
add esp, 4
call fcn.0044dd40
cmp dword [0x58cb10], 0
je 0x425ae5
mov edi, 0x599f00
call fcn.00405170
cmp dword [0x58cb14], 0
je 0x425af8
mov edi, 0x646ab8
call fcn.00405170
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x425c80
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x547ae8]
push esi
mov esi, 0x547ae8
jmp 0x425c90
mov ecx, dword [0x5478cc]
movsx edx, al
push ecx
xor edx, 0x84
push edx
call fcn.0040af6c
mov al, byte [esi + 1]
inc esi
add esp, 8
test al, al
jne 0x425c90
pop esi
ret
Function at 0x43f770
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
xor ebp, ebp
cmp dword [0x52aea0], ebp
mov dword [esp + 4], ebp
jle 0x43f7fe
push ebx
push edi
mov eax, dword [0x54174c]
xor ebx, ebx
cmp dword [eax + ebp + 4], ebx
jle 0x43f7e8
nop
cmp dword [esi + 0xc], 0
mov eax, dword [eax + ebp]
lea edi, [eax + ebx*4]
je 0x43f7c5
mov ecx, dword [esi]
mov edx, dword [edi]
mov dword [ecx], edx
add dword [esi], 4
mov eax, dword [esi]
sub eax, dword [esi + 4]
cmp eax, 0x32000
jl 0x43f7dc
push 0x488260
push 0x488150
call fcn.00456ce0
add esp, 8
jmp 0x43f7dc
mov eax, dword [esi + 8]
push eax
push 1
push 4
push edi
call fcn.00408e1e
add esp, 0x10
test eax, eax
jne 0x43f7dc
mov dword [edi], eax
mov eax, dword [0x54174c]
inc ebx
cmp ebx, dword [eax + ebp + 4]
jl 0x43f790
mov eax, dword [esp + 0xc]
inc eax
add ebp, 0x60
cmp eax, dword [0x52aea0]
mov dword [esp + 0xc], eax
jl 0x43f782
pop edi
pop ebx
pop ebp
pop ecx
ret
Function at 0x426200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
jmp 0x42621a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426210
mov eax, 1
add ebx, ebx
jne 0x426233
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426228
jne 0x426244
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426228
xor ecx, ecx
sub eax, 3
jb 0x426258
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4262ca
mov ebp, eax
add ebx, ebx
jne 0x426263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426294
inc ecx
add ebx, ebx
jne 0x426280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426275
jne 0x426291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426275
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4262b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4262a5
jmp 0x426216
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4262b4
add edi, ecx
jmp 0x426216
pop esi
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x42631c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a9dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3aa18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4262d1
mov ecx, edi
jns 0x426300
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 + 0x3aa20]
or eax, eax
je 0x426316
mov dword [ebx], eax
add ebx, 4
jmp 0x4262ee
call dword [esi + 0x3aa1c]
mov ebp, dword [esi + 0x3aa24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x426350
sub esp, 0xffffff80
jmp 0x40155c
Function at 0x402908
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402937
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b40
jmp 0x402955
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402830
mov edi, eax
test ebx, ebx
je 0x402955
cmp dword [esi], 0
je 0x402955
dec ebx
jmp 0x40293e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b08
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x443040], 0x8088405
inc edx
mov dword [0x443040], edx
mul edx
mov eax, edx
ret

Function at 0x402c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cf8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cd8
xor eax, eax
push ebp
push 0x402cd1
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 0x402d14
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 0x402cd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404ff8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4051b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405059
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4051d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4050cb
xor eax, eax
push ebp
push 0x4050c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404e50
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4050ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4051f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4050cb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4051ac
cmp byte [ebp - 0xd], 0
jne 0x40510d
cmp byte [ebp - 0x12], 0
je 0x4051ac
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405126
dec ebx
cmp byte [ebx], 0x2e
je 0x405135
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405125
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4051ac
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405162
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4051ac
cmp byte [ebp - 0xd], 0
je 0x4051ac
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4051ac
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4088c4
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
test eax, eax
jle 0x4088fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b40
jmp 0x408906
mov eax, ebx
mov edx, esi
call fcn.00403aac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408910
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
test eax, eax
jle 0x408931
mov al, byte [esp]
jmp 0x408933
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413b40
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 0x413b46
ret

Function at 0x415ea4
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 0x415ef5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415edc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415ecc
jmp 0x415ef5
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 0x415edd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d538
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x443778], 0
sete dl
or al, dl
jne 0x41d678
mov eax, dword [0x44377c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x443778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41d647
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x443778]
call fcn.0040d4d4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41d63f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x41d63f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x41d63f
mov eax, dword [ebp - 0x14]
call fcn.00425764
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41d63f
push ebp
call fcn.0041d4f4
pop ecx
test al, al
jne 0x41d63f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x41d5fb
mov eax, dword [ebp - 0x14]
call fcn.004240f0
dec eax
jle 0x41d63f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402fc4
cmp byte [ebp - 1], 0
je 0x41d63f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41d63f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44377c]
call fcn.0041cd40
inc edi
dec esi
jne 0x41d58e
mov eax, dword [0x44377c]
cmp dword [eax + 8], 0
jle 0x41d65f
mov eax, dword [0x44377c]
call fcn.0041cdd0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d678
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0041d35c
pop ecx
test al, al
jne 0x41d678
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret