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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00470a30
mov eax, dword [0x49e040]
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.004826d6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48599e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x485afa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0048f4c0
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 + 0x49fdd0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00486b32
mov ecx, dword [esi*4 + 0x49fdd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x485af3
cmp eax, dword [ecx + edi + 0x24]
jne 0x485af3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485af3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00486b32
add esp, 0x14
test edx, edx
jl 0x485af3
jg 0x485a69
test eax, eax
jb 0x485af3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x485af3
jl 0x485a83
cmp dword [ebp - 0x1008], eax
ja 0x485af3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x485aa1
test ebx, ebx
je 0x485ada
cmp ecx, edi
jae 0x485ada
mov al, byte [ecx]
cmp al, 0xd
jne 0x485abb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x485ac7
cmp byte [ecx + 1], 0xa
jne 0x485ac7
inc ecx
jmp 0x485ac7
movzx eax, al
movsx eax, byte [eax + 0x49e300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x485aa1
cmp edx, ebx
jne 0x485aa1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x485af8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00470fce
leave
ret
Function at 0x485fca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x49fdd0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48600a
cmp byte [ebx], 0xa
jne 0x48600a
or byte [edi + eax + 0x28], 4
jmp 0x48600f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48610e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4860f1
inc eax
cmp dl, 0xd
je 0x48603b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x486061
cmp eax, ecx
jae 0x48606f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x486023
jmp 0x48610e
push 0
lea eax, [ebp - 0x10]
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 0x4860ec
cmp dword [ebp - 0x10], 0
je 0x4860ec
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49fdd0]
test byte [eax + edi + 0x28], 0x48
je 0x4860c6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4860b1
mov byte [esi], dl
jmp 0x4860c2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49fdd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48610e
cmp byte [ebp - 1], 0xa
jne 0x4860d5
cmp esi, ebx
jne 0x4860d5
mov byte [esi], 0xa
jmp 0x48610d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00486b50
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48610e
mov byte [esi], 0xd
jmp 0x48610d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49fdd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48610b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48610e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x486117
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x49fdd0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48615d
cmp word [ebx], dx
jne 0x48615d
or byte [eax + edi + 0x28], 4
jmp 0x486162
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4862c5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4862a5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4861a3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4861d9
cmp eax, edx
jae 0x4861e7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48617e
jmp 0x4862c5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4862a0
cmp dword [ebp - 0x18], 0
je 0x4862a0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x49fdd0]
test byte [eax + edi + 0x28], 0x48
je 0x486276
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x48623a
mov word [esi], cx
jmp 0x486271
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x49fdd0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x49fdd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x49fdd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4862c5
pop eax
cmp word [ebp - 4], ax
jne 0x486286
cmp esi, ebx
jne 0x486286
mov word [esi], ax
jmp 0x4862c2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00486b50
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4862c5
push 0xd
pop eax
jmp 0x486281
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x49fdd0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4862bf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4862c5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48842c
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 0x4884c9
push ebx
push esi
call fcn.004883f5
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.004870ce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x488476
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4884c8
push edi
push eax
call fcn.00481765
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x488496
call fcn.0048172b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4884c7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004870ce
add esp, 0x20
test eax, eax
jne 0x4884b5
push edi
call fcn.0048172b
jmp 0x4884bd
push ebx
call fcn.0048172b
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 0x48a720
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00481440
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48a78f
cmp esi, dword [ebp - 4]
je 0x48a78a
cmp dword [ebp + 0xc], 0
je 0x48a78a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48a767
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0048a272
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x48a791
xor eax, eax
inc eax
jmp 0x48a791
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x48a7f6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00481440
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00481440
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x48a86d
cmp word [ecx], dx
je 0x48a86d
mov eax, dword [0x496774]
push edi
dec eax
push eax
push 0x496660
call fcn.0048a795
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x48a8e0
cmp word [eax], dx
je 0x48a8e0
mov eax, dword [edi]
test eax, eax
je 0x48a891
cmp word [eax], dx
je 0x48a891
lea eax, [ebp - 0x10]
push eax
call fcn.0048a178
jmp 0x48a89a
lea eax, [ebp - 0x10]
push eax
call fcn.0048a213
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x48a90a
mov eax, dword [0x49665c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x496350
call fcn.0048a795
add esp, 0xc
test al, al
je 0x48a90a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x48a8d5
cmp word [eax], di
je 0x48a8d5
lea eax, [ebp - 0x10]
push eax
call fcn.0048a178
pop ecx
jmp 0x48a90c
lea eax, [ebp - 0x10]
push eax
call fcn.0048a213
jmp 0x48a8d2
mov eax, dword [edi]
test eax, eax
je 0x48a8f7
cmp word [eax], dx
je 0x48a8f7
lea eax, [ebp - 0x10]
push eax
call fcn.0048a12d
pop ecx
jmp 0x48a90a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x48a9d5
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0048a61a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48a9d5
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x48a9d5
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x48a9d5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48a962
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00483477
test ebx, ebx
je 0x48a9d0
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00483477
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48a9d5
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48a9d5
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048daf1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x48a9d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470fce
leave
ret
Function at 0x48f3c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48f3ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48f3ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40608c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406084]
sub esp, 4
test ebx, ebx
je 0x401fd5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fce
test esi, esi
je 0x401fce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fb0
mov dword [esp], 0x40608c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402310
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402335
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402340
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402335
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402388
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40237e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40238a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402370
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x403d60
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403d70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404320
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40439a
xor eax, eax
cmp ecx, ebp
je 0x404382
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4043a8
cmp ecx, ebp
je 0x40443b
push ecx
jmp 0x404435
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40440a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404320
mov ebx, eax
cmp ebx, ebp
jne 0x404458
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4043d0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40441d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404510
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40443b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a52a5
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404467
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40443d
Function at 0x404fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4d4970
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513330]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40505f
call fcn.00405b90
mov esi, eax
jmp 0x405141
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40507b
call fcn.00405b90
jmp 0x405138
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x405094
call fcn.00405b90
jmp 0x405138
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4050c8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4050b6
lea eax, [ebp]
call fcn.00431fa0
lea esi, [ebp - 0x1c]
call fcn.00403db0
mov eax, 0x8007000e
jmp 0x405153
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004034a0
mov dword [ebp - 4], 1
jmp 0x4050f1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4050ff
mov esi, 0x8007000e
jmp 0x40513a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40511d
call fcn.00405b90
jmp 0x405138
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404e90
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405151
lea eax, [ebp]
call fcn.00431fa0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004a52a5
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4057b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4057c7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4057f8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4057f4
cmp esi, eax
jae 0x4057f8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4057e4
cmp esi, eax
jb 0x4057fe
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x406150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d50b2
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea eax, [esi + 0x20]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esi], vtable.AboutDlg.0
call fcn.00419b70
mov byte [esp + 0x1c], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
lea edi, [esi + 0x78]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 2
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
lea ebp, [esi + 0x7c]
call eax
add eax, 0x10
mov dword [ebp], eax
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x94], ebx
or eax, 0xffffffff
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], 8
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xbc], ebx
and dword [esi + 0xc4], 0xfffffff8
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0x80], vtable.WTL::CBitmapButton.0
mov dword [esi + 0xc8], ebx
mov edx, dword [esp + 0x34]
mov byte [esp + 0x1c], 5
mov dword [esi + 0xcc], edx
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
lea ebx, [esi + 0xd0]
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1c], 6
call fcn.004082a0
mov eax, dword [esp + 0x30]
mov edi, ebp
call fcn.004082a0
mov eax, dword [esp + 0x28]
mov edi, ebx
call fcn.004082a0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14

Function at 0x408c50
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax]
push ebx
push edi
mov edi, ecx
mov ecx, dword [esi + 0x6c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
push 0x44
mov ebx, eax
mov eax, dword [edi + 4]
sub edx, eax
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x6c]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x6c]
push 5
push ecx
or ebx, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x6c]
push edx
or ebx, eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0x6c]
push 0
push 0
push 0xb7
push ecx
call edi
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x408cd0
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4d6958
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [edi + 0x6c]
lea ebx, [edi + 0x6c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi + 0x70], 0
je 0x408dc4
cmp dword [edi + 0x7c], 0
je 0x408dd9
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0040e5d0
test eax, eax
je 0x408d9a
mov ebx, esi
call fcn.0040c620
mov ebx, eax
call fcn.0040c6a0
mov ecx, esi
call fcn.00477b90
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
je 0x408d9a
push 0x4e8958
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0xc]
lea edx, [edi + 0x74]
push edx
call fcn.00406ff0
test eax, eax
je 0x408d9a
mov eax, dword [edi + 0x78]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, esi
push eax
call fcn.0040e720
mov ecx, dword [edi + 0x7c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
mov eax, esi
push eax
call edx
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408dd9
push str.OnKillFocusFromEdit_DONT_save_changes_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [edi + 0x70], 0
sete cl
mov byte [edi + 0x70], cl
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret