joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d194
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00407b60
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00457d48
test ebx, ebx
jne 0x45d1e7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0045d0d0
mov ebx, eax
test ebx, ebx
je 0x45d2d2
cmp esi, ebx
je 0x45d210
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x45d225
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45d25d
add eax, 0xffffff5f
sub eax, 2
jb 0x45d275
dec eax
sub eax, 2
jb 0x45d289
dec eax
sub eax, 2
jb 0x45d27f
jmp 0x45d293
add eax, 0xfffffdff
sub eax, 2
jb 0x45d275
dec eax
sub eax, 2
jb 0x45d289
dec eax
sub eax, 2
jb 0x45d27f
jmp 0x45d293
mov byte [esp + 0x120], 0
jmp 0x45d29b
mov byte [esp + 0x120], 2
jmp 0x45d29b
mov byte [esp + 0x120], 1
jmp 0x45d29b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0046bfa4
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00459500
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x45d2d4
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4657f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x58b6dc]
cmp byte [eax + 0xc], 0
je 0x465965
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46595e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x592edc], 0
jne 0x46584c
push 0x46596c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x465974
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592edc], eax
cmp dword [0x578070], 0
jne 0x465947
push 0x465984
call sub.kernel32.dll_LoadLibraryA
mov dword [0x578070], eax
cmp dword [0x578070], 0
je 0x465947
push 0x465990
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592ee0], eax
push 0x4659a0
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592ee4], eax
push 0x4659b4
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592ee8], eax
push 0x4659cc
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592eec], eax
push 0x4659e4
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592ef0], eax
push 0x4659f8
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592ef4], eax
push 0x465a10
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592ef8], eax
push 0x465a28
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592efc], eax
push 0x465a44
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592f00], eax
push 0x465a50
mov eax, dword [0x578070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x592f04], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465965
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46bacc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x46baed
test edi, 0x40000
je 0x46bb07
test bl, bl
jne 0x46bb88
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x46bb88
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x46bb3a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x46bb4f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x46bb5e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x46bb6f
cmp byte [esp + 2], 0
je 0x46bb88
cmp byte [esp + 2], 0
je 0x46bb80
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x46bb88
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46be2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x46be52
mov eax, esp
push eax
push 0x46bdf4
call sub.user32.dll_EnumWindows
jmp 0x46be65
mov eax, esp
push eax
push 0x46bdd4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x46bf0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46bf60]
test si, 4
je 0x46bf21
or bl, 1
test si, 8
je 0x46bf2b
or bl, 4
test si, 1
je 0x46bf35
or bl, 8
test si, 2
je 0x46bf3f
or bl, 0x10
test si, 0x10
je 0x46bf49
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46bf58
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46bf64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46bfa0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46bf7e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46bf8d
or bl, 4
test esi, 0x20000000
je 0x46bf98
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46bff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0046bfa4
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x474048
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47405a
add esp, 0xfffffff0
call fcn.004049c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425950
mov eax, dword [0x58ab98]
mov dword [eax + 4], ebx
mov dword [eax], 0x4743ec
mov eax, dword [0x58abb4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4743f8
mov eax, ebx
call fcn.00474404
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46f890
push eax
push 0
push 0
mov eax, dword [0x58b034]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42b8bc]
call fcn.0042d1b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42b8bc]
call fcn.0042d1b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42b8bc]
call fcn.0042d1b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047487c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47474c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47474c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47474c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474197
call fcn.00404a20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x474530
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4746db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4746bc
mov dl, 1
mov eax, dword [0x41c064]
call fcn.00404674
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004055e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4746ab
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.00465b54
test al, al
je 0x47469e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4746ec
lea eax, [ebp - 0x254]
call fcn.0040e720
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47469e
xor eax, eax
push ebp
push 0x474697
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x474724
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x474680
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405854
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x474680
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47469e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4745a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0042105c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4746e2
lea eax, [ebp - 0x260]
call fcn.004055e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x592f20]
cmp byte [eax + 0xad], 0
jne 0x4750c5
cmp dword [0x592f3c], 0
jne 0x475086
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x475010
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x592f3c], eax
cmp dword [0x592f38], 0
jne 0x4750a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x592f38], eax
cmp dword [0x592f40], 0
jne 0x4750c5
push esp
push 0
push 0
push 0x474fb4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x592f40], eax
pop edx
ret
Function at 0x4752c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4752df
add esp, 0xfffffff0
call fcn.004049c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425950
mov eax, dword [0x58aff8]
cmp word [eax + 2], 0
jne 0x475307
mov eax, dword [0x58aff8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476fd0
mov eax, dword [0x58b280]
cmp word [eax + 2], 0
jne 0x475321
mov eax, dword [0x58b280]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004771dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41b9f8]
call fcn.00404674
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 [0x42c46c]
call fcn.00434930
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4754d8
mov eax, dword [0x58ad0c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00434d04
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4778b0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x58ad0c]
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.00412a6c
test eax, eax
je 0x475428
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040dd00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00412aa0
test eax, eax
je 0x47543c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405854
mov byte [ebx + 0xd4], 0
push ebx
push 0x476a44
call fcn.00426acc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x58a864]
cmp byte [eax], 0
jne 0x47548d
mov eax, ebx
call fcn.0047561c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00477ac4
mov eax, ebx
call fcn.00478628
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4754cd
call fcn.00404a20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47589c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x47593b
cmp dword [ebx + 0x94], 0
jne 0x475935
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x475824
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475935
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 0x4758fb
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475935
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.0041e2c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47590a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x592f20]
cmp dword [eax + 0x30], 0
je 0x475cb1
test bl, bl
jne 0x475c02
cmp dword [esi + 0x9c], 0
jne 0x475bf7
mov eax, esi
call fcn.004784a4
push eax
push 0x475a80
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x475bc8
mov eax, dword [0x592f20]
call fcn.00478b84
test al, al
je 0x475bc8
mov eax, dword [0x592f44]
call fcn.00406a34
mov edi, eax
cmp edi, 0
jl 0x475bc8
push 0
mov eax, dword [0x592f44]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x475bb2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x475bf7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e2c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x475bd7
inc dword [esi + 0x9c]
jmp 0x475cb1
cmp dword [esi + 0x9c], 0
jle 0x475cb1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x475cb1
cmp dword [esi + 0x44], 0
je 0x475c5d
mov eax, dword [0x592f20]
call fcn.00478b84
test al, al
je 0x475c5d
mov eax, dword [0x592f44]
call fcn.00406a34
mov edi, eax
cmp edi, 0
jl 0x475c5d
push 5
mov eax, dword [0x592f44]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x475c47
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x475c8c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e2c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x475c6c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x592f44
mov ecx, 1
mov edx, dword [0x475a60]
call fcn.00406be8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x476798
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x476802
mov eax, ebx
call fcn.00478b84
test al, al
jne 0x476802
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.004056d4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4767ef
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47680f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405638
jmp 0x47680f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405638
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x477ca8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477d16
mov eax, esi
call fcn.00460740
test al, al
je 0x477d16
mov eax, dword [ebx + 0x84]
call fcn.004603a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477d16
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x477d0a
push 0
mov eax, dword [ebx + 0x84]
call fcn.004603a0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00458130
jmp 0x477d16
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00477ae4
pop esi
pop ebx
ret

Function at 0x479534
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403e38
ret
Function at 0x479714
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a64
xor eax, eax
push ebp
push 0x479862
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.00479534
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x479841
xor eax, eax
push ebp
push 0x47983a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x479823
xor eax, eax
push ebp
push 0x47981c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x479805
xor eax, eax
push ebp
push 0x4797fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0047956c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479805
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479823
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479841
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.004795f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479869
lea eax, [ebp - 4]
call fcn.004055e4
ret
Function at 0x47a2cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x47a2f0
cmp eax, 0
jbe 0x47a3f9
jmp 0x47a2f6
jle 0x47a3f9
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.00403e38
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x40
jne 0x47a3f9
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x47a3f9
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x47a3f9
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 4
jne 0x47a3f9
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x47a3f9
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x14
jne 0x47a3f9
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x47a3f9
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x47a3f9
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x47aa48
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xf6]
test ax, ax
jbe 0x47ab28
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x47ab26
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x47aabe
test eax, 0x40000000
je 0x47aaaa
test eax, 0x80000000
je 0x47aaa5
or edx, 0x40
jmp 0x47aae5
or edx, 0x20
jmp 0x47aae5
test eax, 0x80000000
je 0x47aab9
or edx, 0x80
jmp 0x47aae5
or edx, 0x10
jmp 0x47aae5
test eax, 0x40000000
je 0x47aad6
test eax, 0x80000000
je 0x47aad1
or edx, 4
jmp 0x47aae5
or edx, 2
jmp 0x47aae5
test eax, 0x80000000
je 0x47aae2
or edx, 8
jmp 0x47aae5
or edx, 1
test eax, 0x4000000
je 0x47aaf2
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x47aa78
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret