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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x475bd7
add esp, 0xfffffff0
call fcn.00403c78
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422858
mov eax, dword [0x4ebcb4]
cmp word [eax + 2], 0
jne 0x475bff
mov eax, dword [0x4ebcb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00477340
mov eax, dword [0x4ebe1c]
cmp word [eax + 2], 0
jne 0x475c19
mov eax, dword [0x4ebe1c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00477538
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4170e8]
call fcn.004038e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4170e8]
call fcn.004038e4
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 [0x424df8]
call fcn.0042c7f8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x475da0
mov eax, dword [0x4ebaec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042cbc8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x477ae8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ebaec]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
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.0040d858
test eax, eax
je 0x475d0e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004095e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d880
test eax, eax
je 0x475d22
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.00404998
mov eax, dword [0x4eb848]
cmp byte [eax], 0
jne 0x475d56
mov eax, ebx
call fcn.00475ec8
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.00477cc4
mov eax, ebx
call fcn.00478688
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x475d96
call fcn.00403cd0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476148
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4edc10]
cmp dword [eax + 0x30], 0
je 0x4761f2
cmp dword [ebx + 0x94], 0
jne 0x4761ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4760d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4761ec
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 0x4761b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4761ec
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.00419ac8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4761c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x476d54
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 0x476d89
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.00404818
jmp 0x476d96
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040477c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x477ea0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477ee1
mov eax, esi
call fcn.0045df4c
test al, al
je 0x477ee1
mov eax, dword [ebx + 0x84]
call fcn.0045dc48
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477ee1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045dc48
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4822f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4822f8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4824ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x482500
mov eax, esi
call fcn.00480080
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040477c
lea ecx, [ebp - 0x10]
mov edx, 0x482514
mov eax, esi
call fcn.00480080
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040477c
lea ecx, [ebp - 0x14]
mov edx, 0x48252c
mov eax, esi
call fcn.00480080
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040477c
lea ecx, [ebp - 0x18]
mov edx, 0x482548
mov eax, esi
call fcn.00480080
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040477c
lea ecx, [ebp - 0x1c]
mov edx, 0x482564
mov eax, esi
call fcn.00480080
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040477c
lea ecx, [ebp - 0x24]
mov edx, 0x48257c
mov eax, esi
call fcn.00480080
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408c08
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408fe8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x482594
mov eax, esi
call fcn.00480080
mov eax, dword [ebp - 0x28]
call fcn.0047f198
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4825a4
mov eax, esi
call fcn.00480080
mov eax, dword [ebp - 0x2c]
call fcn.0047f198
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4825bc
mov eax, esi
call fcn.00480080
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408fe8
inc eax
je 0x48248d
lea ecx, [ebp - 0x34]
mov edx, 0x4825bc
mov eax, esi
call fcn.00480080
mov eax, dword [ebp - 0x34]
call fcn.00408fac
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a8a4
fstp qword [ebp - 0x3c]
wait
call fcn.0040ac34
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4824a8
lea ecx, [ebp - 0x40]
mov edx, 0x4825bc
mov eax, esi
call fcn.00480080
mov eax, dword [ebp - 0x40]
call fcn.0047f198
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4825cc
mov eax, esi
call fcn.00480080
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040477c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4824f1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040474c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040474c
ret
Function at 0x48e788
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 0x48e7e2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048e778
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047de04
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047da04
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 0x48e7e9
lea eax, [ebp - 4]
call fcn.00404728
ret

Function at 0x4b9374
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4b93c5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4b93ac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4b939c
jmp 0x4b93c5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4b93ad
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9940
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00419e8c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c99cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4c99af
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00419ac8
test byte [eax + 0x58], 1
je 0x4c99a6
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00419ac8
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00419968
dec dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jne 0x4c9974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c99d2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00419ef0
ret
Function at 0x4ce148
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4ce176
mov eax, ebx
call fcn.004cebfc
cmp dword [ebx + 0x40], 0
je 0x4ce16f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4ce1e7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4ce1d9
cmp dword [ebx + 8], 0
je 0x4ce198
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4ce1aa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4ce1d9
cmp dword [ebx + 8], 0
je 0x4ce18b
cmp eax, 3
je 0x4ce1bd
dec eax
jne 0x4ce18b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4ce18b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4ce18b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4ce205
cmp dword [ebx + 0x14], 0xcc
je 0x4ce205
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004ce210
pop ebx
ret

Function at 0x4e050c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0596
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 5
lea eax, [ebp - 0x109]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e0554
mov eax, dword [ebp - 4]
call fcn.00404728
jmp 0x4e057d
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404998
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 4]
mov ecx, 0x4e05ac
call fcn.00404a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e059d
lea eax, [ebp - 0x110]
call fcn.00404728
ret
Function at 0x4e05d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
xor ecx, ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bd8
mov eax, dword [ebp - 8]
call fcn.00404bd8
xor eax, eax
push ebp
push 0x4e0755
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [0x4ebdcc]
mov eax, dword [eax]
call fcn.00477850
lea edx, [ebp - 0xc]
mov eax, dword [0x4eb924]
call fcn.00478ba8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x4e0760
call fcn.00406268
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x4e0770
call fcn.00406268
mov eax, dword [ebp - 0x1c]
call fcn.00404be8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0x1c]
call fcn.0040942c
mov eax, dword [ebp - 0x234]
call fcn.00404be8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
mov eax, dword [ebp - 4]
call fcn.00404be8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push 0
push 0
lea eax, [ebp - 0x22a]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x22a]
mov ecx, 0x105
call fcn.00404998
push dword [ebp - 0x238]
push 0x4e0788
push dword [ebp - 8]
push 0x4e0794
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404aa8
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e075c
lea eax, [ebp - 0x238]
mov edx, 2
call fcn.0040474c
lea eax, [ebp - 0x230]
call fcn.00404e34
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040474c
lea eax, [ebp - 0x14]
call fcn.00406224
lea eax, [ebp - 0x10]
call fcn.00406224
lea eax, [ebp - 0xc]
call fcn.00406224
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040474c
ret
Function at 0x4e0c14
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
xor ecx, ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0d05
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x1a8]
mov edx, dword [ebp - 4]
mov eax, dword [0x4ee08c]
call fcn.0041b2a8
cmp dword [ebp - 0x1a8], 0
je 0x4e0c62
mov eax, dword [ebp - 8]
call fcn.00404728
jmp 0x4e0cec
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 8]
call fcn.00404728
mov eax, dword [ebp - 4]
call fcn.00404be8
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4e0cae
mov eax, dword [ebp - 8]
call fcn.00404728
mov ecx, 0x4e0d18
mov edx, dword [ebp - 4]
mov eax, dword [0x4ee08c]
call fcn.0041b9b4
jmp 0x4e0cec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4e0cdb
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00404920
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
jne 0x4e0cbe
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0d0c
lea eax, [ebp - 0x1a8]
call fcn.00404728
ret
Function at 0x4e632c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4e637c
lea eax, [ebp - 0x14]
push eax
push 0x4e6380
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov esp, ebp
pop ebp
ret
Function at 0x4e7f5e
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [eax], 0xfffff000
jne 0x4e7f73
mov dl, byte [eax + 5]
cmp dl, 0xe8
je 0x4e7f78
cmp dl, 0xcc
je 0x4e7f78
dec eax
dec ecx
jne fcn.004e7f5e
ret
add eax, 0xa
add eax, dword [eax - 4]
ret

Function at 0x4e8257
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, edx
sub ecx, ecx
push 6
pop edx
mov eax, dword fs:[ecx + 0x30]
cmp byte [ebx + 2], cl
jne 0x4e8271
dec edx
mov dword [eax], edx
mov byte [eax], dl
xor eax, dword [ebx + 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x4e82ee
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x10]
push dword [ebp + 0x10]
call dword [ebx + 8]
test eax, eax
sete byte [ebp - 1]
pop eax
je 0x4e82d1
sub ecx, ecx
cmp byte [ebx + 2], cl
mov edx, dword fs:[ecx + 0x30]
push eax
je 0x4e82ac
shr eax, 2
inc eax
shl eax, 3
add eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebx + 4]
mov dword [eax], ecx
cmp byte [ecx], 7
pop eax
jae 0x4e82c9
inc dword [ecx + 4]
dec dword [edx + 4]
jmp 0x4e82d1
inc word [ecx + 2]
dec word [edx + 2]
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x18]
pop eax
cmp byte [ebp - 1], 0
je 0x4e82ee
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x57
pop ecx
call fcn.004e81e7
pop ebx
leave
ret 0xc

Function at 0x401990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4019b6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401a4a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401a05
cmp eax, 0x40
je 0x401a05
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4019a9
cmp eax, 0x40
je 0x4019a9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4019a9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x1001209
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1003028]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0x20
mov dword [ebp - 0x90], eax
jne 0x1001236
inc eax
cmp byte [eax], 0x20
je 0x100122a
mov dword [ebp - 0x90], eax
cmp byte [eax], 0
jne 0x1001242
xor eax, eax
jmp 0x100135e
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
push edi
mov edi, 0x4040
push edi
lea eax, [ebp - 0x8c]
push eax
mov ebx, str.IWLIB.DLL
push ebx
call esi
cmp eax, 0xffffffff
je 0x1001359
push edi
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
call esi
cmp eax, 0xffffffff
je 0x1001359
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x1003074], eax
je 0x1001359
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100116c
push eax
call esi
push 0x1001160
push dword [0x1003074]
mov dword [0x1003184], eax
call esi
push 0x1001154
push dword [0x1003074]
mov dword [0x10032a4], eax
call esi
push 0x1001144
push dword [0x1003074]
mov dword [0x10032a0], eax
call esi
push 0x1001134
push dword [0x1003074]
mov dword [0x1003070], eax
call esi
push 0x1001124
push dword [0x1003074]
mov dword [0x1003180], eax
call esi
push 0x1001114
push dword [0x1003074]
mov dword [0x100318c], eax
call esi
mov dword [0x1003188], eax
mov eax, dword [0x1003184]
test eax, eax
je 0x100134d
cmp dword [0x10032a4], 0
je 0x100134d
push 0
push dword [0x1003048]
call eax
test ax, ax
je 0x100134d
push dword [ebp - 0x90]
call dword [0x1003180]
test ax, ax
jne 0x100136a
call dword [0x10032a4]
push dword [0x1003074]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01001875
leave
ret 4
push 0x100110c
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x1003020], eax
xor eax, eax
inc eax
mov dword [0x100305c], eax
jmp 0x100135b
Function at 0x100149e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1003028]
push esi
push edi
xor edi, edi
cmp dword [0x1003054], edi
mov dword [ebp - 4], eax
mov eax, dword [0x1003048]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], 0x10013ad
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edi
jne 0x10014f2
mov dword [ebp - 0xb8], edi
jmp 0x1001504
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0xb8], eax
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xd0]
mov esi, 0x1003080
push eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x100153c
xor eax, eax
jmp 0x100162a
push ebx
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
lea eax, [ebp - 0xa8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x10015cd
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10015cd
cmp dword [ebp - 0x88], 2
jne 0x10015cd
cmp dword [ebp - 0x94], 5
jb 0x10015cd
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1000
call ebx
test eax, eax
je 0x10015cd
push 0x4e
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
call ebx
push 0x4f
mov dword [ebp - 0xa0], eax
call ebx
mov dword [ebp - 0x9c], eax
jmp 0x10015d3
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
mov ecx, dword [0x1003054]
push edi
push dword [0x1003048]
push edi
push ecx
push eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
neg ecx
push eax
push dword [ebp - 0xa4]
sbb ecx, ecx
push dword [ebp - 0xa8]
and ecx, 0xc0000000
add ecx, 0x80000000
or ecx, 0x10000000
push ecx
push esi
push esi
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
neg eax
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01001875
leave
ret