joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b036c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b0519
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4b04fa
mov dl, 1
mov eax, dword [0x42a024]
call fcn.00435e50
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.004068c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4b04e9
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004929d8
test al, al
je 0x4b04dc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4b0528
lea eax, [ebp - 0x394]
call fcn.00412eb0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4b04dc
xor eax, eax
push ebp
push 0x4b04d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4b0598
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4b04be
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406ac0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4b04be
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406ac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b04dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4b03df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00435d8c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0520
lea eax, [ebp - 0x3a0]
call fcn.004068b0
ret

Function at 0x4b1078
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4d5280]
cmp byte [eax + 0xad], 0
jne 0x4b10ea
cmp dword [0x4d5298], 0
jne 0x4b10aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4cf5d0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4d5298], eax
cmp dword [0x4d5294], 0
jne 0x4b10c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4d5294], eax
cmp dword [0x4d529c], 0
jne 0x4b10ea
push esp
push 0
push 0
mov eax, dword [0x4cf5cc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d529c], eax
pop edx
ret
Function at 0x4b1410
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4b1427
add esp, 0xfffffff0
call fcn.00405310
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043e3d8
mov eax, dword [0x4cf7a4]
cmp byte [eax], 0
jne 0x4b1454
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4cfa3c]
cmp word [eax + 2], 0
jne 0x4b146e
mov eax, dword [0x4cfa3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b3508
mov eax, dword [0x4cfb38]
cmp word [eax + 2], 0
jne 0x4b1488
mov eax, dword [0x4cfb38]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b3718
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x448cfc]
call fcn.0044efd0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4b3cc8
mov dl, 1
mov eax, dword [0x427a5c]
call fcn.00404dac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x427a5c]
call fcn.00404dac
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44d194]
call fcn.00458440
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4b1668
mov eax, dword [0x4cf918]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004588d4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4b3fb0
mov dl, 1
mov eax, dword [0x427a5c]
call fcn.00404dac
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4cf918]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00412cfc
test eax, eax
je 0x4b1599
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00412ae0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00412ce0
test eax, eax
je 0x4b15b1
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406ac0
push ebx
push 0x4b2ed8
call fcn.004a7064
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4cf7a4]
cmp byte [eax], 0
jne 0x4b1602
mov eax, ebx
call fcn.004b17dc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004b41dc
mov eax, ebx
call fcn.004b4e10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b165f
call fcn.00405368
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1ab0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b1b52
cmp dword [ebx + 0x94], 0
jne 0x4b1b4c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b19fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b1b4c
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_GetWindowLongW
test al, 8
je 0x4b1b12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b1b4c
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.0043282c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b1b21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b1d70
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4d5280]
cmp dword [eax + 0x170], 0
je 0x4b1ed5
test bl, bl
jne 0x4b1e23
cmp dword [esi + 0x9c], 0
jne 0x4b1e18
mov eax, esi
call fcn.004b4c60
push eax
push 0x4b1c7c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4b1de9
mov eax, dword [0x4d5280]
cmp byte [eax + 0xd3], 0
je 0x4b1de9
mov eax, dword [esi + 0xd8]
call fcn.00407ee4
mov edi, eax
cmp edi, 0
jl 0x4b1de9
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b1dd2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b1e18
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043282c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b1df8
inc dword [esi + 0x9c]
jmp 0x4b1ed5
cmp dword [esi + 0x9c], 0
jle 0x4b1ed5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4b1ed5
cmp dword [esi + 0x44], 0
je 0x4b1e80
mov eax, dword [0x4d5280]
cmp byte [eax + 0xd3], 0
je 0x4b1e80
mov eax, dword [esi + 0xd8]
call fcn.00407ee4
mov edi, eax
cmp edi, 0
jl 0x4b1e80
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b1e69
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b1eaf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043282c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b1e8f
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4a4f3c]
call fcn.004080a4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4b2b24
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b2b8f
cmp byte [ebx + 0xd3], 0
jne 0x4b2b8f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069fc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b2b7c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b2b9c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068c0
jmp 0x4b2b9c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068c0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b43c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b4432
mov eax, esi
call fcn.0048ca00
test al, al
je 0x4b4432
mov eax, dword [ebx + 0x84]
call fcn.0048c654
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b4432
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4b4426
push 0
mov eax, dword [ebx + 0x84]
call fcn.0048c654
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0048362c
jmp 0x4b4432
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004b41fc
pop esi
pop ebx
ret

Function at 0x4b8fc0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4d52b0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4b8fe2
shr eax, 1
xor eax, 0xedb88320
jmp 0x4b8fe4
shr eax, 1
dec edx
jne 0x4b8fd0
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4b8fc9
mov byte [0x4d56b0], 1
pop esi
pop ebx
ret

Function at 0x4b9000
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4d56b0], 0
jne 0x4b9017
call fcn.004b8fc0
mov eax, edi
dec eax
test eax, eax
jl 0x4b903f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4d52b0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4b9021
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4bbde8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4bbe82.0
jmp dword [ecx*4 + 0x4bbe1b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4bbe4d
sub dl, 8
je 0x4bbe5c
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bba90
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbae8
jmp case.0x4bbe82.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4bbe82.0
movzx ecx, byte [ecx + 0x4bbe89]
jmp dword [ecx*4 + 0x4bbe9a]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbb94
jmp case.0x4bbe82.0
cmp dl, 3
jne 0x4bbec7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbbec
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbba8
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbc30
jmp case.0x4bbe82.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4bbef2
sub dl, 8
je 0x4bbefe
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbc5c
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbcc8
jmp case.0x4bbe82.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4bbf1d
sub dl, 8
je 0x4bbf29
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbd84
jmp case.0x4bbe82.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4bbdac
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x4bbfcb
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004baf94
test eax, eax
je 0x4bbfcb
mov eax, ebx
call fcn.004bbfd4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x4bbf64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bbfd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4bc005
dec al
je 0x4bc040
dec al
je 0x4bc085
dec al
je 0x4bc0ee
jmp 0x4bc178
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4bc178
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4bc015
jmp 0x4bc178
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bc178
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4bc050
jmp 0x4bc178
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bc178
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4bc0b4
xor ebp, ebp
jmp 0x4bc0c4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4bc0cd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4bc095
jmp 0x4bc178
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bc178
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4bc147
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004b9048
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4bc102
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c2718
Capabilities:
Hide graphical window

Disassembly:
test al, al
je 0x4c2727
mov eax, dword [0x4cfb0c]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x4cfb0c]
mov eax, dword [eax]
cmp byte [eax + 0xd3], 0
je 0x4c275c
mov eax, dword [0x4cfb0c]
mov eax, dword [eax]
cmp dword [eax + 0x44], 0
je 0x4c275c
push 0
mov eax, dword [0x4cfb0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0048c654
push eax
call sub.user32.dll_ShowWindow
ret
push 0
mov eax, dword [0x4cfb0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4041a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe28
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0xe24], eax
mov eax, dword [esp + 0xe30]
push ebx
push ebp
mov ebp, dword [esp + 0xe34]
push esi
push edi
push 0x400
lea ecx, [esp + 0x234]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.00408040
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.00404592
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404200
sub eax, edx
sar eax, 1
lea edi, [esp + eax*2 + 0x232]
mov ecx, pe_nt_image_headers32
mov esi, 0x4199c0
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404227
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.004051dc
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.00408040
add esp, 0xc
push 0x7fe
lea ecx, [esp + 0x636]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x28], 0x10000
mov word [esp + 0x63c], ax
call fcn.00408040
add esp, 0xc
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x34], dx
call fcn.00408040
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0xe44]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x630]
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00403b50
add esp, 8
test eax, eax
je 0x404399
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00403c70
add esp, 0xc
test eax, eax
je 0x404399
lea edx, [esp + 0x630]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edx, esi
call fcn.00403e50
add esp, 0xc
test eax, eax
je 0x404399
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404399
cmp dword [esp + 0x1c], 0
je 0x404399
cmp byte [ebp], 0
jne 0x404399
push 0x419bc0
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00404515
add esp, 0xc
push 0x415184
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.00404867
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404391
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.004043e0
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x4043a6
push ebp
call fcn.004052a6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4043b5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0xe28
ret
Function at 0x436b80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x50c11b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004fc8e9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x436c02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004f9c9f
mov eax, dword [eax]
push 0xff5250
push eax
call fcn.004eaf34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004fcb74
test bl, bl
je 0x436c02
push 0xff5250
lea ecx, [esp + 0xc]
call fcn.004fcf04
push 0xff8dd4
lea ecx, [esp + 0xc]
call fcn.004fcf04
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x436c3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004fcb74
jmp 0x436d09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x436cc2
lea edx, [esp + 0x7c]
push 0xff8dd0
push edx
call fcn.004eaf34
add esp, 8
test eax, eax
je 0x436cc2
lea eax, [esp + 0x7c]
push 0xff8dcc
push eax
call fcn.004eaf34
add esp, 8
test eax, eax
je 0x436cc2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x436c52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004fcb74
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4379b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x437a12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc