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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x42ff38
mov eax, esi
call fcn.004454d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42ff38
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42ff38
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x430077
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42ff78
cmp eax, 0x108
ja 0x42ff78
mov eax, esi
call fcn.004454d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43006e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x430077
jmp 0x43006e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x430057
cmp eax, 0x20a
ja 0x430057
test byte [esi + 0x50], 0x80
jne 0x42ffaa
sub eax, 0x203
je 0x42ffa7
sub eax, 3
je 0x42ffa7
sub eax, 3
jne 0x42ffaa
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42ffbe
dec eax
je 0x42ffd3
dec eax
je 0x42fff0
dec eax
je 0x42ffd3
jmp 0x42fff7
mov ecx, ebx
mov eax, dword [0x46a628]
mov eax, dword [eax]
mov edx, esi
call fcn.0044edec
jmp 0x43006e
cmp byte [esi + 0x5d], 1
jne 0x42ffe9
mov eax, esi
mov si, 0xffed
call fcn.00403754
jmp 0x430077
or word [esi + 0x54], 1
jmp 0x43006e
and word [esi + 0x54], 0xfffe
jmp 0x43006e
mov eax, dword [0x46bb10]
cmp byte [eax + 0x20], 0
je 0x43006e
mov eax, dword [0x46bb10]
cmp dword [eax + 0x1c], 0
je 0x43006e
mov eax, dword [ebx]
mov edx, dword [0x46bb10]
cmp eax, dword [edx + 0x1c]
jne 0x43006e
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00445414
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403754
jmp 0x430077
cmp eax, 0xb00b
jne 0x43006e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042e828
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439c28
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46a7a4]
cmp byte [eax + 0xc], 0
je 0x439d95
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x439d8e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46bb64], 0
jne 0x439c7c
push 0x439d9c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x439da4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb64], eax
cmp dword [0x469bbc], 0
jne 0x439d77
push 0x439db4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x469bbc], eax
cmp dword [0x469bbc], 0
je 0x439d77
push 0x439dc0
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb68], eax
push 0x439dd0
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb6c], eax
push 0x439de4
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb70], eax
push 0x439dfc
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb74], eax
push 0x439e14
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb78], eax
push 0x439e28
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb7c], eax
push 0x439e40
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb80], eax
push 0x439e58
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb84], eax
push 0x439e74
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb88], eax
push 0x439e80
mov eax, dword [0x469bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439d95
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43dc20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404290
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43dc6f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404500
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445384
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4453d4]
test si, 4
je 0x445398
or bl, 1
test si, 8
je 0x4453a2
or bl, 4
test si, 1
je 0x4453ac
or bl, 8
test si, 2
je 0x4453b6
or bl, 0x10
test si, 0x10
je 0x4453c0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4453cf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4453d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445410]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4453f1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445400
or bl, 4
test esi, 0x20000000
je 0x44540b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44bb50
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44bb62
add esp, 0xfffffff0
call fcn.00403864
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ca0
mov eax, dword [0x46a440]
mov dword [eax + 4], ebx
mov dword [eax], 0x44bef4
mov eax, dword [0x46a44c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44bf00
mov eax, ebx
call fcn.0044bf0c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
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, 0x448290
push eax
push 0
push 0
mov eax, dword [0x46a5a8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b6c4]
call fcn.0041cb2c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b6c4]
call fcn.0041cb2c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b6c4]
call fcn.0041cb2c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044c32c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c208
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c208
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c208
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44bc9f
call fcn.004038bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44bfec
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 0x44c197
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c178
mov dl, 1
mov eax, dword [0x412068]
call fcn.00403528
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404290
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c167
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.00439f88
test al, al
je 0x44c15a
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, 0x44c1a8
lea eax, [ebp - 0x254]
call fcn.00408ef4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c15a
xor eax, eax
push ebp
push 0x44c153
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 0x44c1e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c13c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404500
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 0x44c13c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404500
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c15a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c05d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d8c
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 0x44c19e
lea eax, [ebp - 0x260]
call fcn.00404290
ret

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

Disassembly:
push ecx
mov eax, dword [0x46bbb0]
cmp byte [eax + 0xa5], 0
jne 0x44cc05
cmp dword [0x46bbc8], 0
jne 0x44cbc6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44cb50
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46bbc8], eax
cmp dword [0x46bbc4], 0
jne 0x44cbe1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46bbc4], eax
cmp dword [0x46bbcc], 0
jne 0x44cc05
push esp
push 0
push 0
push 0x44caf4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46bbcc], eax
pop edx
ret
Function at 0x44ccfc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44cd13
add esp, 0xfffffff0
call fcn.00403864
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ca0
mov eax, dword [0x46a594]
cmp word [eax + 2], 0
jne 0x44cd3b
mov eax, dword [0x46a594]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e3d4
mov eax, dword [0x46a644]
cmp word [eax + 2], 0
jne 0x44cd55
mov eax, dword [0x46a644]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e5cc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411c4c]
call fcn.00403528
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41be74]
call fcn.00421ae0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44cedc
mov eax, dword [0x46a4ac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421eb0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44eb7c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46a4ac]
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.0040c798
test eax, eax
je 0x44ce4a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7c0
test eax, eax
je 0x44ce5e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404500
mov eax, dword [0x46a38c]
cmp byte [eax], 0
jne 0x44ce92
mov eax, ebx
call fcn.0044d004
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044ed58
mov eax, ebx
call fcn.0044f71c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ced2
call fcn.004038bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d284
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46bbb0]
cmp dword [eax + 0x30], 0
je 0x44d32e
cmp dword [ebx + 0x94], 0
jne 0x44d328
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d214
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d328
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 0x44d2ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d328
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.004141fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d2fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44de90
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44dec5
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.00404380
jmp 0x44ded2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ef34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44ef75
mov eax, esi
call fcn.00435648
test al, al
je 0x44ef75
mov eax, dword [ebx + 0x84]
call fcn.004353e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ef75
push 0
mov eax, dword [ebx + 0x84]
call fcn.004353e8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46483c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.00404290
lea eax, [ebp - 0xc0]
push eax
call sub.kernel32.dll_GetSystemInfo
xor eax, eax
push ebp
push 0x464a70
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x9c]
call fcn.00464c14
test al, al
jne 0x464887
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x464a81
mov eax, dword [ebp - 0x98]
sub eax, 4
je 0x4648a1
dec eax
je 0x4648eb
dec eax
je 0x4649b0
jmp 0x464a66
mov eax, dword [ebp - 0x94]
sub eax, 1
jb 0x4648b8
je 0x4648c9
sub eax, 8
je 0x4648da
jmp 0x464a66
mov eax, ebx
mov edx, 0x464a90
call fcn.004042e4
jmp 0x464a66
mov eax, ebx
mov edx, 0x464aa4
call fcn.004042e4
jmp 0x464a66
mov eax, ebx
mov edx, 0x464ab8
call fcn.004042e4
jmp 0x464a66
mov eax, dword [ebp - 0x94]
sub eax, 1
jb 0x464900
je 0x46492c
dec eax
je 0x464944
jmp 0x464a66
cmp byte [ebp - 2], 1
jne 0x464914
mov eax, ebx
mov edx, 0x464acc
call fcn.004042e4
jmp 0x464920
mov eax, ebx
mov edx, 0x464ae0
call fcn.004042e4
mov byte [0x46bc74], 1
jmp 0x464a66
mov eax, ebx
mov edx, 0x464af8
call fcn.004042e4
mov byte [0x46bc74], 1
jmp 0x464a66
cmp byte [ebp - 2], 1
jne 0x464960
cmp word [ebp - 0xc0], 9
jne 0x464960
mov eax, ebx
mov edx, 0x464b0c
call fcn.004042e4
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x464980
mov eax, ebx
mov edx, 0x464b20
call fcn.004042e4
mov byte [0x46bc74], 1
jmp 0x464993
mov eax, ebx
mov edx, 0x464b38
call fcn.004042e4
mov byte [0x46bc74], 1
cmp word [ebp - 4], 0x8000
jne 0x464a66
mov eax, ebx
mov edx, 0x464b50
call fcn.004042e4
jmp 0x464a66
mov eax, dword [ebp - 0x94]
sub eax, 1
jb 0x4649c8
je 0x4649ed
dec eax
je 0x464a16
dec eax
je 0x464a3f
jmp 0x464a66
cmp byte [ebp - 2], 1
jne 0x4649df
mov eax, ebx
mov edx, 0x464b68
call fcn.004042e4
jmp 0x464a66
mov eax, ebx
mov edx, 0x464b7c
call fcn.004042e4
jmp 0x464a66
cmp byte [ebp - 2], 1
jne 0x464a01
mov eax, ebx
mov edx, 0x464b94
call fcn.004042e4
jmp 0x464a0d
mov eax, ebx
mov edx, 0x464ba8
call fcn.004042e4
mov byte [0x46bc74], 1
jmp 0x464a66
cmp byte [ebp - 2], 1
jne 0x464a2a
mov eax, ebx
mov edx, 0x464bc0
call fcn.004042e4
jmp 0x464a36
mov eax, ebx
mov edx, 0x464bd4
call fcn.004042e4
mov byte [0x46bc74], 1
jmp 0x464a66
cmp byte [ebp - 2], 1
jne 0x464a53
mov eax, ebx
mov edx, 0x464bec
call fcn.004042e4
jmp 0x464a5f
mov eax, ebx
mov edx, 0x464c04
call fcn.004042e4
mov byte [0x46bc74], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x464a81
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46518c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040475c
xor eax, eax
push ebp
push 0x465241
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404290
mov ebx, 0x41
lea eax, [ebp - 0xc]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.00402bdc
mov edx, 0x465250
lea eax, [ebp - 0x10]
mov cl, 2
call fcn.00402bac
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004044f4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004045b8
mov eax, dword [ebp - 0x14]
push eax
call sub.shlwapi.dll_PathFileExistsA
test eax, eax
je 0x465218
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.004042e4
inc ebx
cmp ebx, 0x5b
jne 0x4651c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465248
lea eax, [ebp - 0x14]
call fcn.00404290
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042b4
ret

Function at 0x4657cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x465854
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402cf8
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x46586c
mov edx, ebx
call fcn.004045b8
mov eax, dword [ebp - 0x24]
call fcn.0040476c
mov dword [ebp - 0x16], eax
mov eax, 0x465870
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x414
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46585b
lea eax, [ebp - 0x24]
call fcn.00404290
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x40d87365
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x50166fe
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10005614
Capabilities:
Execute anti-debugging instructions
Parse pe header

Disassembly:
push ebp
cwd
lea ebp, [esp - 0x74]
btr dx, si
sub esp, 0xce0
push esi
rcr al, cl
mov dword [ebp + 0x70], 0
xchg ecx, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, 4
shld edx, ecx, 6
ror dl, 0x97
imul ecx, eax, 0
bts dx, cx
mov edx, dword [ecx + str.04440]
ror ch, cl
mov cx, cx
sub eax, eax
movzx ecx, di
add ch, dl
mov dword [ebp - 0x48], edx
and dl, 0xd
inc cl
sal dl, cl
mov dword [ebp - 0x44], eax
shl dh, 0x70
or cx, 0x1eda
ror cx, 0xc
mov ecx, 4
sar dh, cl
shl ecx, 0
mov edx, 4
sal eax, cl
neg ax
cwde
shl edx, 1
ror eax, cl
mov eax, dword [ecx + str.04440]
clc
and eax, dword [edx + str.04440]
movsx edx, bx
xor ecx, ecx
xor eax, dword [ebp - 0x48]
xor ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
xor dx, di
mov dword [ebp - 0x44], ecx
adc al, 0xc5
mov edx, 4
imul eax, edx, 3
cmp bl, 0x45
mov ecx, 4
rcl dx, cl
shr edx, 0x42
shl ecx, 2
add dh, dh
mov edx, dword [eax + str.04440]
cmp ebp, esp
test sp, ax
and edx, dword [ecx + str.04440]
clc
sub eax, eax
adc ch, bh
and cx, 0x3a2b
rol ecx, cl
xor edx, dword [ebp - 0x48]
bt ecx, 0xe6
and cl, dh
rol cx, 0x5d
xor eax, dword [ebp - 0x44]
xor cx, di
ror cx, 0x66
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
sub eax, 0x5329408b
shld ax, dx, 0x26
mov ecx, dword [ebp - 0x48]
not ecx
cmp dx, ax
mov edx, dword [ebp - 0x44]
not edx
shl eax, 0x9b
mov eax, 0x434
cmp ebp, edi
test al, 0x90
not eax
cmp cx, 0x5dfb
cmc
xor esi, esi
xor ecx, eax
clc
test esp, 0x7ed66d84
xor edx, esi
jmp loc.1006e5a4