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

Disassembly:
sub esp, 0x50
push ebx
push edi
mov edi, ecx
mov ebx, dword [edi + 0x30]
test ebx, ebx
je 0x462e26
mov ecx, dword [esp + 0x68]
mov eax, dword [edi + 0x7c]
mov edx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ecx
push esi
mov esi, dword [edi + 0x78]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], ebp
xor ebp, ebp
push ecx
mov ecx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
call fcn.0044a370
test eax, eax
je 0x462e24
imul esi, dword [esp + 0x2c]
add esi, dword [esp + 0x28]
lea edx, [esi + ebx]
lea eax, [edx + esi*2]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x462e24
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x38]
jmp 0x462df0
mov ecx, dword [edi + 0x78]
mov eax, dword [esp + 0x64]
imul ecx, ebp
lea eax, [eax + ecx*2]
add eax, ecx
test ebx, ebx
jle 0x462e1b
mov esi, ebx
mov cl, byte [edx]
mov byte [eax], cl
mov cl, byte [edx + 1]
mov byte [eax + 1], cl
mov cl, byte [edx + 2]
mov byte [eax + 2], cl
add eax, 3
dec esi
jne 0x462e05
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jl 0x462df0
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x50
ret 0x14

Function at 0x464480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49d9cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x14]
mov dword [esi], 0x4a18a4
xor ebx, ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 8], esi
mov byte [ecx + 4], bl
mov eax, fcn.004498c0
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
push 0xb
mov dword [esi + 0x68], eax
push str.DefaultName
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x6c], eax
call fcn.00405070
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4645b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49da01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4a18b8
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [esp + 0x18], 2
call fcn.00468000
lea edi, [esi + 0x24]
mov ecx, edi
mov dword [esi + 0x20], 0
call fcn.00464520
add esi, 0x30
mov ecx, esi
call fcn.00464520
mov ecx, ebx
call fcn.00468010
mov ecx, esi
call fcn.00464520
mov eax, dword [esi + 4]
push eax
call fcn.00479f39
add esp, 4
mov ecx, edi
mov dword [esi + 4], 0
call fcn.00464520
mov eax, dword [edi + 4]
push eax
call fcn.00479f39
add esp, 4
mov ecx, ebx
mov dword [edi + 4], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.00467fe0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4646d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49da26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 0xc], esi
mov dword [esi], 0x4a18b8
call fcn.00467fc0
lea edi, [esi + 0x24]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00464030
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00464030
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x20], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47c08f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4a68c0
call fcn.0047df6c
mov edi, 0x94
mov eax, edi
call fcn.0047ad40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x49e168]
mov ecx, dword [esi + 0x10]
mov dword [0x4e89ac], ecx
mov eax, dword [esi + 4]
mov dword [0x4e89b8], eax
mov edx, dword [esi + 8]
mov dword [0x4e89bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e89b0], esi
cmp ecx, 2
je 0x47c0ef
or esi, 0x8000
mov dword [0x4e89b0], esi
shl eax, 8
add eax, edx
mov dword [0x4e89b4], eax
xor esi, esi
push esi
mov edi, dword [0x49e174]
call edi
cmp word [eax], 0x5a4d
jne 0x47c12a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47c12a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x47c142
cmp eax, 0x20b
je 0x47c12f
mov dword [ebp - 0x1c], esi
jmp 0x47c156
cmp dword [ecx + 0x84], 0xe
jbe 0x47c12a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x47c150
cmp dword [ecx + 0x74], 0xe
jbe 0x47c12a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0047fc19
pop ecx
test eax, eax
jne 0x47c16a
push 0x1c
call fcn.0047c06b
pop ecx
call fcn.0047de18
test eax, eax
jne 0x47c17b
push 0x10
call fcn.0047c06b
pop ecx
call fcn.00483b25
mov dword [ebp - 4], esi
call fcn.00482ff8
test eax, eax
jge 0x47c194
push 0x1b
call fcn.0047c046
pop ecx
call dword [0x49e16c]
mov dword [0x4e9fe0], eax
call fcn.00483a03
mov dword [0x4e8730], eax
call fcn.00483961
test eax, eax
jge 0x47c1ba
push 8
call fcn.0047c046
pop ecx
call fcn.0048372e
test eax, eax
jge 0x47c1cb
push 9
call fcn.0047c046
pop ecx
push 1
call fcn.00483250
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x47c1e1
push eax
call fcn.0047c046
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x49e170]
call fcn.004836d1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x47c202
movzx eax, word [ebp - 0x40]
jmp 0x47c205
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00410b20
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x47c223
push edi
call fcn.0048337d
call fcn.0048339f
jmp 0x47c255
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0047dfa7
ret
Function at 0x487350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x48737e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x487385
cmp ebx, dword [eax + 4]
jae 0x487385
xor eax, eax
jmp 0x487575
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x487396
xor eax, eax
inc eax
jmp 0x487574
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4873ac
cmp ecx, edx
jae 0x4874f1
cmp dword [eax + 4], 0
je 0x4873b5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x48739d
cmp dword [ebp + 8], 0
je 0x4873d7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4874f1
cmp eax, esi
jae 0x4874f1
mov eax, dword [0x4e8b98]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4873fc
cmp dword [esi*4 + 0x4e8ba0], edi
je 0x4874f5
inc esi
cmp esi, eax
jl 0x4873ea
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x49e0c0]
test eax, eax
je 0x487571
cmp dword [ebp - 8], 0x1000000
jne 0x487571
test byte [ebp - 0xc], 0xcc
je 0x48747a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x487571
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x487571
cmp word [eax + 0x18], 0x10b
jne 0x487571
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x487571
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x48747a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x48747a
test byte [ecx + 0x27], 0x80
jne 0x4874f1
push 1
push 0x4e8be0
call dword [0x49e0c4]
test eax, eax
jne 0x48738e
mov ecx, dword [0x4e8b98]
test ecx, ecx
mov edx, ecx
jle 0x4874ae
lea eax, [ecx*4 + 0x4e8b9c]
cmp dword [eax], edi
je 0x4874ae
dec edx
sub eax, 4
test edx, edx
jg 0x4874a2
test edx, edx
jne 0x4874df
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4874bb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4874d3
lea eax, [edx*4 + 0x4e8ba0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4874c1
cmp ecx, 0x10
jge 0x4874df
inc ecx
mov dword [0x4e8b98], ecx
push 0
push 0x4e8be0
call dword [0x49e0c4]
jmp 0x48738e
xor eax, eax
jmp 0x487574
test esi, esi
jle 0x48738e
mov ebx, dword [0x49e0c4]
push 1
push 0x4e8be0
call ebx
test eax, eax
jne 0x48738e
cmp dword [esi*4 + 0x4e8ba0], edi
je 0x48754b
mov eax, dword [0x4e8b98]
lea esi, [eax - 1]
test esi, esi
jl 0x487539
cmp dword [esi*4 + 0x4e8ba0], edi
je 0x487535
dec esi
jns 0x487529
test esi, esi
jge 0x487549
cmp eax, 0x10
jge 0x487544
inc eax
mov dword [0x4e8b98], eax
lea esi, [eax - 1]
jmp 0x48754b
je 0x487563
xor ecx, ecx
test esi, esi
jl 0x487563
lea eax, [ecx*4 + 0x4e8ba0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x487551
push 0
push 0x4e8be0
call ebx
jmp 0x48738e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48b7c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x48b861
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x48b80f
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x4b1368]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x48b7f1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x48b83c
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x4b1368]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x48b820
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x40446e
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x404f98
call fcn.0040488b
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x4065fc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40420d
cmp eax, esi
jne 0x404200
xor esi, esi
inc esi
mov ebx, esi
jmp 0x404210
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4041e7
xor esi, esi
inc esi
mov eax, dword [0x4065f8]
cmp eax, esi
jne 0x404223
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x404252
mov eax, dword [0x4065f8]
test eax, eax
jne 0x40424c
mov dword [0x4065f8], esi
push 0x4011f4
push 0x4011ec
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404252
jmp 0x40437a
mov dword [0x406290], esi
mov eax, dword [0x4065f8]
cmp eax, esi
jne 0x404276
push 0x4011e8
push 0x4011d8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x4065f8], 2
test ebx, ebx
jne 0x404282
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x406608], 0
je 0x4042a6
push 0x406608
call fcn.00404813
pop ecx
test eax, eax
je 0x4042a6
push 0
push 2
push 0
call dword [0x406608]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x404302
test al, al
je 0x4042c0
cmp dword [ebp - 0x1c], 0
jne 0x404302
mov al, byte [esi]
test al, al
je 0x4042d0
cmp al, 0x20
ja 0x4042d0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4042c0
test byte [ebp - 0x3c], 1
je 0x4042dc
movzx eax, word [ebp - 0x38]
jmp 0x4042df
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40628c], eax
cmp dword [0x406280], 0
jne 0x404356
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x404311
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x404324
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4042ad
cmp dword [0x406290], 0
jne 0x404365
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40628c]
jmp 0x404386
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004048d0
ret
call fcn.00403b1b
jmp 0x4041ad
Function at 0x403228
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [ebp - 0x3c]
mov edi, edx
push eax
mov esi, ecx
call fcn.00409ab1
push 0xffffffffffffffff
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 5
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403aea
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421636
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x426a58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], vtable.Jot::CNoteLinkUri.0
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42c1d8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0x42c1d8]
push 0
push 2
push esi
push 0x42c1d8
mov dword [ebp - 4], 0
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
lea esi, [edi + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42c1d8
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [0x42c1d8]
push ecx
push 2
push esi
push 0x42c1d8
mov byte [ebp - 4], 2
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], Ordinal_1
mov dword [edi + 0x38], ecx
mov dword [edi + 0x2c], 0xc
mov dword [edi + 0x30], 7
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x28], vtable.Ofc::TStrMap_class_MsoCF::CWzInBuffer_T_class_MsoCF::String_struct_MsoCF::WzTraits___class_MsoCF::CFastBuffer_wchar_t__129___.0
lea eax, [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0x102
mov dword [ecx], 0x42c1dc
mov dword [ecx + 8], 0x102
mov word [eax], dx
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 0x406ca9
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a14
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x426a58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x406f18
lea ecx, [ebp - 0x350]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x354], esi
test esi, esi
jne 0x406d04
or eax, 0xffffffff
jmp 0x406f18
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor ebx, ebx
cmp dword [ebp - 0x350], 1
jle 0x406f09
push 1
push 0xffffffffffffffff
push str._startsnotetaking
push 0xffffffffffffffff
push dword [esi + 4]
call fcn.00409b34
test eax, eax
jne 0x406f06
cmp dword [ebp - 0x350], 3
jle 0x406f06
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x102
mov dword [ebp - 0x124], 0x42c1dc
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0x102
xor eax, eax
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x238], 0x42c1dc
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0x102
xor eax, eax
mov word [ebp - 0x228], ax
push eax
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 3
push eax
push dword [esi + 8]
call fcn.00409bad
push ebx
lea eax, [ebp - 0x238]
push eax
push dword [esi + 0xc]
call fcn.00409bad
push ebx
push dword [ebp - 0x120]
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
jne 0x406e05
lea ecx, [ebp - 0x238]
or ebx, 0xffffffff
call fcn.004014db
lea ecx, [ebp - 0x124]
call fcn.004014db
jmp 0x406f09
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x340], 0x102
mov dword [ebp - 0x34c], 0x42c1dc
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], 0x102
xor eax, eax
mov word [ebp - 0x33c], ax
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x120]
call fcn.00405224
push 0
push dword [0x42cbfc]
push 0
push 0
push 0
push 0
push Ordinal_1
push Ordinal_1
push 0xcf0000
push 0x427448
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 5
push edi
call esi
push 0
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x42c3b4]
lea ecx, [ebp - 0x364]
call fcn.00403a5c
push dword [ebp - 0x234]
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 6
push dword [ebp - 0x348]
call fcn.0040145a
xor ebx, ebx
lea ecx, [ebp - 0x364]
test al, al
setne bl
lea ebx, [ebx*2 - 1]
call fcn.00403d75
lea ecx, [ebp - 0x34c]
call fcn.004014db
lea ecx, [ebp - 0x238]
call fcn.004014db
lea ecx, [ebp - 0x124]
call fcn.004014db
mov esi, dword [ebp - 0x354]
jmp 0x406f09
or ebx, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c61a
mov esp, ebp
pop ebp
ret 4
Function at 0x40725e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a52
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x426a58]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40730a
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40730a
call fcn.00404aa1
mov esi, eax
jmp 0x4073fa
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40732d
call fcn.00404aa1
jmp 0x4073ed
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40734b
call fcn.00404aa1
jmp 0x4073ed
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40736c
mov esi, 0x8007000e
jmp 0x4073ef
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040485c
jmp 0x407396
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4073ad
mov esi, 0x8007000e
jmp 0x4073ef
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4073cd
call fcn.00404aa1
jmp 0x4073ed
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004070f4
mov esi, eax
test edi, edi
je 0x4073fa
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407420
lea ecx, [ebp - 0x418]
call fcn.0040563c
nop word [eax + eax]
nop dword [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.0041c61a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407f58
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x407f71
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop word [eax + eax]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f85
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407f80
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40804a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40805f
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408070
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc