joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451aa8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x468cb0]
cmp byte [eax + 0xc], 0
je 0x451c15
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451c0e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46c574], 0
jne 0x451afc
push 0x451c1c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x451c24
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c574], eax
cmp dword [0x4686ac], 0
jne 0x451bf7
push 0x451c34
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4686ac], eax
cmp dword [0x4686ac], 0
je 0x451bf7
push 0x451c40
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c578], eax
push 0x451c50
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c57c], eax
push 0x451c64
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c580], eax
push 0x451c7c
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c584], eax
push 0x451c94
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c588], eax
push 0x451ca8
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c58c], eax
push 0x451cc0
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c590], eax
push 0x451cd8
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c594], eax
push 0x451cf4
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c598], eax
push 0x451d00
mov eax, dword [0x4686ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46c59c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c15
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4572a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4572f4]
test si, 4
je 0x4572b5
or bl, 1
test si, 8
je 0x4572bf
or bl, 4
test si, 1
je 0x4572c9
or bl, 8
test si, 2
je 0x4572d3
or bl, 0x10
test si, 0x10
je 0x4572dd
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4572ec
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4572f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x457334]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457312
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457321
or bl, 4
test esi, 0x20000000
je 0x45732c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45e9e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45e9fa
add esp, 0xfffffff0
call fcn.00403ba0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041db54
mov eax, dword [0x468938]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ed8c
mov eax, dword [0x468944]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ed98
mov eax, ebx
call fcn.0045eda4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
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, 0x45a83c
push eax
push 0
push 0
mov eax, dword [0x468aa8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421924]
call fcn.00423178
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421924]
call fcn.00423178
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421924]
call fcn.00423178
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f1d4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f0a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f0a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f0a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45eb37
call fcn.00403bf8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ee88
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 0x45f033
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f014
mov dl, 1
mov eax, dword [0x415d04]
call fcn.0040384c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f003
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.00451e04
test al, al
je 0x45eff6
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, 0x45f044
lea eax, [ebp - 0x254]
call fcn.0040992c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45eff6
xor eax, eax
push ebp
push 0x45efef
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 0x45f07c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45efd8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404918
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 0x45efd8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eff6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45eef9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004199e4
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 0x45f03a
lea eax, [ebp - 0x260]
call fcn.004046a8
ret

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

Disassembly:
push ecx
mov eax, dword [0x46c5ac]
cmp byte [eax + 0xad], 0
jne 0x45fa1d
cmp dword [0x46c5c4], 0
jne 0x45f9de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f968
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46c5c4], eax
cmp dword [0x46c5c0], 0
jne 0x45f9f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46c5c0], eax
cmp dword [0x46c5c8], 0
jne 0x45fa1d
push esp
push 0
push 0
push 0x45f90c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46c5c8], eax
pop edx
ret
Function at 0x45fbf0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45fc07
add esp, 0xfffffff0
call fcn.00403ba0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041db54
mov eax, dword [0x468a94]
cmp word [eax + 2], 0
jne 0x45fc2f
mov eax, dword [0x468a94]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461730
mov eax, dword [0x468b44]
cmp word [eax + 2], 0
jne 0x45fc49
mov eax, dword [0x468b44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046193c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4158e0]
call fcn.0040384c
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 [0x422434]
call fcn.00429b64
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45fe00
mov eax, dword [0x4689a8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429f38
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x461ffc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4689a8]
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.0040d1f0
test eax, eax
je 0x45fd50
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004092e4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d224
test eax, eax
je 0x45fd64
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.00404918
mov byte [ebx + 0xd4], 0
push ebx
push 0x461290
call fcn.0041ecd0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x468880]
cmp byte [eax], 0
jne 0x45fdb5
mov eax, ebx
call fcn.0045ff44
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.004621d8
mov eax, ebx
call fcn.00462d38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45fdf5
call fcn.00403bf8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4601c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46c5ac]
cmp dword [eax + 0x30], 0
je 0x46026e
cmp dword [ebx + 0x94], 0
jne 0x460268
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460154
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460268
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 0x46022e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460268
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.00417c8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46023d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460f88
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x460fbd
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.00404798
jmp 0x460fca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4623bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46242a
mov eax, esi
call fcn.0044ca7c
test al, al
je 0x46242a
mov eax, dword [ebx + 0x84]
call fcn.0044c6dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46242a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46241e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c6dc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00444afc
jmp 0x46242a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004621f8
pop esi
pop ebx
ret
Function at 0x4641b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b5c
xor eax, eax
push ebp
push 0x464261
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004031b8
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x41
mov word [ebp - 0x18], bx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404b6c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x464244
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x46424b
call sub.kernel32.dll_GetLastError
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464268
lea eax, [ebp - 4]
call fcn.004046a8
ret
Function at 0x405710
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40b064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push edi
push 0x18
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x405784
push 0x3e
pop ecx
call fcn.00406a19
mov ebx, eax
test ebx, ebx
jne 0x40574f
mov eax, 0xc000009a
jmp 0x405784
mov esi, edi
cmp dword [ebp - 0x1c], esi
jbe 0x40577b
push esi
push 0x402ee8
push 0x1f
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
mov ecx, ebx
call fcn.004053c3
test eax, eax
jns 0x405775
mov edi, eax
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x405756
mov ecx, ebx
call fcn.00406a2c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a430
mov esp, ebp
pop ebp
ret

Function at 0x405795
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40b064]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x402f14
lea eax, [ebp - 0xc]
push 3
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x41
pop eax
mov word [ebp - 0xc], ax
push 0x106
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405802
mov ecx, dword [ebp - 0xc]
call fcn.00407718
cmp eax, 0xffffffff
je 0x405822
lea ecx, [ebp - 0x220]
xor edx, edx
push ecx
push 0
mov ecx, eax
call fcn.004054a0
test eax, eax
js 0x405814
mov ax, word [ebp - 0xc]
inc ax
mov word [ebp - 0xc], ax
cmp ax, 0x5a
jbe 0x4057c5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a430
mov esp, ebp
pop ebp
ret
mov eax, 0xc00000ef
jmp 0x405814
Function at 0x405a9d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
push 0x1083
call fcn.00406b5a
mov ebx, 0x101d
push ebx
call fcn.00406b5a
add esp, 0xc
mov ecx, esi
call fcn.004059d2
mov edi, eax
test edi, edi
jns 0x405af8
push 0x1082
call fcn.00406b5a
pop ecx
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.00406ba1
push ebx
call fcn.00406b5a
mov eax, edi
jmp 0x405c95
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x405b10
push 0x1084
call fcn.00406b5a
xor eax, eax
jmp 0x405c95
push dword [esi + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x2a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push 7
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], edi
push eax
push 0xc0100080
lea eax, [ebp - 4]
mov dword [ebp - 0x30], 0x40
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jns 0x405b7e
push 0x1086
call fcn.00406b5a
pop ecx
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.00406ba1
mov eax, ebx
jmp 0x405c96
mov ebx, dword [esi + 0x10]
mov eax, 0x200
cmp ebx, eax
jb 0x405b92
test ebx, 0x1ff
je 0x405b94
mov ebx, eax
lea ecx, [ebx + ebx]
call fcn.00406a19
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x405bba
push 0x1085
call fcn.00406b5a
pop ecx
mov esi, 0xc000009a
jmp 0x405c78
push edi
push ebx
push edi
push esi
call fcn.0040a9e0
mov edi, esi
test eax, eax
je 0x405bd2
sub edi, eax
add edi, ebx
mov dword [ebp - 0xc], edi
jmp 0x405bd5
mov dword [ebp - 0xc], esi
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405bef
push 0x1087
jmp 0x405c60
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c5b
cmp dword [ebp - 8], ebx
jne 0x405c5b
mov esi, dword [0x411ef0]
push 0x6e
pop ecx
mov esi, dword [esi + 0xc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405be8
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405c54
cmp dword [ebp - 8], ebx
jne 0x405c54
push 0x108a
call fcn.00406b5a
mov esi, dword [ebp - 0x10]
pop ecx
jmp 0x405c78
push 0x1089
jmp 0x405c60
push 0x1088
call fcn.00406b5a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00406ba1
mov esi, 0xc0000001
mov ecx, dword [ebp - 0x14]
call fcn.00406a2c
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x101d
call fcn.00406b5a
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40773d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.004074a4
call 0x8e2bcf76
inc ebp
test al, 0x50
call fcn.004074b4
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00407469
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x407792
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004074a4
mov ebp, 0x8d9b3911
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x409c88
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edi
mov ebx, edi
call fcn.00409ef2
lea edx, [esp + 0xc]
test al, al
je 0x409cc7
mov ecx, 0x404da8
call fcn.00409fe3
mov esi, eax
cmp esi, 0xc0000452
jne 0x409cd3
lea edx, [esp + 0xc]
mov ecx, 0x404df0
call fcn.00409fe3
mov esi, eax
test esi, esi
js 0x409d76
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], edi
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x409d15
test esi, esi
js 0x409d7a
mov esi, 0xc0000001
jmp 0x409d7a
mov eax, dword [esp + 0x10]
add eax, 2
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x409d3f
mov esi, 0xc000009a
jmp 0x409d7a
mov ax, word [esp + 0x10]
mov word [esp + 0x1a], ax
lea eax, [esp + 0x18]
push 0
push eax
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
test esi, esi
js 0x409d7a
movzx eax, word [esp + 0x18]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
jmp 0x409d7a
mov edi, dword [esp + 0xc]
test edi, edi
je 0x409d85
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x409d9f
test ebx, ebx
je 0x409d9f
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a4b4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40aa88
call fcn.0040a93c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a514
cmp eax, 0xffffffff
je 0x40a514
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40a50d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40a50d
cmp edx, 0x10000000
jae 0x40a50d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40a50a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040a981
ret 4

Function at 0x40a570
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40a5ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40a5a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40a5b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40a596
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a680
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40a696
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40a6b1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret