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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417e21

Function at 0x4183aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406f70
mov eax, dword [0x47f1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041612b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4183ec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418548
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x480b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004193a2
mov ecx, dword [esi*4 + 0x480b90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418541
cmp eax, dword [edi + ecx + 0x24]
jne 0x418541
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418541
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004193a2
add esp, 0x14
test edx, edx
jl 0x418541
jg 0x4184b7
test eax, eax
jb 0x418541
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418541
jl 0x4184d1
cmp dword [ebp - 0x1008], eax
ja 0x418541
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4184ef
test ebx, ebx
je 0x418528
cmp ecx, edi
jae 0x418528
mov al, byte [ecx]
cmp al, 0xd
jne 0x418509
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418515
cmp byte [ecx + 1], 0xa
jne 0x418515
inc ecx
jmp 0x418515
movzx eax, al
movsx eax, byte [eax + 0x47f498]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4184ef
cmp edx, ebx
jne 0x4184ef
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418546
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040607a
leave
ret
Function at 0x41883f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x480b90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41887f
cmp byte [ebx], 0xa
jne 0x41887f
or byte [eax + edi + 0x28], 4
jmp 0x418884
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418982
mov al, byte [edx]
cmp al, 0x1a
je 0x418964
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4188b3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4188d8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4188e2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x418895
jmp 0x418982
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41895f
cmp dword [ebp - 0xc], 0
je 0x41895f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480b90]
test byte [eax + edi + 0x28], 0x48
je 0x418939
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418924
mov byte [esi], dl
jmp 0x418935
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480b90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418982
cmp byte [ebp - 1], 0xa
jne 0x418948
cmp esi, ebx
jne 0x418948
mov byte [esi], 0xa
jmp 0x418981
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004193c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418982
mov byte [esi], 0xd
jmp 0x418981
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41897e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418982
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41898b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x480b90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4189ce
cmp word [esi], dx
jne 0x4189ce
or byte [edi + eax + 0x28], 4
jmp 0x4189d3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418b26
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x418b06
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418a15
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418a4b
cmp eax, edx
jae 0x418a57
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4189ed
jmp 0x418b26
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b02
cmp dword [ebp - 0x14], 0
je 0x418b02
mov eax, dword [ebx*4 + 0x480b90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x418ada
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418aa3
mov word [esi], cx
jmp 0x418ad6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x480b90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x480b90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x480b90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418b26
pop ebx
cmp word [ebp - 4], bx
jne 0x418aeb
cmp esi, dword [ebp + 0xc]
jne 0x418aeb
mov word [esi], bx
jmp 0x418b23
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004193c0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418b26
push 0xd
jmp 0x418b1f
mov ecx, dword [ebx*4 + 0x480b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418b1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418b26
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aca6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ad43
push ebx
push esi
call fcn.0041ac6f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004198db
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41acf0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad42
push edi
push eax
call fcn.0041523a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ad10
call fcn.004147f6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad41
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004198db
add esp, 0x20
test eax, eax
jne 0x41ad2f
push edi
call fcn.004147f6
jmp 0x41ad37
push ebx
call fcn.004147f6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x421630
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42165d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42165d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xae89f4
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae89f4
ret
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x1826c42
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x1826c48
pop ebp
sub ebp, 0x10
sub ebp, 0x1426c38
in eax, dx
cmp byte [edx + eax*2 + 1], ch
jmp 0x1826c5e
mov eax, 0x1426c38
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f3
mov edx, 0xfa3158ff
xor byte [eax], dl
inc eax
dec ecx
jne 0x1826c75
jmp 0x1826c88
je 0x1826cbc
je 0x1826d02
jbe 0x1826c50
ret
invalid
pop es
ja 0x1826c8b
invalid
je 0x1826d77
invalid
push ss
xor eax, dword [eax]
add byte [eax], al
salc
mov bl, 0xc6
invalid
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x758d5c0a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x65d0609d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402b74
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x43e008], 0x8088405
inc edx
mov dword [ebx + 0x43e008], edx
fld qword [ebx + 0x43e05c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403008
Capabilities:
Query or enumerate registry value

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

Function at 0x403988
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44a044], 0
je 0x4039e9
cmp word [0x44a218], 0xd7b2
jne 0x4039b1
cmp dword [0x44a220], 0
jbe 0x4039b1
mov eax, 0x44a214
call dword [0x44a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43e06c
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 0x403a10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43e028], 0
jne 0x403a05
push 0
push 0x43e064
push 0x43e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404fb8
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 0x40501e
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.00403d60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405008
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405025
lea eax, [ebp - 0x10]
call fcn.00403b0c
ret

Function at 0x4064c8
Capabilities:
Accept command line arguments

Disassembly:
push edi
mov edi, edx
test eax, eax
jne 0x4064f6
sub esp, 0x104
mov ecx, esp
push 0x104
push ecx
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
xchg ecx, eax
mov edx, esp
mov eax, edi
call fcn.00403bfc
add esp, 0x104
pop edi
ret
push eax
call sub.kernel32.dll_GetCommandLineA_1
pop ecx
inc ecx
call fcn.0040cd8c
mov edx, eax
call fcn.0040cd9c
loop 0x4064fe
mov ecx, eax
sub ecx, edx
cmp ecx, 2
jl 0x406522
cmp byte [edx], 0x22
jne 0x406522
cmp byte [eax - 1], 0x22
jne 0x406522
inc edx
dec eax
sub eax, edx
xchg ecx, eax
xchg edi, eax
call fcn.00403bfc
pop edi
ret

Function at 0x406798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x4067dc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403fa8
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4067dc
cmp dword [esp + 4], 4
je 0x4067e1
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x4067ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403fa8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x406934
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x406961
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403fa8
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406965
xor eax, eax
jmp 0x406967
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x406a10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406acf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c3d0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA_1
test eax, eax
jne 0x406ab9
cmp dword [ebp - 8], 0
jbe 0x406ab7
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402888
mov ebx, eax
xor esi, esi
jmp 0x406a95
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403ce8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040c3c0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA_1
cmp eax, 0x103
jne 0x406a78
mov eax, ebx
call fcn.004028b8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ad6
lea eax, [ebp - 0x10]
call fcn.00403b0c
ret

Function at 0x406af0
Capabilities:
Create thread

Disassembly:
push ebx
mov byte [0x44a045], 1
mov edx, dword [0x405808]
xor eax, eax
call fcn.0040a2f8
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x406ae0
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x406c08
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x406c23
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x406c32
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x406c34
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 1
cmp word [ebx + 0x24], 0
je 0x406c4f
push dword [ebx + 0x26]
push dword [ebx + 0x22]
mov eax, ebx
call fcn.00406c5c
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_SuspendThread
pop ebx
ret

Function at 0x406c90
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x409e68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x409fcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x10
test edi, edi
jne 0x409ea5
or ebx, 0x8000000
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00405744
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], di
mov dword [ebp - 0x2c], 1
cmp dword [ebp + 8], 0
je 0x409ed1
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x409ee7
mov eax, dword [ebp - 8]
call fcn.00403fa8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00403ba4
cmp dword [ebp - 0x14], 0
je 0x409f2b
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x22
je 0x409f2b
mov edx, dword [ebp - 0x14]
mov eax, 0x409fe8
call fcn.00404048
test eax, eax
jle 0x409f2b
push 0x409ff4
push dword [ebp - 0x14]
push 0x409ff4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403e68
cmp dword [ebp - 0x14], 0
je 0x409f42
test esi, esi
je 0x409f42
lea eax, [ebp - 0x14]
mov edx, 0x409fe8
call fcn.00403db0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
mov ecx, esi
mov edx, dword [ebp - 0x14]
call fcn.00403df4
mov eax, dword [ebp - 0x6c]
call fcn.00403fa8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x409faf
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x409f98
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 9], 1
jmp 0x409fa6
cmp dword [ebp + 8], 0
je 0x409fa6
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fd4
lea eax, [ebp - 0x6c]
call fcn.00403b0c
lea eax, [ebp - 0x14]
call fcn.00403b0c
ret

Function at 0x40b818
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b824
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b83d
push eax
je 0x40b83e
call dword [0x43e118]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x43e118]
ret
Function at 0x40ce28
Capabilities:
Get file attributes

Disassembly:
call fcn.00405c18
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40ce3c
dec eax
and al, 0x10
sete al
ret

Function at 0x40ce78
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403ce8
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00406670
ret

Function at 0x40d65c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, eax
push esp
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
push 0
mov eax, dword [0x44a9d4]
push eax
mov eax, dword [0x44a9cc]
push eax
push 8
call dword [0x44a934]
push ebp
call sub.kernel32.dll_Sleep
push 0
mov eax, dword [0x44a9d4]
push eax
mov eax, dword [0x44a9d0]
push eax
push 8
call dword [0x44a934]
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0xc]
jne 0x40d6c7
cmp eax, dword [esp + 8]
jbe 0x40d6e3
jmp 0x40d6c9
jle 0x40d6e3
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x40d70d
mov eax, dword [esp]
mov edx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
push 0
push 0x186a0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00404654
push edx
push eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.00404654
mov ebp, eax
xor esi, esi
mov al, byte [0x44a910]
dec eax
test al, al
jb 0x40d787
inc eax
mov byte [esp + 0x20], al
mov bl, 0
mov eax, ebp
xor edx, edx
push edx
push eax
xor eax, eax
mov al, bl
mov edi, eax
add edi, edi
lea edi, [edi + edi*2]
mov eax, dword [0x44a9d0]
mov edx, dword [eax + edi*8 + 4]
mov eax, dword [eax + edi*8]
push edx
push eax
mov eax, dword [0x44a9cc]
mov edx, dword [eax + edi*8 + 4]
mov eax, dword [eax + edi*8]
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00404654
add esi, eax
inc ebx
dec byte [esp + 0x20]
jne 0x40d745
xor eax, eax
mov al, byte [0x44a910]
push eax
mov eax, esi
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov esi, eax
cmp esi, 0x64
jbe 0x40d7a4
mov esi, 0x64
mov eax, esi
push eax
mov al, 0x64
pop edx
sub al, dl
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d7b4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov al, byte [esp + 0x14]
mov byte [0x44a910], al
mov eax, dword [esp + 4]
mov dword [0x44a914], eax
add esp, 0x24
ret