joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420945
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041531f
and dword [ebp - 0x14], 0
cmp dword [0x449984], 0
mov dword [ebp - 0x18], eax
jne 0x4209f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420aa0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a7e4
push ebx
call edi
test eax, eax
je 0x420aa0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x449984], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x449988], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44998c], eax
call edi
push eax
call esi
mov dword [0x449994], eax
test eax, eax
je 0x4209f8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x449990], eax
mov eax, dword [0x449990]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420a51
cmp dword [0x449994], ecx
je 0x420a51
push eax
call esi
push dword [0x449994]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420a51
test ebx, ebx
je 0x420a51
call edi
test eax, eax
je 0x420a48
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420a48
test byte [ebp - 8], 1
jne 0x420a51
or dword [ebp + 0x10], 0x200000
jmp 0x420a84
mov eax, dword [0x449988]
cmp eax, dword [ebp - 0x18]
je 0x420a84
push eax
call esi
test eax, eax
je 0x420a84
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420a84
mov eax, dword [0x44998c]
cmp eax, dword [ebp - 0x18]
je 0x420a84
push eax
call esi
test eax, eax
je 0x420a84
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x449984]
call esi
test eax, eax
je 0x420aa0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420aa2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e3bf
leave
ret
Function at 0x40da60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40da82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40da89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40da78
mov eax, 1
add ebx, ebx
jne 0x40da9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40da90
jne 0x40daac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da90
xor ecx, ecx
sub eax, 3
jb 0x40dac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40db32
mov ebp, eax
add ebx, ebx
jne 0x40dacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40dad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40dafc
inc ecx
add ebx, ebx
jne 0x40dae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40dadd
jne 0x40daf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40dadd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40db1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40db0d
jmp 0x40da7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40db1c
add edi, ecx
jmp 0x40da7e
pop esi
mov edi, esi
mov ecx, 0x3600
jmp 0x40db5f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40db5f
cmp ecx, 4
jb 0x40db64
mov eax, dword [edi]
sub al, 1
jne 0x40db5f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jae 0x40db3c
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40dbac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40db6a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd25c]
or eax, eax
je 0x40dba6
mov dword [ebx], eax
add ebx, 4
jmp 0x40db87
call dword [esi + 0xd258]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40dbdd
cmp al, 0xef
ja 0x40dbd0
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40dbb2
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40dbbf
mov ebp, dword [esi + 0xd260]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40dc11
sub esp, 0xffffff80
jmp 0x403a41
Function at 0x1000116b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.10002189
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x10004216
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.10002189
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x10004216
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x100
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x10001204
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, 0x100
xor ebx, ebx
cmp ebx, edi
jb 0x1000122c
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x10001226
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, 0x100
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x10001245
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push dword [ebp - 0xc]
call fcn.1000131d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000128d
push ebx
call fcn.1000217d
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x100012a2
mov eax, 0x40c00000
jmp 0x100012d6
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1000217d
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.1000217d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001a18
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x10001a46
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x10001a3d
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x10001a35
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10001a67
mov esp, ebp
pop ebp
ret

Function at 0x10001a6b
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x10001ad7
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x10001b04
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x10001af3
xor ecx, eax
xor edx, ebx
dec edi
jne 0x10001ae4
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x10001b2a
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x10001acb
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10001b56
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100024c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10002529
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.100023c0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x4175cc
Capabilities:
Check for vm using instruction vpcext

Disassembly:
fnsave dword [edx - 0xa]
jns 0x4175ce
idiv byte [ecx - 3]
sar dword [0x8f603b81], cl
outsd dx, dword [esi]
aaa
mov eax, dword [0xa17e3bb3]
jle 0x41757f
jno fcn.0041763c
cli
in al, dx
add al, 0xe3

Function at 0x4175e4
Capabilities:
Check for vm using instruction vpcext

Disassembly:
dec ebp
mov ah, 0x58
movsd dword es:[edi], dword [esi]
jb 0x41765d
jp 0x4175b8
mov eax, dword [0x58a0de4c]
push ebx
inc edx
cwde
std
mov bl, 0x91
pop edi
mov eax, dword [0xe32f014a]
invalid

Function at 0x417e10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc0
push esi
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x4c6adc]
push ecx
call sub.IMM32.dll_ImmGetContext
test esi, esi
mov dword [0x4c6adc], eax
je 0x417e53
lea edx, [esp + 4]
push edx
push esi
invalid
invalid
pop eax

Function at 0x4bb3b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3390
cmp edx, dword [eax]
je 0x4bb3d7
add eax, 8
inc ecx
cmp eax, 0x4c3420
jl 0x4bb3c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3390]
jne 0x4bb505
mov eax, dword [0x4c7d1c]
cmp eax, 1
je 0x4bb4df
test eax, eax
jne 0x4bb408
cmp dword [0x4c32b8], 1
je 0x4bb4df
cmp edx, 0xfc
je 0x4bb505
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb43f
lea eax, [ebp - 0x1a4]
push 0x4c0848
push eax
call fcn.004bbda0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb482
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0844
push edi
call fcn.004be100
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0828
push eax
call fcn.004bbda0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbdb0
lea eax, [ebp - 0xa0]
push 0x4c0824
push eax
call fcn.004bbdb0
push dword [esi + 0x4c3394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbdb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c07fc
push eax
call fcn.004be074
add esp, 0x2c
pop edi
jmp 0x4bb505
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3394]
push 0
push eax
push dword [esi]
call fcn.004bc230
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x43efb4
Capabilities:
Access the windows event log

Disassembly:
push 0x738
mov eax, 0x4a063f
call fcn.0043fd5f
lea eax, [ebp - 0x3b8]
push eax
push 0x403750
mov esi, ecx
push 2
mov dword [ebp - 0x3b8], esi
call fcn.0043f094
push esi
call fcn.00486ea5
mov edi, eax
lea eax, [ebp - 0x3b8]
push eax
push 0x403790
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3b8], esi
call fcn.0043e5ad
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], ebx
jae 0x43f012
lea eax, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x3bc], eax
lea eax, [ebp - 0x3bc]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 1
push dword [0x4f11c8]
call dword [sym.imp.advapi32.dll_ReportEventW]
test esi, esi
jns 0x43f083
xor eax, eax
mov word [ebp - 0x43c], ax
mov word [ebp - 0x53c], ax
mov word [ebp - 0x740], ax
mov dword [ebp - 0x744], edi
push 0x4a66d0
lea eax, [ebp - 0x3b4]
mov ecx, 0xe2
lea esi, [ebp - 0x744]
lea edi, [ebp - 0x3b4]
mov dword [ebp - 0x540], 1
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcr100.dll__CxxThrowException
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00486ea5
call fcn.0043fde2
ret

Function at 0x43f894
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403b5c]
jne 0x43fe83
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4f1378], eax
mov dword [0x4f1374], ecx
mov dword [0x4f1370], edx
mov dword [0x4f136c], ebx
mov dword [0x4f1368], esi
mov dword [0x4f1364], edi
mov word [0x4f1390], ss
mov word [0x4f1384], cs
mov word [0x4f1360], ds
mov word [0x4f135c], es
mov word [0x4f1358], fs
mov word [0x4f1354], gs
pushfd
pop dword [0x4f1388]
mov eax, dword [ebp]
mov dword [0x4f137c], eax
mov eax, dword [ebp + 4]
mov dword [0x4f1380], eax
lea eax, [ebp + 8]
mov dword [0x4f138c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4f12c8], 0x10001
mov eax, dword [0x4f1380]
mov dword [0x4f127c], eax
mov dword [0x4f1270], 0xc0000409
mov dword [0x4f1274], 1
mov eax, dword [0x403b5c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4b36cc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4f12c0], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x403b68
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4f12c0], 0
jne 0x43ff6f
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x43fb82
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4a6760
call fcn.0044016c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x4f37c4], ebx
jne 0x43f925
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x4f37b8
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x43f95f
cmp eax, esi
jne 0x43f952
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x43f962
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x43f939
xor esi, esi
inc esi
mov eax, dword [0x4f37b4]
cmp eax, esi
jne 0x43f975
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x43f9b0
mov eax, dword [0x4f37b4]
test eax, eax
jne 0x43f9aa
mov dword [0x4f37b4], esi
push 0x4016a0
push 0x40168c
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x43f9b0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43fac2
mov dword [0x4f1264], esi
mov eax, dword [0x4f37b4]
cmp eax, esi
jne 0x43f9d4
push 0x401688
push 0x4015ac
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x4f37b4], 2
cmp dword [ebp - 0x20], ebx
jne 0x43f9e1
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x4f37c8], ebx
je 0x43fa02
push 0x4f37c8
call fcn.00486ea5
pop ecx
test eax, eax
je 0x43fa02
push ebx
push 2
push ebx
call dword [0x4f37c8]
mov eax, dword [sym.imp.msvcr100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x43fa63
cmp cx, bx
je 0x43fa1e
cmp dword [ebp - 0x1c], ebx
jne 0x43fa63
movzx ecx, word [eax]
cmp cx, bx
je 0x43fa33
cmp ecx, 0x20
ja 0x43fa33
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x43fa1e
test byte [ebp - 0x40], 1
je 0x43fa3f
movzx ecx, word [ebp - 0x3c]
jmp 0x43fa42
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x4f1260], eax
cmp dword [0x4f1254], ebx
jne 0x43faa8
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp ecx, 0x22
jne 0x43fa73
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x43fa09
cmp dword [0x4f1264], ebx
jne 0x43fab6
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4f1260]
call fcn.004401b1
ret
call fcn.00486ea5
jmp 0x43f8f7
Function at 0x4462fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4a0c4e
call fcn.0043fcf6
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x446327
cmp dword [0x4f162c], edi
je 0x446411
push 2
pop ebx
jmp 0x446341
cmp edi, 1
jne 0x446411
mov eax, ebx
call fcn.00447197
test al, al
je 0x446411
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.004471b9
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x4463f3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x446388
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
call fcn.004469e8
test eax, eax
je 0x446425
push 0x1c049f
push 0
call fcn.00486ea5
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x4b4638], 0
push ebx
mov ecx, 0x4f1640
call fcn.00486ea5
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.00446aa7
mov esi, eax
test esi, esi
je 0x446374
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.004471da
inc edi
cmp edi, 2
jl 0x44630f
mov eax, esi
call fcn.0043fdce
ret 0x18
push ebx
mov ecx, 0x4f1640
call fcn.00486ea5
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x446405
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x446460
cmp dword [ebp - 0x20], 3
jne 0x44645b
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x44645b
and cl, 0xf
cmp cl, 4
je 0x446460
push 2
pop esi
jmp 0x446405
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.004471da
xor eax, eax
jmp 0x44641d
Function at 0x4468e9
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x4a0cbf
call fcn.0043fcf6
mov esi, dword [ebp + 8]
cmp esi, dword [0x4f1634]
jne 0x446907
xor al, al
jmp 0x4469e0
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x446918
xor ecx, ecx
cmp dword [0x4f162c], ecx
jmp 0x446923
mov eax, esi
call fcn.00447197
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x446900
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.004471b9
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x4469a1
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x446957
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.004469e8
test eax, eax
je 0x4469c6
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.00486ea5
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x4f1640
mov dword [eax + 0x4b4638], ebx
call fcn.00486ea5
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.00446aa7
mov ebx, eax
test ebx, ebx
je 0x44694b
jmp 0x4469d3
push dword [ebp + 8]
mov ecx, 0x4f1640
call fcn.00486ea5
lea ecx, [ebp + 0xf]
call fcn.004471da
test ebx, ebx
sete al
call fcn.0043fdce
ret 8