joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa2383c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
shr edi, 0x18
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamStop]
sub esp, 0x14
jmp 0xa2385d
push word [esp + 2]
lea esp, [esp + 4]
lea esp, [esp + 1]
jmp 0xa237f5
add esp, 1
jmp 0xa23821

Function at 0xb94df2
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, di
lea edx, [edi*4]
rol edx, 0x1f
setg dh
pushal
mov edx, 0x68026838
jmp 0xb94e50
lea esp, [esp + 3]
mov dword [esp + 0xa], edx
clc
lea esi, [eax - 0xd1]
sub esp, 0x18
jmp 0xb94db1
mov esi, 0x81f62e86
xchg dword [esp], esi
push word [esp + 1]
add esp, 3
jmp 0xb94dd9
add esp, 1
mov dh, bh
mov si, 0x33ed
lea eax, [ebx + ebx]
lea eax, [esp + ecx]
jmp 0xb94e60
bts edx, edi
mov edx, ebp
sub esi, eax
inc ax
push esp
bsf dx, ax
jmp 0xb94e04
bt eax, ebx
neg ax
neg edx
mov dx, cx
inc dl
rdtsc
jmp 0xb94e1a
mov dword [esp + 3], eax
ror dh, 7
mov dh, bh
clc
bswap eax
rdtsc
jmp 0xb94e31
mov dh, bh
xchg word [esp], dx
xchg ah, dh
lea esi, [edx*4]
rdtsc
push word [esp + 1]
jmp 0xb94eb0
neg dx
bswap eax
call fcn.00b94e96
xor esi, esi
mov edx, dword [esp + 8]
cld
not esi
neg edx
xchg dword [esp + 2], eax
jmp 0xb94f32
inc al
xchg dh, al
xchg word [esp], si
mov esi, ebx
bsr ax, cx
mov ax, word [esp + 1]
jmp 0xb94fa7
xchg dx, si
xchg byte [esp], al
bsr si, cx
bswap esi
xchg si, ax
lea esi, reloc.WINMM.dll_midiStreamStop
jmp 0xb94eda
xchg word [esp], si
mov esi, ebx
rcr ah, 1
mov edx, dword [esp]
mov dh, bh
rdtsc
jmp 0xb94efd
pop edx
lea esi, [esp + ebx]
mov byte [esp + 3], ah
mov word [esp], di
lea edx, [ecx + ebx]
pop word [esp]
jmp 0xb94f19
neg esi
rdtsc
inc al
rol ax, cl
mov al, 0x4e
mov edx, dword [esp]
jmp 0xb94f8c
push edx
btr eax, edx
stc
mov dx, word [esp + 4]
rdtsc
lea esp, [esp + 3]
jmp 0xb94f47
mov esi, ebp
rdtsc
setns dh
lea esp, [esp]
mov si, 0x415b
pop ax
call fcn.00b94fd1
test al, 0xcb
bound ebx, qword [ebp + 0x4666ffec]
inc si
bswap edx
cld
bsr ax, bp
mov ax, bx
not esi
jmp 0xb94f71
cmc
xchg ah, dh
xchg edx, eax
lea edx, [ebp - 0x97]
lea esp, [esp + 1]
xchg byte [esp], dl
jmp 0xb94f5f
Function at 0xb955f3
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
lea esp, [esp + 0x4f]
push edx
pop word [esp]
inc edx
jmp 0xb955f5
jmp 0xb955dc
lea esi, [ebp*4]
bswap eax
mov dh, bh
pushal
pop si
mov dl, dh
jmp 0xb95693
mov edx, dword [esp + 0xf]
mov si, 0x695b
bswap edx
push word [esp + 0xd]
xchg edx, esi
mov esi, dword [esp + 0x17]
jmp 0xb95743
mov byte [esp + 0x15], ah
push word [esp + 0x17]
mov esi, dword [esp + 0x11]
mov al, 6
jmp 0xb9566b
mov ax, word [esp + 0x12]
mov edx, dword [esp + 5]
lea esi, reloc.WINMM.dll_midiStreamStop
push edx
mov dx, 0xf115
xchg dword [esp + 0x16], edx
jmp 0xb9571d
bsf si, si
pop dx
mov eax, edx
neg dh
mov ax, word [esp + 0x14]
mov dh, bh
jmp 0xb956bd
bsf ax, si
pop si
cld
push word [esp + 0x11]
mov esi, dword [esp + 0x13]
lea esi, reloc.WINMM.dll_midiStreamStop
jmp 0xb956e9
dec ax
mov edx, dword [esp + 9]
mov ax, word [esp + 0x12]
mov dh, byte [esp + 0xb]
add esp, 5
cld
jmp 0xb9579a
mov edx, esi
pop dword [esp]
pop dword [esp]
xchg word [esp + 7], si
mov dh, byte [esp + 0xf]
mov dword [esp + 0x13], eax
jmp 0xb95705
mov dl, 0xbc
xor dl, ch
not ah
sub esp, 0xa
mov edx, 0x4cfc2b94
bt esi, edx
jmp 0xb957e0
neg dh
mov dword [esp + 1], ecx
stc
mov dh, 0xb0
xchg si, ax
xchg ah, dh
jmp 0xb9575a
pop edx
lea eax, [ebp - 0x4f]
mov dh, bh
mov byte [esp + 0xf], ch
mov eax, esi
mov byte [esp + 1], dh
jmp 0xb9577c
mov dx, di
bswap eax
mov dh, byte [esp]
mov eax, esp
btr eax, edx
jmp 0xb95807
btr esi, ebx
sub esp, 0x1e
lea esp, [esp + 0x49]
inc edx
rdtsc
mov ax, 0x1947
jmp 0xb957ac
rdtsc
rdtsc
sub esp, 0xc
rdtsc
neg ah
mov dword [esp + 0x16], ecx
jmp 0xb957c2
ror eax, 0x17
rdtsc
mov dl, dh
setbe ah
rol esi, 0xf
mov dh, 0x7a
jmp 0xb96106
mov edx, 0x4830ebc0
lea edx, [esi - 0xfd]
mov al, 0x2e
mov dh, bh
mov dx, cx
jmp 0xb957f1
sub esp, 0x1e

Function at 0xb95d43
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp]
mov dh, bh
mov byte [esp], bh
lea edx, [esp + edx]
lea eax, [eax + edx]
jmp 0xb95d83
lea esp, [esp + 8]
mov edx, 0x93cf262
mov si, word [esp]
mov si, bx
jmp 0xb95d2d
mov ax, bx
neg ah
mov ax, cx
stc
setp dh
bsf ax, si
jmp 0xb95d62
Function at 0xb993f9
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
xchg word [esp + 0xa], bx
sub edx, eax
jmp 0xb99408
rdtsc
push word [esp + 0xc]
lea esp, [esp + 8]
xchg dword [esp + 4], ebp
rdtsc
jmp 0xb99433
Function at 0xb997f4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov di, 0x39b9
sub esp, 0
mov ebp, 0x14e614da
mov dl, dh
jmp 0xb9981d

Function at 0xb99fe6
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop cx
xchg esi, edi
mov ebx, 0xd84ffaf6
mov bl, bh
mov dword [esp + 6], esi
cpuid
jmp 0xb99fee
xchg edx, ebx
xchg byte [esp + 8], cl
jmp 0xb99fce
ror bh, 3
mov di, 0x2bb3
mov ecx, eax
mov dx, word [esp + 5]
xchg dword [esp + 2], edx
xchg word [esp + 5], ax
jmp 0xb9a044
xchg byte [esp + 2], cl
xchg bx, dx
lea ebp, [esi + 0x65]
mov word [esp + 4], bx
rdtsc
jmp 0xb9a025

Function at 0xb9a750
Capabilities:
Parse pe header

Disassembly:
push eax
jmp 0xb9500e
call fcn.00b95013
movzx ebx, word [eax + 0x3c]
jmp 0xb9a821
call 0xb991da
jmp 0xb9a846
lea esp, [esp + 0x17]
call fcn.00b9a783
lea esp, [esp + 3]
mov dword [esp + 0x90], esi
push edx
mov word [esp], di
jmp 0xb9a785
push word [esp + 1]
mov word [esp + 2], sp
pop word [esp + 1]
mov dword [esp + 0x90], edi
jmp 0xb9a7ec
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0xb9a878
mov eax, dword [eax + 0xc]
jmp 0xb9a7b6
lea esp, [esp + 0x90]
mov eax, dword fs:[0x30]
jmp 0xb9a7d5
add ebx, eax
cmp word [ebx], 0x4550
jmp 0xb9a857
sub eax, 0x10000
jmp 0xb9a84a
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0xb99092
jne 0xb9a82e
je 0xb94ed3
jne 0xb9a82e
lodsd eax, dword [esi]
cmp ch, byte [eax - 0x726cc531]
pop ds
invalid
push eax
jmp 0xb991d5

Function at 0xb9a7a7
Capabilities:
Parse pe header

Disassembly:
mov dword [esp + 0x80], ebp
pushal
push esp
push edx
pop word [esp + 0x17]
call fcn.00b9a750
lea esp, [esp + 5]
mov word [esp + 8], bx
lea esp, [esp + 2]
jmp 0xb9a76f
Function at 0x403164
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x417c98
call fcn.00412454
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.00401e3a
push 0
push 0x1f4
mov ecx, edi
call fcn.0040610b
push 0x45
lea ecx, [ebp - 0x18]
pop edx
call fcn.00405f72
mov edx, dword [eax]
mov ecx, dword [esi + 0x6c]
and dword [ebp - 4], 0
call fcn.00405f8c
push dword [ebp - 0x18]
call fcn.00403a29
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x404839
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x404854
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x422098], 0
push esi
mov esi, edx
jne 0x40488c
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040489c
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.00404839
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a29
pop ecx
mov al, bl
pop ebx
jmp 0x404899
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x4048eb
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x422098], 0
jne 0x40491c
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040489c
mov ecx, dword [eax]
call fcn.00404847
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a29
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x404939
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x422098], 0
jne 0x40496a
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040489c
mov ecx, dword [eax]
call fcn.0040492a
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a29
pop ecx
mov al, bl
pop ebx
leave
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x404b97
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x422098], 0
push esi
mov esi, ecx
jne 0x404bcb
push ebx
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0040489c
mov ecx, dword [eax]
call fcn.00404b79
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a29
pop ecx
mov al, bl
pop ebx
jmp 0x404be4
xor edx, edx
mov ecx, esi
call fcn.00404854
test al, al
je 0x404be4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x405048
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, 0x105
push edi
mov edi, edx
cmp dword [esi + 8], eax
mov ebx, ecx
jg 0x405065
push eax
mov ecx, esi
call fcn.004024f5
push dword [esi]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, esi
mov edi, eax
call fcn.0040422c
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x405165
Capabilities:
Delete file

Disassembly:
mov eax, 0x418084
call fcn.00412454
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x1c]
call fcn.0040521b
xor ebx, ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.004050b8
test al, al
je 0x4051f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4051e4
mov ecx, dword [esi]
call fcn.00405830
test al, al
jne 0x4051c3
mov ecx, dword [esi]
call fcn.0040492a
test al, al
jne 0x4051e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4051f9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00405141
push dword [ebp - 0x18]
call fcn.00403a29
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040521b
jmp 0x405183
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00405141
push dword [ebp - 0x18]
call fcn.00403a29
pop ecx
mov al, bl
jmp 0x40520c
lea ecx, [ebp - 0x1c]
call fcn.00405141
push dword [ebp - 0x18]
call fcn.00403a29
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4059e7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405a0d
xor al, al
jmp 0x405a2d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412f90
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x409328
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x418667
call fcn.00412454
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41a654
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41a64c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.004042c4
push dword [esi + 8]
mov ecx, ebx
call fcn.004042c4
push dword [esi + 0xc]
mov ecx, edi
call fcn.004042c4
push dword [esi + 0xc]
mov ecx, edi
call fcn.004042c4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x409334
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x418667
call fcn.00412454
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41a654
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41a64c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.004042c4
push dword [esi + 8]
mov ecx, ebx
call fcn.004042c4
push dword [esi + 0xc]
mov ecx, edi
call fcn.004042c4
push dword [esi + 0xc]
mov ecx, edi
call fcn.004042c4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40c5b3
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x418e2c
call fcn.00412454
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41a654
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41a708
push 4
mov ebx, 0x41a644
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.0040338f
mov dword [esi + 0x3c], 0x41a798
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.0040338f
mov dword [edi], 0x41a7a0
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040bc33
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040bc33
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040bc33
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040bc33
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040bc33
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x411d60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0041300f
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.00411d30
pop esi
ret 4
Function at 0x4179f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, ecx
mov esi, edx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x417a1f
test esi, 7
je 0x417a1f
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x417a04
cmp edi, 0x10
jb 0x417aa8
mov dword [esp + 0x14], edi
sub edi, 8
and edi, 0xfffffff8
sub dword [esp + 0x14], edi
add edi, esi
xor eax, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, bl
mov edx, dword [ebp + ecx*4 + 0xc00]
movzx ecx, bh
xor edx, dword [ebp + ecx*4 + 0x800]
shr ebx, 0x10
movzx ecx, bl
xor edx, dword [ebp + ecx*4 + 0x400]
xor edx, dword [esi + 8]
movzx ecx, al
movzx ebx, bh
xor edx, dword [ebp + ebx*4]
mov ebx, dword [esi + 0xc]
xor edx, dword [ebp + ecx*4 + 0x1c00]
movzx ecx, ah
add esi, 8
shr eax, 0x10
xor edx, dword [ebp + ecx*4 + 0x1800]
movzx ecx, al
xor edx, dword [ebp + ecx*4 + 0x1400]
movzx ecx, ah
mov eax, dword [ebp + ecx*4 + 0x1000]
movzx ecx, bl
xor eax, edx
cmp esi, edi
jne 0x417a40
xor eax, dword [esi]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x417abf
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x417aac
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0x4014be
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x128
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x120], ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x42f918]
or eax, 8
push eax
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x401589
jmp 0x401527
cmp dword [ebp - 0x120], 0
je 0x401515
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
add esp, 0xc
jmp 0x401589
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, edi
call fcn.004014be
test eax, eax
jne 0x401541
jmp 0x40152d
lea edi, [ebp - 0x115]
push 0x105
push edi
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x4014f7
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push 2
call fcn.004060cb
add esp, 0xc
test eax, eax
je 0x401568
push 0
push dword [0x42f918]
push ebx
push esi
call eax
jmp 0x401589
mov eax, 1
cmp dword [0x42f918], 0
jne 0x401589
push edi
push edi
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
pop ebx
pop esi
test eax, eax
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x403140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [0x409010]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
xor edx, edx
test eax, eax
je 0x403170
xor edx, edx
cmp dword [ebp - 8], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x4033e6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x403413
mov eax, dword [0x420c60]
test eax, eax
je 0x403407
sub esp, 0xc
push eax
call sub.USER32.dll_DestroyWindow
add esp, 0xc
mov dword [0x420c60], 0
jmp 0x403464
cmp dword [0x420c60], 0
je 0x40342b
sub esp, 0xc
push 0
call fcn.00406090
add esp, 0xc
jmp 0x403464
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x42f998]
jbe 0x403464
sub esp, 0xc
push 0
push 0x403715
push 0
push 0x6f
push dword [0x42f9f8]
call sub.USER32.dll_CreateDialogParamA
mov dword [0x420c60], eax
sub esp, 0xc
push 5
push eax
call sub.USER32.dll_ShowWindow
add esp, 0x18
leave
ret
Function at 0x4037d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x439400
call fcn.004061e2
push 0x439400
call fcn.00405f98
add esp, 0xc
xor edx, edx
test eax, eax
je 0x403824
sub esp, 0xc
push 0x439400
call fcn.004062df
sub esp, 0xc
push 0
push 0x439400
call sub.KERNEL32.dll_CreateDirectoryA
push 0x439400
push 0x439000
call fcn.0040668e
mov edx, eax
add esp, 0x18
mov eax, edx
leave
ret
Function at 0x406353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 0
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
lea edx, [ebp - 8]
push edx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4063cc
mov dword [ebp - 0xc], 0x400
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
pop ecx
test eax, eax
jne 0x4063b4
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x4063b7
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x40668e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, 0x64
jmp 0x4066d3
mov dword [ebp - 0x10], 0x61736e
mov bl, byte [ebp - 0xe]
call sub.KERNEL32.dll_GetTickCount
mov edx, 0x1a
mov ecx, edx
xor edx, edx
div ecx
add ebx, edx
mov byte [ebp - 0xe], bl
push esi
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
jne 0x4066de
dec edi
cmp edi, 0xffffffff
jne 0x4066a1
mov byte [esi], 0
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x4066ea
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x42daa8
call fcn.0040631c
push ecx
push 0x42daa8
call fcn.00406179
mov ebx, eax
add esp, 0xc
test eax, eax
je 0x40679f
sub esp, 0xc
push eax
call fcn.004061e2
add esp, 0xc
cmp byte [0x42f9a8], 0
jns 0x406762
mov al, byte [ebx]
test al, al
je 0x40679f
cmp al, 0x5c
jne 0x406762
jmp 0x40679f
sub esp, 0xc
push 0x42daa8
call fcn.0040611a
add esp, 0xc
test eax, eax
je 0x406750
test byte [eax], 0x10
je 0x40679f
sub esp, 0xc
push 0x42daa8
call fcn.004062aa
add esp, 0xc
jmp 0x406768
sub ebx, 0x42daa8
sub esp, 0xc
push 0x42daa8
call fcn.004062a1
add esp, 0xc
cmp eax, ebx
jg 0x406737
sub esp, 0xc
push 0x42daa8
call fcn.004062df
push 0x42daa8
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x4067a1
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4067a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
pop edx
pop ecx
xor edx, edx
cmp eax, 0xffffffff
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4067e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x406806
push edx
push edx
and eax, 0xfffffffe
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
pop ebx
pop eax
mov ebx, dword [ebp - 4]
leave
ret 4