joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10079de3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100a5378
call fcn.1007c8b4
sub esp, 0x4c
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], eax
call fcn.1007a0d4
lea eax, [ebp + 0x13]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
sub eax, dword [ebp - 0x24]
push eax
call fcn.10079585
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
sub eax, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x10079e56
push str._Default_
push ebx
call fcn.1008c1fe
pop ecx
pop ecx
test eax, eax
jne 0x10079e56
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0
jmp 0x10079e62
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x10079e8a
mov esi, edi
mov dword [ebp + 0x10], esi
test esi, esi
jne 0x10079ec5
xor ecx, ecx
mov esi, ecx
test eax, eax
jne 0x10079f11
mov esi, dword [ebp - 0x18]
lea eax, [ebp + 0x13]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.10079585
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
sub eax, edi
cmp eax, dword [ebp - 0x10]
jne 0x10079ebd
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x10079ec0
push 8
pop eax
mov esi, edi
mov dword [ebp + 0x10], edi
test eax, eax
jne 0x10079f0f
mov ebx, dword [ebp + 8]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push edi
lea ecx, [ebx + 4]
mov dword [ebx], eax
call fcn.1000284c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10079f5f
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp + 8], edi
mov dword [ebp + 0x14], eax
cmp eax, 0x1000
jb 0x10079f0b
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10001c26
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
pop ecx
pop ecx
push eax
push edi
jmp 0x10079f58
xor ecx, ecx
cmp eax, 5
je 0x10079f1c
cmp byte [ebp + 0x14], 0
jne 0x10079f72
mov ebx, dword [ebp + 8]
push ecx
push edi
mov dword [ebx], ecx
lea ecx, [ebx + 4]
call fcn.1000284c
test esi, esi
je 0x10079f5f
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], eax
cmp eax, 0x1000
jb 0x10079f56
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10001c26
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.1007c382
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.1007acfd
push 0x100c8de8
lea eax, [ebp - 0x58]
push eax
call fcn.1007dfce
int3
Function at 0x10091e9c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b1af4
push 0x100b1aec
push str.FlsAlloc
push 0x1e
call fcn.10091d26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10091ed0
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a7400]
call esi
jmp 0x10091ed6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10091f1a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b1b04
push 0x100b1afc
push str.FlsGetValue
push 0x20
call fcn.10091d26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10091f51
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a7400]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10093d10
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 + 0x100d4360]
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 0x10093d50
cmp byte [ebx], 0xa
jne 0x10093d50
or byte [eax + edi + 0x28], 4
jmp 0x10093d55
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10093e53
mov al, byte [edx]
cmp al, 0x1a
je 0x10093e35
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10093d84
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10093da9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10093db3
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 0x10093d66
jmp 0x10093e53
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 0x10093e30
cmp dword [ebp - 0xc], 0
je 0x10093e30
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100d4360]
test byte [eax + edi + 0x28], 0x48
je 0x10093e0a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10093df5
mov byte [esi], dl
jmp 0x10093e06
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d4360]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10093e53
cmp byte [ebp - 1], 0xa
jne 0x10093e19
cmp esi, ebx
jne 0x10093e19
mov byte [esi], 0xa
jmp 0x10093e52
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100949d0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10093e53
mov byte [esi], 0xd
jmp 0x10093e52
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100d4360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10093e4f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10093e53
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10093e5c
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 + 0x100d4360]
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 0x10093e9f
cmp word [esi], dx
jne 0x10093e9f
or byte [edi + eax + 0x28], 4
jmp 0x10093ea4
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 0x10093fdd
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 0x10093fbd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10093ee6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10093f1c
cmp eax, edx
jae 0x10093f28
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 0x10093ebe
jmp 0x10093fdd
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 0x10093fb9
cmp dword [ebp - 0x14], 0
je 0x10093fb9
mov eax, dword [ebx*4 + 0x100d4360]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10093f91
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10093fd7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100d4360]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100d4360]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100d4360]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10093fda
pop ebx
cmp word [ebp - 4], bx
jne 0x10093fa2
cmp esi, dword [ebp + 0xc]
jne 0x10093fa2
mov word [esi], bx
jmp 0x10093fda
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100949d0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10093fdd
push 0xd
jmp 0x10093fd6
mov ecx, dword [ebx*4 + 0x100d4360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10093fd4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10093fdd
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 0x100947fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009466f

Function at 0x10094d8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1007c930
mov eax, dword [0x100ce814]
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.1008c1d7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10094dd0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10094f2c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1009f910
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 + 0x100d4360]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100949b2
mov ecx, dword [esi*4 + 0x100d4360]
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 0x10094f25
cmp eax, dword [edi + ecx + 0x24]
jne 0x10094f25
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 0x10094f25
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100949b2
add esp, 0x14
test edx, edx
jl 0x10094f25
jg 0x10094e9b
test eax, eax
jb 0x10094f25
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10094f25
jl 0x10094eb5
cmp dword [ebp - 0x1008], eax
ja 0x10094f25
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10094ed3
test ebx, ebx
je 0x10094f0c
cmp ecx, edi
jae 0x10094f0c
mov al, byte [ecx]
cmp al, 0xd
jne 0x10094eed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10094ef9
cmp byte [ecx + 1], 0xa
jne 0x10094ef9
inc ecx
jmp 0x10094ef9
movzx eax, al
movsx eax, byte [eax + 0x100ceab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10094ed3
cmp edx, ebx
jne 0x10094ed3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10094f2a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007cf75
leave
ret
Function at 0x10098068
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 0x10098105
push ebx
push esi
call fcn.10098031
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.10092567
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100980b2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10098104
push edi
push eax
call fcn.10090567
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100980d2
call fcn.1009052d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10098103
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10092567
add esp, 0x20
test eax, eax
jne 0x100980f1
push edi
call fcn.1009052d
jmp 0x100980f9
push ebx
call fcn.1009052d
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 0x1009eb75
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009eaf1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009eced
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009eced
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009ec9c
jg 0x1009ebce
test eax, eax
je 0x1009ec92
push 1
push 0x1000
call fcn.1009198c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009ebf4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1009ec89
push 0x8000
push ebx
call fcn.1009ea22
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1009ec20
jg 0x1009ec1b
cmp ecx, 0x1000
jb 0x1009ec20
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009d08a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009ec65
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1009ec1b
jl 0x1009ec4c
test ecx, ecx
jne 0x1009ec0d
push dword [ebp - 0xc]
push ebx
call fcn.1009ea22
push esi
call fcn.1009052d
add esp, 0xc
xor edi, edi
jmp 0x1009ecfe
cmp byte [edi + 0x24], 0
je 0x1009ec7c
cmp dword [edi + 0x20], 5
jne 0x1009ec7c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009ec87
mov edi, dword [edi + 0x18]
jmp 0x1009ec89
xor edi, edi
push esi
call fcn.1009052d
pop ecx
jmp 0x1009ecfe
test ecx, ecx
jg 0x1009ec5e
jl 0x1009ec9c
test eax, eax
jae 0x1009ec5e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100949d0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009ecbf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009ec5e
jmp 0x1009ecf6
push ebx
call fcn.10095552
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009ec5e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1009ecfe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009ecfb
mov edi, dword [edi + 0x18]
jmp 0x1009ecfe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100949d0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0x4cb3d0
mov eax, dword [ebx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404ac0
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
and esi, 0xf
jbe 0x4049b2
movzx ecx, word [edi]
lea edi, [edi + ecx*2]
add edi, 2
sub esi, 1
jne 0x4049a4
movzx esi, word [edi]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403ad0
add esi, esi
lea eax, [edi + 2]
push esi
push eax
push dword [ebp - 0x18]
call fcn.00499f60
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor ecx, ecx
push dword [ebp + 0xc]
mov word [esi + eax], cx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x28], vtable.UnicodeStringStorage.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, 0x4cb33c
mov eax, dword [ebp - 0x18]
test eax, eax
cmovne esi, eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404a63
sub eax, edx
lea ecx, [ebp - 0x24]
sar eax, 1
push ecx
inc eax
push eax
call fcn.00403ad0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
and eax, 0xfffffffe
push eax
push esi
push ecx
call fcn.00499f60
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
push 0x4cb33c
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x24]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], vtable.UnicodeStringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0x18]
call fcn.004039a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b435f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [edi], vtable.ControlCommandLine.0
lea esi, [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea eax, [edi + 0x20]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea eax, [edi + 0x40]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
lea esi, [eax + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea eax, [edi + 0x50]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov dword [edi + 0x60], vtable.Rect.0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
lea eax, [edi + 0x78]
mov byte [edi + 0x74], 0
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
and eax, 0xfffffffe
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov dword [edi + 0x88], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4ad8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0x86
mov dword [esi + 0xc], vtable.Control.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.SetPasswordsDialog.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], vtable.CheckBox.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], vtable.CheckBox.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], vtable.CheckBox.0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], vtable.TextBox.0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], vtable.TextBox.0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], vtable.CheckBox.0
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], vtable.CheckBox.0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], vtable.CheckBox.0
mov dword [esi + 0x88], 0
mov dword [esi + 0x84], vtable.TextBox.0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], vtable.TextBox.0
lea edi, [esi + 0x9c]
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.0044c640
lea ebx, [esi + 0xc0]
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.0044c640
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 0xc
call fcn.0044c640
mov cl, byte [ebp + 8]
mov al, cl
mov byte [esi + 0x109], cl
xor al, 1
mov byte [esi + 0x108], al
lea eax, [esi + 0x10c]
mov dword [ebp + 8], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov word [eax + 0x11c], 1
add eax, 0x120
mov dword [ebp + 8], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov byte [ebp - 4], 0x11
mov ecx, 0x9c57
mov esi, dword [edi]
call fcn.0044de10
push eax
mov ecx, edi
call dword [esi + 8]
mov esi, dword [edi]
mov ecx, 0x9c55
call fcn.0044de10
push eax
mov ecx, edi
call dword [esi + 0xc]
mov esi, dword [ebx]
mov ecx, 0x9c58
call fcn.0044de10
push eax
mov ecx, ebx
call dword [esi + 8]
mov esi, dword [ebx]
mov ecx, 0x9c55
call fcn.0044de10
push eax
mov ecx, ebx
call dword [esi + 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, 0x9ca7
mov esi, dword [edi + 0xe4]
call fcn.0044de10
push eax
lea ecx, [edi + 0xe4]
call dword [esi + 8]
mov esi, dword [edi + 0xe4]
mov ecx, 0x9ca8
call fcn.0044de10
push eax
lea ecx, [edi + 0xe4]
call dword [esi + 0xc]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8