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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ecacf
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.004eab24
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004eaafc
jmp 0x4ecadb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ee185
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 0x4ee1c7
call fcn.004f4040
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ee1c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ee1be
xor eax, eax
jmp 0x4ee1cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ee1d5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f4570
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 0x4f459e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f45bc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f44d6
jmp 0x4f45bc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f45bc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f44d6
test edi, edi
mov eax, edi
jne 0x4f45a6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000e5fe
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 0x1000e62c
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 0x1000e633
cmp ebx, dword [eax + 4]
jae 0x1000e633
xor eax, eax
jmp 0x1000e823
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1000e644
xor eax, eax
inc eax
jmp 0x1000e822
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1000e65a
cmp ecx, edx
jae 0x1000e79f
cmp dword [eax + 4], 0
je 0x1000e663
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1000e64b
cmp dword [ebp + 8], 0
je 0x1000e685
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1000e79f
cmp eax, esi
jae 0x1000e79f
mov eax, dword [0x40faa0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1000e6aa
cmp dword [esi*4 + 0x40faa8], edi
je 0x1000e7a3
inc esi
cmp esi, eax
jl 0x1000e698
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40c110]
test eax, eax
je 0x1000e81f
cmp dword [ebp - 8], 0x1000000
jne 0x1000e81f
test byte [ebp - 0xc], 0xcc
je 0x1000e728
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1000e81f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1000e81f
cmp word [eax + 0x18], 0x10b
jne 0x1000e81f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1000e81f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1000e728
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1000e728
test byte [ecx + 0x27], 0x80
jne 0x1000e79f
push 1
push 0x40fae8
call dword [0x40c150]
test eax, eax
jne 0x1000e63c
mov ecx, dword [0x40faa0]
test ecx, ecx
mov edx, ecx
jle 0x1000e75c
lea eax, [ecx*4 + 0x40faa4]
cmp dword [eax], edi
je 0x1000e75c
dec edx
sub eax, 4
test edx, edx
jg 0x1000e750
test edx, edx
jne 0x1000e78d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1000e769
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1000e781
lea eax, [edx*4 + 0x40faa8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1000e76f
cmp ecx, 0x10
jge 0x1000e78d
inc ecx
mov dword [0x40faa0], ecx
push 0
push 0x40fae8
call dword [0x40c150]
jmp 0x1000e63c
xor eax, eax
jmp 0x1000e822
test esi, esi
jle 0x1000e63c
mov ebx, dword [0x40c150]
push 1
push 0x40fae8
call ebx
test eax, eax
jne 0x1000e63c
cmp dword [esi*4 + 0x40faa8], edi
je 0x1000e7f9
mov eax, dword [0x40faa0]
lea esi, [eax - 1]
test esi, esi
jl 0x1000e7e7
cmp dword [esi*4 + 0x40faa8], edi
je 0x1000e7e3
dec esi
jns 0x1000e7d7
test esi, esi
jge 0x1000e7f7
cmp eax, 0x10
jge 0x1000e7f2
inc eax
mov dword [0x40faa0], eax
lea esi, [eax - 1]
jmp 0x1000e7f9
je 0x1000e811
xor ecx, ecx
test esi, esi
jl 0x1000e811
lea eax, [ecx*4 + 0x40faa8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1000e7ff
push 0
push 0x40fae8
call ebx
jmp 0x1000e63c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002a16d
Capabilities:
Get number of processors

Disassembly:
and ah, byte [eax]
push esi
jb 0x1002a1e6
imul ebp, dword [edi + 0x6e], 0x2022223d
push ebx
je 0x1002a1de
jb 0x1002a1f3
cmp eax, 0x32303622
xor dword [eax], esi
xor esi, dword [0x69532022]
jp 0x1002a1f3
cmp eax, 0x31353122
and ah, byte [eax]
dec ebp
xor eax, 0x6263223d
popal
xor al, 0x31
xor eax, 0x36336662
xor esp, dword [ecx + 0x35]
arpl word ss:[edx], si
arpl word [edx], si
popal
xor dword ss:[edi], esi
xor dword [0x61643435], esi
xor esi, dword [ecx]
and ch, byte [edi]
or eax, 0x909090a
or dword [ecx], ecx
cmp al, 0x46
imul ebp, dword [ebp + 0x20], 0x656d614e
cmp eax, 0xb996e622
out 0xb3, eax
xchg esi, eax
in eax, 0xa4
test eax, 0x2ebfbde4
imul esp, dword [ebx + 0x6f], 0x6e552022
outsd dx, dword [esi]
and ah, byte [eax]
push ebp
outsb dx, byte [esi]
arpl word [edi + 0x22], bp
and byte [ebp + 0x6e], dl
imul ebp, dword [esi + 0x73], 0x6c6c6174
jae 0x1002a25c
popal
insb byte es:[edi], dx
insb byte es:[edi], dx
cmp eax, 0x75725422
and ah, byte gs:[eax]
dec edi
jbe 0x1002a25b
jb 0x1002a26f
jb 0x1002a263
je 0x1002a261
cmp eax, 0x75725422
and ah, byte gs:[eax]
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
push esp
jns 0x1002a27a
cmp eax, 0x4e4f4e22
inc ebp
and ah, byte [eax]
dec ecx
jae 0x1002a25a
insb byte es:[edi], dx
je 0x1002a280
cmp eax, 0x6c614622
jae 0x1002a287
and ah, byte [eax]
push esi
xor byte [edx], dh
xor ah, byte [esi + 0x65]
xor dword [ecx], esi
aaa
and ch, byte [edi]
inc esi
popal
insd dword es:[edi], dx
cmp eax, 0x8597e622
test esi, esp
mov eax, 0xbc8be6b8
in eax, 0x9b

Function at 0x1002a1df
Capabilities:
Get number of processors

Disassembly:
and ah, byte [eax]
push esi
jb 0x1002a1e6
imul ebp, dword [edi + 0x6e], 0x2022223d
push ebx
je 0x1002a1de
jb 0x1002a1f3
cmp eax, 0x32303622
xor dword [eax], esi
xor esi, dword [0x69532022]
jp 0x1002a1f3
cmp eax, 0x31353122
and ah, byte [eax]
dec ebp
xor eax, 0x6263223d
popal
xor al, 0x31
xor eax, 0x36336662
xor esp, dword [ecx + 0x35]
arpl word ss:[edx], si
arpl word [edx], si
popal
xor dword ss:[edi], esi
xor dword [0x61643435], esi
xor esi, dword [ecx]
and ch, byte [edi]
or eax, 0x909090a
or dword [ecx], ecx
cmp al, 0x46
imul ebp, dword [ebp + 0x20], 0x656d614e
cmp eax, 0xb996e622
out 0xb3, eax
xchg esi, eax
in eax, 0xa4
test eax, 0x2ebfbde4
imul esp, dword [ebx + 0x6f], 0x6e552022
outsd dx, dword [esi]
and ah, byte [eax]
push ebp
outsb dx, byte [esi]
arpl word [edi + 0x22], bp
and byte [ebp + 0x6e], dl
imul ebp, dword [esi + 0x73], 0x6c6c6174
jae 0x1002a25c
popal
insb byte es:[edi], dx
insb byte es:[edi], dx
cmp eax, 0x75725422
and ah, byte gs:[eax]
dec edi
jbe 0x1002a25b
jb 0x1002a26f
jb 0x1002a263
je 0x1002a261
cmp eax, 0x75725422
and ah, byte gs:[eax]
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
push esp
jns 0x1002a27a
cmp eax, 0x4e4f4e22
inc ebp
and ah, byte [eax]
dec ecx
jae 0x1002a25a
insb byte es:[edi], dx
je 0x1002a280
cmp eax, 0x6c614622
jae 0x1002a287
and ah, byte [eax]
push esi
xor byte [edx], dh
xor ah, byte [esi + 0x65]
xor dword [ecx], esi
aaa
and ch, byte [edi]
inc esi
popal
insd dword es:[edi], dx
cmp eax, 0x8597e622
test esi, esp
mov eax, 0xbc8be6b8
in eax, 0x9b
Function at 0x1003b2e5
Capabilities:
Get number of processors

Disassembly:
jb 0x1003b35b
cmp eax, 0x37323622
cmp dword [0x20223536], esi
and ah, byte [eax]
outsb dx, byte [esi]

Function at 0x1003b2f0
Capabilities:
Get number of processors

Disassembly:
and ah, byte [eax]
push ebx
imul edi, dword [edx + 0x65], 0x3033223d
aaa
and ah, byte [eax]
dec ebp
xor eax, 0x3434223d
cmp eax, 0x35343422
cmp byte [eax], bh
cmp byte [edx], dh
bound esi, qword [esi]
invalid
arpl word [ecx], si
cmp byte fs:[esi + 0x37613933], dh

Function at 0x1003b300
Capabilities:
Get number of processors

Disassembly:
cmp eax, 0x35343422
cmp byte [eax], bh
cmp byte [edx], dh
bound esi, qword [esi]
xor eax, 0x38643163
xor al, 0x35
xor edi, dword [ecx]
popal
aaa
xor eax, 0x32336530
arpl word [ecx], di
aaa

Function at 0x1003b326
Capabilities:
Get number of processors

Disassembly:
xor eax, 0x3e2f2265
or eax, 0x909090a
or cl, byte [ecx]
or dword [ecx], ecx
or dword [ecx], ecx

Function at 0x1003b32c
Capabilities:
Get number of processors

Disassembly:
or dword [esi + eax*2], edi
imul ebp, dword [ebp + 0x20], 0x656d614e
cmp eax, 0x2d363722
call 0xc8e83fc2
lcall 0xbd9b, 0xe5adb8e4
call 0xb3ea54fe
mov esp, esp
mov edx, 0x8b89e6ba
imul esp, dword cs:[ebx + 0x6f], 0x6e552022
imul ebp, dword [esi + 0x73], 0x6c6c6174
cmp eax, 0x75725422
and dl, byte [edx + esi*2 + 0x75]
and ah, byte gs:[eax]
dec edi
jbe 0x1003b3d3
jb 0x1003b3e7
jb 0x1003b3db
je 0x1003b3d9
cmp eax, 0x75725422
and ah, byte gs:[eax]
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
push esp
jns 0x1003b3f2
cmp eax, 0x4e4f4e22
inc ebp
and ah, byte [eax]
dec ecx
jae 0x1003b3d2
insb byte es:[edi], dx
je 0x1003b3f8
invalid
cmp eax, 0x6c614622
xor eax, 0x38643163
xor al, 0x35
arpl word [ecx], si
xor edi, dword [ecx]
popal
aaa
and ch, byte [edi]
or eax, 0x909090a
cmp al, 0x46
dec esi
popal
insd dword es:[edi], dx
cmp eax, 0x2d363722

Function at 0x1003b332
Capabilities:
Get number of processors

Disassembly:
or dword [esi + eax*2], edi
imul ebp, dword [ebp + 0x20], 0x656d614e
cmp eax, 0x2d363722
call 0xc8e83fc2
lcall 0xbd9b, 0xe5adb8e4
call 0xb3ea54fe
mov esp, esp
mov edx, 0x8b89e6ba
imul esp, dword cs:[ebx + 0x6f], 0x6e552022
imul ebp, dword [esi + 0x73], 0x6c6c6174
cmp eax, 0x75725422
and dl, byte [edx + esi*2 + 0x75]
and ah, byte gs:[eax]
dec edi
jbe 0x1003b3d3
jb 0x1003b3e7
jb 0x1003b3db
je 0x1003b3d9
cmp eax, 0x75725422
and ah, byte gs:[eax]
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
push esp
jns 0x1003b3f2
cmp eax, 0x4e4f4e22
inc ebp
and ah, byte [eax]
dec ecx
jae 0x1003b3d2
insb byte es:[edi], dx
je 0x1003b3f8
invalid
cmp eax, 0x6c614622
xor eax, 0x38643163
xor al, 0x35
arpl word [ecx], si
xor edi, dword [ecx]
popal
aaa
and ch, byte [edi]
or eax, 0x909090a
cmp al, 0x46
dec esi
popal
insd dword es:[edi], dx
cmp eax, 0x2d363722
Function at 0x1003b392
Capabilities:
Get number of processors

Disassembly:
or dword [esi + eax*2], edi
imul ebp, dword [ebp + 0x20], 0x656d614e
cmp eax, 0x2d363722
call 0xc8e83fc2
lcall 0xbd9b, 0xe5adb8e4
call 0xb3ea54fe
mov esp, esp
mov edx, 0x8b89e6ba
imul esp, dword cs:[ebx + 0x6f], 0x6e552022
imul ebp, dword [esi + 0x73], 0x6c6c6174
cmp eax, 0x75725422
and dl, byte [edx + esi*2 + 0x75]
and ah, byte gs:[eax]
dec edi
jbe 0x1003b3d3
jb 0x1003b3e7
jb 0x1003b3db
je 0x1003b3d9
cmp eax, 0x75725422
and ah, byte gs:[eax]
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
push esp
jns 0x1003b3f2
cmp eax, 0x4e4f4e22
inc ebp
and ah, byte [eax]
dec ecx
jae 0x1003b3d2
insb byte es:[edi], dx
je 0x1003b3f8
invalid
cmp eax, 0x6c614622
xor eax, 0x38643163
xor al, 0x35
arpl word [ecx], si
xor edi, dword [ecx]
popal
aaa
and ch, byte [edi]
or eax, 0x909090a
cmp al, 0x46
dec esi
popal
insd dword es:[edi], dx
cmp eax, 0x2d363722
Function at 0x1003b523
Capabilities:
Get number of processors

Disassembly:
je 0x1003b562
and dh, byte [esi]
xor bh, byte [eax]
or eax, 0x909090a
Function at 0x404d69
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404da4
push 6
call fcn.004160dc
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0042f470
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404e07
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0042e250
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404e2b
push 6
call fcn.004160dc
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0042f470
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404e8e
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0042e250
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404eb2
push 6
call fcn.004160dc
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0042f470
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404f15
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0042e250
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404f1d
mov esp, ebp
pop ebp
ret
Function at 0x408e24
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x408e6a
push 6
call fcn.004160dc
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x43f2b2]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401016
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0042e270
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408ebd
push ebx
call fcn.004160d6
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x408ef6
push 6
call fcn.004160dc
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x408f12
push eax
mov ebx, eax
call fcn.0040122c
inc eax
push eax
call fcn.004160d0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x408f17
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408f28
push ebx
call fcn.004160d6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x418b62
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x418b7d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x418c9b
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x418b96
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x418c9b
mov edx, dword [ebp + 8]
push edx
call fcn.00431540
add esp, 4
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x105
jbe 0x418bb8
xor eax, eax
jmp 0x418c9b
cmp dword [ebp - 0xc], 0x105
jne 0x418be6
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x103]
cmp ecx, 0x5c
je 0x418be6
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x103]
cmp eax, 0x2f
je 0x418be6
xor eax, eax
jmp 0x418c9b
mov eax, dword [ebp - 0xc]
add eax, 4
and al, 0xfc
call fcn.004315c0
mov dword [ebp - 0x14], esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00431640
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
jmp 0x418c21
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x418c3e
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x418c3c
mov edx, dword [ebp - 8]
mov byte [edx], 0x5c
jmp 0x418c18
mov eax, dword [ebp - 8]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x418c60
mov edx, dword [ebp - 8]
mov byte [edx], 0x5c
mov eax, dword [ebp - 8]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x10
test eax, eax
je 0x418c7d
cmp dword [ebp - 4], 0xffffffff
jne 0x418c81
xor eax, eax
jmp 0x418c9b
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x44799c
call fcn.00431640
add esp, 0xc
mov eax, 1
lea esp, [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x41f05b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x41f077
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x41f130
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, 0x20
call fcn.004315c0
mov dword [ebp - 0x14], esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
jmp 0x41f0ae
mov edx, dword [ebp - 0x10]
add edx, 0x200
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jae 0x41f12d
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x20
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f0e7
or eax, 0xffffffff
jmp 0x41f130
cmp dword [ebp - 8], 0x20
jae 0x41f0f2
or eax, 0xffffffff
jmp 0x41f130
push 4
mov eax, dword [0x440960]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00431a80
add esp, 0xc
test eax, eax
je 0x41f123
push 4
mov edx, dword [0x440964]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x41f128
mov eax, dword [ebp - 0x10]
jmp 0x41f130
jmp 0x41f0a2
or eax, 0xffffffff
lea esp, [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4

Function at 0x4202ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xeeeeeeee
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
jbe 0x42034c
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
add edx, dword [ecx*4 + 0x447598]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
xor edx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
not eax
shl eax, 0x15
add eax, 0x11111111
mov ecx, dword [ebp + 0x10]
shr ecx, 0xb
or eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 5
lea edx, [eax + ecx + 3]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
jmp 0x4202d6
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x420355
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xeeeeeeee
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
jbe 0x4203e5
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
add edx, dword [ecx*4 + 0x447598]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
xor edx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
not eax
shl eax, 0x15
add eax, 0x11111111
mov ecx, dword [ebp + 0x10]
shr ecx, 0xb
or eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
shl eax, 5
lea ecx, [edx + eax + 3]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
jmp 0x420371
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42f5b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00430f10
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x42f700
test ecx, ecx
je 0x42f700
inc ecx
push ecx
call fcn.004328c7
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004328e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42f629
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42f6ed
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.004328c7
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x42f6b1
cmp eax, 0xea
jne 0x42f6d9
push esi
call fcn.004328d5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004328c7
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x42f67c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x42f6bf
cmp eax, 2
jne 0x42f6d9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00430830
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.004328d5
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004328d5
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x42f72e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42f73a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x42f73a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00430830
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x42f760
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0042df70
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x42f7b7
push ebx
push edi
call fcn.0042e000
push esi
mov ebx, esi
call fcn.0042df70
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x42f78e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret