joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4484f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c9d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
mov eax, dword [esp + 0x6c]
mov ecx, dword [0x470d28]
add ecx, eax
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x6c], 1
call fcn.00446600
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 2
call fcn.00436320
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x64], 1
jb 0x448580
mov eax, dword [esp + 0x44]
push eax
call fcn.00461b2d
add esp, 4
mov ecx, dword [esp + 0x70]
mov edx, dword [0x470d28]
add edx, ecx
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00446600
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call fcn.00436320
cmp dword [esp + 0x58], esi
mov byte [esp + 0x64], 1
jb 0x4485c4
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00461b2d
add esp, 4
cmp dword [esp + 0x20], esi
mov eax, dword [esp + 0xc]
jae 0x4485d2
lea eax, [esp + 0xc]
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.00443d70
test eax, eax
mov eax, dword [esp + 0x20]
setl byte [esp + 0x6c]
cmp eax, esi
jb 0x448603
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00461b2d
add esp, 4
cmp dword [esp + 0x3c], esi
pop esi
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
mov dword [esp + 0x1c], 0xf
pop ebx
jb 0x448628
mov edx, dword [esp + 0x20]
push edx
call fcn.00461b2d
add esp, 4
mov ecx, dword [esp + 0x54]
mov al, byte [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x60
ret 8

Function at 0x44bbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cb58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push edi
mov dword [esp + 0x14], esi
mov byte [esi + 4], 0
call fcn.00436320
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x18], 0
call fcn.0044b410
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], edx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4527f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46cdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
push ebp
mov dword [esp + 0x10], ecx
xor ecx, ecx
push esi
mov esi, dword [ebx + 0x18]
xor ebp, ebp
cmp word [edx + 2], cx
push edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], ecx
jbe 0x452882
movzx edx, word [edx + 2]
mov dword [esp + 0x10], edx
lea edx, [esi + 8]
lea ecx, [ecx]
mov edi, dword [edx + 4]
cmp eax, edi
jb 0x452856
mov esi, dword [edx]
test esi, esi
jne 0x452850
mov esi, dword [edx + 8]
add edi, esi
cmp eax, edi
jb 0x452864
mov esi, dword [esp + 0x10]
inc ecx
add edx, 0x28
cmp ecx, esi
jl 0x452840
jmp 0x452882
mov eax, dword [ebx + 0x18]
lea edx, [ecx + ecx*4]
mov eax, dword [eax + edx*8 + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.00453380
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
cmp ebp, dword [ebx + 4]
jb 0x45289e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, dword [ebx]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
add ecx, ebp
push eax
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
add ecx, 0x418
call fcn.0045a490
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, dword [esp + 0x40]
mov dword [esp + 0x34], 0
je 0x4529b4
mov edx, dword [esp + 0x24]
mov ecx, edx
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x4529b4
cmp eax, edx
mov ecx, eax
je 0x45290f
add eax, 4
cmp eax, edx
je 0x45290f
lea esp, [esp]
mov edi, dword [eax]
cmp edi, dword [ecx]
jge 0x452908
mov ecx, eax
add eax, 4
cmp eax, edx
jne 0x452900
mov edi, dword [ecx]
lea ebp, [edi + edi*2]
shl ebp, 2
mov ecx, dword [ebp + 0x401e88]
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x40], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x452926
sub eax, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00436410
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push edi
add eax, ecx
push ebx
push esi
mov dword [esi + 0x20], eax
call dword [fcn.00401e8c]
add esp, 0xc
test al, al
je 0x452990
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esi], 1
mov dword [esi + 0x20], edx
je 0x452979
push eax
call fcn.00461b2d
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
push edi
push ebx
push esi
call dword [ebp + fcn.00401e8c]
add esp, 0xc
test al, al
mov eax, dword [esp + 0x20]
je 0x4529b4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
add ecx, edx
mov byte [esi], 1
mov dword [esi + 0x20], ecx
test eax, eax
mov bl, byte [esi]
je 0x4529c3
push eax
call fcn.00461b2d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x452d00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40c
push ebx
mov ebx, dword [esp + 0x414]
cmp dword [ebx + 4], 0x100
push ebp
mov ebp, ecx
ja 0x452d27
pop ebp
xor al, al
pop ebx
add esp, 0x40c
ret 8
mov eax, dword [ebp + 0x838]
push esi
push edi
mov edi, dword [ebp + 0x834]
cmp edi, eax
je 0x452dad
lea esi, [edi + 0x20]
lea esp, [esp]
mov al, byte [esi + 0xc]
test al, al
jne 0x452d9d
mov ecx, dword [esi]
test ecx, ecx
je 0x452d9d
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
test eax, eax
je 0x452d9d
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00437340
cmp dword [esi - 8], 0x10
jb 0x452d6e
mov eax, dword [esi - 0x1c]
jmp 0x452d71
lea eax, [esi - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push eax
sub ecx, 0x100
push ecx
add edx, 0x100
push edx
lea ecx, [esp + 0x20]
call fcn.0043f650
test al, al
jne 0x452dbc
mov eax, dword [ebp + 0x838]
add edi, 0x30
add esi, 0x30
cmp edi, eax
jne 0x452d40
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40c
ret 8
mov esi, dword [esp + 0x424]
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 4]
mov byte [esi], 1
call fcn.00436320
mov eax, dword [esp + 0x10]
add eax, 0x100
pop edi
mov dword [esi + 0x20], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x40c
ret 8

Function at 0x4533c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 0x160
push esi
mov esi, ecx
jb 0x4533fd
mov edx, dword [esp + 0xc]
mov dword [esi + 8], edx
cmp word [edx], 0x5a4d
jne 0x4533fd
mov ecx, dword [edx + 0x3c]
lea eax, [ecx + edx]
cmp eax, edx
jb 0x4533fd
add ecx, 0x120
cmp ebp, ecx
jb 0x4533fd
mov dword [esi + 0xc], eax
cmp dword [eax], 0x4550
je 0x453404
pop esi
xor al, al
pop ebp
ret 8
add eax, 4
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add eax, 0x18
mov dword [esi + 0x14], eax
movzx ecx, word [edx + 0x10]
add ecx, eax
push ebx
mov ebx, eax
mov dword [esi + 0x18], ecx
cmp word [ebx], 0x10b
je 0x453431
pop ebx
pop esi
xor al, al
pop ebp
ret 8
push edi
movzx edi, word [edx + 2]
mov edx, dword [esp + 0x14]
sub edx, ecx
add edx, ebp
mov eax, 0xcccccccd
mul edx
shr edx, 5
cmp edi, edx
ja 0x453484
xor edx, edx
test edi, edi
jle 0x45346f
lea eax, [ecx + 0x14]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x453460
cmp dword [eax], ebp
jae 0x453484
mov ecx, dword [esi + 0x10]
movzx ecx, word [ecx + 2]
inc edx
add eax, 0x28
cmp edx, ecx
jl 0x453455
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0x3c]
jb 0x453480
push eax
mov ecx, esi
call fcn.00453280
dec eax
cmp eax, ebp
jb 0x45348d
pop edi
pop ebx
pop esi
xor al, al
pop ebp
ret 8
mov edx, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi + 4], ebp
mov dword [esi], edx
pop esi
mov al, 1
pop ebp
ret 8
Function at 0x455150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cf08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov dword [esp + 0x30], 0
jb 0x45519c
mov eax, dword [eax + 4]
jmp 0x45519f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4551d2
cmp dword [esp + 0x20], edi
jb 0x4551bf
mov eax, dword [esp + 0xc]
push eax
call fcn.00461b2d
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push 0x40af40
push esi
call edi
push 0x40af38
push esi
mov ebp, eax
call edi
test eax, eax
mov dword [esp + 0x28], eax
je 0x455259
call ebp
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x455200
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00436410
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x471e1c]
add ecx, 0xfffffff0
call fcn.00454e10
mov edx, dword [0x471e1c]
mov byte [edx - 0x18], 1
cmp dword [esp + 0x24], 0x10
jb 0x455245
mov eax, dword [esp + 0x10]
push eax
call fcn.00461b2d
add esp, 4
pop ebp
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp dword [esp + 0x24], 0x10
jb 0x45526d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00461b2d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop ebp
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
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_GetStockObject]
push 0x11
nop
nop
nop
call edi
push 0x11
nop
nop
nop
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