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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c08e0]
cmp byte [eax + 0xc], 0
je 0x44da7d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44da76
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c1b94], 0
jne 0x44d964
push 0x44da84
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44da8c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1b94], eax
cmp dword [0x4bee9c], 0
jne 0x44da5f
push 0x44da9c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4bee9c], eax
cmp dword [0x4bee9c], 0
je 0x44da5f
push 0x44daa8
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1b98], eax
push 0x44dab8
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1b9c], eax
push 0x44dacc
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1ba0], eax
push 0x44dae4
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1ba4], eax
push 0x44dafc
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1ba8], eax
push 0x44db10
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bac], eax
push 0x44db28
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bb0], eax
push 0x44db40
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bb4], eax
push 0x44db5c
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bb8], eax
push 0x44db68
mov eax, dword [0x4bee9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44da7d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x451908
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.00404278
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x451957
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.004044e8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45913c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45918c]
test si, 4
je 0x459150
or bl, 1
test si, 8
je 0x45915a
or bl, 4
test si, 1
je 0x459164
or bl, 8
test si, 2
je 0x45916e
or bl, 0x10
test si, 0x10
je 0x459178
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x459187
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x459190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4591c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4591a9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4591b8
or bl, 4
test esi, 0x20000000
je 0x4591c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45f870
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45f882
add esp, 0xfffffff0
call fcn.0040376c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423ef0
mov eax, dword [0x4c03d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45fc14
mov eax, dword [0x4c03e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45fc20
mov eax, ebx
call fcn.0045fc2c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
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, 0x45c048
push eax
push 0
push 0
mov eax, dword [0x4c05e8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425964]
call fcn.00427178
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425964]
call fcn.00427178
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425964]
call fcn.00427178
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046004c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ff28
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ff28
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ff28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f9bf
call fcn.004037c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45fd0c
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 0x45feb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45fe98
mov dl, 1
mov eax, dword [0x41b614]
call fcn.00403418
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404278
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45fe87
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.0044dc70
test al, al
je 0x45fe7a
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, 0x45fec8
lea eax, [ebp - 0x254]
call fcn.00409ae0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45fe7a
xor eax, eax
push ebp
push 0x45fe73
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 0x45ff00
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45fe5c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e8
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 0x45fe5c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fe7a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45fd7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ffb0
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 0x45febe
lea eax, [ebp - 0x260]
call fcn.00404278
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c1be0]
cmp byte [eax + 0xa5], 0
jne 0x46085d
cmp dword [0x4c1bf8], 0
jne 0x46081e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4607a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c1bf8], eax
cmp dword [0x4c1bf4], 0
jne 0x460839
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c1bf4], eax
cmp dword [0x4c1bfc], 0
jne 0x46085d
push esp
push 0
push 0
push 0x46074c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4c1bfc], eax
pop edx
ret
Function at 0x460954
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46096b
add esp, 0xfffffff0
call fcn.0040376c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423ef0
mov eax, dword [0x4c05d0]
cmp word [eax + 2], 0
jne 0x460993
mov eax, dword [0x4c05d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004620bc
mov eax, dword [0x4c06e4]
cmp word [eax + 2], 0
jne 0x4609ad
mov eax, dword [0x4c06e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004622b4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ae04]
call fcn.00403418
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 [0x4264e4]
call fcn.0042e184
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x460b34
mov eax, dword [0x4c0478]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e554
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x462864
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c0478]
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.0040d934
test eax, eax
je 0x460aa2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094c0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d95c
test eax, eax
je 0x460ab6
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.004044e8
mov eax, dword [0x4c02a4]
cmp byte [eax], 0
jne 0x460aea
mov eax, ebx
call fcn.00460c5c
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.00462a40
mov eax, ebx
call fcn.00463404
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460b2a
call fcn.004037c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460edc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c1be0]
cmp dword [eax + 0x30], 0
je 0x460f86
cmp dword [ebx + 0x94], 0
jne 0x460f80
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460e6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460f80
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 0x460f46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460f80
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.0041d638
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460f55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461ae8
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 0x461b1d
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.00404368
jmp 0x461b2a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x462c1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462c5d
mov eax, esi
call fcn.00449258
test al, al
je 0x462c5d
mov eax, dword [ebx + 0x84]
call fcn.00448f54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462c5d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00448f54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46a0c4
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 [0x41a394]
call fcn.00404e54
xor eax, eax
push ebp
push 0x46a208
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bf17c], 0
jne 0x46a117
mov ecx, dword [0x4c02c0]
mov dl, 1
mov eax, dword [0x407aa8]
call fcn.0040cb60
call fcn.00403c98
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402df0
mov eax, ebx
call fcn.00404b18
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46a218
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.00406100
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404b28
test eax, eax
jle 0x46a1af
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 0x46a1a8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404500
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004044e8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408978
test eax, eax
jne 0x46a1a8
mov ebx, 0x15
jmp 0x46a1b4
mov ebx, 0x10
jmp 0x46a1b4
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 [0x4bf17c]
call fcn.0046a01c
mov eax, dword [ebp - 8]
call fcn.0046a01c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a20f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040429c
lea eax, [ebp - 0x10]
mov edx, dword [0x41a394]
call fcn.00404f24
ret

Function at 0x47ffd4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47fff9
cmp dword [esp + 4], 5
jb 0x47fff9
mov al, 1
jmp 0x47fffb
xor eax, eax
add esp, 0x94
ret
Function at 0x492eac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x492eda
mov eax, ebx
call fcn.00493960
cmp dword [ebx + 0x40], 0
je 0x492ed3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x492f4b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x492f3d
cmp dword [ebx + 8], 0
je 0x492efc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x492f0e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x492f3d
cmp dword [ebx + 8], 0
je 0x492eef
cmp eax, 3
je 0x492f21
dec eax
jne 0x492eef
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 0x492eef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x492eef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x492f69
cmp dword [ebx + 0x14], 0xcc
je 0x492f69
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00492f74
pop ebx
ret

Function at 0x407198
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40f580
mov eax, esi
mov edx, 8
test al, 1
je 0x4071b4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4071b6
shr eax, 1
dec edx
jne 0x4071a7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4071a0
pop esi
ret

Function at 0x4071cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [0x40f57c], 0
jne 0x4071ea
call fcn.00407198
mov byte [0x40f57c], 1
mov eax, edi
test esi, esi
je 0x407215
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40f580]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4071f0
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x405420
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x405446
jmp 0x40555c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x405466
jmp 0x40555c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00409b6c
add esp, 4
mov dword [0x412098], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x4054b3
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x4054d3
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x4054b0
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40553b
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00409697
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x4054ef
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409734
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
jmp 0x409740
mov dword [ebp - 8], 0xffffffff
jmp 0x40974a
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x409770
mov dword [ebp - 0xc], 0
jmp 0x40977c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x409864
jmp 0x409789
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4097a2
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x40985f
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x4097d2
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x4097d2
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x40985f
jmp 0x4097d5
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
jmp 0x4097e0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.00409b6c
add esp, 4
jmp 0x4097f1
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x40982e
mov dword [0x4122c6], 1
mov dword [ebp - 0x10], 0
jmp 0x409811
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x40982c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x40980e
jmp 0x409838
mov dword [0x4122c6], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x409848
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x409864
jmp 0x409779
jmp 0x409867
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40987c
mov eax, dword [ebp - 8]
jmp 0x409881
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
jmp 0x4099d5
mov dword [ebp - 4], 0xffffffff
jmp 0x4099df
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4099f8
mov dword [ebp - 8], 0
jmp 0x409a04
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x409a1f
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x409a01
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x409a75
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x409a75
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x409a75
jmp 0x409a3e
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
jmp 0x409a49
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.00409b6c
add esp, 4
jmp 0x409a5a
cmp dword [ebp + 0xc], 0
je 0x409a69
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x409a6c
mov dword [ebp - 4], 0xa
jmp 0x409a85
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x409a88
mov eax, dword [ebp - 4]
jmp 0x409a8d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a0bd
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x40a192
cmp dword [ebp - 8], 0
jne 0x40a192
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.00409b6c
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x40a14a
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x40a16c
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x40a147
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40a1a4
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret