joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578030
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bc84b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov esi, ecx
push 0x71cc6c
lea ecx, [esp + 0xc]
call fcn.0056c000
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x12c], 0
call fcn.005777e0
mov edx, dword [esp + 0x12c]
push edi
push edx
lea eax, [esp + 0x1c]
push 0x66231c
push eax
call fcn.00401aa0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea edx, [esp + 0x14]
push 0x66060c
push edx
call fcn.0058fd80
mov esi, eax
add esp, 8
test esi, esi
jne 0x5780f3
mov eax, dword [esp + 0xc]
push eax
call fcn.0056b1a0
lea ecx, [esp + 0x18]
push ecx
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.005692a0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.0056c070
xor al, al
jmp 0x57812a
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
push edx
push 1
push edi
call fcn.005907ee
push esi
call fcn.0058f640
push edi
call fcn.0056b1a0
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.0056c070
mov al, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 8

Function at 0x57a4b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bc82b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ebx, ecx
push 0x71cc6c
lea ecx, [esp + 0xc]
call fcn.0056c000
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x120], 0
call fcn.00577130
lea ecx, [esp + 0xc]
push 0x63ec4c
push ecx
call fcn.0058fd80
mov esi, eax
add esp, 8
test esi, esi
jne 0x57a54d
lea edx, [esp + 0xc]
push edx
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.005692a0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.0056c070
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.00594b67
push esi
call fcn.00594da1
push 0
push 0
push esi
mov edi, eax
call fcn.00594b67
lea eax, [edi + 1]
push 1
push eax
call fcn.0056b160
push esi
push 1
mov ebp, eax
push edi
push ebp
call fcn.00595117
push esi
call fcn.0058f640
add esp, 0x38
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
lea ecx, [ebx + 0x104]
call fcn.0057a1b0
push ebp
mov bl, al
call fcn.0056b1a0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0056c070
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x5829c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5829e1
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x224
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x582a3b
jmp 0x582a00
lea ecx, [esp + 0x28]
push str..exe
push ecx
call fcn.00584120
add esp, 8
test eax, eax
jne 0x582a37
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x582a00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x584900
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bcbc8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x5849d3
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebp
mov eax, bind
test ebx, ebx
js 0x58494e
shr eax, 1
test ebx, eax
je 0x584948
add eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.005847e0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.005847a0
mov eax, dword [esi + 4]
lea edx, [eax + eax*2]
lea eax, [edi + edx*8]
add esp, 0xc
cmp eax, ebp
je 0x58499b
mov ecx, dword [esp + 0x2c]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
mov dword [esi], edi
push 1
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], ecx
mov dword [esp + 0x30], 0xffffffff
call fcn.0056b100
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esi]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
inc eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x584a03
mov eax, dword [esp + 0x20]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x589c30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x589c64
mov cl, byte [edx]
test cl, cl
je 0x589c64
mov eax, 0x811c9dc5
movsx ecx, cl
or ecx, 0x20
xor ecx, eax
imul ecx, ecx, 0x1000193
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x589c43
xor eax, 0x2a
imul eax, eax, 0x1000193
ret
xor eax, eax
ret
Function at 0x58f1b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x68ddfc]
jne 0x58f1c1
repz ret
jmp fcn.0059873f

Function at 0x58f3de
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x58f40f
call fcn.005962ac
mov dword [eax], esi
call fcn.00596299
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00590390
add esp, 0x14
push 0x16
pop eax
jmp 0x58f464
test dword [ebp + 0xc], 0xfffffff9
jne 0x58f3eb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58f43c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005962bf
pop ecx
call fcn.00596299
mov eax, dword [eax]
jmp 0x58f464
test al, 0x10
jne 0x58f462
test al, 1
je 0x58f462
test byte [ebp + 0xc], 2
je 0x58f462
call fcn.005962ac
mov dword [eax], 5
call fcn.00596299
mov dword [eax], 0xd
jmp 0x58f433
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5a3684
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005988b7
and dword [ebp - 4], 0
cmp dword [0x73885c], 0
mov ebx, eax
jne 0x5a3735
push 0x655568
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a37e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x65555c
push edi
call esi
test eax, eax
je 0x5a37e6
push eax
call fcn.00598845
mov dword [esp], 0x65554c
push edi
mov dword [0x73885c], eax
call esi
push eax
call fcn.00598845
mov dword [esp], 0x655538
push edi
mov dword [0x738860], eax
call esi
push eax
call fcn.00598845
mov dword [esp], 0x65551c
push edi
mov dword [0x738864], eax
call esi
push eax
call fcn.00598845
pop ecx
mov dword [0x73886c], eax
test eax, eax
je 0x5a3735
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00598845
pop ecx
mov dword [0x738868], eax
mov eax, dword [0x738868]
cmp eax, ebx
je 0x5a378d
cmp dword [0x73886c], ebx
je 0x5a378d
push eax
call fcn.005988c0
push dword [0x73886c]
mov esi, eax
call fcn.005988c0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a378d
test edi, edi
je 0x5a378d
call esi
test eax, eax
je 0x5a3784
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a3784
test byte [ebp - 0xc], 1
jne 0x5a378d
or dword [ebp + 0x10], 0x200000
jmp 0x5a37c6
mov eax, dword [0x738860]
cmp eax, ebx
je 0x5a37c6
push eax
call fcn.005988c0
pop ecx
test eax, eax
je 0x5a37c6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a37c6
mov eax, dword [0x738864]
cmp eax, ebx
je 0x5a37c6
push eax
call fcn.005988c0
pop ecx
test eax, eax
je 0x5a37c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x73885c]
call fcn.005988c0
pop ecx
test eax, eax
je 0x5a37e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a37e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ad970
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x5ad9eb
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.005ac752
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x5ad9a7
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x5ad9be
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.005ac752
add esp, 4
test eax, eax
jbe 0x5ad9eb
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.005ac752
add esp, 4
cmp esi, eax
jb 0x5ad9d0
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x832700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2fc000]
push edi
jmp 0x83271a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x832721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x832710
mov eax, 1
add ebx, ebx
jne 0x832733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x832744
jne 0x832763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x832763
dec eax
add ebx, ebx
jne 0x832750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x832728
add ebx, ebx
jne 0x83275f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8327b5
xor ecx, ecx
sub eax, 3
jb 0x83277b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8327ea
sar eax, 1
mov ebp, eax
jmp 0x832786
add ebx, ebx
jne 0x832786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x832754
inc ecx
add ebx, ebx
jne 0x832794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x832754
add ebx, ebx
jne 0x8327a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x832796
jne 0x8327b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x832796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8327d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8327c6
jmp 0x832716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8327d4
add edi, ecx
jmp 0x832716
pop esi
mov edi, esi
mov ecx, 0x8c16
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8327f2
cmp byte [edi], 0x1a
jne 0x8327f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8327f7
lea edi, [esi + 0x42e000]
mov eax, dword [edi]
or eax, eax
je 0x83286f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4440a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4441e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x832824
mov ecx, edi
jns 0x832853
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4441e8]
or eax, eax
je 0x832869
mov dword [ebx], eax
add ebx, 4
jmp 0x832841
call dword [esi + 0x4441f8]
mov ebp, dword [esi + 0x4441ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x8328a3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x41c9b0
lea eax, [esp + 8]
mov dword [esp + 8], 0
push 0x420568
push eax
call fcn.004043c3
add esp, 0xc
lea eax, [esp + 8]
push eax
call fcn.00404039
add esp, 4
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040430c
push dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push dword [esp + 0x24]
inc eax
push dword [esp + 0x2c]
push dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x44]
add eax, 0x76c
push eax
lea eax, [esp + 0x58]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x60]
add esp, 0x28
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401090
push dword [esp + 4]
sub ecx, edx
lea eax, [esp + 0x3c]
sar ecx, 1
push ecx
push 2
push eax
call fcn.00404623
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [esp + 0x10]
call fcn.00401e00
push dword [eax + 4]
push dword [eax]
call fcn.00405a80
mov eax, 0x41f960
add esp, 0x18
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010e0
push dword [esp + 4]
sub eax, edx
sar eax, 1
push eax
push 2
push 0x41f960
call fcn.00404623
push dword [esp + 0x14]
call fcn.00405b7c
mov ecx, dword [esp + 0x118]
add esp, 0x14
xor ecx, esp
call fcn.00401e06
mov esp, ebp
pop ebp
ret
Function at 0x401280
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa424
call fcn.004161a0
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xa41c]
mov dword [ebp - 0xa424], edx
push eax
push 0xa000
lea eax, [ebp - 0xa418]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4013ac
mov eax, dword [ebp - 0xa41c]
xor edi, edi
shr eax, 2
mov dword [ebp - 0xa420], eax
test eax, eax
je 0x4013ac
nop word [eax + eax]
mov eax, dword [ebp + edi*4 - 0xa418]
test eax, eax
je 0x40139f
push eax
push 0
push 0x1000
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401353
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x401353
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0040296e
add esp, 8
test eax, eax
je 0x401336
add eax, 2
jmp 0x40133c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00405bf6
add esp, 0xc
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40139f
mov eax, 0x420778
lea ecx, [ebp - 0x418]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401396
test dx, dx
je 0x401392
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401396
add ecx, 4
add eax, 4
test dx, dx
jne 0x401370
xor eax, eax
jmp 0x40139b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4013bf
inc edi
cmp edi, dword [ebp - 0xa420]
jb 0x4012e0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e06
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xa424]
mov eax, dword [ebp + edi*4 - 0xa418]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401e06
mov esp, ebp
pop ebp
ret
Function at 0x40178f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017ce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017ce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017ce
cmp dword [ecx + 0x74], 0xe
jbe 0x4017ce
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4aa1d0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046f8ce
leave
ret 4

Function at 0x403970
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x490908
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x4aa28c
push 1
push 0
push 0x4aa35c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x4039e0
mov eax, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x4039df
push eax
push eax
push 3
push 4
push eax
push eax
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
pop ebx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4039f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, ecx
push edi
push 0
push 0
push 0x1200
push dword [ebx + 0x14]
call esi
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mov edx, 4
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046efa9
mov edi, eax
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
add esp, 4
shl eax, 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408eab
cmp dword [ebp - 0x10], 3
jne 0x408eab
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jne 0x408eab
mov ecx, dword [ebp - 8]
lea eax, [ecx + 1]
lea eax, [edi + eax*4]
push eax
lea eax, [ecx - 1]
push eax
push 0x1212
push dword [ebx + 0x14]
call esi
mov eax, dword [ebp - 8]
xor esi, esi
test eax, eax
jle 0x408ea7
cmp dword [edi + esi*4], 0
jle 0x408ea2
mov edi, dword [edi + esi*4]
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp edi, eax
jge 0x408e9c
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], edi
push eax
test esi, esi
jne 0x408e8a
push esi
push 0x120c
push dword [ebx + 0xc]
jmp 0x408e96
lea eax, [esi - 1]
push eax
push 0x120c
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc esi
cmp esi, eax
jl 0x408e58
mov byte [ebp - 1], 1
push edi
call fcn.0047017a
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x1200
push dword [edi + 0x14]
mov dword [ebp - 0x20], eax
call esi
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 4
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046efa9
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ecx, [eax + 1]
mov dword [ebx + eax*4], 0
lea ecx, [ebx + ecx*4]
push ecx
lea ecx, [eax - 1]
push ecx
push 0x1211
push dword [edi + 0x14]
call esi
mov eax, dword [ebp - 0x18]
xor esi, esi
test eax, eax
jle 0x408fa2
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x14]
push eax
test esi, esi
jne 0x408f6c
push esi
push 0x1207
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
push dword [edi + 0xc]
jmp 0x408f8a
lea eax, [esi - 1]
push eax
push 0x1207
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
push dword [edi + 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, eax
jl 0x408f47
mov ebx, ecx
shl eax, 3
push eax
push ebx
push 3
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call fcn.0047017a
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 8

Function at 0x409160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push edi
mov edi, ecx
je 0x4091d4
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push 3
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 8]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 0xc]
push 0x44
sub ecx, edx
mov dword [ebp - 0x10], edx
push ecx
mov ecx, dword [ebp - 0x14]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 4
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 4