joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddfb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52d2a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00512ae3
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00512ae3
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004dead0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4deb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52d380
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005208d7
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4deb53
xor al, al
jmp 0x4dec7f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4deb75
xor al, al
jmp 0x4dec7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4deb88
xor al, al
jmp 0x4dec7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4deb9c
xor al, al
jmp 0x4dec7f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00512ba8
test eax, eax
jne 0x4debd0
xor al, al
jmp 0x4dec7f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x15890a4
mov dword [esp + 0x20], ebp
call fcn.005208d7
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0051bce2
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0051bd39
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4dec64
mov ax, word [ebx]
test ax, ax
je 0x4dec56
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004deca0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4dec3a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0051bd39
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4df1d0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0051e842
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4df216
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004feeb8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x15be224
push ecx
call fcn.00500955
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4e20a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x16275a4]
xor edx, edx
cmp eax, edx
jne 0x4e20c6
xor eax, eax
mov byte [eax + 0x16274a4], al
inc eax
cmp eax, 0x100
jl 0x4e20ae
mov dword [0x16275a4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x16274a4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e2157
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e212a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e20f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e21d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e2223
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e220a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e8bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d5de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e94d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x15892d4
call fcn.005148a6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e8c43
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005148a6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e8c3c
push 0
mov ecx, eax
call fcn.004dfce0
mov dword [esi + 0xc], eax
jmp 0x4e8c45
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e8c45
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5011a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5011c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00501c01
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5011ea
test byte [esp + 8], 2
je 0x5011ea
call fcn.00501c74
mov dword [eax], 0xd
call fcn.00501c7d
mov dword [eax], 5
jmp 0x5011c3
xor eax, eax
ret

Function at 0x5159bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005208d7
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5159ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00515a01
pop edi
pop esi
pop ebx
ret 8

Function at 0x516fd5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51700d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051500c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00514fe4
jmp 0x517019
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51899d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5189df
call fcn.005208d7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5189df
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5189d6
xor eax, eax
jmp 0x5189e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005189ed
pop edi
pop esi
pop ebx
ret 4

Function at 0x520e07
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x520e35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x520e53
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00520d6d
jmp 0x520e53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x520e53
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00520d6d
test edi, edi
mov eax, edi
jne 0x520e3d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40122f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x40125e
push 0
push dword [ebp + 8]
call sub.USER32.dll_ShowWindow
push 0x40121d
push 0x4c8
push dword [0x40e074]
push 1
push dword [ebp + 8]
call fcn.00402370
jmp 0x401270
push 1
push dword [ebp + 8]
call fcn.004023dc
push dword [ebp + 8]
call sub.USER32.dll_SetForegroundWindow
leave
ret 8

Function at 0x4014cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [section..data], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.0040228a
push 0x401490
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40152e
call fcn.004014b0
leave
ret
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 8
je 0x401552
call fcn.004014b0
jmp 0x401581
cmp dword [ebp - 0xc], 0x4643585a
jne 0x401581
cmp dword [ebp - 8], 3
jne 0x401581
push dword [ebp - 0x10]
call fcn.004056ab
push dword [ebp - 0x10]
call fcn.00407414
push dword [ebp - 0x10]
call fcn.00407f74
push dword [ebp - 0x10]
call fcn.00408c5d
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
leave
ret

Function at 0x40158b
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
cmp dword [section..data], 0
jne 0x4015a4
mov eax, 1
leave
ret
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.0040228a
push 0x401490
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4015f0
mov eax, 0
leave
ret
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x4643585a
mov dword [ebp - 4], 3
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0x10], 8
jne 0x40164f
push dword [ebp - 0xc]
call fcn.0040572e
cmp eax, 0
je 0x401668
push dword [ebp - 0xc]
call fcn.00407489
cmp eax, 0
je 0x401668
push dword [ebp - 0xc]
call fcn.00408074
cmp eax, 0
je 0x401668
push dword [ebp - 0xc]
call fcn.00408d5d
cmp eax, 0
je 0x401668
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0
mov eax, 1
leave
ret
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_DeleteFileA
mov eax, 0
leave
ret
Function at 0x4016dc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
cmp ebx, 5
jae 0x4017a0
push dword [ebx*4 + 0x4016a0]
push 0
push 0x143
push 0x3e8
push dword [ebp + 0xc]
call sub.USER32.dll_SendDlgItemMessageA
push 0
push dword [ebx*4 + 0x4016c8]
push dword [ebp + 0xc]
push dword [ebx*4 + 0x4016b4]
push dword [ebp + 8]
call sub.USER32.dll_CreateDialogParamA
mov dword [ebx*4 + 0x40c014], eax
push 0xfffffffffffffff0
push dword [ebx*4 + 0x40c014]
call sub.USER32.dll_GetWindowLongA
and eax, 0x6dffffff
or eax, 0x40000400
push eax
push 0xfffffffffffffff0
push dword [ebx*4 + 0x40c014]
call sub.USER32.dll_SetWindowLongA
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x13
mov dword [ebp - 8], 0x96
mov dword [ebp - 4], 0xb4
lea eax, [ebp - 0x10]
push eax
push dword [ebx*4 + 0x40c014]
call sub.USER32.dll_MapDialogRect
push 4
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push dword [ebx*4 + 0x40c014]
call sub.USER32.dll_SetWindowPos
inc ebx
jmp 0x4016e5
pop ebx
mov dword [0x40c010], 0
push 0
push dword [0x40c010]
push 0x14e
push 0x3e8
push dword [ebp + 0xc]
call sub.USER32.dll_SendDlgItemMessageA
push 5
push dword [0x40c014]
call sub.USER32.dll_ShowWindow
mov eax, dword [0x40c010]
push 0
push 0
push 0x464
push dword [eax*4 + 0x40c014]
call sub.USER32.dll_PostMessageA
leave
ret 8

Function at 0x4017f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xe]
cmp eax, 1
jne 0x401860
push 0
push 0
push 0x147
push 0x3e8
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
cmp eax, dword [0x40c010]
je 0x401860
xchg dword [0x40c010], eax
push 0
push dword [eax*4 + 0x40c014]
call sub.USER32.dll_ShowWindow
mov eax, dword [0x40c010]
push 5
push dword [eax*4 + 0x40c014]
call sub.USER32.dll_ShowWindow
mov eax, dword [0x40c010]
push 0
push 0
push 0x464
push dword [eax*4 + 0x40c014]
call sub.USER32.dll_PostMessageA
call fcn.00404d09
leave
ret 8

Function at 0x401b85
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
call sub.USER32.dll_GetForegroundWindow
or eax, eax
je 0x401bde
cmp eax, dword [ebp + 8]
je 0x401bde
push 0
push eax
call sub.USER32.dll_GetWindowThreadProcessId
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 8], eax
push 1
push dword [ebp - 4]
push dword [ebp - 8]
call sub.USER32.dll_AttachThreadInput
push dword [ebp + 8]
call sub.USER32.dll_SetForegroundWindow
push dword [ebp + 8]
call sub.USER32.dll_BringWindowToTop
push dword [ebp + 8]
call sub.USER32.dll_SetFocus
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call sub.USER32.dll_AttachThreadInput
leave
ret 4
Function at 0x401be2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 8]
push edx
push 0x20
push eax
call sub.ADVAPI32.dll_OpenProcessToken
or eax, eax
je 0x401c5a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
je 0x401c4f
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 8]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
test eax, eax
je 0x401c4f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0
jne 0x401c4f
mov dword [ebp - 4], 1
push dword [ebp - 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 4]
leave
ret

Function at 0x401c9d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x401d21
cmp dword [ebp + 0x10], eax
je 0x401d21
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
push 0x40
push 0x3000
push eax
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualAllocEx
test eax, eax
je 0x401d21
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
je 0x401cf1
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x401d0d
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x401d0d
mov eax, dword [ebp - 4]
leave
ret 0x14
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualFreeEx
xor eax, eax
leave
ret 0x14

Function at 0x402168
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
ret

Function at 0x402d9b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push 0x100
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextA
push eax
lea eax, [ebp - 0x100]
push eax
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_TextOutA
leave
ret 8
Function at 0x404bc5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
mov dword [0x40e4c4], 0
mov dword [0x40e4c0], 0
push 0
push 0x404b72
call sub.USER32.dll_EnumWindows
cmp dword [0x40e4c4], 0
jne 0x404c11
push 0x40
push 0x404b60
push 0x40a650
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0
leave
ret
push dword [0x40e4c4]
call fcn.00401c5c
or eax, eax
jne 0x404c3f
push 0x40
push 0x404b60
push 0x40a669
push 0
call sub.USER32.dll_MessageBoxA
mov dword [0x40e4c4], 0
leave
ret
mov dword [0x40e4c0], eax
push dword [0x40e4c4]
push dword [0x40e4c0]
call fcn.00403873
or eax, eax
jne 0x404ca9
push dword [0x40e4c0]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x40e4c0], 0
mov dword [0x40e4c4], 0
call fcn.00404b3c
push eax
push 0x40a67c
lea eax, [ebp - 0x84]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x40
push 0x404b60
lea eax, [ebp - 0x84]
push eax
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x404ce3
push 0xe
push 0x40a6b3
call fcn.00403e7d
push 8
push 0x40a6c9
call fcn.00403e7d
push 8
push 0x40a6df
call fcn.00403e7d
push 8
push str.jQQ
call fcn.00403e7d
call fcn.004039a2
call fcn.00403b16
mov eax, dword [0x40e4c0]
leave
ret

Function at 0x404e30
Capabilities:
Hide graphical window

Disassembly:
push dword [0x40e4c4]
call sub.USER32.dll_IsWindow
or eax, eax
je 0x404e4c
push 0
push dword [0x40e4c4]
call sub.USER32.dll_ShowWindow
ret

Function at 0x4056ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
push 0
push 8
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x4056cd
call fcn.0040567d
leave
ret 4
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 8
je 0x4056f0
call fcn.0040567d
leave
ret 4
cmp dword [ebp - 0xc], 0x52545441
je 0x40570a
push 1
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x4056cd
push 0
lea eax, [ebp - 4]
push eax
push 0x10
push 0x40e4e0
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 0x10
je 0x40572a
call fcn.0040567d
leave
ret 4

Function at 0x40572e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], 0x52545441
mov dword [ebp - 4], 0x10
push 2
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x405793
push 0
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 8
jne 0x405793
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
push 0x40e4e0
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 0x10
jne 0x405793
mov eax, 1
leave
ret 4
mov eax, 0
leave
ret 4
Function at 0x407414
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
push 0
push 8
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x407480
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 8
jne 0x407480
cmp dword [ebp - 0xc], 0x544f5250
je 0x407461
push 1
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x40742d
push 0
lea eax, [ebp - 4]
push eax
push 0x70
push 0x40e550
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 0x70
jne 0x407480
leave
ret 4
call fcn.004072f6
leave
ret 4

Function at 0x407489
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], 0x544f5250
mov dword [ebp - 4], 0x70
push 2
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x4074ee
push 0
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 8
jne 0x4074ee
push 0
lea eax, [ebp - 0xc]
push eax
push 0x70
push 0x40e550
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0xc], 0x70
jne 0x4074ee
mov eax, 1
leave
ret 4
mov eax, 0
leave
ret 4

Function at 0x407f74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0
push 0
push 8
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x407f96
call fcn.00407f5a
leave
ret 4
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 8
je 0x407fb9
call fcn.00407f5a
leave
ret 4
cmp dword [ebp - 0xc], 0x54574641
je 0x407fd3
push 1
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x407f96
push 0
lea eax, [ebp - 4]
push eax
push 0xc
push 0x40e5d0
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 0xc
je 0x407ff7
call fcn.00407f5a
leave
ret 4
push 0x40e5d4
call fcn.004031d0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x40e5d0]
jae 0x408070
push 0x30
call fcn.0040231f
or eax, eax
jne 0x40802c
call fcn.00407f2b
call fcn.00407f5a
leave
ret 4
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x30
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
cmp dword [ebp - 4], 0x30
je 0x40805e
push dword [ebp - 0x14]
call fcn.00402336
call fcn.00407f2b
call fcn.00407f5a
leave
ret 4
push dword [ebp - 0x14]
push 0x40e5d4
call fcn.00403222
inc dword [ebp - 0x10]
jmp 0x408008
leave
ret 4