joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f56c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45f583
add esp, 0xfffffff0
call fcn.00403764
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d420
mov eax, dword [0x471238]
cmp word [eax + 2], 0
jne 0x45f5ab
mov eax, dword [0x471238]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460cd4
mov eax, dword [0x4712f0]
cmp word [eax + 2], 0
jne 0x45f5c5
mov eax, dword [0x4712f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460ecc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4155a0]
call fcn.00403410
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4155a0]
call fcn.00403410
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41fa38]
call fcn.0042791c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45f74c
mov eax, dword [0x471140]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427cec
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46147c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x471140]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040caf0
test eax, eax
je 0x45f6ba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb18
test eax, eax
je 0x45f6ce
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404400
mov eax, dword [0x471004]
cmp byte [eax], 0
jne 0x45f702
mov eax, ebx
call fcn.0045f874
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00461658
mov eax, ebx
call fcn.0046201c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f742
call fcn.004037bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45faf4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x472bbc]
cmp dword [eax + 0x30], 0
je 0x45fb9e
cmp dword [ebx + 0x94], 0
jne 0x45fb98
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45fa84
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45fb98
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45fb5e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45fb98
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417908
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45fb6d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460700
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x460735
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404280
jmp 0x460742
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461834
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461875
mov eax, esi
call fcn.00447974
test al, al
je 0x461875
mov eax, dword [ebx + 0x84]
call fcn.00447670
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461875
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447670
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4661ac
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414b28]
call fcn.00404afc
xor eax, eax
push ebp
push 0x4662f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470f6c], 0
jne 0x4661ff
mov ecx, dword [0x471014]
mov dl, 1
mov eax, dword [0x4073a8]
call fcn.0040bd24
call fcn.00403bcc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e54
mov eax, ebx
call fcn.004049cc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x466300
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405a80
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049dc
test eax, eax
jle 0x466297
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x466290
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404418
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404400
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004081b4
test eax, eax
jne 0x466290
mov ebx, 0x15
jmp 0x46629c
mov ebx, 0x10
jmp 0x46629c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x470f6c]
call fcn.00466104
mov eax, dword [ebp - 8]
call fcn.00466104
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4662f7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004041b4
lea eax, [ebp - 0x10]
mov edx, dword [0x414b28]
call fcn.00404bcc
ret
Function at 0x4179b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4179c3
pop dword [ebp - 8]
mov eax, 0x4179c3
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x403c1
push 0
mov eax, 0x59a0086d
add eax, 0xa6a249ab
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x43ca57e3
add ecx, 0xbc35fa05
xor ebx, ebx
add ebx, eax
mov esi, 0x435400
add esi, dword [ebp - 8]
mov edi, 0x2b8044a9
sub edi, 0x34bc45f0
mov dword [ebp - 4], 0xc6c81157
mov edx, dword [esi]
xor dword [ebp - 4], 0xc4834afd
xor edx, edi
add dword [ebp - 4], 0x10ab75d
mov dword [ebx], edx
add dword [ebp - 4], ebx
add ebx, 0x7c71eef7
add ebx, 0x838e110d
add esi, 4
loop 0x417a19
add eax, 0x13a73
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x99394128
sub ecx, 0x98f94128
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x43e905
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x43e94f
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x43e91e
jmp 0x43e94f
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x43e93f
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x43f494
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x43f4c9
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x43f4f3
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x43f4f3
test edi, edi
je 0x43f4c0
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x43f4c0
test edi, edi
je 0x43f4fb
mov eax, edi
jmp 0x43f4c2
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x43f4c2
int3
Function at 0x4423cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestCheckedInt.exe_gMozillaPoisonSize], eax
call fcn.0043f494
pop ecx
mov ecx, dword [sym.TestCheckedInt.exe_gMozillaPoisonSize]
mov dword [sym.TestCheckedInt.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x442407
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCheckedInt.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x805fc0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805fc6
pop ebp
sub ebp, 6
sub ebp, 0x405fc0
jmp 0x806024
mov byte [0x200f4e81], al
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
insb byte es:[edi], dx
mov ch, 0x26
cmp byte [eax + 0x405fc0], 3
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x615], bh
jmp 0x80602d
mov eax, 0x405fc0
add eax, ebp
add eax, 0x93
mov ecx, 0x615
mov edx, 0x702a43aa
xor byte [eax], dl
inc eax
dec ecx
jne 0x806044
jmp 0x806057
shr dl, 0xc2
stosb byte es:[edi], al
mov edx, 0xaac2aaaa
xchg byte [edx + 0x55fa6a99], ch
aas
stosb byte es:[edi], al
jnp 0x806007
stosb byte es:[edi], al
cli
and dword [edi + 0x21], esp
and edx, dword [esi + 0x2baaaaaa]
imul edx, dword [edx - 0x56], 0xffffffaa
stosb byte es:[edi], al
test eax, 0xaaac1267
stosb byte es:[edi], al
stosb byte es:[edi], al
adc byte [edx + 0x5daaaaaa], al
dec eax
test eax, 0xa62b2162
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
test eax, 0xa5c2fa6f
xchg edx, eax
mov dword [0x8d05c2aa], eax
popfd
stosb byte es:[edi], al
stosd dword es:[edi], eax
xchg byte [esi - 0x5555553e], cl
stosb byte es:[edi], al
inc edx
scasd eax, dword es:[edi]
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
inc ebx
sub byte [edx + 0x21ffaaaa], 0x46
and dword [edi], ebp
mov byte [0x21aaaaaa], al
aas
cmpsb byte [esi], byte es:[edi]
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
and dword [edi], esp
mov edx, 0x6baaaaaa
inc ebx
test al, 0x9b
test al, 0x29
push 0x2fa5e3ae
pop esi
push ebp
push ebp
push ebp
imul dword [eax - 0x5a]
stosb byte es:[edi], al
and dword [esi], esp
mov gs, word [esi - 0x3d555556]
movsd dword es:[edi], dword [esi]
xchg edx, eax
mov dword [0x8d05c2aa], eax
popfd
stosb byte es:[edi], al
stosd dword es:[edi], eax
xchg byte [esi - 0x5550bd05], cl
stosb byte es:[edi], al
stosb byte es:[edi], al
inc ebx
cdq
test al, 0xaa
stosb byte es:[edi], al
jmp dword [ecx]
Function at 0x4320d8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403bd0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x432139
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x432139
cmp byte [ebp - 0x102], 0
je 0x432139
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403dfc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4334c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x433549
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4334fa
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43350c
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x433518
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00433354
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43353d
push ebp
mov eax, dword [ebp - 4]
call fcn.00433438
pop ecx
mov ebx, eax
cmp bl, 2
je 0x433518
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b30c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0043af38
push eax
push esi
push dword [ebp + 8]
call fcn.0043aeed
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0043af38
push eax
push esi
push dword [ebp + 8]
call fcn.0043aeed
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0043af28
push eax
rcl dword [ecx + 0x7c9d882c], 0xff
invalid

Function at 0x43baac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp eax, 0x83fffff4
les ecx, [ecx + ecx*4]
test dword [ecx + edi*8 - 0x5a7f0001], eax
fdiv st(2), st(0)
invalid
Function at 0x43bc20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x43bdae
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
call fcn.0043af28
in eax, dx
add al, 0xc6
mov dword [eax - 0x5435b], 0x6a00ff
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.0043af28
xor dword [0xa580e70d], edx
sar ch, 1
invalid

Function at 0x43cf64
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x43cf77
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x43cfbe
lea eax, [ebp - 0x714]
push eax
call fcn.0043af38
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0043aeed
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x43cfc9
jmp 0x43cfce
jmp 0x43c8ca
cmp dword [ebp - 0x37c], 0
jne 0x43d078
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0043b104
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x43d064
lea eax, [ebp - 0x714]
push eax
call fcn.0043af38
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.0043afcd
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49bd2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49bde4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0049bbfc
test al, al
je 0x49bdc6
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403cb4
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x49bdc6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404010
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404010
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403d84
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x49bd7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bdeb
lea eax, [ebp - 0x2c]
call fcn.00403bd0
lea eax, [ebp - 0xc]
call fcn.00403bd0
ret

Function at 0x49c038
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404010
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x49c074
push ebp
call fcn.0049bfc8
pop ecx
mov eax, dword [ebp - 8]
call fcn.0049b8a0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4b1fb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b2029
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.0040788c
mov ebx, eax
push 0x104
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403d84
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408374
mov eax, ebx
call fcn.00402750
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2030
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403bf4
ret

Function at 0x4b8d10
Capabilities:
Set registry value

Disassembly:
push ebx
push ecx
mov ebx, eax
push esp
push 0x20006
push 0
push 0x4b8d60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b8d5c
mov eax, ebx
call fcn.00403e4c
inc eax
push eax
mov eax, ebx
call fcn.00404010
push eax
push 1
push 0
push 0x4b8d84
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edx
pop ebx
ret
Function at 0x4012d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x44f014]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x4c]
push esi
mov esi, dword [ebp + 0x10]
push 0x104
push ecx
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
push 0x446eec
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00402040
lea eax, [esp + 0x50]
push 0x446ee4
push eax
lea edx, [esp + 0xc]
lea ecx, [esp + 0x24]
call fcn.00401f70
add esp, 4
lea ecx, [esp + 0x3c]
mov edx, eax
call fcn.00401f70
mov ecx, dword [esp + 0x34]
add esp, 4
cmp ecx, 8
jb 0x401396
mov edx, dword [esp + 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40138c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401479
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
cmp ecx, 8
jb 0x4013e9
mov edx, dword [esp + 4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4013df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401479
push ecx
push edx
call fcn.00417151
add esp, 8
push esi
lea ecx, [esp + 0x3c]
call fcn.00401e50
cmp dword [esp + 0x4c], 8
lea ecx, [esp + 0x34]
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x34]
mov edx, esi
call fcn.00401490
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x4c]
cmp ecx, 8
jb 0x401462
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401458
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40147e
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [esp + 0x25c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00416ec0
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041c06f
call fcn.0041c06f
int3
Function at 0x4045e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b4d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00416ece
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x20], 0
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret