joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496254
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x49627a
push 0
mov eax, dword [ebx + 0x94]
call fcn.00453cf4
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x496334
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4964a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 0xc]
test byte [eax + 0x1c], 0x10
jne 0x49648b
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x10d]
call fcn.0040aa14
mov dl, 1
mov eax, dword [0x46c3fc]
call fcn.0046c454
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x419ed8]
call fcn.004042f4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
call fcn.0046c4d0
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x496487
mov dl, 1
mov eax, dword [0x46d968]
call fcn.0046d9d0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
mov edx, 0x4964bc
call fcn.0046cc44
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040553c
xor eax, eax
push ebp
push 0x496480
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
call fcn.0046dcd8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004964c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496487
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
call fcn.00404324
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00404324
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
call fcn.00404324
ret
movzx ebx, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4964ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405248
ret

Function at 0x4b4d44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b4d9e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b4d34
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b298c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004b24a4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4da5
lea eax, [ebp - 4]
call fcn.00405224
ret
Function at 0x4bfd1c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4bfd4a
mov eax, ebx
call fcn.004c07d0
cmp dword [ebx + 0x40], 0
je 0x4bfd43
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4bfdbb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4bfdad
cmp dword [ebx + 8], 0
je 0x4bfd6c
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 0x4bfd7e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bfdad
cmp dword [ebx + 8], 0
je 0x4bfd5f
cmp eax, 3
je 0x4bfd91
dec eax
jne 0x4bfd5f
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 0x4bfd5f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4bfd5f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4bfdd9
cmp dword [ebx + 0x14], 0xcc
je 0x4bfdd9
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.004bfde4
pop ebx
ret

Function at 0x4d0b18
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403918
ret
Function at 0x4d1258
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408534]
call fcn.00405e24
xor eax, eax
push ebp
push 0x4d13f9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4de2b8], 0
jne 0x4d12b3
mov ecx, dword [0x4de55c]
mov dl, 1
mov eax, dword [0x408930]
call fcn.0040e2e0
call fcn.00404b98
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403918
mov eax, ebx
call fcn.00405bdc
mov dword [ebp - 0x24], eax
mov esi, 0x4d1408
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00407044
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405bec
test eax, eax
jle 0x4d139c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4d1388
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405494
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4d132e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004054ac
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4d1344
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004054ac
mov eax, dword [ebp - 0x54]
call fcn.004056b4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405494
mov eax, dword [ebp - 0x58]
call fcn.004056b4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4d138a
xor eax, eax
test al, al
je 0x4d1395
mov ebx, 0x15
jmp 0x4d13a1
mov ebx, 0x10
jmp 0x4d13a1
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4de2b8]
call fcn.004d10d8
mov eax, dword [ebp - 4]
call fcn.004d10d8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040705c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1400
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405248
lea eax, [ebp - 0xc]
mov edx, dword [0x408534]
call fcn.00405ef4
ret

Function at 0x4d4544
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d45b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405224
push 0x4d45cc
lea edx, [ebp - 8]
mov eax, esi
call fcn.00409f00
push dword [ebp - 8]
push 0x4d4624
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055b8
mov eax, dword [ebp - 4]
mov ecx, ebx
mov edx, 0x4d4630
call fcn.004d4058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d45bb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405248
ret
Function at 0x4d4c08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a4
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4d4d70
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0046b9ec
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.0046ba0c
mov ebx, eax
jmp 0x4d4d42
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405494
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a61c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004096b4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004096b4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040564c
je 0x4d4d22
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405494
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004096b4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004096b4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040564c
jne 0x4d4d37
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.0046ba2c
mov ebx, eax
test ebx, ebx
jne 0x4d4c83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4d77
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00405248
lea eax, [ebp - 4]
call fcn.00405224
ret
Function at 0x4d4f18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
xor edx, edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4d50dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4d50f0
call fcn.004d4d80
lea eax, [ebp - 0x3f0]
call fcn.00405224
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004056b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d509d
xor eax, eax
push ebp
push 0x4d5096
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
push 0x4d5128
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d4ff2
push ebp
mov eax, 0x4d5144
call fcn.004d4e70
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4d5150
call fcn.004d4d80
mov eax, dword [ebp - 0x408]
call fcn.004056b4
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d507c
push dword [ebp - 0x3f0]
push 0x4d5174
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.00405494
push dword [ebp - 0x40c]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004055b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d509d
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.00405278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d50e3
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00405248
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.00405248
ret

Function at 0x4d56e0
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x4e4f64], eax
push 0x4d5720
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x4e4f64], eax
mov eax, dword [0x4de9dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x4e4f68], eax
push 0
mov eax, dword [0x4e17f8]
push eax
push 0x4d5698
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e4f6c], eax
ret
Function at 0x4d5a08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a4
mov eax, dword [ebp - 8]
call fcn.004056a4
mov ebx, 0x4e4e7c
xor eax, eax
push ebp
push 0x4d5c0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
call fcn.0040a03c
add eax, dword [0x4e4f04]
lea edx, [ebp - 0x1c]
call fcn.00409f00
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00405278
xor edx, edx
push ebp
push 0x4d5bd4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x419dd4]
call fcn.0041eb30
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0040a400
test al, al
je 0x4d5a9a
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_DeleteFileA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419dd4]
call fcn.0041eb30
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d5bc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e8a8
mov eax, dword [ebx]
call fcn.0040a03c
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 8
add edx, eax
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebx]
call fcn.0040a03c
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e918
mov eax, dword [ebx]
call fcn.0040a03c
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
add edx, eax
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e8a8
mov eax, dword [ebx]
call fcn.0040a03c
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
add edx, eax
add edx, dword [ebp - 0x18]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5bca
mov eax, dword [ebp - 0x10]
call fcn.00404324
mov eax, dword [ebp - 0xc]
call fcn.00404324
ret
Function at 0x4d62c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d6399
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040aa14
lea ecx, [ebp - 0x108]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004377bc
mov eax, dword [ebp - 0x108]
mov edx, 0x4d63b0
call fcn.0040564c
je 0x4d6369
lea ecx, [ebp - 0x10c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004377bc
mov eax, dword [ebp - 0x10c]
mov edx, 0x4d63bc
call fcn.0040564c
je 0x4d6369
lea eax, [ebp - 4]
mov edx, 0x4d63bc
call fcn.004054f0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d63a0
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00405248
lea eax, [ebp - 4]
call fcn.00405224
ret

Function at 0x4d675c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a4
mov eax, dword [ebp - 8]
call fcn.004056a4
xor eax, eax
push ebp
push 0x4d689d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x4e4f08]
add ebx, 0x64
xor edx, edx
push ebp
push 0x4d686d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x419dd4]
call fcn.0041eb30
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0040a400
test al, al
je 0x4d67ce
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_DeleteFileA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419dd4]
call fcn.0041eb30
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d685c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6863
mov eax, dword [ebp - 0x10]
call fcn.00404324
mov eax, dword [ebp - 0xc]
call fcn.00404324
ret
Function at 0x408e23
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x409590
call fcn.004093a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40a364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x408e68
cmp eax, esi
jne 0x408e5b
xor esi, esi
inc esi
mov edi, esi
jmp 0x408e6b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408e3f
xor esi, esi
inc esi
cmp dword [0x40a368], esi
jne 0x408e7d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x408eb7
cmp dword [0x40a368], ebx
jne 0x408eb1
mov dword [0x40a368], esi
push 0x4010cc
push 0x4010c0
call fcn.00408f9c
pop ecx
pop ecx
test eax, eax
je 0x408eb7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x408f8c
mov dword [0x40a014], esi
cmp dword [0x40a368], esi
jne 0x408eda
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40a368], 2
test edi, edi
jne 0x408ee7
xor eax, eax
mov ecx, 0x40a364
xchg dword [ecx], eax
cmp dword [0x40a36c], 0
je 0x408f13
push 0x40a36c
call fcn.00409200
pop ecx
test eax, eax
je 0x408f13
push ebx
push 2
push ebx
mov esi, dword [0x40a36c]
mov ecx, esi
call dword [0x40b0d4]
call esi
push dword [0x40a020]
push dword [0x40a01c]
push dword [0x40a018]
call fcn.00407429
add esp, 0xc
mov dword [0x40a010], eax
cmp dword [0x40a028], 0
jne 0x408f71
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40a014], 0
jne 0x408f85
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40a010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0053a000
jmp 0x408e23

Function at 0x4090e4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4095b0
call fcn.004093a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409144
cmp eax, 0xffffffff
je 0x409144
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40913d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40913d
cmp edx, 0x10000000
jae 0x40913d
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 0x40913a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4091b0
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 0x4091ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4091e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4091f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4091d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409d7d
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jbe 0x409da9
push esi
mov esi, dword [esp + 0xc]
mov al, cl
mov dl, cl
imul cl
xor dl, 1
and dl, 7
xor al, dl
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jb 0x409d8d
pop esi
pop edi
ret
Function at 0x416690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a450
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41675b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41675b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41670e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416719
or bh, 8
and edi, 0x8000000
je 0x416734
mov eax, dword [0x44c7fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41675b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret