joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ca9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45a9a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x416ce9
push 0x44a470
push 4
push eax
call fcn.004309df
push eax
call fcn.00401cc0
add esp, 0x10
jmp 0x416cfb
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x416d69
push edi
call fcn.0042eca2
mov edi, dword [eax]
call fcn.0042eca2
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042e274
add esp, 0x18
mov ebx, eax
call fcn.0042eca2
cmp dword [eax], 0
je 0x416d49
call fcn.0042eca2
push dword [eax]
call fcn.004085f2
pop ecx
jmp 0x416d50
call fcn.0042eca2
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x416d69
cmp ebx, esi
jae 0x416d69
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x416d6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cd95
leave
ret
Function at 0x417e0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x417e50
call fcn.00412b39
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x417e50
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x417e93
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x417e7c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x417e7c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x417e90
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x427847
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x427850
xor eax, eax
jmp 0x4278b9
cmp dword [esp + 8], 0
jne 0x42785c
call fcn.00408a28
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00432264
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x427897
push dword [esi + 0x10]
call fcn.00431f6a
test eax, eax
pop ecx
jne 0x427897
mov esi, dword [esi + 0xc]
call fcn.0042ecb5
push esi
push dword [eax]
push 1
call fcn.0042a261
push dword [esi + 0x10]
call fcn.00431f99
test eax, eax
pop ecx
je 0x4278b6
push dword [esi + 0x10]
call fcn.00431ebe
push eax
call fcn.00401cc0
pop ecx
pop ecx
jmp 0x427885
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4278c2
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4278cc
call fcn.00408a28
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004323de
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4278f9
mov esi, dword [esi + 0xc]
call fcn.0042ecb5
push esi
push dword [eax]
push 1
call fcn.0042a261
pop esi
ret 8

Function at 0x42cd95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a9a0]
jne 0x42cd9f
repz ret
jmp fcn.0043323c
Function at 0x431fc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x432005
cmp dword [ebp + 0x14], edi
je 0x432005
cmp ecx, edi
jne 0x43200c
call fcn.0042eca2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00433446
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x432020
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x432041
cmp ebx, 0xffffffff
je 0x432030
push ebx
push edi
push ecx
call fcn.0042c9b0
add esp, 0xc
cmp esi, edi
je 0x431fed
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x431fed
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43205d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x432064
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x432155
test word [esi + 0xc], 0x10c
je 0x4320b8
mov eax, dword [esi + 4]
test eax, eax
je 0x4320b8
jl 0x4321b6
cmp ebx, eax
mov edi, ebx
jb 0x432089
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43215d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042cda4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43214d
cmp ebx, dword [ebp - 0xc]
jb 0x432125
cmp dword [ebp - 0xc], 0
je 0x4320e2
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4320d7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4320de
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4320ed
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4320ed
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x432189
push eax
push dword [ebp - 8]
push esi
call fcn.00431c1d
pop ecx
push eax
call fcn.0043c4c6
add esp, 0xc
test eax, eax
je 0x4321c8
cmp eax, 0xffffffff
je 0x4321b6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43214d
push esi
call fcn.0043bde5
cmp eax, 0xffffffff
pop ecx
je 0x4321ba
cmp dword [ebp - 4], 0
je 0x432189
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43206c
mov eax, dword [ebp + 0x14]
jmp 0x432007
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x432174
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042c9b0
add esp, 0xc
call fcn.0042eca2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x431ffd
cmp dword [ebp + 0xc], 0xffffffff
je 0x43219f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042c9b0
add esp, 0xc
call fcn.0042eca2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x431ffd
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x432007
or dword [esi + 0xc], 0x10
jmp 0x4321ba
Function at 0x4358f7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45acc8]
je 0x435912
inc edi
cmp edi, 0x17
jb 0x435903
cmp edi, 0x17
jae 0x435a92
push ebp
push 3
call fcn.0043d460
cmp eax, 1
pop ecx
je 0x435a5e
push 3
call fcn.0043d460
test eax, eax
pop ecx
jne 0x435946
cmp dword [0x45a9b4], 1
je 0x435a5e
cmp ebx, 0xfc
je 0x435a91
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45ead8
push ebp
call fcn.004309df
add esp, 0xc
test eax, eax
je 0x43597c
push esi
push esi
push esi
push esi
push esi
call fcn.0043334a
add esp, 0x14
push 0x104
mov esi, 0x45eaf1
push esi
push 0
mov byte [0x45ebf5], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4359c0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004309df
add esp, 0xc
test eax, eax
je 0x4359c0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043334a
add esp, 0x14
push esi
call fcn.0042ea00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435a05
push esi
call fcn.0042ea00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45edec
push 0x44c9a4
sub ecx, eax
push ecx
push eax
call fcn.0042ece6
add esp, 0x14
test eax, eax
je 0x435a05
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043334a
add esp, 0x14
jmp 0x435a07
xor esi, esi
push 0x44c9a0
push ebx
push ebp
call fcn.00430acb
add esp, 0xc
test eax, eax
je 0x435a27
push esi
push esi
push esi
push esi
push esi
call fcn.0043334a
add esp, 0x14
push dword [edi*8 + 0x45accc]
push ebx
push ebp
call fcn.00430acb
add esp, 0xc
test eax, eax
je 0x435a49
push esi
push esi
push esi
push esi
push esi
call fcn.0043334a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043d2a3
add esp, 0xc
jmp 0x435a91
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435a91
cmp ebp, 0xffffffff
je 0x435a91
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45accc]
push dword [esi]
call fcn.0042ea00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43d2a3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00434539
xor ebx, ebx
cmp dword [0x45f078], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43d379
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d459
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43d459
push eax
call fcn.004344cb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45f078], eax
call esi
push eax
call fcn.004344cb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45f07c], eax
call esi
push eax
call fcn.004344cb
mov dword [0x45f080], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042e406
test eax, eax
pop ecx
pop ecx
je 0x43d347
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043334a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43d379
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004344cb
cmp eax, ebx
pop ecx
mov dword [0x45f088], eax
je 0x43d379
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004344cb
pop ecx
mov dword [0x45f084], eax
mov eax, dword [0x45f084]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43d3fe
cmp dword [0x45f088], ecx
je 0x43d3fe
push eax
call fcn.00434542
push dword [0x45f088]
mov esi, eax
call fcn.00434542
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43d3fe
cmp edi, ebx
je 0x43d3fe
call esi
cmp eax, ebx
je 0x43d3cb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d3cb
test byte [ebp - 0x18], 1
jne 0x43d3fe
lea eax, [ebp - 0x10]
push eax
call fcn.0042e43d
test eax, eax
pop ecx
je 0x43d3e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043334a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43d3f5
or dword [ebp + 0x10], 0x200000
jmp 0x43d439
or dword [ebp + 0x10], 0x40000
jmp 0x43d439
mov eax, dword [0x45f07c]
cmp eax, dword [ebp - 8]
je 0x43d439
push eax
call fcn.00434542
cmp eax, ebx
pop ecx
je 0x43d439
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43d439
mov eax, dword [0x45f080]
cmp eax, dword [ebp - 8]
je 0x43d439
push eax
call fcn.00434542
cmp eax, ebx
pop ecx
je 0x43d439
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f078]
call fcn.00434542
cmp eax, ebx
pop ecx
je 0x43d459
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d45b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441ada
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45a9a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00441a6f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042c9b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x441b29
cmp dword [ebp - 0x1c], 5
jb 0x441b41
jmp 0x441b3d
cmp dword [ebp - 0x10], 1
jne 0x441b41
cmp dword [ebp - 0x1c], 4
ja 0x441b3d
jne 0x441b41
cmp dword [ebp - 0x18], 0
jbe 0x441b41
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44e5c0
call fcn.00441943
test eax, eax
jge 0x441b62
mov byte [0x45bea4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cd95
add ebp, 0x78
leave
ret

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1002529b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x1002529b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100252aa
pop dword [ebp - 0xc]
mov eax, 0xef918a3b
sub eax, 0xdf8f3791
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4026e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x39eb00ed
add ecx, 0xc61546c4
xor esi, esi
add esi, eax
mov edx, 0x1004bc00
add edx, dword [ebp - 0xc]
mov edi, 0x646cece8
add edi, 0xa1a61224
mov ebx, dword [edx]
add dword [ebp - 8], eax
xor ebx, edi
sub dword [ebp - 4], 0x38fa21d6
mov dword [esi], ebx
mov dword [ebp - 4], 0x1a508995
add esi, 4
add edx, 0x958f4c27
sub edx, 0x958f4c23
loop 0x10025300
add eax, 0x11197
xor ebx, ebx
add ebx, eax
add eax, 0x74131138
sub eax, 0x74131133
mov ecx, 0xdbff1793
add ecx, 0x3400e86d
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403620
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x412040]
test eax, eax
je 0x403683
cmp byte [eax + 7], 0
jne 0x403683
sub esp, 0x1c
mov byte [eax + 0x78], 1
mov dword [esp], 0
call sym._PDC_set_blink
cmp byte [0x41202e], 0
jne 0x403656
mov eax, dword [0x412040]
cmp byte [eax + 9], 0
jne 0x403661
call sym._PDC_init_atrtab
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], str.PDC_ORIGINAL_COLORS
call sym._getenv
test eax, eax
je 0x403656
mov byte [0x41202e], 1
call sym._PDC_init_atrtab
xor eax, eax
add esp, 0x1c
ret
mov eax, 0xffffffff
ret
Function at 0x4076d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
mov edx, 1
jne 0x407700
add esp, 0x14
mov eax, edx
pop ebx
pop esi
ret
mov dword [esp], 7
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x407763
mov dword [esp], eax
call sym._strlen
mov esi, eax
lea eax, [eax + 1]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
sub esp, 8
test eax, eax
mov edx, dword [esp + 0x20]
mov dword [edx], eax
je 0x407780
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._strcpy
mov eax, dword [esp + 0x24]
mov dword [eax], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
add esp, 0x14
xor edx, edx
mov eax, edx
pop ebx
pop esi
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
add esp, 0x14
mov edx, 2
mov eax, edx
pop ebx
pop esi
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, 3
jmp 0x4076ee

Function at 0x407790
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
mov edx, 1
jne 0x4077c0
add esp, 0x14
mov eax, edx
pop ebx
pop esi
ret
mov eax, dword [esp + 0x24]
mov dword [esp], 0x2002
lea ebx, [eax + 1]
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
sub esp, 8
test eax, eax
mov esi, eax
mov edx, 3
je 0x4077ae
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [esp + 4], esi
mov dword [esp], 7
call dword [sym.imp.USER32.dll_SetClipboardData]
sub esp, 8
test eax, eax
je 0x407850
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 4
xor edx, edx
add esp, 0x14
mov eax, edx
pop ebx
pop esi
ret
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, 1
sub esp, 4
jmp 0x4077ae

Function at 0x4078a0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x1c
movzx eax, word [esp + 0x20]
movzx edx, word [esp + 0x24]
shl eax, 0x10
or eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x40e384]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
sub esp, 8
add esp, 0x1c
ret
Function at 0x408320
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x40e384]
lea edi, [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
sub esp, 8
mov eax, dword [esp + 0x2c]
test al, al
mov dword [esp + 0x1c], eax
jne 0x408440
mov ebx, dword [0x412040]
test byte [ebx + 0x6e], 0x40
jne 0x40842d
mov byte [0x412301], 0
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x4083d4
xor esi, esi
mov eax, dword [0x41203c]
mov eax, dword [eax + 0x2c]
mov ebp, dword [eax + esi*4]
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x4083cc
xor edx, edx
lea ecx, [ebp + edx*4]
test dword [ecx], 0x400000
je 0x4083c2
mov ebx, edx
jmp 0x40839b
test byte [ebp + ebx*4 + 2], 0x40
je 0x4083a2
add ebx, 1
cmp ebx, eax
jl 0x408394
mov eax, ebx
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
sub eax, edx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._PDC_transform_line
mov edx, ebx
mov ebx, dword [0x412040]
mov eax, dword [ebx + 0x24]
add edx, 1
cmp eax, edx
jg 0x408384
add esi, 1
cmp dword [ebx + 0x20], esi
jg 0x408370
movzx eax, word [ebx + 0x10]
movzx edx, word [ebx + 0x14]
shl eax, 0x10
or eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x40e384]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
sub esp, 8
cmp byte [esp + 0x1c], 0
je 0x40841a
mov eax, dword [0x40e384]
mov dword [esp + 0x2c], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x412d48], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [0x412301], 0
sete byte [0x412301]
jmp 0x408367
mov eax, dword [0x40e384]
mov dword [esp + 0x2c], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
sub esp, 8
jmp 0x408350
Function at 0x40c160
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym._mark_section_writable

Function at 0x40c1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x412a80]
test eax, eax
jle 0x40c2c3
mov edx, dword [0x412a84]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x40c1f1
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x40c266
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x40c1e0
mov dword [esp], esi
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40c2ea
lea esi, [ebx + ebx*2]
mov ebx, dword [0x412a84]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x412a84]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40c2ca
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x40c270
add dword [0x412a80], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x40c25f
cmp eax, 0x80
je 0x40c25f
cmp eax, 8
je 0x40c25f
mov eax, dword [ebp - 0x28]
add esi, dword [0x412a84]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c25f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
xor ebx, ebx
jmp 0x40c1fb
mov eax, dword [0x412a84]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]

Function at 0x40c9c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40c9f8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40c9ee
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40c9fa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40c9e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40d320
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x2e0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x40d350
lea esp, [ebp - 8]
mov eax, 0xffffffff
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x2d4]
mov esi, 0xffffffff
mov dword [ebp - 0x2d4], 0x10003
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
mov dword [esp], ebx
cmovne esi, dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret