joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ec47
Capabilities:
Encode data using xor

Disassembly:
cwde
push es
cmp dword [ecx - 0x6ea69d03], esi
test byte [ecx + 0x64], dl
jecxz 0x47ecb9
jecxz 0x47ecb9
inc ecx
adc byte [ecx + eax], 0x45
dec ecx
xor dword [eax - 0x6c6c8b0f], esi
loopne 0x47ec3d
jne 0x47ecac
lcall 0x54a9, 0x24036836
inc esi
cwde
jo 0x47ec8e
dec esp
push ebp
jp 0x47ece7
pop ss
inc esi
loopne 0x47ece3
aam 0x70
pop ecx
mov ecx, 0xe26539ba
inc edi
sbb al, 0xf1
xor al, 0x40
cmp al, 0x81
pop esp
and al, 0xd2
push ecx
pop edx
jmp 0x47ecf8
mov esi, 0xf26cb050
jne 0x47ec6c
invalid
xor al, 0xd6
mov edx, 0x652694a9
adc dword [esp + ebp*4 - 0x53c73890], 0x38d1f2b7
mov eax, 0x780a5b12
and al, byte [0x6e911673]
lodsb al, byte [esi]
jo 0x47ec76
cmp byte [edi + esi*4 - 0x47c72e0e], ch
adc bl, byte [ebx + 0xa]
js 0x47ecdd
add eax, 0x6e911673
or al, 0x4e
lodsb al, byte [esi]
push 0x13
jbe 0x47ece3
iretd
loope 0x47ed07
push es
mov ch, 0xe4
test al, bh
leave
movsd dword es:[edi], dword [esi]
pop edi
je 0x47ec8e
cmp dword [esi + 0x41], esi
nop
mul edx
pop ecx
and cl, byte [edi]
or dh, cl
invd
into
or edi, eax
xlatb
cmpsd dword [esi], dword es:[edi]
inc edi
ja 0x47ecc9
xchg byte [ecx + 0x47], dl
movsd dword es:[edi], dword [esi]
add byte [edx + 0x20], 0x6e
aaa
mov cl, 0x8d
adc byte [esi - 0x42fd78a7], 0x16
push ss
outsb dx, byte [esi]
push ebx
pop ss
push edx
call 0x67ab5087
pop esp
dec ecx
retf 0x8947
inc edi
mov dword [esi], edx
pushal
into
mov cl, 0x67
dec esi
test byte [esi + 0x239060a3], dl
pop esp
jno 0x47eca3
add ah, al
mov dword [0xa346427b], eax
stosd dword es:[edi], eax
sal byte [edi + 0x636b4422], cl
movsb byte es:[edi], byte [esi]
jbe 0x47ed70
jp 0x47ecdd
cmpsd dword [esi], dword es:[edi]
inc ecx
pop eax
pop esp
inc ecx
mov cl, 0x99
aas
sbb byte [edx + 0x5b], cl
push esi
int3
mov byte [0x4a4f53d9], al
pop esp
jp 0x47ed0e
pop esi
jbe 0x47ed9a
dec esi
bound esi, qword [edi - 0x68cbf882]
bound edx, qword [ebx + 0x5f]
adc edi, dword [edx - 9]
mov dl, 0x23
ret

Function at 0x4951b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004a877a
add esp, 8
mov byte [esp + 0x6c], 0xa
mov edx, dword [esp + 0x1c]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4951e9
push esi
lea ecx, [esp + 0x20]
call fcn.0048df0a
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 1]
push ecx
push edx
call 0x4dd3f8
add esp, 8
test esi, esi
jl 0x49566e
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax - 8]
jg 0x49566e
Function at 0x49b8ea
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x8672073d
push 0x6a
cmp dword [eax - 0x19], edx
inc ebx
leave
sbb eax, 0xf9be3ff
invalid

Function at 0x4ac4ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46f490
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48cc80]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [0x48f4f0]
push eax
lea ecx, [esp + 0x34]
call 0x4cfc1a
lea esi, [esp + 0x34]
mov dword [esp + 0x6c], 0
call fcn.004ae7ba
push 0x47ba28
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x78], 1
call fcn.004a50aa
add esp, 0xc
mov byte [esp + 0x6c], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ac54e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
call 0x4e0d30
mov ebx, dword [esp + 0x74]
lea eax, [ebx + 0x2d8]
push 0x47ba48
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x78], 4
call fcn.004a50aa
add esp, 0xc
lea edx, [esp + 0x50]
push eax

Function at 0x4ac6c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jg 0x4acb2e
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov word [edx + esi*2], 0
call fcn.004bfc3a

Function at 0x4bd179
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c8360
cmp edx, dword [eax]
je 0x4bd19b
add eax, 8
inc ecx
cmp eax, 0x4c83f0
jl 0x4bd18c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c8360]
jne 0x4bd2c9
mov eax, dword [0x4cccec]
cmp eax, 1
je 0x4bd2a3
test eax, eax
jne 0x4bd1cc
cmp dword [0x4c8288], 1
je 0x4bd2a3
cmp edx, 0xfc
je 0x4bd2c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bd203
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bdb60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bdff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bd246
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bdff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c3014
push edi
call fcn.004bfec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bdb60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bdb70
lea eax, [ebp - 0xa0]
push 0x4c2ff4
push eax
call fcn.004bdb70
push dword [esi + 0x4c8364]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bdb70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bfe34
add esp, 0x2c
pop edi
jmp 0x4bd2c9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c8364]
push 0
push eax
push dword [esi]
call fcn.004bdff0
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 0x40383d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp eax, 0x67
jl 0x403851
mov dword [ebp - 4], 0
mov esi, dword [section..data]
push 1
push dword [0x404004]
call sub.GDI32.dll_RestoreDC
sub eax, 0x6dc210
nop
test al, 0x1c
jb 0x403888
push 0x401074
call sub.USER32.dll_CharNextA
mov dword [ebp - 8], ecx
push 0xffffffffffffffff
push dword [0x404008]
call sub.GDI32.dll_SetMapMode
mov word [ebp - 0xc], 0x2f50
mov ax, word [ebp - 0x10]
push section..data
call sub.GDI32.dll_CreateFontIndirectA
mov word [ebp - 0x14], di
call sub.KERNEL32.DLL_GetACP
mov byte [0x40400c], ah
call sub.KERNEL32.DLL_GetCurrentProcess
xor ecx, dword [ebp - 8]
and ebx, dword [ebp - 4]
push 0x401088
call sub.msvcrt.dll_printf
pop ecx
push ebx
call sub.GDI32.dll_SaveDC
call sub.KERNEL32.DLL_GetCurrentProcess
or dword [ebp - 4], edi
push 0x22
call sub.USER32.dll_GetKeyState
mov word [ebp - 0x18], 0x612c
mov bh, byte [0x40400c]
mov dword [section..data], 0x70e78
push 0
call sub.msvcrt.dll_time
pop ecx
call sub.USER32.dll_GetDesktopWindow
mov dword [section..data], 0xffffffff
mov cx, word [0x404010]
push 0x3e5ad4
push edi
call sub.GDI32.dll_RestoreDC
mov cx, word [ebp - 0x1c]
xor dword [0x404014], edx
push 0
call sub.msvcrt.dll_time
pop ecx
bswap eax
test eax, 0xfae68465
jne 0x40393a
bswap esi
mov dword [ebp - 4], ebx
or edx, esi
call fcn.00403b9f
call fcn.00403b9f
cmp dword [ebp - 8], 1
jne 0x40394f
call sub.KERNEL32.DLL_GetOEMCP
push esi
call sub.GDI32.dll_CreateCompatibleDC
mov dword [section..data], 0xffffffff
push 0x404018
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov dword [0x404020], edx
call fcn.00403b9f
push 0
push 0
push 0x1c
push 0
push 0x4039c4
push 0
push 0x404024
call sub.KERNEL32.DLL_CreateTimerQueueTimer
or eax, eax
jne 0x403998
push 0
call sub.KERNEL32.DLL_ExitProcess
xor dword [ebp - 0x20], 0x3ca758
push 0xffffffffffffffff
call sub.KERNEL32.DLL_Sleep
cmp ebx, edi
js 0x4039af
add eax, 0x161360
push 0
call sub.msvcrt.dll_time
pop ecx
mov ebx, dword [0x406618]
leave
ret
Function at 0x402363
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x402ae0
call fcn.00402a08
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4023a8
cmp eax, esi
jne 0x40239b
xor esi, esi
inc esi
mov edi, esi
jmp 0x4023ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40237f
xor esi, esi
inc esi
cmp dword [0x403368], esi
jne 0x4023bd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4023f7
cmp dword [0x403368], ebx
jne 0x4023f1
mov dword [0x403368], esi
push 0x4010cc
push 0x4010c0
call fcn.004024dc
pop ecx
pop ecx
test eax, eax
je 0x4023f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4024cc
mov dword [0x403014], esi
cmp dword [0x403368], esi
jne 0x40241a
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403368], 2
test edi, edi
jne 0x402427
xor eax, eax
mov ecx, 0x403364
xchg dword [ecx], eax
cmp dword [0x40336c], 0
je 0x402453
push 0x40336c
call fcn.00402860
pop ecx
test eax, eax
je 0x402453
push ebx
push 2
push ebx
mov esi, dword [0x40336c]
mov ecx, esi
call dword [0x404098]
call esi
push dword [0x403020]
push dword [0x40301c]
push dword [0x403018]
call fcn.004017b3
add esp, 0xc
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x4024b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403014], 0
jne 0x4024c5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0052a000
jmp 0x402363

Function at 0x402744
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402b00
call fcn.00402a08
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4027a4
cmp eax, 0xffffffff
je 0x4027a4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40279d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40279d
cmp edx, 0x10000000
jae 0x40279d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40279a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402810
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40284e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402846
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402850
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402836
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x40100a
repz ret
jmp fcn.0040130e

Function at 0x4054c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004034d1
and dword [ebp - 0x14], 0
cmp dword [0x42995c], 0
mov dword [ebp - 0x18], eax
jne 0x405576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40561e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40561e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42995c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x429960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x429964], eax
call edi
push eax
call esi
mov dword [0x42996c], eax
test eax, eax
je 0x405576
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429968], eax
mov eax, dword [0x429968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4055cf
cmp dword [0x42996c], ecx
je 0x4055cf
push eax
call esi
push dword [0x42996c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4055cf
test ebx, ebx
je 0x4055cf
call edi
test eax, eax
je 0x4055c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4055c6
test byte [ebp - 8], 1
jne 0x4055cf
or dword [ebp + 0x10], 0x200000
jmp 0x405602
mov eax, dword [0x429960]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405602
mov eax, dword [0x429964]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42995c]
call esi
test eax, eax
je 0x40561e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4237d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1efbde4]
mov eax, dword [0x1efbb08]
xor ecx, ecx
mov word [0x1efbe00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1efbdec], 0x6e0072
mov dword [0x1efbdf0], 0x6c0065
mov dword [0x1efbdf4], 0x320033
mov dword [0x1efbdf8], 0x64002e
mov dword [0x1efbdfc], 0x6c006c
mov dword [0x1efbde8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x423a00
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x427dd0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1efbb08]
push edi
mov edi, dword [0x1efbde4]
push eax
call fcn.00423920
add esp, 4
cmp dword [0x1efbde4], 0x2f
jne 0x423a5d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00423970
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423ce0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
xor edi, edi
cmp dword [0x1efbde4], 0x8cf
jne 0x423d16
push 0
push 0
call ebx
cmp edi, 0x845013
jne 0x423d2d
mov eax, dword [0x428bf0]
add eax, 0xa231
mov dword [0x1efbde4], eax
cmp dword [0x1efbde4], 0x141
jne 0x423d5b
push str.viwesorihefukenapedumate_ronofo_virejesirahipuj_cafaloteceselu_dizupucucakixucafukiz
lea ecx, [ebp - 0x804]
push ecx
call esi
mov dword [0x429e80], 0xec58acac
mov dword [0x429e84], 0xffffffff
inc edi
cmp edi, 0xbbe2a98
jl 0x423d04
call fcn.00423a70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x65fec2c0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x65fec2d0
mov eax, esi
push 0
push str.SQLAnywhere_Fatal_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x65fec2ed
push esi
call fcn.65fed5ab
add esp, 4
push 1
call fcn.65fed57a
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x65fecf3d
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x65fed02a
mov eax, 0x94
call fcn.65fecf00
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x65fed09f
mov ecx, dword [esi + 0x10]
mov dword [0x66003080], ecx
mov eax, dword [esi + 4]
mov dword [0x6600308c], eax
mov edx, dword [esi + 8]
mov dword [0x66003090], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x66003084], esi
je 0x65fecfa8
or esi, 0x8000
mov dword [0x66003084], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x66003088], eax
call fcn.65ff0eb8
test eax, eax
pop ecx
je 0x65fed09f
call fcn.65fedfaa
test eax, eax
jne 0x65fecfd5
call fcn.65ff0f09
jmp 0x65fed09f
call fcn.65ff21c2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6600487c], eax
call fcn.65ff20a0
mov dword [0x6600306c], eax
call fcn.65ff1b81
test eax, eax
jl 0x65fed023
call fcn.65ff1ffe
test eax, eax
jl 0x65fed01e
call fcn.65ff1dcb
test eax, eax
jl 0x65fed01e
call fcn.65fed442
test eax, eax
jne 0x65fed01e
inc dword [0x66003068]
jmp 0x65fed0b0
call fcn.65ff1d7f
call fcn.65fedd9d
jmp 0x65fecfcb
test eax, eax
jne 0x65fed05a
cmp dword [0x66003068], eax
jle 0x65fed09f
dec dword [0x66003068]
cmp dword [0x660030bc], eax
jne 0x65fed049
call fcn.65fed59c
call fcn.65ff1d7f
call fcn.65fedd9d
call fcn.65ff0f09
jmp 0x65fed0b0
cmp eax, 2
jne 0x65fed0a3
push 0x88
push 1
call fcn.65ff1ac6
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x65fed09f
push esi
push dword [0x660023b4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x65fed099
call fcn.65feddbb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x65fed0b0
call fcn.65fed1e2
pop ecx
xor eax, eax
jmp 0x65fed0b3
cmp eax, 3
jne 0x65fed0b0
push 0
call fcn.65fede3f
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x65fed4a7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.65ff0e6d
xor esi, esi
inc esi
cmp dword [0x660030c0], esi
pop ecx
jne 0x65fed4cf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x660030bc], esi
mov byte [0x660030b8], al
jne 0x65fed535
mov ecx, dword [0x66004874]
test ecx, ecx
je 0x65fed516
mov eax, dword [0x66004870]
sub eax, 4
cmp eax, ecx
jmp 0x65fed50f
mov eax, dword [eax]
test eax, eax
je 0x65fed501
call eax
mov eax, dword [0x66004870]
sub eax, 4
cmp eax, dword [0x66004874]
mov dword [0x66004870], eax
jae 0x65fed4f9
mov eax, 0x66002024
mov esi, 0x6600202c
cmp eax, esi
mov edi, eax
jae 0x65fed535
mov eax, dword [edi]
test eax, eax
je 0x65fed52e
call eax
add edi, 4
cmp edi, esi
jb 0x65fed526
mov eax, 0x66002030
mov esi, 0x66002034
cmp eax, esi
mov edi, eax
jae 0x65fed554
mov eax, dword [edi]
test eax, eax
je 0x65fed54d
call eax
add edi, 4
cmp edi, esi
jb 0x65fed545
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x65fed565
push 8
call fcn.65ff0dd9
jmp 0x65fed577
push dword [ebp + 8]
mov dword [0x660030c0], 1
call fcn.65fed400
pop ecx
pop ebp
ret

Function at 0x65fef31b
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.65fecf00
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x65fef3b0
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 [0x66003080]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x65fef3b0
cmp eax, 1
je 0x65fef3c8
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 0x65fef3b0
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x65fef385
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x65fef3ac
xor eax, eax
inc eax
jmp 0x65fef3e4
cmp esi, ebx
jae 0x65fef3b4
xor eax, eax
jmp 0x65fef3e4
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x66003080]
jmp 0x65fef3ca
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 0x65ff2250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x66002870]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x66002520]
je 0x65ff227d
inc eax
cmp eax, 0x12
jb 0x65ff226e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x66002520]
jne 0x65ff23b1
mov eax, dword [0x66003074]
cmp eax, 1
je 0x65ff238c
cmp eax, edx
jne 0x65ff22ad
cmp dword [0x66003078], 1
je 0x65ff238c
cmp ecx, 0xfc
je 0x65ff23b1
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x65ff22e6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.65ff3320
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.65feeae0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x65ff2328
lea eax, [ebp - 0x10c]
push eax
call fcn.65feeae0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ff9e08
push edi
call fcn.65ff3cb0
add esp, 0x10
push edi
call fcn.65feeae0
push dword [esi + 0x66002524]
mov ebx, eax
call fcn.65feeae0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.65fecf00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.65ff3320
push edi
push ebx
call fcn.65ff3330
push 0x65ff9de8
push ebx
call fcn.65ff3330
push dword [esi + 0x66002524]
push ebx
call fcn.65ff3330
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.65ff65c0
add esp, 0x2c
jmp 0x65ff23b1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x66002524]
push dword [esi]
call fcn.65feeae0
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.65ff35ec
pop edi
pop esi
pop ebx
leave
ret