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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x430687
add esp, 0xfffffff0
call fcn.004032a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004151dc
mov dl, 1
mov eax, dword [0x40dcc8]
call fcn.00402ff0
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x40dcc8]
call fcn.00402ff0
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x416b34]
call fcn.0041e1c0
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x4307e0
mov eax, dword [0x4a4854]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041e558
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x431e2c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a4854]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040bba8
test eax, eax
je 0x430768
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407fd8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bbd0
test eax, eax
je 0x43077c
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403d6c
mov eax, dword [0x4a4710]
cmp byte [eax], 0
jne 0x4307ad
mov eax, ebx
call fcn.004308c4
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x4307d5
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430b18
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a56f0]
cmp dword [eax + 0x24], 0
je 0x430ba8
cmp dword [ebx + 0x74], 0
jne 0x430ba5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x430aac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x430ba5
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 0x430b74
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x430ba5
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040f1b0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x430b80
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x431490
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x4314c5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c24
jmp 0x4314cf
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403bd8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4320b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x4320e8
mov eax, esi
call fcn.00425830
test al, al
je 0x4320e8
mov eax, dword [ebx + 0x64]
call fcn.00425698
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4320e8
push 0
mov eax, dword [ebx + 0x64]
call fcn.00425698
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x442f1c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x443076
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443056
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403ce4
lea eax, [ebp - 0x118]
mov edx, 0x44308c
call fcn.00403dc4
mov eax, dword [ebp - 0x118]
call fcn.00403f80
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x442fc8
lea eax, [ebp - 0x111]
call fcn.00407f70
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403c24
jmp 0x442fcf
mov eax, esi
call fcn.00403b40
cmp bl, 0x61
jae 0x442ff0
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040ba7c
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403bd8
jmp 0x44300a
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040b9f0
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403bd8
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x443098
call fcn.004086c0
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44305d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403f80
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4456d9
test al, 0x10
jne 0x4456dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4470e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x447277
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00446bb0
mov eax, dword [ebp - 0x204]
lea edx, [esi + 1]
call fcn.0040b6ec
cmp al, 2
jne 0x447126
dec esi
mov eax, ebx
call fcn.00446ec4
test al, al
je 0x447217
test esi, esi
jge 0x44713b
xor esi, esi
lea edi, [esi + 1]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00446bb0
mov eax, dword [ebp - 0x204]
call fcn.00403dbc
cmp edi, eax
jge 0x447182
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00446bb0
mov eax, dword [ebp - 0x204]
mov al, byte [eax + edi - 1]
mov edx, dword [0x4a4b3c]
and eax, 0xff
bt dword [edx], eax
jae 0x447182
inc edi
mov eax, dword [ebx + 0x138]
cmp esi, eax
jl 0x447190
mov esi, eax
mov edi, esi
mov ecx, edi
mov edx, edi
mov eax, ebx
call fcn.004470bc
cmp edi, esi
je 0x44720f
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x4471b6
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, ebx
call fcn.00425698
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, ebx
call fcn.00425698
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [ebx + 0x140], esi
jmp 0x44725e
test esi, esi
jge 0x44721d
xor esi, esi
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00446bb0
mov eax, dword [ebp - 0x204]
call fcn.00403dbc
cmp esi, eax
jl 0x447253
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00446bb0
mov eax, dword [ebp - 0x204]
call fcn.00403dbc
mov esi, eax
mov ecx, esi
mov edx, esi
mov eax, ebx
call fcn.004470bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44727e
lea eax, [ebp - 0x204]
call fcn.00403b40
ret
Function at 0x4780b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4a3866
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47810b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4a3887
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x478101
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47810f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4899ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4a45ce
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x489a57
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4a45ef
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x489a4d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x489a5b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x402e28
Capabilities:
Terminate process

Disassembly:
jmp 0x42bf39
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42bf4a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00404a39
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402f27
Capabilities:
Query environment variable

Disassembly:
jmp 0x45e4b9
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45e4ca
pop esi
ret
push ebx
push edi
push esi
call fcn.0045e3a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403684
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45e4f2
push ebx
push esi
push edi
call fcn.004048a9
add esp, 0xc
push 0
call fcn.0040517d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40492b
Capabilities:
Parse pe header

Disassembly:
jmp 0x41e621
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e660
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e660
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e660
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e660
cmp dword [ecx + 0x74], 0xe
jbe 0x41e660
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45c2a6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5dfdb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x45c2f1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045c867
test al, al
jne 0x45c2eb
sub edx, 2
cmp edx, edi
jne 0x45c2d1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45c313
lea eax, [edi + 2]
cmp edx, eax
je 0x45c313
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045be9f
add esp, 0x10
jmp 0x45c40d
push esi
lea ecx, [ebp - 0x255]
call fcn.0045c867
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45c356
push dword [ebp - 0x25c]
jmp 0x45c303
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x45c393
cmp word [ebp - 0x226], 0
je 0x45c3b4
cmp word [ebp - 0x226], ax
jne 0x45c393
cmp word [ebp - 0x224], 0
je 0x45c3b4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045be9f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45c400
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45c36d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45c3e8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45c40d
push 0x45b785
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040476e
add esp, 0x10
jmp 0x45c3dd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004029e1
leave
ret
Function at 0x46e43b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5e3d28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46e47b
cmp byte [ebx], 0xa
jne 0x46e47b
or byte [eax + edi + 0x28], 4
jmp 0x46e480
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46e57e
mov al, byte [edx]
cmp al, 0x1a
je 0x46e560
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46e4af
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46e4d4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46e4de
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46e491
jmp 0x46e57e
push 0
lea eax, [ebp - 0xc]
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 0x46e55b
cmp dword [ebp - 0xc], 0
je 0x46e55b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5e3d28]
test byte [eax + edi + 0x28], 0x48
je 0x46e535
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46e520
mov byte [esi], dl
jmp 0x46e531
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5e3d28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46e57e
cmp byte [ebp - 1], 0xa
jne 0x46e544
cmp esi, ebx
jne 0x46e544
mov byte [esi], 0xa
jmp 0x46e57d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401762
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46e57e
mov byte [esi], 0xd
jmp 0x46e57d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5e3d28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46e57a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46e57e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46e5da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5e3d28]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46e61d
cmp word [esi], dx
jne 0x46e61d
or byte [edi + eax + 0x28], 4
jmp 0x46e622
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46e775
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46e755
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46e664
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46e69a
cmp eax, edx
jae 0x46e6a6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46e63c
jmp 0x46e775
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e751
cmp dword [ebp - 0x14], 0
je 0x46e751
mov eax, dword [ebx*4 + 0x5e3d28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46e729
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46e6f2
mov word [esi], cx
jmp 0x46e725
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5e3d28]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5e3d28]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5e3d28]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46e775
pop ebx
cmp word [ebp - 4], bx
jne 0x46e73a
cmp esi, dword [ebp + 0xc]
jne 0x46e73a
mov word [esi], bx
jmp 0x46e772
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401762
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46e775
push 0xd
jmp 0x46e76e
mov ecx, dword [ebx*4 + 0x5e3d28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46e76c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46e775
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x829e1e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add edx, eax
shr cx, cl
clc
mov ecx, dword [esi + 0x7c]
test bp, ax
pushfd
add ecx, edx
clc
mov dword [esp + 4], ecx
and cl, 0x6c
mov ecx, dword [ebp + 4]
stc
cmp ecx, 0xffff
mov byte [esp], 0xae
lea esp, [esp + 4]
jbe 0x829873
add di, cx
rcl di, cl
mov edi, dword [edx + 0x24]
shr si, 7
cmp ebx, 0x94da154b
cmc
add edi, eax
lea esi, [ecx + 0x62e10aa5]
neg si
shld si, cx, 0xa
mov esi, dword [edx + 0x20]
pushal
add esi, eax
pushal
mov dword [esp], ebp
mov word [esp + 0xc], 0xa503
xor ecx, ecx
add esp, 0x40
bt edi, 0xe
sub ecx, dword [edx + 0x10]
clc
pushal
clc
pushal
cmp ecx, dword [edx + 0x14]
pushfd
mov byte [esp], 0xb4
lea esp, [esp + 0x44]
jae 0x828e21
pushal
lea esp, [esp + 0x20]
jmp 0x7a9e7d
mov word [esp], cx
pushfd
mov byte [esp], 0x8f
lea esp, [esp + 0x30]
je 0x828e21
push 0x81e51d9a
or si, sp
mov esi, dword [eax + 0x3c]
sbb dh, 0xf7
add esi, eax
movzx dx, dl
shrd dx, ax, cl
sbb edx, ebx
setp dl
mov edx, dword [esi + 0x78]
pushal
mov dword [esp + 4], edx
push dword [esp]
stc
test edx, edx
push dword [esp]
mov byte [esp], 0xc3
lea esp, [esp + 0x2c]
je 0x828e21
xor ch, 0x61
mov cx, sp
sub cx, 0xefd1
jmp 0x7ac25f
Function at 0x4749ea
Capabilities:
Encode data using xor

Disassembly:
push 0x4746cc
pop ecx
mov edi, 0xb39873d3
add edi, 0x92093666
call fcn.00474a20
inc ebx
inc ebx
sub ebx, edi
xor dword [esi], ecx
dec ebx
sub edi, ebx
add esi, 2
add ebx, ebx
sub ebx, 0xfff7d936
cmp esi, edx
jl fcn.004749ea
and ebx, ebx
ret
Function at 0x40179e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040194e
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40189c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40183f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401882
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401856
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401871
test al, 0x40
je 0x401868
mov ecx, dword [edi + 0x20]
jmp 0x40186f
test al, 0x80
je 0x401882
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401882
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40180e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret