joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x10155004]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, edx
mov dword [esp + 0x18], ecx
push esi
mov esi, dword [esp + 0x78]
push edi
cmp word [ebp + 0x18], 0
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
jne 0x10043484
push 0x10144edc
push 0x12f3d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10115f0d
add esp, 0x68
ret
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.100414a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1004360c
mov eax, dword [ebp + 0x24]
add esi, 4
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x4c]
push ebp
call eax
mov edi, dword [esp + 0x1c]
lea edx, [ebx + 0xd]
movzx eax, ax
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.1003d6e0
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
xor edx, edx
mov eax, dword [ebp + 0x3c]
push edi
push 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], 2
call fcn.10042c40
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1004351e
test edi, edi
je 0x1004360c
jmp 0x10043604
mov ecx, dword [esp + 0x24]
movzx eax, word [edi + 0x12]
mov ecx, dword [ecx + 0x28]
sub ecx, eax
movzx eax, word [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x24]
sub ecx, 2
mov dword [edi + 0x14], ecx
cmp byte [eax + 0x11], 0
je 0x10043582
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push dword [ecx + 4]
mov ecx, eax
push 5
call fcn.1003c120
mov ax, word [esp + 0x28]
add esp, 0xc
cmp ax, word [edi + 0x10]
jbe 0x1004357e
lea eax, [esp + 0x14]
mov edx, edi
push eax
push dword [esp + 0x1c]
mov ecx, edi
call fcn.1003c8c0
add esp, 8
mov ebx, dword [esp + 0x14]
movzx ecx, word [ebp + 0x18]
mov eax, dword [ebp + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebp + 0x38]
mov dword [esp + 0x18], ecx
lea edx, [ecx + 9]
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x18], ecx
test al, al
jns 0x100435b4
cmp ecx, edx
jb 0x100435a5
lea edx, [ecx + 9]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
mov dword [esp + 0x18], ecx
test al, al
jns 0x100435c9
cmp ecx, edx
jb 0x100435b7
test ebx, ebx
jne 0x100435ef
push dword [ebp + 4]
mov eax, dword [esp + 0x30]
sub esi, eax
mov ebp, dword [esp + 0x24]
mov ecx, ebp
push ebx
push esi
push eax
movzx edx, word [ebp + 0x18]
call fcn.10042650
add esp, 0x10
mov ebx, eax
jmp 0x100435f3
mov ebp, dword [esp + 0x20]
movzx ecx, byte [ebp + 9]
mov eax, dword [ebp + 0x38]
mov edx, dword [esp + 0x28]
bswap edx
mov dword [ecx + eax + 8], edx
mov ecx, dword [edi + 0x48]
call fcn.100365d0
mov ecx, dword [esp + 0x74]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10115f0d
add esp, 0x68
ret
Function at 0x1004f6a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov ebp, edx
mov esi, ecx
push edi
mov ecx, ebp
call fcn.1003ffb0
mov ebx, dword [ebp + 0x28]
xor eax, eax
movzx ecx, word [ebp + 0x30]
mov edi, dword [ebp + 0x2c]
mov word [esp + 0x30], ax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x34], esi
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x1004f6e0
xor edx, edx
mov ecx, eax
test eax, eax
cmovs ecx, edx
mov dword [esp + 0x28], ebx
cmp edi, ecx
ja 0x1004f6f8
mov eax, 0x4010
mov dword [esp + 0x2c], edi
mov word [esp + 0x30], ax
jmp 0x1004f71a
lea eax, [esp + 0x20]
xor edx, edx
push eax
push edi
mov ecx, ebp
call fcn.1004a370
add esp, 8
test eax, eax
jne 0x1004f878
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
movzx esi, byte [ebx]
cmp esi, 0x80
jb 0x1004f737
mov al, byte [ebx + 1]
test al, al
js 0x1004f775
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
cmp esi, 3
jb 0x1004f845
cmp esi, edi
ja 0x1004f845
lea ecx, [esi - 1]
add ecx, ebx
mov ah, byte [ecx]
movzx edx, ah
cmp edx, 0x80
jb 0x1004f7eb
mov al, byte [ebx + esi]
test al, al
js 0x1004f7ae
movzx edx, ah
and edx, 0x7f
movzx eax, al
shl edx, 7
or edx, eax
jmp 0x1004f7eb
mov dl, byte [ebx + 2]
test dl, dl
js 0x1004f792
and esi, 0x7f
movzx ecx, al
and ecx, 0x7f
shl esi, 7
or esi, ecx
movzx eax, dl
shl esi, 7
jmp 0x1004f735
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.1002ba00
mov esi, dword [esp + 0x18]
xor eax, eax
cmp eax, dword [esp + 0x1c]
je 0x1004f737
or esi, 0xffffffff
jmp 0x1004f740
mov dl, byte [ecx + 2]
mov byte [esp + 0x17], dl
test dl, dl
js 0x1004f7d6
movzx edx, ah
and edx, 0x7f
movzx eax, al
shl edx, 7
and eax, 0x7f
or edx, eax
movzx eax, byte [esp + 0x17]
shl edx, 7
or edx, eax
jmp 0x1004f7eb
lea edx, [esp + 0x18]
call fcn.1002ba00
mov edx, dword [esp + 0x18]
xor eax, eax
cmp eax, dword [esp + 0x1c]
jne 0x1004f845
cmp edx, 1
jb 0x1004f845
cmp edx, 9
ja 0x1004f845
cmp edx, 7
je 0x1004f845
movzx ecx, byte [edx + 0x1013f4b0]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x1004f845
sub edi, ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [ebx + edi]
call fcn.1004e040
mov eax, dword [esp + 0x78]
add esp, 4
cmp dword [esp + 0x38], 0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [eax], ecx
mov dword [eax + 4], edx
je 0x1004f83b
lea ecx, [esp + 0x20]
call fcn.10049740
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp dword [esp + 0x38], 0
je 0x1004f855
lea ecx, [esp + 0x20]
call fcn.10049740
push 0x10144edc
push 0x15c46
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x1005bdb0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.10025910
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005bdd8
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x10155b0c], 0
mov edi, dword [esp + 0x14]
je 0x1005be20
mov eax, dword [0x10155c08]
test eax, eax
je 0x1005bdfc
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1005be20
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x10028c80
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.101198af
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1005be2d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1005be45
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x100e4490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x84]
xorps xmm0, xmm0
push ebx
push ebp
push esi
cmp dword [eax], 0
mov ebp, edx
mov ebx, ecx
mov dword [esp + 0x18], ebp
push edi
mov dword [esp + 0x18], ebx
movlpd qword [esp + 0x28], xmm0
je 0x100e44c4
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
push 0x40
lea eax, [esp + 0x4c]
push 0
movups xmmword [esp + 0x40], xmm0
push eax
mov dword [esp + 0x50], 0x13
call fcn.10117800
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, ebp
mov ecx, ebx
push eax
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0xa8]
call fcn.100d42f0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x100e4690
push dword [esp + 0x3c]
lea eax, [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.100dfcc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100e4690
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.100dfde0
mov esi, eax
cmp esi, 0x64
jne 0x100e4690
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
nop dword [eax]
mov edi, dword [esp + 0x80]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x84]
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [esp + 0x20], xmm0
add ebp, edi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x28], xmm0
call fcn.100d04f0
lea esi, [edi + eax]
cmp esi, ebp
jae 0x100e4670
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.100d04f0
add esi, eax
cmp esi, ebp
jae 0x100e466c
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x100e4618
cmp ecx, 1
jne 0x100e45d8
test edx, edx
je 0x100e4618
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
adc edx, 0xffffffff
add eax, ecx
mov ecx, dword [esp + 0x78]
adc dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
push edi
push ebx
push dword [esp + 0xa0]
push dword [esp + 0x30]
call fcn.100e43e0
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x10], edx
jmp 0x100e4664
xorps xmm0, xmm0
or ecx, edx
movlpd qword [esp + 0x30], xmm0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
je 0x100e463a
lea edx, [esp + 0x30]
call fcn.100d04f0
add esi, eax
jmp 0x100e4664
lea edx, [esp + 0x20]
call fcn.100d04f0
add esi, eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xef], 0
je 0x100e465c
sub ebx, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
jmp 0x100e4664
add ebx, dword [esp + 0x20]
adc edi, dword [esp + 0x24]
cmp esi, ebp
jb 0x100e45a3
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.100dfde0
mov esi, eax
cmp esi, 0x64
je 0x100e4560
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x100e4698
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.100e04f0
mov eax, dword [esp + 0x94]
mov edx, edi
pop edi
mov dword [eax], esi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x100f5c20
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x100f5c5c
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.100f5b40
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x100f5d1c
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.100520a0
push edi
call fcn.10050cc0
add esp, 0x14
cmp eax, 0x65
jne 0x100f5cb3
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.100f5bc0
add esp, 0x1c
jmp 0x100f5d0a
cmp eax, 0x64
jne 0x100f5d0a
push 0
push edi
call fcn.10051760
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x100f5cd5
cmp edx, ecx
je 0x100f5d0a
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.100f5bc0
add esp, 0x2c
push edi
call fcn.1004fd70
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x100f5d1c
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x100f9e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [ecx], eax
test edi, edi
je 0x100f9f63
mov ebx, dword [ebp + 0xc]
lea esi, [eax + 0xd]
lea edx, [ebx - 1]
test edx, edx
js 0x100f9e57
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x100f9e40
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x14], eax
test edi, edi
je 0x100f9ede
cmp dword [edi + 8], ecx
jne 0x100f9ed7
cmp dword [edi + 4], ebx
jne 0x100f9ed7
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 8]
sub ecx, 4
jb 0x100f9ea1
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100f9ea6
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100f9e90
cmp ecx, 0xfffffffc
je 0x100f9eee
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100f9ed3
cmp ecx, 0xfffffffd
je 0x100f9eee
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100f9ed3
cmp ecx, 0xfffffffe
je 0x100f9eee
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100f9ed3
cmp ecx, 0xffffffff
je 0x100f9eee
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x100f9eee
mov ecx, dword [esp + 0xc]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100f9e78
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.100cb360
test eax, eax
je 0x100f9f00
jmp 0x100f9f10
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.10025910
mov esi, eax
add esp, 8
test esi, esi
jne 0x100f9f2c
test edi, edi
je 0x100f9f1f
mov eax, 7
mov dword [esp + 0x10], eax
jmp 0x100f9f21
xor eax, eax
test esi, esi
jne 0x100f9f38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.10117800
add esp, 0xc
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call fcn.10118c90
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101140b0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x101140cf
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x1011417a
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x1013d1f8]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x101140f0
movzx edx, word [ebp*4 + 0x1013d1f8]
movzx eax, byte [ebp*4 + 0x1013d1fb]
add eax, edx
cmp ecx, eax
jge 0x1011415e
movzx eax, byte [ebp*4 + 0x1013d1fa]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x1011415e
shr eax, 1
movzx eax, word [eax*2 + 0x1013e6a0]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x10114188
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.100e9000
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x1011418a
mov eax, ecx
add esp, 8
ret

Function at 0x10122784
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10122401
Function at 0x401424
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004067ea
test eax, eax
jne 0x40152d
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401499
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401509
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014d4
test edi, edi
jne 0x401509
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.00401424
test eax, eax
jne 0x4014de
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014ac
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406e1b
test eax, eax
jne 0x40151a
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40152d
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40152d
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x4037d9
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x4037f8
mov eax, dword [0x41f15c]
test eax, eax
je 0x4037f0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x41f15c], 0
ret
cmp dword [0x41f15c], 0
je 0x403809
push 0
call fcn.0040671d
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x470e20]
jbe 0x40383c
push 0
push 0x403c08
push 0
push 0x6f
push dword [0x468d94]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x41f15c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x406315
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40632f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x406335
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x40985c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x40984c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4063a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4063ad
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x4063a7
xor eax, eax
jmp 0x4063ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4
Function at 0x4066aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
xor eax, eax
cmp ecx, esi
pop esi
cmova ecx, eax
test ecx, ecx
je 0x4066e0
cmp word [ebp + ecx*2 - 0x23e], 0x5c
jne 0x4066e3
xor eax, eax
inc eax
push dword [ebp + 8]
lea eax, [eax*2 + 0x4092c8]
push eax
lea eax, [ebp - 0x23c]
lea eax, [eax + ecx*2]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40674d
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406770
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406818
pop ecx
pop ecx
inc dword [0x470e90]
ret 8

Function at 0x406818
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, 0x400
mov dword [0x45fed0], 0x55004e
mov ebp, 0x45fed0
mov dword [0x45fed4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x40686f
push 1
push 0
push esi
call fcn.00406e50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406953
cmp eax, ebx
jg 0x406953
push ebx
mov esi, 0x45f6d0
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x406953
cmp eax, ebx
jg 0x406953
push esi
push ebp
push str._ls_ls_r_n
push 0x45f2d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x470dc4]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004063b3
push 4
push 0xc0000000
push esi
call fcn.00406e50
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x406953
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40694c
push esi
push edi
push ebx
call fcn.00406e7d
test eax, eax
je 0x40694c
push str._Rename__r_n
push edi
call fcn.00407075
test eax, eax
jne 0x406959
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x45f2d0
lea eax, [ecx + edi]
push eax
call fcn.00406bd7
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406f44
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x4099d0
add eax, 0xa
push eax
call fcn.00407075
mov ecx, eax
test ecx, ecx
je 0x40691d
lea edx, [edi + esi]
lea eax, [edx + ebp]
cmp edx, ecx
jbe 0x40698d
sub eax, edx
mov dword [esp + 0x1c], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x40697f
mov ebx, dword [esp + 0x10]
sub ecx, edi
inc ecx
jmp 0x40691f
Function at 0x406ab0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004070c8
mov edi, eax
cmp edi, 0xffffffff
je 0x406af3
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406adb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406ae3
xor eax, eax
inc eax
jmp 0x406af5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406ad2
test byte [ebp + 0xc], 4
jne 0x406af3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x45b2c8
push ebx
call fcn.00407059
push ebx
call fcn.004070f0
mov esi, eax
test esi, esi
jne 0x406b7a
xor eax, eax
jmp 0x406bd2
push esi
call fcn.00407265
test byte [0x470dc0], 0x80
je 0x406b96
movzx eax, word [esi]
test ax, ax
je 0x406b76
cmp eax, 0x5c
je 0x406b76
sub esi, ebx
sar esi, 1
jmp 0x406bb0
call fcn.00406afa
test eax, eax
je 0x406baa
test byte [eax], 0x10
je 0x406b76
push ebx
call fcn.00407238
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406b9c
call fcn.00406a81
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x406bf7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x457278], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x457278
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406c36
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4