joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413323
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x413359
push 0x8000
push 0
push dword [esi + 0x20]
call sub.KERNEL32.dll_VirtualFree
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x41338d
inc eax
mov dword [esi + 0x24], eax
push 4
push 0x1000
push dword [esi + 0x24]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x20], eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
push dword [esi + 8]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 1
push 0
push 0
push 0xce
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push 0
push 0xffffffffffffffff
push 0xbb
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x2c], eax
push 0
push eax
push 0xd6
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov ax, 1
push eax
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
sub eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 0x10
and dword [ebp - 8], 0xffff
dec dword [ebp - 8]
or eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
add eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x41444d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x414475
push 0x8000
push 0
push dword [esi + 0x20]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x4144a9
inc eax
mov dword [esi + 0x24], eax
push 4
push 0x1000
push dword [esi + 0x24]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x20], eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
push dword [esi + 8]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 1
push 0
push 0
push 0x147
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x415eef
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push esi
push ecx
push ebx
push edi
mov byte [ebp - 0x404], 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0x41f4b2
lea eax, [ebp - 0x404]
push eax
push 1
call fcn.0041b778
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
call fcn.0041b82c
cmp dword [ebp - 4], 0
jbe 0x415f4d
cmp dword [ebp - 4], eax
jne 0x415f46
mov eax, 0x41f49f
jmp 0x415f52
mov eax, 0x41f4a6
jmp 0x415f52
mov eax, 0x41f4b2
push eax
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_lstrcatA
push 1
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 0x40d9c6
push dword [0x41f048]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x415f97
mov eax, 0
jmp 0x415fb9
push dword [0x423374]
push 0xf
call fcn.00406277
push 0
push 0
push eax
push dword [0x41f048]
call sub.USER32.dll_MessageBoxA
mov eax, 1
pop edi
pop ebx
pop ecx
pop esi
leave
ret 8
Function at 0x41671e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x208]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.dll_lstrcatA
cmp dword [ebp + 0x10], 0
jne 0x41675f
lea eax, [ebp - 0x408]
mov dword [ebp - 8], eax
jmp 0x416765
push dword [ebp + 0x10]
pop dword [ebp - 8]
mov eax, dword [ebp + 0xc]
inc dword [eax]
inc dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 8]
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4167a4
jmp 0x4167ac
cmp dword [ebp - 4], 0xa
jae 0x4167ac
jmp 0x416765
leave
ret 0xc

Function at 0x4167b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0x10]
call sub.USER32.dll_wsprintfA
add esp, 0xc
leave
ret 0xc

Function at 0x4167f2
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
lea eax, [ebp - 0x204]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [0x420966]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41682d
leave
ret 8
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_DeleteFileA
dec dword [ebp - 4]
jmp 0x416823
Function at 0x416f91
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push 0xa1
lea eax, [ebp - 0xb1]
push eax
push dword [ebp + 8]
call fcn.0041b8c0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
je 0x41708e
mov dword [ebp - 0xa5], eax
cmp byte [ebp - 0x61], 0
jne 0x41702e
push dword [ebp - 0xb1]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x417025
push dword [ebp - 0xb1]
call sub.WSOCK32.dll_gethostbyname
or eax, eax
jne 0x417019
mov dword [ebp - 0xa1], 0
mov dword [ebp - 0x95], 1
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xb1]
push eax
call fcn.0041b8c0
leave
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x417028
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp - 0xad]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x31
push dword [ebp - 0x99]
push dword [ebp - 0xa9]
push dword [ebp - 0xa5]
call sub.WSOCK32.dll_WSAAsyncSelect
or eax, eax
jne 0x41709e
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xa5]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x41708c
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41708c
mov dword [ebp - 0xa1], 0
mov dword [ebp - 0x95], eax
jmp 0x41709e
mov dword [ebp - 0xa1], 0
mov dword [ebp - 0x95], eax
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xb1]
push eax
call fcn.0041b8c0
leave
ret 4

Function at 0x4170b6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push 0xa1
lea eax, [ebp - 0xa1]
push eax
push dword [ebp + 8]
call fcn.0041b8c0
push dword [ebp - 0x50]
call sub.KERNEL32.dll_lstrlenA
push 0
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x95]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x41715d
mov dword [ebp - 0x63], 0
mov byte [ebp - 0x5f], 0
mov byte [ebp - 0x5e], 0
mov byte [ebp - 0x5d], 0
mov word [ebp - 0x65], 0
push 0x200
push dword [ebp - 0x4c]
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x56], 0
mov dword [ebp - 0x55], 0
cmp dword [ebp - 0x10], 0
je 0x41716d
push 0x8000
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_VirtualFree
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x41716d
mov dword [ebp - 0x91], 0
mov dword [ebp - 0x85], eax
mov dword [ebp - 0x3c], 0
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xa1]
push eax
call fcn.0041b8c0
leave
ret 4
Function at 0x41718c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push 0xa1
lea eax, [ebp - 0xa1]
push eax
push dword [ebp + 8]
call fcn.0041b8c0
lea eax, [ebp - 0x6d]
push eax
push 0x4004667f
push dword [ebp - 0x95]
call sub.WSOCK32.dll_ioctlsocket
cmp dword [ebp - 0x6d], 0
jne 0x4171c7
leave
ret 4
push dword [ebp - 0x6d]
push 0x42
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x81], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x7d], eax
push 0
push dword [ebp - 0x6d]
push dword [ebp - 0x7d]
push dword [ebp - 0x95]
call sub.WSOCK32.dll_recv
push eax
cmp eax, 0xffffffff
je 0x417263
mov dword [ebp - 0x6d], eax
cmp byte [ebp - 0x5f], 0
jne 0x417210
lea eax, [ebp - 0xa1]
push eax
call fcn.00417617
jmp 0x41724e
cmp byte [ebp - 0x56], 0
je 0x417222
cmp byte [ebp - 0x56], 1
jne 0x417242
cmp byte [ebp - 0x58], 1
jne 0x417242
cmp dword [ebp - 0x18], 2
je 0x41722e
cmp dword [ebp - 0x18], 3
jne 0x41724e
push dword [ebp - 0x6d]
push dword [ebp - 0x7d]
lea eax, [ebp - 0xa1]
push eax
call fcn.00417af7
jmp 0x41724e
lea eax, [ebp - 0xa1]
push eax
call fcn.00417571
push dword [ebp - 0x7d]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x81]
call sub.KERNEL32.dll_GlobalFree
jmp 0x417286
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x417286
cmp eax, 0x2734
je 0x417286
mov dword [ebp - 0x91], 0
mov dword [ebp - 0x85], eax
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xa1]
push eax
call fcn.0041b8c0
pop eax
leave
ret 4
Function at 0x417617
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb5c
push edi
push esi
push 0xa1
lea eax, [ebp - 0x4a1]
push eax
push dword [ebp + 8]
call fcn.0041b8c0
lea edi, [ebp - 0x400]
add edi, dword [ebp - 0x463]
mov esi, dword [ebp - 0x47d]
push esi
call sub.KERNEL32.dll_lstrlenA
jmp 0x41785e
cmp byte [esi], 0xa
jne 0x417851
cmp byte [esi - 2], 0xa
jne 0x417851
mov cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
mov byte [edi], 0
mov byte [ebp - 0x45f], 1
mov dword [ebp - 0x471], esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x4a1]
push eax
call fcn.00417444
lea eax, [ebp - 0x43c]
push eax
call fcn.0041b208
mov word [ebp - 0x465], ax
cmp byte [ebp - 0x43c], 0x33
jne 0x41776d
mov byte [ebp - 0x45d], 1
lea eax, [ebp - 0x400]
push eax
call sub.USER32.dll_CharLowerA
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ecx, eax
lea edi, [ebp - 0x400]
mov al, 0x6c
repne scasb al, byte es:[edi]
push edi
push ecx
dec edi
mov esi, str.location:
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
mov esi, edi
pop ecx
pop edi
je 0x417704
test ecx, ecx
jne 0x4176d6
lea eax, [ebp - 0x4a1]
push eax
call fcn.0041729f
jmp 0x417866
push 0x200
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov edi, esi
lea esi, [ebp - 0x200]
cmp byte [edi], 0x20
jne 0x41772c
mov al, 0x20
mov ecx, 0x200
repe scasb al, byte es:[edi]
dec edi
jmp 0x417734
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
je 0x417743
cmp byte [edi], 0xd
je 0x417743
cmp byte [edi], 0xa
jne 0x41772e
lea eax, [ebp - 0x200]
push eax
pop dword [ebp - 0x440]
lea eax, [ebp - 0x4a1]
push eax
call fcn.004172e0
lea eax, [ebp - 0x4a1]
push eax
call fcn.00416f91
jmp 0x41784d
cmp word [ebp - 0x465], 0xcc
je 0x417781
cmp byte [ebp - 0x43c], 0x34
jne 0x417792
lea eax, [ebp - 0x4a1]
push eax
call fcn.0041729f
jmp 0x41784d
cmp byte [ebp - 0x43c], 0x32
je 0x4177a8
cmp byte [ebp - 0x43c], 0x35
jne 0x417841
push str.multipart_
lea eax, [ebp - 0x400]
push eax
call fcn.00417880
cmp eax, 0
jbe 0x4177da
mov byte [ebp - 0x457], 1
mov byte [ebp - 0x456], 1
lea eax, [ebp - 0x4a1]
push eax
call fcn.00417571
jmp 0x41784d
push str.accept_ranges:
lea eax, [ebp - 0x400]
push eax
call fcn.00417880
cmp eax, 0
ja 0x4177fb
cmp word [ebp - 0x465], 0xce
jne 0x417804
mov byte [ebp - 0x457], 1
jmp 0x417821
push str.Content_Range:
lea eax, [ebp - 0x400]
push eax
call fcn.00417880
cmp eax, 0
jbe 0x417821
mov byte [ebp - 0x457], 1
cmp dword [ebp - 0x418], 2
je 0x417833
cmp dword [ebp - 0x418], 3
jne 0x41783f
lea eax, [ebp - 0x4a1]
push eax
call fcn.00417a3c
jmp 0x41784d
lea eax, [ebp - 0x4a1]
push eax
call fcn.0041729f
jmp 0x417866
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
inc dword [ebp - 0x463]
dec eax
or eax, eax
jne 0x417653
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0x4a1]
push eax
call fcn.0041b8c0
pop esi
pop edi
leave
ret 4
Function at 0x417a61
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x34]
sub ecx, eax
push ecx
push dword [esi + 0x30]
push dword [ebp + 8]
call fcn.00417af7
cmp eax, 1
jne 0x417af2
push eax
lea eax, [esi + 0x34]
push eax
push 0x4004667f
push dword [esi + 0xc]
call sub.WSOCK32.dll_ioctlsocket
pop eax
cmp dword [esi + 0x34], 0
je 0x417ae1
push 0x42
push dword [esi + 0x34]
push dword [esi + 0x20]
call sub.KERNEL32.dll_GlobalReAlloc
mov dword [esi + 0x20], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [esi + 0x24], eax
push 0
push dword [esi + 0x34]
push dword [esi + 0x24]
push dword [esi + 0xc]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x417ad2
mov eax, 0
jmp 0x417ae1
mov dword [esi + 0x34], eax
push eax
push dword [esi + 0x24]
push dword [ebp + 8]
call fcn.00417af7
cmp eax, 1
jne 0x417af2
cmp byte [esi + 0x43], 1
jne 0x417af2
push esi
call fcn.0041729f
pop esi
leave
ret 4

Function at 0x417af7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2c], 0
je 0x417b4d
cmp dword [esi + 0x89], 3
jne 0x417b39
cmp dword [esi + 0x91], 0
jne 0x417b39
push 4
push 0x1000
push dword [esi + 0x2c]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x91], eax
push dword [esi + 0x2c]
pop dword [esi + 0x95]
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jbe 0x417b4d
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x38]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jne 0x417b5f
mov dword [esi + 0x71], 1
cmp dword [esi + 0x89], 2
jne 0x417b82
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x69]
call sub.KERNEL32.dll_WriteFile
push eax
jmp 0x417c35
cmp dword [esi + 0x89], 3
jne 0x417c35
mov eax, dword [esi + 0x99]
add eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x95]
ja 0x417ba9
cmp dword [esi + 0x91], 0
jne 0x417c03
shl eax, 1
mov dword [ebp - 8], eax
push 4
push 0x1000
push dword [ebp - 8]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 4], eax
cmp dword [esi + 0x91], 0
je 0x417bf1
push dword [esi + 0x99]
push dword [ebp - 4]
push dword [esi + 0x91]
call fcn.0041b8c0
push 0x8000
push 0
push dword [esi + 0x91]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp - 4]
pop dword [esi + 0x91]
push dword [ebp - 8]
pop dword [esi + 0x95]
cmp dword [esi + 0x91], 0
je 0x417c35
mov eax, dword [esi + 0x91]
add eax, dword [esi + 0x99]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0041b8c0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
add dword [esi + 0x99], eax
mov eax, 1
cmp eax, 1
jne 0x417c51
mov eax, dword [ebp - 0xc]
add dword [esi + 0x38], eax
add dword [esi + 0x4c], eax
cmp dword [esi + 0x6d], 0
je 0x417c51
push dword [ebp + 8]
call fcn.00416b22
pop eax
pop esi
leave
ret 0xc
Function at 0x418a35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420b10
cmp edx, dword [eax]
je 0x418a57
add eax, 8
inc ecx
cmp eax, 0x420ba0
jl 0x418a48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420b10]
jne 0x418b85
mov eax, dword [0x42512c]
cmp eax, 1
je 0x418b5f
test eax, eax
jne 0x418a88
cmp dword [0x420a60], 1
je 0x418b5f
cmp edx, 0xfc
je 0x418b85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418abf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419020
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004191d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x418b02
lea eax, [ebp - 0x1a4]
push eax
call fcn.004191d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d788
push edi
call fcn.0041a870
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419020
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419030
lea eax, [ebp - 0xa0]
push 0x41d768
push eax
call fcn.00419030
push dword [esi + 0x420b14]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419030
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a7e4
add esp, 0x2c
pop edi
jmp 0x418b85
lea eax, [ebp + 8]
lea esi, [esi + 0x420b14]
push 0
push eax
push dword [esi]
call fcn.004191d0
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

Function at 0x41cde4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push str.Debug_Window_for_MASM32
push 0
call sub.USER32.dll_FindWindowA
or eax, eax
jne 0x41ce12
push 1
push str.masm32_bindbgwin.exe
call sub.KERNEL32.dll_WinExec
push str.Debug_Window_for_MASM32
push 0
call sub.USER32.dll_FindWindowA
or eax, eax
je 0x41ce89
mov dword [ebp - 4], eax
push 0
push str.Edit
push 0
push dword [ebp - 4]
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 4], eax
push 0
push 0
push 0xe
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
pop eax
or eax, eax
je 0x41ce66
push 0x4230a3
push 0
push 0xc2
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push dword [ebp + 8]
push 0
push 0xc2
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
leave
ret 4
Function at 0x401fff
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004021af
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4020fd
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4020a0
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4020e3
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4020b7
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4020d2
test al, 0x40
je 0x4020c9
mov ecx, dword [edi + 0x20]
jmp 0x4020d0
test al, 0x80
je 0x4020e3
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4020e3
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40206f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40bbf0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46767b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045c036
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bc72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459f4d
mov eax, dword [eax]
push 0x49e1c0
push eax
call fcn.0044cdb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c2c1
test bl, bl
je 0x40bc72
push 0x49e1c0
lea ecx, [esp + 0xc]
call fcn.0045c651
push 0x4a1d44
lea ecx, [esp + 0xc]
call fcn.0045c651
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40bcae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c2c1
jmp 0x40bd79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40bd32
lea edx, [esp + 0x7c]
push 0x4a1d40
push edx
call fcn.0044cdb4
add esp, 8
test eax, eax
je 0x40bd32
lea eax, [esp + 0x7c]
push 0x4a1d3c
push eax
call fcn.0044cdb4
add esp, 8
test eax, eax
je 0x40bd32
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bcc2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045c2c1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c570
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c5d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc