joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d544
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43d560
cmp dword [esi + 4], 0
je 0x43d58d
test byte [ebx + 0x55], 1
jne 0x43d57f
mov eax, ebx
call fcn.0043c19c
test eax, eax
jne 0x43d57f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43d69d
mov edx, esi
mov eax, ebx
call fcn.0043d064
jmp 0x43d69d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43d696
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043f314
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00439e48
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043d544
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043f314
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d69d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443b80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46f9dc]
cmp byte [eax + 0xc], 0
je 0x443ced
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443ce6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470be4], 0
jne 0x443bd4
push 0x443cf4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443cfc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470be4], eax
cmp dword [0x46eb10], 0
jne 0x443ccf
push 0x443d0c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46eb10], eax
cmp dword [0x46eb10], 0
je 0x443ccf
push 0x443d18
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470be8], eax
push 0x443d28
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470bec], eax
push 0x443d3c
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470bf0], eax
push 0x443d54
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470bf4], eax
push 0x443d6c
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470bf8], eax
push 0x443d80
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470bfc], eax
push 0x443d98
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470c00], eax
push 0x443db0
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470c04], eax
push 0x443dcc
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470c08], eax
push 0x443dd8
mov eax, dword [0x46eb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470c0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443ced
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x447900
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.00404814
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44794f
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.00404a7c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f790
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f7e0]
test si, 4
je 0x44f7a4
or bl, 1
test si, 8
je 0x44f7ae
or bl, 4
test si, 1
je 0x44f7b8
or bl, 8
test si, 2
je 0x44f7c2
or bl, 0x10
test si, 0x10
je 0x44f7cc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f7db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44f7e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f81c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f7fd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f80c
or bl, 4
test esi, 0x20000000
je 0x44f817
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x455e20
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x455e32
add esp, 0xfffffff0
call fcn.00403e0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d0d8
mov eax, dword [0x46f6f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4561c4
mov eax, dword [0x46f704]
mov dword [eax + 4], ebx
mov dword [eax], 0x4561d0
mov eax, ebx
call fcn.004561dc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
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, 0x4526a4
push eax
push 0
push 0
mov eax, dword [0x46f820]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eab0]
call fcn.00420184
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eab0]
call fcn.00420184
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eab0]
call fcn.00420184
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004565fc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4564d8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4564d8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4564d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455f6f
call fcn.00403e64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4562bc
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 0x456467
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x456448
mov dl, 1
mov eax, dword [0x413628]
call fcn.00403a78
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x456437
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.00443ee0
test al, al
je 0x45642a
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, 0x456478
lea eax, [ebp - 0x254]
call fcn.00409778
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45642a
xor eax, eax
push ebp
push 0x456423
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 0x4564b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45640c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a7c
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 0x45640c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45642a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45632d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417770
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 0x45646e
lea eax, [ebp - 0x260]
call fcn.00404814
ret

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

Disassembly:
push ecx
mov eax, dword [0x470c28]
cmp byte [eax + 0xa5], 0
jne 0x456e0d
cmp dword [0x470c40], 0
jne 0x456dce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456d58
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470c40], eax
cmp dword [0x470c3c], 0
jne 0x456de9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470c3c], eax
cmp dword [0x470c44], 0
jne 0x456e0d
push esp
push 0
push 0
push 0x456cfc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470c44], eax
pop edx
ret
Function at 0x456f04
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456f1b
add esp, 0xfffffff0
call fcn.00403e0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d0d8
mov eax, dword [0x46f810]
cmp word [eax + 2], 0
jne 0x456f43
mov eax, dword [0x46f810]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004585c8
mov eax, dword [0x46f89c]
cmp word [eax + 2], 0
jne 0x456f5d
mov eax, dword [0x46f89c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004587c0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413138]
call fcn.00403a78
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 [0x41f530]
call fcn.00426bb0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4570e4
mov eax, dword [0x46f750]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426f80
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458d30
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46f750]
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.0040c344
test eax, eax
je 0x457052
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004090c0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c36c
test eax, eax
je 0x457066
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.00404a7c
mov eax, dword [0x46f660]
cmp byte [eax], 0
jne 0x45709a
mov eax, ebx
call fcn.0045720c
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.00458f0c
mov eax, ebx
call fcn.0045984c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4570da
call fcn.00403e64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457480
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470c28]
cmp dword [eax + 0x30], 0
je 0x45752a
cmp dword [ebx + 0x94], 0
jne 0x457524
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457410
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457524
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 0x4574ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457524
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.004157d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4574f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458008
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 0x45803d
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.00404904
jmp 0x45804a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4590e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459129
mov eax, esi
call fcn.0043f618
test al, al
je 0x459129
mov eax, dword [ebx + 0x84]
call fcn.0043f314
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459129
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f314
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c7c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45c7ee
mov eax, ebx
call fcn.0045d278
cmp dword [ebx + 0x3c], 0
je 0x45c7e7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45c85f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45c851
cmp dword [ebx + 8], 0
je 0x45c810
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 0x45c822
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45c851
cmp dword [ebx + 8], 0
je 0x45c803
cmp eax, 3
je 0x45c835
dec eax
jne 0x45c803
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 0x45c803
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45c803
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45c87d
cmp dword [ebx + 0x10], 0xcc
je 0x45c87d
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.0045c888
pop ebx
ret
Function at 0x401080
Capabilities:
Access peb ldr_data
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x409a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x24]
push esi
push edi
xor edi, edi
mov dword [esp + 8], eax
mov byte [esp + 0xc], cl
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
push edi
push edi
push edi
mov dword [esp + 0x30], edi
call fcn.00401670
mov edx, dword [esp + 0x20]
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0xc]
push edx
push esi
call fcn.00401600
lea eax, [esp + 8]
mov dword [esp + 0x14], esi
push eax
push 0x401140
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x401102
mov ecx, dword [esp + 0x14]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x40111e
push eax
call fcn.00403510
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [eax]
push eax
call fcn.00403510
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x401330
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x238
push esi
push 0
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
jne 0x40135d
xor eax, eax
pop esi
add esp, 0x238
ret
lea eax, [esp + 0x10]
push ebx
push eax
push esi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40145f
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x401442
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4013cb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push esi
call ebx
mov esi, dword [esp + 0x24c]
push esi
call fcn.00409986
lea eax, [esp + 0x148]
push eax
call fcn.00409986
lea ecx, [esp + 0x14c]
push esi
push ecx
call fcn.00404560
add esp, 0x10
test eax, eax
je 0x401442
mov edx, dword [esp + 0x24]
push edx
call fcn.00401080
add esp, 4
test eax, eax
je 0x401425
push 0
push 0
push 0xfb8
push eax
call ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x401442
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401385
mov esi, dword [esp + 0x10]
pop edi
pop ebp
push esi
call ebx
pop ebx
mov eax, 1
pop esi
add esp, 0x238
ret
Function at 0x401470
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
call fcn.004045e0
lea edx, [esp + 0x14]
push 0x5c
push edx
mov ebp, eax
call fcn.004045e0
mov edx, eax
mov edi, str.koomail.dat
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.koomail.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.koomail.exe
mov byte [ecx + ebp + 1], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.koomail.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx + 1], al
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4015b7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
lea edx, [esp + 0xc]
push edx
call fcn.00401330
add esp, 4
push 0x3e8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0xc]
push eax
call edi
push 0x64
call esi
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0xc]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call esi
lea ecx, [esp + 0x110]
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret 0x10
Function at 0x406e71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c9e8
cmp edx, dword [eax]
je 0x406e93
add eax, 8
inc ecx
cmp eax, 0x40ca78
jl 0x406e84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c9e8]
jne 0x406fc1
mov eax, dword [0x40d15c]
cmp eax, 1
je 0x406f9b
test eax, eax
jne 0x406ec4
cmp dword [0x40c474], 1
je 0x406f9b
cmp edx, 0xfc
je 0x406fc1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406efb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004088c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004053a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406f3e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004053a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a6d4
push edi
call fcn.00408f50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004088c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004088d0
lea eax, [ebp - 0xa0]
push 0x40a6b4
push eax
call fcn.004088d0
push dword [esi + 0x40c9ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004088d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408eb8
add esp, 0x2c
pop edi
jmp 0x406fc1
lea eax, [ebp + 8]
lea esi, [esi + 0x40c9ec]
push 0
push eax
push dword [esi]
call fcn.004053a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret