joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dd44
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47dd7c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047bdd1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047bda9
jmp 0x47dd88
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47f439
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47f47b
call fcn.00485074
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47f47b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47f472
xor eax, eax
jmp 0x47f483
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047f489
pop edi
pop esi
pop ebx
ret 4

Function at 0x4855a4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4855d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4855f0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048550a
jmp 0x4855f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4855f0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048550a
test edi, edi
mov eax, edi
jne 0x4855da
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x442522
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x477a30], eax
push edi
mov edx, esi
mov eax, 0x477a30
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4783ec
jl 0x442533
pop edi
mov dword [0x4672d0], esi
mov dword [0x47840c], esi
pop esi
ret

Function at 0x442561
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x47840c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x477a30
jne 0x442581
push 0
call fcn.0044c5d2
pop ecx
call fcn.00442522
mov dword [0x4672d0], 0x270
mov dword [0x477a28], esi
mov edx, 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4425a0
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4425d6
mov edx, dword [0x477a30]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x442630
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4672d0]
jne 0x44263d
call fcn.00442561
mov eax, dword [0x477a28]
mov ecx, dword [eax]
add dword [0x477a28], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x442674
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4672d0]
jne 0x442686
call fcn.00442561
mov eax, dword [0x477a28]
mov eax, dword [eax]
add dword [0x477a28], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jge 0x4426cc
fadd qword [0x462788]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x462778]
leave
ret

Function at 0x442d46
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.0044a260
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x4436bd
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
xor edi, edi
inc edi
mov dword [eax], ecx
mov esi, edi
mov ecx, eax
mov edx, dword [ecx]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, esi
mov dword [ecx + 4], ebx
inc esi
add ecx, 4
cmp esi, 0x270
jl 0x4436c9
mov dword [eax + 0x9c0], edi
mov dword [eax + 0x9c4], edi
pop edi
pop esi
pop ebx
ret

Function at 0x4436f9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebx, eax
cmp dword [ebx + 0x9c4], 0
push esi
push edi
mov esi, ebx
jne 0x44371d
push 0
call fcn.0044c5d2
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.004436bd
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi + 0x634]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x44373f
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x44377b
mov ebx, dword [ebx]
mov edx, dword [esi]
xor edx, ebx
and edx, ecx
xor edx, dword [esi]
and bl, 1
shr edx, 1
neg bl
pop edi
sbb ebx, ebx
and ebx, eax
xor edx, ebx
xor edx, dword [esi - 0x38c]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4437d5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x4437e4
mov eax, esi
call fcn.004436f9
lea eax, [esi + 0x9c8]
mov edx, dword [eax]
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x443a08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call fcn.004436bd
cmp dword [ebp + 0xc], ebx
jbe 0x443a4b
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.004437d5
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x443a30
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x455684
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4556b2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4556b9
cmp ebx, dword [eax + 4]
jae 0x4556b9
xor eax, eax
jmp 0x4558a9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4556ca
xor eax, eax
inc eax
jmp 0x4558a8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4556e0
cmp ecx, edx
jae 0x455825
cmp dword [eax + 4], 0
je 0x4556e9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4556d1
cmp dword [ebp + 8], 0
je 0x45570b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x455825
cmp eax, esi
jae 0x455825
mov eax, dword [0x467928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x455730
cmp dword [esi*4 + 0x467930], edi
je 0x455829
inc esi
cmp esi, eax
jl 0x45571e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x459288]
test eax, eax
je 0x4558a5
cmp dword [ebp - 8], 0x1000000
jne 0x4558a5
test byte [ebp - 0xc], 0xcc
je 0x4557ae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4558a5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4558a5
cmp word [eax + 0x18], 0x10b
jne 0x4558a5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4558a5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4557ae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4557ae
test byte [ecx + 0x27], 0x80
jne 0x455825
push 1
push 0x467970
call dword [0x459374]
test eax, eax
jne 0x4556c2
mov ecx, dword [0x467928]
test ecx, ecx
mov edx, ecx
jle 0x4557e2
lea eax, [ecx*4 + 0x46792c]
cmp dword [eax], edi
je 0x4557e2
dec edx
sub eax, 4
test edx, edx
jg 0x4557d6
test edx, edx
jne 0x455813
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4557ef
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x455807
lea eax, [edx*4 + 0x467930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4557f5
cmp ecx, 0x10
jge 0x455813
inc ecx
mov dword [0x467928], ecx
push 0
push 0x467970
call dword [0x459374]
jmp 0x4556c2
xor eax, eax
jmp 0x4558a8
test esi, esi
jle 0x4556c2
mov ebx, dword [0x459374]
push 1
push 0x467970
call ebx
test eax, eax
jne 0x4556c2
cmp dword [esi*4 + 0x467930], edi
je 0x45587f
mov eax, dword [0x467928]
lea esi, [eax - 1]
test esi, esi
jl 0x45586d
cmp dword [esi*4 + 0x467930], edi
je 0x455869
dec esi
jns 0x45585d
test esi, esi
jge 0x45587d
cmp eax, 0x10
jge 0x455878
inc eax
mov dword [0x467928], eax
lea esi, [eax - 1]
jmp 0x45587f
je 0x455897
xor ecx, ecx
test esi, esi
jl 0x455897
lea eax, [ecx*4 + 0x467930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x455885
push 0
push 0x467970
call ebx
jmp 0x4556c2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0xe96650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x894000]
push edi
or ebp, 0xffffffff
jmp 0xe96672
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe96679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe96668
mov eax, 1
add ebx, ebx
jne 0xe9668b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe9669c
jne 0xe966bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe966bb
dec eax
add ebx, ebx
jne 0xe966a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xe96680
add ebx, ebx
jne 0xe966b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xe9670d
xor ecx, ecx
sub eax, 3
jb 0xe966d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe96742
sar eax, 1
mov ebp, eax
jmp 0xe966de
add ebx, ebx
jne 0xe966de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe966ac
inc ecx
add ebx, ebx
jne 0xe966ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe966ac
add ebx, ebx
jne 0xe966f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe966ee
jne 0xe9670a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe966ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe9672c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe9671e
jmp 0xe9666e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe9672c
add edi, ecx
jmp 0xe9666e
pop esi
mov edi, esi
mov ecx, 0x53d9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe9674a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xe9674f
lea edi, [esi + 0xa93000]
mov eax, dword [edi]
or eax, eax
je 0xe967b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa976dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa9786c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe96775
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa97874]
or eax, eax
je 0xe967b1
mov dword [ebx], eax
add ebx, 4
jmp 0xe96792
call dword [esi + 0xa97870]
mov ebp, dword [esi + 0xa97878]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0xe967eb
sub esp, 0xffffff80
jmp 0xa63ff3
Function at 0x427cfa
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42465a
call 0x4441b4
sub esp, 0x48
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x427e0a
cmp byte [esi + 0x41], 0
je 0x427e0a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x427d34
xor al, al
jmp 0x427e0c
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.00427387
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042751f
mov ecx, eax
call fcn.00428cc6
mov edi, dword [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042751f
mov ecx, eax
call fcn.00428cc6
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
add edi, ebx
push edi
push dword [ebp - 0x14]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x427da4
dec eax
je 0x427da8
dec eax
dec eax
je 0x427e06
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.004276d5
mov al, bl
jmp 0x427e0c
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042751f
mov ecx, eax
call fcn.00428cc6
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x427de8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042751f
mov ecx, eax
call fcn.00428cc6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042fac8
add esp, 0x10
cmp edi, eax
jne 0x427d92
cmp byte [esi + 0x41], 0
je 0x427e06
test edi, edi
jne 0x427d42
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.004273ad
jmp 0x427d42
mov bl, 1
jmp 0x427d94
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4285d7
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4242f0
call 0x4441b4
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x428018
call fcn.0042e4ba
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.0042eb39
pop ecx
cmp eax, edi
je 0x42860e
mov ecx, eax
call fcn.00421faf
jmp 0x428610
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403810
Capabilities:
Query or enumerate registry value

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

Function at 0x4046a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x404705
cmp word [0x45f21c], 0xd7b2
jne 0x4046cd
cmp dword [0x45f224], 0
jbe 0x4046cd
mov eax, 0x45f218
call dword [0x45f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40472c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d02c], 0
jne 0x404721
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40485c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x45d030], 0
je 0x404882
mov edx, esi
mov eax, ebx
call dword [0x45d030]
jmp 0x404891
mov eax, 8
call fcn.00402e60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x45f049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404824
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x405c4c
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
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ccf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ccf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d58
xor eax, eax
push ebp
push 0x405d51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d36
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405eb8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d36
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d58
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e72
cmp byte [ebp - 0xd], 0
jne 0x405d9f
cmp byte [ebp - 0x12], 0
je 0x405e72
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405db8
dec ebx
cmp byte [ebx], 0x2e
je 0x405dc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405db7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e72
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e04
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e72
cmp byte [ebp - 0xd], 0
je 0x405e72
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e72
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x408398
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4083ea
test eax, edx
je 0x4083ed
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4083ad
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4083d3
add ecx, 4
js 0x4083c3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4083d0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4083f9
test edx, edx
jne 0x4083a0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b680
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 0x40b6b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049c8
jmp 0x40b6c2
mov eax, ebx
mov edx, esi
call fcn.0040492c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6cc
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 0x40b6ee
movzx eax, byte [esp]
jmp 0x40b6f0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbf8
mov eax, dword [0x45ea74]
cmp byte [eax], 0
je 0x40bdfc
mov eax, dword [0x45e88c]
call fcn.004031d8
call fcn.00402fbc
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.00408d40
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 0x40be44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45e838]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4617f4]
call fcn.00405a30
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