joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e650
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46dfa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046193a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00466fd2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004684ee
test eax, eax
je 0x43e76c
mov ecx, dword [esp + 0x3c]
call fcn.00466fff
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e730
push edi
mov ecx, esi
call fcn.00464663
mov ecx, esi
call fcn.0043e8d0
cmp dword [esp + 0x38], 1
jne 0x43e765
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046479e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441180
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4411b3
push esi
call fcn.00444290
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4411ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441239
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441222
mov eax, dword [esi + 8]
test eax, eax
je 0x4411d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44121e
cmp eax, 2
je 0x441222
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4411ca
cmp eax, 3
je 0x4411fd
cmp eax, 1
jne 0x4411ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4411ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4411ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441260
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441248
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441260
add esp, 4
pop esi
ret

Function at 0x44cf10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44cfb3
test eax, eax
jbe 0x44cfb3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44cfb3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44cf5e
xor esi, esi
jmp 0x44cf64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44cf8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044eee0
add esi, eax
push esi
mov ebx, esi
call fcn.0044eee0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44cf70
pop ebp
test edi, edi
pop edi
jne 0x44cfb3
test ebx, ebx
je 0x44cfb3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00451640
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44d0f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44d20d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d20d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00461d8c
mov esi, eax
test esi, esi
je 0x44d20d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44d20d
mov ecx, esi
call fcn.0044d060
cmp edi, eax
jge 0x44d20d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44d193
mov dword [esp + 0x34], 1
jmp 0x44d1ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44d20d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044c620
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x44fd36
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4781f8
call fcn.004544e4
mov edi, 0x94
mov eax, edi
call fcn.00451520
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4af85c], ecx
mov eax, dword [esi + 4]
mov dword [0x4af868], eax
mov edx, dword [esi + 8]
mov dword [0x4af86c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4af860], esi
cmp ecx, 2
je 0x44fd96
or esi, 0x8000
mov dword [0x4af860], esi
shl eax, 8
add eax, edx
mov dword [0x4af864], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44fdd1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44fdd1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44fde9
cmp eax, 0x20b
je 0x44fdd6
mov dword [ebp - 0x1c], esi
jmp 0x44fdfd
cmp dword [ecx + 0x84], 0xe
jbe 0x44fdd1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44fdf7
cmp dword [ecx + 0x74], 0xe
jbe 0x44fdd1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00454491
pop ecx
test eax, eax
jne 0x44fe11
push 0x1c
call fcn.0044fd12
pop ecx
call fcn.00454408
test eax, eax
jne 0x44fe22
push 0x10
call fcn.0044fd12
pop ecx
mov dword [ebp - 4], esi
call fcn.0045417b
test eax, eax
jge 0x44fe36
push 0x1b
call fcn.0044fced
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4b1084], eax
call fcn.00454055
mov dword [0x4af840], eax
call fcn.00453fb3
test eax, eax
jge 0x44fe5c
push 8
call fcn.0044fced
pop ecx
call fcn.00453d67
test eax, eax
jge 0x44fe6d
push 9
call fcn.0044fced
pop ecx
call fcn.00452e8e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x44fe80
push eax
call fcn.0044fced
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00453cfe
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x44fea1
movzx eax, word [ebp - 0x34]
jmp 0x44fea4
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0045dcae
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44fec2
push edi
call fcn.00452fad
call fcn.00452fcf
jmp 0x44fef4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045451d
ret
Function at 0x453998
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x4910c0]
je 0x4539b8
inc eax
cmp eax, 0x12
jb 0x4539a9
shl eax, 3
cmp edx, dword [eax + 0x4910c0]
mov dword [ebp + 8], eax
jne 0x453b56
mov ecx, dword [0x4af848]
cmp ecx, 1
je 0x453b2b
test ecx, ecx
jne 0x4539ea
cmp dword [0x490a84], 1
je 0x453b2b
cmp edx, 0xfc
je 0x453b56
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x453a25
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a34
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x453a6c
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a4c
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x478848
push ebx
call fcn.00451640
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453a71
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4910c4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453a88
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.00451520
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453ab4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x453ac0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x453ad9
mov eax, dword [ebp + 8]
mov esi, 0x478828
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x4910c4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453af4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x453b00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0045b6db
add esp, 0xc
jmp 0x453b56
mov ecx, dword [eax + 0x4910c4]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453b36
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456eb5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x456f1d
push 0x3d
push esi
call fcn.0045277b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x456f1d
cmp esi, eax
je 0x456f1d
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4af87c]
sete cl
cmp eax, dword [0x4af880]
mov dword [ebp - 4], ecx
jne 0x456f03
mov edi, eax
call fcn.00456e54
mov dword [0x4af87c], eax
cmp eax, ebx
jne 0x456f5c
cmp dword [ebp + 0xc], ebx
je 0x456f25
cmp dword [0x4af884], ebx
je 0x456f25
call fcn.00456c43
test eax, eax
je 0x456f5c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x457066
push 4
call fcn.00451856
cmp eax, ebx
pop ecx
mov dword [0x4af87c], eax
je 0x456f1d
mov dword [eax], ebx
cmp dword [0x4af884], ebx
jne 0x456f5c
push 4
call fcn.00451856
cmp eax, ebx
pop ecx
mov dword [0x4af884], eax
je 0x456f1d
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x4af87c]
sub edi, esi
push esi
call fcn.00456e07
mov edi, eax
test edi, edi
pop ecx
jl 0x456fb8
cmp dword [ebx], 0
je 0x456fb8
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0045173e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x456f9d
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x456fee
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x456f94
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004521e6
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x456fee
jmp 0x456fe9
cmp dword [ebp - 4], 0
jne 0x45705f
test edi, edi
jge 0x456fc8
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004521e6
test eax, eax
pop ecx
pop ecx
je 0x456f1d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4af87c], eax
cmp dword [ebp + 0xc], 0
je 0x45704a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x456ff9
sub eax, edx
add eax, 2
push eax
call fcn.00451856
mov edi, eax
test edi, edi
pop ecx
je 0x45704a
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x457016
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x457043
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.0045173e
pop ecx
cmp dword [ebp - 4], 0
je 0x457057
push esi
call fcn.0045173e
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x456f20
push esi
call fcn.0045173e
pop ecx
xor eax, eax
jmp 0x456f20
Function at 0x45a442
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x45a608
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4afd20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x45a608
test cl, 0x48
je 0x45a4a8
mov al, byte [eax + 5]
cmp al, 0xa
je 0x45a4a8
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45a4fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x45a4e2
call fcn.0045310d
mov dword [eax], 9
call fcn.00453116
mov dword [eax], esi
jmp 0x45a4f2
cmp eax, 0x6d
je 0x45a608
push eax
call fcn.0045311f
pop ecx
or eax, 0xffffffff
jmp 0x45a60a
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x45a603
test edx, edx
je 0x45a51d
cmp byte [ebx], 0xa
jne 0x45a51d
or al, 4
jmp 0x45a51f
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x45a5fd
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x45a5ed
cmp al, 0xd
je 0x45a553
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x45a5df
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x45a56d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x45a568
add dword [ebp + 0x10], 2
jmp 0x45a5c1
mov dword [ebp + 0x10], eax
jmp 0x45a5db
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45a595
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45a5db
cmp dword [ebp - 0xc], 0
je 0x45a5db
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x45a5b6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x45a5c1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45a5de
cmp ebx, dword [ebp + 0xc]
jne 0x45a5c6
cmp byte [ebp - 1], 0xa
jne 0x45a5c6
mov byte [ebx], 0xa
jmp 0x45a5de
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045a6ba
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x45a5df
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x45a537
jmp 0x45a5fd
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x45a5fd
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x45a60a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a8f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x45a910
xor eax, eax
jmp 0x45aa7e
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4afd20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45a943
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0045d3a7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45aa15
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x45aa50
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x45a99e
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45a98f
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x45a972
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45a9de
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x45a9e7
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x45a963
jmp 0x45a9e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x45aa79
cmp dword [ebp - 4], edi
je 0x45aa50
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x45aa42
call fcn.0045310d
mov dword [eax], 9
call fcn.00453116
mov dword [eax], esi
jmp 0x45aa4b
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45aa37
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x45a9e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x45a9e9
push dword [ebp - 4]
call fcn.0045311f
pop ecx
or eax, 0xffffffff
jmp 0x45aa7c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45aa65
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x45aa65
xor eax, eax
jmp 0x45aa7c
call fcn.0045310d
mov dword [eax], 0x1c
call fcn.00453116
mov dword [eax], edi
jmp 0x45aa4b
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x45b60a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00451520
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45b69f
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4af85c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x45b69f
cmp eax, 1
je 0x45b6b7
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45b69f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x45b674
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x45b69b
xor eax, eax
inc eax
jmp 0x45b6d3
cmp esi, ebx
jae 0x45b6a3
xor eax, eax
jmp 0x45b6d3
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4af85c]
jmp 0x45b6b9
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45b6db
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4afc30], ebx
push esi
push edi
jne 0x45b75b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45b796
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47cb74
push edi
call esi
test eax, eax
mov dword [0x4afc30], eax
je 0x45b796
push 0x47cb64
push edi
call esi
push 0x47cb50
push edi
mov dword [0x4afc34], eax
call esi
cmp dword [0x4af85c], 2
mov dword [0x4afc38], eax
jne 0x45b75b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4afc40], eax
je 0x45b75b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4afc3c], eax
mov eax, dword [0x4afc3c]
test eax, eax
je 0x45b7a0
call eax
test eax, eax
je 0x45b787
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4afc40]
test eax, eax
je 0x45b787
test byte [ebp - 8], 1
jne 0x45b7a0
cmp dword [0x4af868], 4
jb 0x45b79a
or byte [ebp + 0x12], 0x20
jmp 0x45b7bf
xor eax, eax
jmp 0x45b7cf
or byte [ebp + 0x12], 4
jmp 0x45b7bf
mov eax, dword [0x4afc34]
test eax, eax
je 0x45b7bf
call eax
mov ebx, eax
test ebx, ebx
je 0x45b7bf
mov eax, dword [0x4afc38]
test eax, eax
je 0x45b7bf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4afc30]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46272f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462767
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.004607e6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004607be
jmp 0x462773
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463e20
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 0x463e62
call fcn.004698d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463e62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463e59
xor eax, eax
jmp 0x463e6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463e70
pop edi
pop esi
pop ebx
ret 4

Function at 0x469e09
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 0x469e37
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469e55
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469d6f
jmp 0x469e55
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469e55
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469d6f
test edi, edi
mov eax, edi
jne 0x469e3f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8