joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d180
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x2b8]
test eax, eax
jne 0x45d193
xor eax, eax
pop ebp
pop ecx
ret
push ebx
mov ebx, dword [ebp + 0x2c0]
push edi
sub ebx, dword [ebp + 0x2bc]
push 0
inc ebx
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x45d1ce
mov eax, dword [ebp + 0x140]
push 0x10
push 0x434400
push 0x43444c
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
lea ecx, [ebx + 4]
push ecx
push 0x2042
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x45d20b
call dword [sym.imp.user32.dll_CloseClipboard]
mov edx, dword [ebp + 0x140]
push 0x10
push 0x434400
push 0x43442c
push edx
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, dword [ebp + 0x2bc]
mov esi, dword [ebp + 0x150]
mov ecx, ebx
mov edx, ecx
add esi, edi
shr ecx, 2
lea edi, [eax + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push esi
mov dword [eax], ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_EmptyClipboard]
mov eax, dword [ebp + 0x308]
push esi
push eax
call dword [sym.imp.user32.dll_SetClipboardData]
test eax, eax
jne 0x45d287
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
call dword [sym.imp.user32.dll_CloseClipboard]
mov ecx, dword [ebp + 0x140]
push 0x10
push 0x434400
push 0x434408
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
pop esi
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
call dword [sym.imp.user32.dll_CloseClipboard]
pop esi
pop edi
pop ebx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x45d539
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46d4bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x148]
mov dword [esp + 0xc], esi
call fcn.00460e80
xor ebx, ebx
lea ecx, [esi + 0x168]
mov dword [esp + 0x54], ebx
call fcn.00460f50
push ebx
mov byte [esp + 0x58], 1
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ecx, esi
mov dword [esi + 0x13c], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x34], ebx
call fcn.0045ca10
xor eax, eax
mov ecx, 0xb
lea edi, [esi + 0x2cc]
rep stosd dword es:[edi], eax
mov eax, dword [0x471e28]
push 0x104
lea edi, [esi + 0x43c]
push edi
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push edi
call fcn.00461510
push edi
call fcn.00461540
push edi
lea ecx, [esi + 0x38]
push 0x434514
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x14
xor eax, eax
push 0x406dd4
lea edx, [esp + 0x30]
mov ecx, 0xf
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x18], 0xfffffff5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x190
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], 3
mov byte [esp + 0x31], 2
mov byte [esp + 0x32], 1
mov byte [esp + 0x33], 0x31
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edi, dword [sym.imp.gdi32.dll_CreateFontIndirectA]
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
mov dword [esi], eax
call edi
push 0x434508
mov dword [esi + 4], eax
call dword [sym.imp.user32.dll_RegisterClipboardFormatA]
mov dword [esi + 0x308], eax
call dword [sym.imp.user32.dll_CreatePopupMenu]
push 0x434500
push 0x1001
push ebx
mov dword [esi + 0x438], eax
push eax
mov edi, dword [sym.imp.user32.dll_AppendMenuA]
call edi
mov edx, dword [esi + 0x438]
push 0x4344f8
push 0x1002
push ebx
push edx
call edi
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x45d800
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x3e0]
xor eax, eax
mov ecx, 0x16
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x434538
lea edi, [esi + 0x3f8]
push edi
mov dword [ebx], 0x58
call dword [sym.imp.kernel32.dll_lstrcpy]
lea ebp, [esi + 0x168]
mov ecx, ebp
call fcn.00460f10
test eax, eax
je 0x45d87f
mov ecx, ebp
call fcn.00460f30
push eax
call fcn.004614e0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x45d895
push ebp
call dword [sym.imp.kernel32.dll_lstrlen]
cmp eax, 0x34
ja 0x45d895
push 0x434534
push edi
call dword [sym.imp.kernel32.dll_lstrcat]
push ebp
push edi
call dword [sym.imp.kernel32.dll_lstrcat]
push edi
call dword [sym.imp.kernel32.dll_lstrlen]
jmp 0x45d895
mov ebp, dword [sym.imp.kernel32.dll_lstrcat]
push 0x434534
push edi
call ebp
push 0x434524
push edi
call ebp
mov eax, dword [esi + 0x140]
push 0xfffffffffffffff2
push eax
mov dword [esi + 0x3e4], eax
mov dword [esi + 0x3e8], 0x2001
mov dword [esi + 0x3ec], 7
call dword [sym.imp.user32.dll_GetClassLongA]
push ebx
push 0
mov dword [esi + 0x3f4], eax
mov dword [esi + 0x3f0], 0x1400
call dword [sym.imp.shell32.dll_Shell_NotifyIcon]
test eax, eax
jne 0x45d8e0
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x140]
push 0
push eax
call dword [sym.imp.user32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x460f20
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0xc]
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
ret

Function at 0x461190
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
jne 0x4611a1
xor eax, eax
pop edi
pop ecx
ret
push esi
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00462e86
add esp, 4
test eax, eax
mov dword [edi + 4], eax
jne 0x4611c3
pop esi
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [edi + 0xc]
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4611bd
mov dword [edi], esi
pop esi
mov eax, 1
pop edi
pop ecx
ret

Function at 0x4611f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0xc]
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x461217
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x46121c
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x461248
cmp edi, dword [esp + 8]
jne 0x461248
pop edi
mov eax, 1
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4629ec
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434a38
call fcn.004642ac
mov edi, 0x94
mov eax, edi
call fcn.00462760
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 [0x472598], ecx
mov eax, dword [esi + 4]
mov dword [0x4725a4], eax
mov edx, dword [esi + 8]
mov dword [0x4725a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47259c], esi
cmp ecx, 2
je 0x462a4c
or esi, 0x8000
mov dword [0x47259c], esi
shl eax, 8
add eax, edx
mov dword [0x4725a0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x462a87
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x462a87
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x462a9f
cmp eax, 0x20b
je 0x462a8c
mov dword [ebp - 0x1c], esi
jmp 0x462ab3
cmp dword [ecx + 0x84], 0xe
jbe 0x462a87
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x462aad
cmp dword [ecx + 0x74], 0xe
jbe 0x462a87
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00467141
pop ecx
test eax, eax
jne 0x462ac7
push 0x1c
call fcn.004629c8
pop ecx
call fcn.00463e17
test eax, eax
jne 0x462ad8
push 0x10
call fcn.004629c8
pop ecx
call fcn.0046709f
mov dword [ebp - 4], esi
call fcn.00466ea1
test eax, eax
jge 0x462af1
push 0x1b
call fcn.004629a3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x473c30], eax
call fcn.00466d7f
mov dword [0x4723c4], eax
call fcn.00466cdd
test eax, eax
jge 0x462b17
push 8
call fcn.004629a3
pop ecx
call fcn.00466aaa
test eax, eax
jge 0x462b28
push 9
call fcn.004629a3
pop ecx
push 1
call fcn.004664d1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x462b3e
push eax
call fcn.004629a3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00466a4d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x462b5f
movzx eax, word [ebp - 0x40]
jmp 0x462b62
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00451470
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x462b80
push edi
call fcn.004665fe
call fcn.00466620
jmp 0x462bb2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004642e7
ret
Function at 0x46624e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46627c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x466283
cmp ebx, dword [eax + 4]
jae 0x466283
xor eax, eax
jmp 0x466473
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x466294
xor eax, eax
inc eax
jmp 0x466472
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4662aa
cmp ecx, edx
jae 0x4663ef
cmp dword [eax + 4], 0
je 0x4662b3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46629b
cmp dword [ebp + 8], 0
je 0x4662d5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4663ef
cmp eax, esi
jae 0x4663ef
mov eax, dword [0x472548]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4662fa
cmp dword [esi*4 + 0x472550], edi
je 0x4663f3
inc esi
cmp esi, eax
jl 0x4662e8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x46646f
cmp dword [ebp - 8], 0x1000000
jne 0x46646f
test byte [ebp - 0xc], 0xcc
je 0x466378
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46646f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46646f
cmp word [eax + 0x18], 0x10b
jne 0x46646f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46646f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x466378
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x466378
test byte [ecx + 0x27], 0x80
jne 0x4663ef
push 1
push 0x472590
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x46628c
mov ecx, dword [0x472548]
test ecx, ecx
mov edx, ecx
jle 0x4663ac
lea eax, [ecx*4 + 0x47254c]
cmp dword [eax], edi
je 0x4663ac
dec edx
sub eax, 4
test edx, edx
jg 0x4663a0
test edx, edx
jne 0x4663dd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4663b9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4663d1
lea eax, [edx*4 + 0x472550]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4663bf
cmp ecx, 0x10
jge 0x4663dd
inc ecx
mov dword [0x472548], ecx
push 0
push 0x472590
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x46628c
xor eax, eax
jmp 0x466472
test esi, esi
jle 0x46628c
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x472590
call ebx
test eax, eax
jne 0x46628c
cmp dword [esi*4 + 0x472550], edi
je 0x466449
mov eax, dword [0x472548]
lea esi, [eax - 1]
test esi, esi
jl 0x466437
cmp dword [esi*4 + 0x472550], edi
je 0x466433
dec esi
jns 0x466427
test esi, esi
jge 0x466447
cmp eax, 0x10
jge 0x466442
inc eax
mov dword [0x472548], eax
lea esi, [eax - 1]
jmp 0x466449
je 0x466461
xor ecx, ecx
test esi, esi
jl 0x466461
lea eax, [ecx*4 + 0x472550]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46644f
push 0
push 0x472590
call ebx
jmp 0x46628c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46653b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x434db8
call fcn.004642ac
push 8
call fcn.0046427b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4725d8], esi
jne 0x46656f
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x4725d4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4725d0], al
cmp dword [ebp + 0xc], edi
jne 0x4665b9
cmp dword [0x473c28], edi
je 0x4665a9
mov eax, dword [0x473c24]
sub eax, 4
mov dword [0x473c24], eax
cmp eax, dword [0x473c28]
jb 0x4665a9
mov eax, dword [eax]
cmp eax, edi
je 0x46658a
call eax
jmp 0x46658a
push 0x40141c
mov eax, 0x401414
call fcn.004664b9
pop ecx
push 0x401428
mov eax, 0x401420
call fcn.004664b9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4665ea
cmp dword [ebp + 0x10], edi
jne 0x4665f8
mov dword [0x4725d8], esi
push dword [ebp + 8]
call fcn.00466477
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4665f7
push 8
call fcn.004641c6
pop ecx
ret
call fcn.004642e7
ret

Function at 0x466739
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x404174]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4045d0]
je 0x46676e
inc eax
cmp eax, 0x13
jb 0x46675f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4045d0]
jne 0x466894
mov eax, dword [0x4723cc]
cmp eax, 1
je 0x46686c
cmp eax, edx
jne 0x46679e
cmp dword [0x404164], 1
je 0x46686c
cmp ecx, 0xfc
je 0x466894
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4667d4
lea eax, [ebp - 0x80]
push 0x4356cc
push eax
call fcn.00464030
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00462fa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x466808
mov eax, edi
push eax
call fcn.00462fa0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4356c8
push edi
call fcn.00462440
add esp, 0x10
push edi
call fcn.00462fa0
push dword [esi + 0x4045d4]
mov ebx, eax
call fcn.00462fa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00462760
mov ebx, esp
push 0x4356ac
push ebx
call fcn.00464030
push edi
push ebx
call fcn.00464040
push 0x4356a8
push ebx
call fcn.00464040
push dword [esi + 0x4045d4]
push ebx
call fcn.00464040
push 0x12010
push 0x435680
push ebx
call fcn.00469f40
add esp, 0x2c
jmp 0x466894
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4045d4]
push dword [esi]
call fcn.00462fa0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00468d30
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x466ea1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00462e86
test eax, eax
pop ecx
jne 0x466ebd
or eax, 0xffffffff
jmp 0x46709a
mov dword [0x473b20], eax
mov dword [0x473b04], 0x20
lea ecx, [eax + 0x480]
jmp 0x466ef2
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x473b20]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x466ed4
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x466ff9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x466ff9
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x466f33
mov edi, eax
cmp dword [0x473b04], edi
jge 0x466f89
mov esi, 0x473b24
push ebx
call fcn.00462e86
test eax, eax
pop ecx
je 0x466f83
add dword [0x473b04], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x466f72
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x466f5c
add esi, 4
cmp dword [0x473b04], edi
jl 0x466f40
jmp 0x466f89
mov edi, dword [0x473b04]
xor ebx, ebx
test edi, edi
jle 0x466ff9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x466fee
mov cl, byte [ebp]
test cl, 1
je 0x466fee
test cl, 8
jne 0x466fb2
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x466fee
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x473b20]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00468686
test eax, eax
pop ecx
pop ecx
je 0x467019
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x466f8f
xor ebx, ebx
mov ecx, dword [0x473b20]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x46707b
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x46701e
push 0xfffffffffffffff6
pop eax
jmp 0x467028
or eax, 0xffffffff
jmp 0x467097
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x467075
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x467075
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x467053
or byte [esi + 4], 0x40
jmp 0x46705c
cmp eax, 3
jne 0x46705c
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00468686
test eax, eax
pop ecx
pop ecx
je 0x467019
inc dword [esi + 8]
jmp 0x46707f
or byte [esi + 4], 0x40
jmp 0x46707f
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x466ffb
push dword [0x473b04]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x468830
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x404174]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x468861
xor eax, eax
jmp 0x4689ea
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x473b20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x46889d
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046a5b2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x468978
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4689b6
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x468901
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4688f2
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4688d2
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x468941
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x46894a
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4688c3
jmp 0x46894c
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4689e5
cmp dword [ebp - 0x6c], edi
je 0x4689b6
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4689ab
call fcn.004666b4
mov dword [eax], 9
call fcn.004666bd
mov dword [eax], esi
jmp 0x4689e0
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4689a0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x46894c
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x46894c
push dword [ebp - 0x6c]
call fcn.004666c6
pop ecx
jmp 0x4689e0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4689ce
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4689ce
xor eax, eax
jmp 0x4689e8
call fcn.004666b4
mov dword [eax], 0x1c
call fcn.004666bd
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4689e8
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00468d30
add ebp, 0x3a0
leave
ret
Function at 0x469809
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00462760
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4698a4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x472598]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4698a4
cmp eax, 1
je 0x4698c5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4698a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x469871
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4698a0
xor eax, eax
inc eax
jmp 0x4698e4
cmp edi, eax
jae 0x4698a8
xor eax, eax
jmp 0x4698e4
cmp eax, esi
jae 0x4698af
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x472598]
jmp 0x4698c8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x469f40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x472778], ebx
push esi
push edi
jne 0x469fc0
push 0x435954
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x469ffb
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x435948
push edi
call esi
test eax, eax
mov dword [0x472778], eax
je 0x469ffb
push 0x435938
push edi
call esi
push 0x435924
push edi
mov dword [0x47277c], eax
call esi
cmp dword [0x472598], 2
mov dword [0x472780], eax
jne 0x469fc0
push 0x435908
push edi
call esi
test eax, eax
mov dword [0x472788], eax
je 0x469fc0
push 0x4358f0
push edi
call esi
mov dword [0x472784], eax
mov eax, dword [0x472784]
test eax, eax
je 0x46a005
call eax
test eax, eax
je 0x469fec
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x472788]
test eax, eax
je 0x469fec
test byte [ebp - 8], 1
jne 0x46a005
cmp dword [0x4725a4], 4
jb 0x469fff
or byte [ebp + 0x12], 0x20
jmp 0x46a024
xor eax, eax
jmp 0x46a034
or byte [ebp + 0x12], 4
jmp 0x46a024
mov eax, dword [0x47277c]
test eax, eax
je 0x46a024
call eax
mov ebx, eax
test ebx, ebx
je 0x46a024
mov eax, dword [0x472780]
test eax, eax
je 0x46a024
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x472778]
pop edi
pop esi
pop ebx
leave
ret