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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x478b74]
cmp byte [eax + 0xc], 0
je 0x4419a9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4419a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x479bf0], 0
jne 0x441890
push 0x4419b0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4419b8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bf0], eax
cmp dword [0x477ab4], 0
jne 0x44198b
push 0x4419c8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x477ab4], eax
cmp dword [0x477ab4], 0
je 0x44198b
push 0x4419d4
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bf4], eax
push 0x4419e4
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bf8], eax
push 0x4419f8
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479bfc], eax
push 0x441a10
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c00], eax
push 0x441a28
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c04], eax
push 0x441a3c
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c08], eax
push 0x441a54
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c0c], eax
push 0x441a6c
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c10], eax
push 0x441a88
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c14], eax
push 0x441a94
mov eax, dword [0x477ab4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479c18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4419a9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4455bc
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.004042b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44560b
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.00404518
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d4f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d544]
test si, 4
je 0x44d508
or bl, 1
test si, 8
je 0x44d512
or bl, 4
test si, 1
je 0x44d51c
or bl, 8
test si, 2
je 0x44d526
or bl, 0x10
test si, 0x10
je 0x44d530
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d53f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d548
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d580]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d561
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d570
or bl, 4
test esi, 0x20000000
je 0x44d57b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453b84
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453b96
add esp, 0xfffffff0
call fcn.004038a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd68
mov eax, dword [0x478834]
mov dword [eax + 4], ebx
mov dword [eax], 0x453f28
mov eax, dword [0x478840]
mov dword [eax + 4], ebx
mov dword [eax], 0x453f34
mov eax, ebx
call fcn.00453f40
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
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, 0x450408
push eax
push 0
push 0
mov eax, dword [0x478984]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d7b8]
call fcn.0041ef2c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d7b8]
call fcn.0041ef2c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d7b8]
call fcn.0041ef2c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454360
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45423c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45423c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45423c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453cd3
call fcn.00403900
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454020
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 0x4541cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4541ac
mov dl, 1
mov eax, dword [0x412260]
call fcn.00403514
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45419b
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.00441b9c
test al, al
je 0x45418e
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, 0x4541dc
lea eax, [ebp - 0x254]
call fcn.004092b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45418e
xor eax, eax
push ebp
push 0x454187
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 0x454214
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454170
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404518
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 0x454170
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45418e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454091
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416400
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 0x4541d2
lea eax, [ebp - 0x260]
call fcn.004042b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x479c34]
cmp byte [eax + 0xa5], 0
jne 0x454b71
cmp dword [0x479c4c], 0
jne 0x454b32
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454abc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479c4c], eax
cmp dword [0x479c48], 0
jne 0x454b4d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479c48], eax
cmp dword [0x479c50], 0
jne 0x454b71
push esp
push 0
push 0
push 0x454a60
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479c50], eax
pop edx
ret
Function at 0x454c68
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454c7f
add esp, 0xfffffff0
call fcn.004038a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd68
mov eax, dword [0x47896c]
cmp word [eax + 2], 0
jne 0x454ca7
mov eax, dword [0x47896c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045632c
mov eax, dword [0x478a14]
cmp word [eax + 2], 0
jne 0x454cc1
mov eax, dword [0x478a14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456524
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d70]
call fcn.00403514
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], 0x80000018
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 [0x41e2d8]
call fcn.00425f2c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454e48
mov eax, dword [0x478894]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004262fc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456a94
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x478894]
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.0040ac94
test eax, eax
je 0x454db6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bf8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040acbc
test eax, eax
je 0x454dca
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.00404518
mov eax, dword [0x478764]
cmp byte [eax], 0
jne 0x454dfe
mov eax, ebx
call fcn.00454f70
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.00456c70
mov eax, ebx
call fcn.004575b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454e3e
call fcn.00403900
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4551e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479c34]
cmp dword [eax + 0x30], 0
je 0x45528e
cmp dword [ebx + 0x94], 0
jne 0x455288
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455174
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455288
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 0x45524e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455288
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.00414410
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45525d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455d6c
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 0x455da1
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.004043a0
jmp 0x455dae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404304
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456e4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456e8d
mov eax, esi
call fcn.0043d2d4
test al, al
je 0x456e8d
mov eax, dword [ebx + 0x84]
call fcn.0043cfd0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456e8d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cfd0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x457b24
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4113ec]
call fcn.00404c70
xor eax, eax
push ebp
push 0x457c68
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x477cf0], 0
jne 0x457b77
mov ecx, dword [0x478774]
mov dl, 1
mov eax, dword [0x407654]
call fcn.0040a208
call fcn.00403d10
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e58
mov eax, ebx
call fcn.00404ae0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x457c78
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406000
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404af0
test eax, eax
jle 0x457c0f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x457c08
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404530
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404518
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004084cc
test eax, eax
jne 0x457c08
mov ebx, 0x15
jmp 0x457c14
mov ebx, 0x10
jmp 0x457c14
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x477cf0]
call fcn.00457a20
mov eax, dword [ebp - 8]
call fcn.00457a20
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457c6f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042d4
lea eax, [ebp - 0x10]
mov edx, dword [0x4113ec]
call fcn.00404d40
ret

Function at 0x46592c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46595a
mov eax, ebx
call fcn.004663e4
cmp dword [ebx + 0x3c], 0
je 0x465953
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4659cb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4659bd
cmp dword [ebx + 8], 0
je 0x46597c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46598e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4659bd
cmp dword [ebx + 8], 0
je 0x46596f
cmp eax, 3
je 0x4659a1
dec eax
jne 0x46596f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46596f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46596f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4659e9
cmp dword [ebx + 0x10], 0xcc
je 0x4659e9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004659f4
pop ebx
ret
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x402108
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401067
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00401078
mov esp, ebp
pop ebp
ret

Function at 0x40187e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018bd
cmp dword [ecx + 0x74], 0xe
jbe 0x4018bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x3002c924
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x40e
lea eax, [ebp - 0x61a]
push esi
push eax
mov dword [ebp - 0x620], esi
mov word [ebp - 0x61c], si
call fcn.30069ed5
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.30069ed5
mov edi, dword [ebp + 8]
add esp, 0x18
cmp edi, esi
je 0x3002ca90
call fcn.3002c8c2
test eax, eax
je 0x3002c9ab
cmp dword [ebp + 0xc], esi
je 0x3002c9ab
call fcn.3003da0a
test eax, eax
je 0x3002ca9b
push 0x300034a0
call fcn.3003daa4
jmp 0x3002ca9b
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x620]
push ecx
push esi
push 0x2001f
and eax, 0x10000000
push esi
neg eax
push esi
sbb eax, eax
push esi
neg eax
add eax, 0x80000001
push 0x30003264
push eax
call dword [0x30001140]
test eax, eax
je 0x3002c9f2
call fcn.3003da0a
test eax, eax
je 0x3002ca9b
push 0x30003480
jmp 0x3002c9a1
cmp dword [ebp + 0xc], esi
jne 0x3002ca0d
push 0x30003208
push dword [ebp - 0x620]
call dword [0x30001144]
jmp 0x3002ca9b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [0x30001344]
cmp eax, esi
je 0x3002ca9b
dec eax
cmp word [ebp + eax*2 - 0x20c], 0x5c
jne 0x3002ca20
push 0x74
mov word [ebp + eax*2 - 0x20c], si
push 0x30003464
lea eax, [ebp - 0x20c]
push eax
push 0x3000344c
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [0x300010ec]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.30059e13
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push 0x30003208
push dword [ebp - 0x620]
call dword [0x30001148]
test eax, eax
je 0x3002ca9b
push esi
push 0x30303030
call fcn.300434a3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.3006961b
leave
ret 8
Function at 0x30040e8c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec esp
call fcn.30040b0e
cmp dword [esp + 0x6c], 0x10
lea esi, [esp + 0x58]
cmovae esi, dword [esp + 0x58]
mov al, byte [esi]
cmp al, 0x7f
je 0x30040ed5
jle 0x30040e8a
invalid

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

Disassembly:
test al, al
jle 0x30040ed5
movsx ecx, al
mov eax, edi
sub eax, ebx
cmp ecx, eax
jae 0x30040ed5
push dword [esp + 0x34]
sub edi, ecx
lea ecx, [esp + 0x44]
push 1
push edi
call fcn.30040b0e
cmp byte [esi + 1], 0
lea eax, [esi + 1]
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x30040ea4
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x34], ecx
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x20]
test eax, eax
jl 0x30040f01
jg 0x30040ef1
test esi, esi
je 0x30040f01
mov dword [esp + 0x20], eax
cmp esi, ecx
jbe 0x30040f01
mov dword [esp + 0x20], eax
sub esi, ecx
jmp 0x30040f03
xor esi, esi
mov eax, dword [edi + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x30040fb5
cmp eax, 0x100
je 0x30040f68
push esi
push dword [ebp + 0x1c]
lea eax, [esp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.300415ae
mov ecx, eax
xor esi, esi
cmp dword [esp + 0x6c], 8
push ebx
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
push dword [ecx + 4]
lea eax, [esp + 0x40]
push dword [ecx]
push eax
push dword [ebp + 8]
call fcn.3004152e
add esp, 0x30
jmp 0x30040fdb
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
push ebx
cmovae eax, dword [esp + 0x44]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x28]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.3004152e
add eax, 0xc88b0000
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
push ebx
cmovae eax, dword [esp + 0x44]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x28]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.3004152e
add esp, 0x18
Function at 0x300467fe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4514c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
jne 0x30046823
push 0x57
jmp 0x300468b0
push 0x1c
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movdqu xmmword [ebp - 0x68], xmm0
movq qword [ebp - 0x58], xmm0
call dword [0x43207c]
test eax, eax
je 0x300468b6
push 0
push 0x40
lea eax, [ebp - 0x4c]
push eax
push esi
push edi
call dword [0x432030]
test eax, eax
je 0x300468b6
mov eax, 0x5a4d
cmp word [ebp - 0x4c], ax
jne 0x300468ab
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x5c]
ja 0x300468ab
cmp eax, 0x40
jb 0x300468ab
push 0
push 0xf8
push ebx
add eax, esi
push eax
push edi
call dword [0x432030]
test eax, eax
je 0x300468b6
cmp dword [ebx], 0x4550
jne 0x300468ab
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3004bd1a
mov esp, ebp
pop ebp
ret 4
push 0xc1
call dword [0x432084]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3004bd1a
mov esp, ebp
pop ebp
ret 4