joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba5c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ba73
add esp, 0xfffffff0
call fcn.004039b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aa94
mov eax, dword [0x473808]
cmp word [eax + 2], 0
jne 0x45ba9b
mov eax, dword [0x473808]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d134
mov eax, dword [0x4738fc]
cmp word [eax + 2], 0
jne 0x45bab5
mov eax, dword [0x4738fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d32c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d30]
call fcn.00403674
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d30]
call fcn.00403674
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 [0x41cc90]
call fcn.00422b94
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45bc3c
mov eax, dword [0x4736d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422f64
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d8cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4736d4]
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.0040c840
test eax, eax
je 0x45bbaa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a34
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c868
test eax, eax
je 0x45bbbe
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.004046d0
mov eax, dword [0x47354c]
cmp byte [eax], 0
jne 0x45bbf2
mov eax, ebx
call fcn.0045bd64
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.0045daa8
mov eax, ebx
call fcn.0045e46c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45bc32
call fcn.00403a08
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bfe4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x474bbc]
cmp dword [eax + 0x30], 0
je 0x45c08e
cmp dword [ebx + 0x94], 0
jne 0x45c088
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bf74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c088
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 0x45c04e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c088
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.00414360
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c05d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45cbf0
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 0x45cc25
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.00404550
jmp 0x45cc32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45dc84
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dcc5
mov eax, esi
call fcn.00443ee8
test al, al
je 0x45dcc5
mov eax, dword [ebx + 0x84]
call fcn.00443be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dcc5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443be4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46de9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0x474e1c
mov al, byte [ecx]
xor byte [ecx + 2], al
mov al, byte [ecx]
xor byte [ecx + 3], al
mov al, byte [ecx]
xor byte [ecx + 4], al
mov al, byte [ecx]
xor byte [ecx + 5], al
mov al, byte [ecx]
xor byte [ecx + 6], al
mov al, byte [ecx]
xor byte [ecx + 7], al
mov edx, 0x88
lea eax, [ecx + 8]
mov bl, byte [ecx]
xor byte [eax], bl
inc eax
dec edx
jne 0x46dec8
pop ebx
ret
Function at 0x401720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00461d38
Function at 0x403ac0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4d9700]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
push ebx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.0047c6b0
add esp, 8
cmp eax, ebx
je 0x403b01
mov byte [eax], bl
push str.ClientList.list
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0047bf1b
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0xc], ebp
cmp ebp, 0xffffffff
je 0x403c98
push esi
mov eax, edi
mov dword [esp + 0x14], ebx
call fcn.00403440
mov esi, eax
cmp esi, ebx
je 0x403c76
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x13e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c76
cmp dword [esp + 0x14], 0x13e
jne 0x403c3a
lea ebp, [edi + 0x513a]
push ebp
mov byte [esi], 1
mov dword [esi + 6], 2
mov dword [esi + 2], 0xffffffff
mov dword [esi + 0xe], ebx
mov dword [esi + 0x12], ebx
mov dword [esi + 0x13a], ebx
mov dword [esi + 0x136], ebx
mov dword [esi + 0xa], ebx
mov dword [esi + 0x126], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x512e]
cmp dword [eax], eax
je 0x403c07
mov esi, dword [edi + 0x5132]
mov ecx, dword [esi + 4]
mov dword [edi + 0x5132], ecx
mov dword [ecx], eax
dec dword [edi + 0x5152]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x13e
add esi, 0xfffffeca
push ebx
push esi
call fcn.0047e5b0
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 2], 0xffffffff
jmp 0x403b58
add edi, 0x513a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0047bc57
add esp, 0x110
ret
mov byte [esi], bl
add esi, 0x136
cmp esi, ebx
je 0x403c76
lea ebx, [edi + 0x513a]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x512e]
lea eax, [edi + 0x512e]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
inc dword [edi + 0x5152]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0047bc57
add esp, 0x110
ret
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0047bc57
add esp, 0x110
ret
Function at 0x403cc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0x13e
push edi
mov edi, eax
je 0x403cd9
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
push edi
push esi
call fcn.004034e0
xor ebx, ebx
cmp eax, ebx
je 0x403dc3
cmp byte [eax + 1], bl
je 0x403d50
mov ecx, dword [esi + 0x74]
lea edi, [esi + 0x8ba]
mov dword [edi], 1
cmp ecx, ebx
je 0x403d1d
mov edx, dword [ecx + 0x1269b]
mov dword [eax + 0x12e], edx
mov ecx, dword [ecx + 0x1269f]
mov dword [eax + 0x132], ecx
jmp 0x403d29
mov dword [eax + 0x12e], ebx
mov dword [eax + 0x132], ebx
push 0x13e
push eax
lea edx, [esi + 0x8be]
push 0x7fc
push edx
call fcn.0047bcb7
add esp, 0x10
push ebx
lea eax, [esp + 0x18]
push eax
push 0x142
jmp 0x403da4
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x403d6d
mov edx, dword [eax + 0x1269b]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x1269f]
mov dword [esp + 0xc], eax
jmp 0x403d75
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
push 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0x8be]
push 0x7fc
lea edi, [esi + 0x8ba]
push edx
mov dword [edi], 2
call fcn.0047bcb7
add esp, 0x10
push ebx
lea eax, [esp + 0x18]
push eax
push 0xc
mov ecx, dword [esi + 0x81]
push edi
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov eax, 0x13e
pop edi
add esp, 8
ret 4
push 0x13e
push edi
push esi
call fcn.00403de0
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x403de0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 8
cmp dword [esp + 0x14], 0x13e
push ebp
mov ebp, dword [esp + 0x14]
je 0x403dfb
xor eax, eax
pop ebp
add esp, 8
ret 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
push ebp
push edi
call fcn.004034e0
mov esi, eax
test esi, esi
je 0x403f6c
lea edx, [esi + 0x16]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e20
sub eax, edi
jne 0x403e3a
lea eax, [ebp + 0x16]
push eax
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
lea edx, [esi + 0x36]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e42
sub eax, edi
jne 0x403e5c
lea ecx, [ebp + 0x36]
push ecx
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
lea edx, [esi + 0x56]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e64
sub eax, edi
jne 0x403e7e
lea eax, [ebp + 0x56]
push eax
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
lea edx, [esi + 0x7e]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e86
sub eax, edi
jne 0x403ea0
lea ecx, [ebp + 0x7e]
push ecx
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
lea edx, [esi + 0xc6]
mov eax, edx
lea edi, [eax + 1]
jmp 0x403eb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403eb0
sub eax, edi
jne 0x403ecd
lea eax, [ebp + 0xc6]
push eax
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
lea edx, [esi + 0xe6]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ed8
sub eax, edi
jne 0x403ef5
lea ecx, [ebp + 0xe6]
push ecx
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
lea edx, [esi + 0x106]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403f00
sub eax, edi
jne 0x403f1d
lea eax, [ebp + 0x106]
push eax
push 0x20
push edx
call fcn.0047bf8f
add esp, 0xc
mov ecx, dword [ebp + 6]
mov dword [esi + 6], ecx
mov edx, dword [ebp + 0xe]
mov dword [esi + 0xe], edx
cmp dword [ebp + 6], 6
jl 0x403f3c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xdbba0
jmp 0x403f5a
cmp dword [ebp + 6], 4
jl 0x403f4f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x493e0
jmp 0x403f5a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov ecx, dword [esp + 0x18]
mov edx, esi
mov dword [esi + 0x12], eax
call fcn.00402fd0
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x74]
test eax, eax
je 0x403f89
mov ecx, dword [eax + 0x1269b]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 0x1269f]
mov dword [esp + 0x10], edx
jmp 0x403f99
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
push 8
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x8be]
push 0x7fc
lea esi, [edi + 0x8ba]
push ecx
mov dword [esi], 2
call fcn.0047bcb7
mov eax, dword [edi + 0x81]
add esp, 0x10
push 0
lea edx, [esp + 0x1c]
push edx
push 0xc
push esi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov eax, 0x13e
pop ebp
add esp, 8
ret 0xc
Function at 0x4040c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a0d08
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d9700]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0046416b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4040fe
push 0x80004005
call fcn.00405a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 8]
push ecx
push 0x3f1
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00460800
mov ecx, eax
call fcn.0045e29d
mov eax, dword [esp + 8]
cmp dword [eax - 4], 1
jle 0x404149
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.004058f0
mov eax, dword [esp + 8]
mov ecx, 0x4cb098
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404170
test dl, dl
je 0x40416c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404170
add eax, 2
add ecx, 2
test dl, dl
jne 0x404150
xor eax, eax
jmp 0x404175
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, esi
test eax, eax
jne 0x4041bc
push 0x4cb0a8
push 0x408
mov byte [esi + 0xb1], 1
call fcn.00460800
mov ecx, eax
call fcn.0046093e
push 0x40a
mov ecx, esi
call fcn.00460800
mov eax, dword [eax + 0x20]
push 0
push 0
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4042a4
push 0
push 0x3f2
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0
push 0x407
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0
push 0x405
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0
push 0x406
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0
push 0x40a
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0
push 0x40d
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0
push 0x402
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.00460a22
push 0x40a
mov ecx, esi
call fcn.00460800
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x4cb098
push 0x3f1
mov ecx, esi
call fcn.00460800
mov ecx, eax
call fcn.0046093e
push esi
push 0
push 0x4017f0
mov dword [esi + 0xad], 1
call fcn.0047c1b4
add esp, 0xc
mov dword [esi + 0xb2], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4042cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x405c70
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [esi + 4], 1
mov dword [esp + 4], edi
jne 0x405c9f
mov eax, dword [esi + 0x31]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405c98
mov eax, dword [esi + 0x25]
mov dword [esi + 4], edi
pop edi
pop ecx
ret 4
xor eax, eax
pop edi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x21]
push ecx
mov ecx, dword [esi + 9]
lea edx, [esp + 8]
push edx
push 0x800
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x405cdb
mov edx, dword [esi + 0x31]
push edi
mov dword [esi + 4], 1
push edx
jmp 0x405c83
mov eax, dword [esp + 4]
mov dword [esi + 4], edi
pop edi
pop ecx
ret 4
Function at 0x407d30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x4d9700]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
cmp edi, dword [esp + 0x10]
jne 0x407d8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0047bc57
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407db5
lea esp, [esp]
cmp edi, dword [esp + 0x10]
je 0x407d6f
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407da0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0047bc57
mov esp, ebp
pop ebp
ret

Function at 0x407de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x4d9700]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x22c]
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x30], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f0e
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x24], 0
call edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff8
je 0x407ef9
cmp dword [esp + 0x10], 8
jne 0x407ef9
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call edi
mov ecx, 0x4cbb44
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407ea7
test dx, dx
je 0x407ea3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407ea7
add eax, 4
add ecx, 4
test dx, dx
jne 0x407e81
xor eax, eax
jmp 0x407eac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407ef9
push eax
push 0x80
push 2
push eax
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x12343], eax
cmp eax, 0xffffffff
je 0x407ef9
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push esi
call fcn.00409cf0
mov edx, dword [ebx + 0x12343]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x12343], 0xffffffff
jmp 0x407efd
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x407f0e
mov eax, dword [esp + 0x1c]
jmp 0x407f11
or eax, 0xffffffff
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0047bc57
add esp, 0x228
ret 8
Function at 0x407f30
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x4d9700]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push edi
push 0x13e
xor ebx, ebx
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0047e5b0
push esi
push str._s.dll
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0047c074
add esp, 0x1c
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407fdb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x38]
push ecx
push esi
push str._s_s
lea edx, [esp + 0x158]
push 0x104
push edx
call fcn.0047c074
add esp, 0x14
lea eax, [esp + 0x14c]
push eax
call ebp
test eax, eax
je 0x407fc3
inc ebx
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407f94
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x24c]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0047bc57
add esp, 0x248
ret

Function at 0x408000
Capabilities:
Terminate process

Disassembly:
call fcn.00408030
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
ret 4

Function at 0x408030
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40806c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x408072
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4080bf
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov al, 1
add esp, 0x24
ret
Function at 0x4080d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
mov esi, eax
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp esi, ebp
je 0x4081a2
call fcn.00408030
push esi
push ebp
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
jne 0x40810e
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408115
push 0x40
sub eax, edx
push 0x1000
lea ebx, [eax + 2]
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x408188
mov eax, dword [esp + 0x1c]
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x408188
push 0x4cbb84
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408188
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
test ebp, ebp
je 0x408188
mov dword [esp + 0x10], 1
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4081b0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, eax
push edi
mov dword [esp + 8], 0
test esi, esi
je 0x408240
call fcn.00408030
push esi
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4081e0
pop edi
xor al, al
pop esi
pop ecx
ret
push 0x4cbba0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408230
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 0
push edx
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
pop ecx
ret
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
pop ecx
ret