joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4607b8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415c04]
call fcn.00405400
xor eax, eax
push ebp
push 0x4608fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f7e9c], 0
jne 0x46080b
mov ecx, dword [0x4f9cc0]
mov dl, 1
mov eax, dword [0x407f74]
call fcn.0040cb70
call fcn.00404214
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403140
mov eax, ebx
call fcn.00405114
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46090c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004064cc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405124
test eax, eax
jle 0x4608a3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46089c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b04
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404aec
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408dcc
test eax, eax
jne 0x46089c
mov ebx, 0x15
jmp 0x4608a8
mov ebx, 0x10
jmp 0x4608a8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4f7e9c]
call fcn.00460710
mov eax, dword [ebp - 8]
call fcn.00460710
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004064e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460903
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004048a0
lea eax, [ebp - 0x10]
mov edx, dword [0x415c04]
call fcn.004054d0
ret
Function at 0x469048
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4692a8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4690ab
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00468b10
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d4b8
cmp al, 1
jne 0x4690ab
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00468e28
test al, al
je 0x469237
cmp dword [ebp - 8], 0
jge 0x4690c9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00468b10
mov eax, dword [ebp - 0x210]
call fcn.00404b3c
cmp ebx, eax
jge 0x469113
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00468b10
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4fa3a4]
and eax, 0xff
bt dword [edx], eax
jae 0x469113
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x469127
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00469024
cmp ebx, dword [ebp - 8]
je 0x469229
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x469153
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c84
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f7fa0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x469216
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c84
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f7fa0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00445bd0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c84
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f7fa0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00445bd0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46921d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46928a
cmp dword [ebp - 8], 0
jge 0x469242
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00468b10
mov eax, dword [ebp - 0x218]
call fcn.00404b3c
cmp eax, dword [ebp - 8]
jg 0x46927c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00468b10
mov eax, dword [ebp - 0x21c]
call fcn.00404b3c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00469024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4692af
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048a0
ret
Function at 0x492dac
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 0x492e06
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00492d9c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00490b48
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004906a0
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 0x492e0d
lea eax, [ebp - 4]
call fcn.0040487c
ret
Function at 0x4970b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x4970e2
cmp dword [ebx + 0x64], 0
jne 0x4970e2
cmp dword [ebx + 0x6c], 0
jne 0x4970e2
mov esi, edi
jmp 0x497170
cmp esi, 0xffffffff
jne 0x4970ed
dec esi
jmp 0x497170
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x497170
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.00496720
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x497138
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x49713d
mov word [edx], 0
dec eax
test eax, eax
jne 0x49711e
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x497164
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x497169
mov word [edx], 0
dec eax
test eax, eax
jne 0x49714a
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4971ce
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00496e40
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4971b9
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4971ce
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4970c2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49e608
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x49e640]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x49e61e
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x49e62d
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x49e63c
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x49ef7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x43b4ac]
call fcn.00403c14
test al, al
je 0x49efbe
mov eax, dword [0x4fa130]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x49efbe
mov edx, dword [0x4fa130]
xor edx, edx
call fcn.0045843c
push 0
mov eax, dword [0x4fa130]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4c24d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
mov eax, dword [edi]
call fcn.004c31a8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push ebp
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.004c2450
pop ecx
call fcn.004d75dc
test al, al
je 0x4c2578
mov eax, dword [edi]
mov eax, dword [eax + 0x220]
cmp byte [eax + 0x60], 0
je 0x4c2578
push 0xffffffffffffffec
mov eax, dword [edi]
call fcn.00445bd0
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [edi]
call fcn.00445bd0
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [edi]
mov eax, dword [eax + 0x220]
cmp byte [eax + 0x61], 0
je 0x4c2561
mov eax, dword [edi]
call fcn.00445bd0
xor edx, edx
call fcn.004d7618
jmp 0x4c2578
mov eax, dword [edi]
call fcn.00445bd0
mov edx, dword [edi]
mov edx, dword [edx + 0x220]
mov dl, byte [edx + 0x62]
call fcn.004d7618
push 0x51
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [edi]
call fcn.00445bd0
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, dword [edi]
call fcn.0043f2d0
mov eax, dword [edi]
mov ebx, dword [eax + 0x220]
cmp byte [ebx + 0x61], 0
je 0x4c2611
cmp byte [ebx + 0x60], 0
je 0x4c2611
call fcn.004d75dc
test al, al
je 0x4c2611
mov eax, dword [0x4fa130]
mov eax, dword [eax]
call fcn.0045ecac
xor ebx, ebx
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp eax, 5
jbe 0x4c2601
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
add ebx, 0xa
mov eax, dword [edi]
mov eax, dword [eax + 0x220]
movzx eax, byte [eax + 0x62]
cmp ebx, eax
jle 0x4c25f3
mov ebx, eax
mov eax, dword [edi]
call fcn.00445bd0
mov edx, ebx
call fcn.004d7618
mov eax, dword [edi]
mov eax, dword [eax + 0x220]
movzx eax, byte [eax + 0x62]
cmp ebx, eax
jl 0x4c25cb
mov eax, dword [edi]
call fcn.004c36dc
mov eax, dword [edi]
call fcn.00445bd0
push eax
call sub.user32.dll_SetCapture
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e398c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x4e39a1
add esp, 0xfffffff0
call fcn.00403dac
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404d2c
xor eax, eax
push ebp
push 0x4e3a7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004dec34
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004178b4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004178b4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004178b4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004178b4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004178dc
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x52], 0
mov byte [esi + 0x53], 0
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3a83
lea eax, [ebp - 4]
call fcn.0040487c
ret
Function at 0x4e9484
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e9580
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4e9598
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.004048d0
push 0xffffffffffffffff
mov ecx, 0x4e95a8
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
mov ecx, 0x4e95c4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d7be4
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e95e0
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d7ad0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e95f4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d7ad0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4e960c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d7ad0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x4e9628
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d7be4
mov byte [ebx + 0x44], al
mov ecx, 0x4e963c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004de780
mov byte [ebx + 0x45], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9587
lea eax, [ebp - 4]
call fcn.0040487c
ret
Function at 0x401600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a73bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CWnd::CWnd
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x44]
mov byte [esp + 0x30], 1
mov ecx, edi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 4]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
mov byte [edi + 0xc], al
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], cl
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x34], ebx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x7c], 0x4b668c
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0x4b6678
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], eax
mov byte [esp + 0x30], 5
mov dword [esi], 0x4b65b8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push ebx
push ebx
lea edx, [esp + 0x20]
push eax
push edx
push ebx
push 0x52b4f0
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_CWnd::Create
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x402e80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a75d8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push 0x65
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, eax
test ebp, ebp
je 0x402fbb
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esi + 0x60]
call sub.MFC42.DLL_CListCtrl::GetItemText_1
add esi, 0x1a4
push eax
lea edx, [esp + 0x24]
push esi
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_operator_3
push str..txt
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push 0x520314
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402f55
push 0x52b4f0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push ebx
push edi
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea edx, [ebx + 1]
push edx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
mov ecx, ebp
mov byte [edi + ebx], 0
push edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push edi
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4043c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4b6ab8
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0045ebd0
mov dword [ebx], 0x4b6aa4
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0045ebd0
or eax, 0xffffffff
push 0x52b558
mov dword [ebx], 0x4b6a68
push edi
mov dword [esi], 0x4b6a7c
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4079b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a7c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x4b6afc
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x4b6ad4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10