joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421fc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x40]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x2c], esi
call fcn.00420140
add esp, 0x14
test eax, eax
jne 0x422126
movzx eax, word [esi + 0x1e]
movzx edx, byte [ebx + 8]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0xc], ecx
movzx ecx, word [ebx + 0x14]
push edi
movzx edi, word [ebx + 0xe]
lea ecx, [edi + ecx*2]
mov edi, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
lea esi, [edx + eax]
mov edx, ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov ah, byte [esi + 5]
shr ecx, 2
push ebx
push ebp
mov al, byte [esi + 6]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
lea esi, [eax + edx]
mov edx, dword [esp + 0x18]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041dff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x422116
movzx ecx, byte [ebx + 2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x18]
lea edi, [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + 2]
test al, al
mov byte [ebp + 2], al
je 0x42209a
mov word [ebp + 0x12], 0
mov eax, dword [ebp + 0x44]
movzx ecx, byte [eax]
and ecx, 0xfffffff7
push ecx
mov esi, ebx
call fcn.0041e160
movzx eax, byte [ebx + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x44]
push edx
lea edx, [eax + ecx + 8]
push edx
call fcn.00418ba0
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x16]
add esp, 0xc
test al, al
je 0x42210b
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebp + 0x4c]
mov bl, 5
call fcn.0041d790
mov esi, eax
add esp, 4
test esi, esi
jne 0x422116
cmp word [ebp + 0x14], ax
jbe 0x42210b
lea esp, [esp]
mov eax, esi
mov edi, ebp
call fcn.0041d970
call fcn.0041db00
test eax, eax
jne 0x422124
movzx ecx, word [ebp + 0x14]
inc esi
cmp esi, ecx
jl 0x4220f0
push ebp
call fcn.00421270
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0x48]
push edx
call fcn.0042fdd0
add esp, 4
mov eax, esi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x432880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x64]
push ebx
mov ebx, dword [ecx + 0x20]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov eax, dword [edi]
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
je 0x432a55
movzx edx, byte [ebx + 8]
mov ecx, dword [esp + 0x68]
cmp edx, ecx
jne 0x432a4a
movzx eax, byte [ebx + 9]
cmp eax, dword [esp + 0x70]
jne 0x432a4a
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x4328e6
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 0x2c]
jne 0x432a4a
cmp ecx, 0x64
jne 0x432907
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x432907
mov esi, dword [esp + 0x6c]
push eax
call fcn.00432520
add esp, 4
test eax, eax
je 0x432a4a
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x432921
cmp ebx, dword [eax + 0x1c]
je 0x432a4a
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x432911
mov eax, dword [ebx]
mov esi, dword [esp + 0x64]
push 0xffffffffffffffff
push eax
push str.___TRIGGER__s
push esi
call fcn.00410850
mov ecx, dword [edi + 0xc]
add esp, 0xc
push eax
push 0
push 0
push 0
push 0x13
push ecx
call fcn.00416ca0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor edx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0xdc]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [edi + 0xdc], edx
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x64], edi
call fcn.004348f0
mov edx, dword [edi + 0xc]
push edx
call fcn.00414b30
mov ebp, eax
mov eax, dword [ebx + 0xc]
push eax
push esi
call fcn.0043ae80
mov ecx, dword [esp + 0x98]
mov esi, eax
mov al, byte [ecx + 0x1e]
add esp, 0x34
test al, al
jne 0x432a89
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.0043ba30
add esp, 8
test eax, eax
jne 0x432a89
push 8
push ebp
push esi
push edi
call fcn.0043d170
push esi
call fcn.0043a4e0
mov eax, dword [esp + 0x94]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
call fcn.00432670
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
push eax
mov dword [edi + 0xdc], edx
call fcn.00434920
mov ecx, dword [edi + 0xc]
push ebp
push ecx
call fcn.00414b80
add esp, 0x28
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x4328b0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x432a6a
mov edx, dword [eax]
mov ecx, dword [esp + 0x28]
or edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x432a7f
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
or ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x38]
push esi
mov dword [edi + 0xdc], edx
call fcn.0043a4e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
Function at 0x43a6a0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x43a6ad
xor eax, eax
pop edi
ret
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x48
push ebp
call fcn.00417d70
mov esi, eax
add esp, 8
test esi, esi
jne 0x43a6c8
pop esi
pop ebp
pop edi
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
push ebp
call fcn.00439a60
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
push ebp
call fcn.0043a580
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebp
call fcn.0043ae80
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebp
call fcn.00439a60
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebp
call fcn.0043ae80
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
push ebp
call fcn.00439a60
mov dword [esi + 0x1c], eax
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
push ebp
call fcn.0043a6a0
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x2c]
push eax
push ebp
call fcn.0043ae80
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add esp, 0x40
push ecx
push ebp
call fcn.0043ae80
mov dword [esi + 0x30], eax
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
mov cl, byte [edi + 7]
add esp, 8
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 7], cl
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x28], 0
mov eax, esi
pop esi
pop ebp
pop edi
ret
Function at 0x44c184
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.0044c380
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44c21f
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 [0x46b730]
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 0x44c21f
cmp eax, 1
je 0x44c240
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 0x44c21f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44c1ec
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44c21b
xor eax, eax
inc eax
jmp 0x44c25f
cmp edi, eax
jae 0x44c223
xor eax, eax
jmp 0x44c25f
cmp eax, esi
jae 0x44c22a
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 [0x46b730]
jmp 0x44c243
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 0x44d23e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x463ef0
call fcn.0044f6e0
mov edi, 0x94
mov eax, edi
call fcn.0044c380
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 [0x46b730], ecx
mov eax, dword [esi + 4]
mov dword [0x46b73c], eax
mov edx, dword [esi + 8]
mov dword [0x46b740], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46b734], esi
cmp ecx, 2
je 0x44d29e
or esi, 0x8000
mov dword [0x46b734], esi
shl eax, 8
add eax, edx
mov dword [0x46b738], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44d2d9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d2d9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44d2f1
cmp eax, 0x20b
je 0x44d2de
mov dword [ebp - 0x1c], esi
jmp 0x44d305
cmp dword [ecx + 0x84], 0xe
jbe 0x44d2d9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44d2ff
cmp dword [ecx + 0x74], 0xe
jbe 0x44d2d9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044f746
pop ecx
test eax, eax
jne 0x44d319
push 0x1c
call fcn.0044d21a
pop ecx
call fcn.00451438
test eax, eax
jne 0x44d32a
push 0x10
call fcn.0044d21a
pop ecx
call fcn.004552ef
mov dword [ebp - 4], esi
call fcn.00452ad3
test eax, eax
jge 0x44d343
push 0x1b
call fcn.0044d1f5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46ce30], eax
call fcn.004551cd
mov dword [0x46b590], eax
call fcn.0045512b
test eax, eax
jge 0x44d369
push 8
call fcn.0044d1f5
pop ecx
call fcn.00454ef8
test eax, eax
jge 0x44d37a
push 9
call fcn.0044d1f5
pop ecx
push 1
call fcn.00454377
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44d390
push eax
call fcn.0044d1f5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00454e9b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44d3b1
movzx eax, word [ebp - 0x40]
jmp 0x44d3b4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b1e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44d3d2
push edi
call fcn.004544a4
call fcn.004544c6
jmp 0x44d404
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044f71b
ret
Function at 0x452779
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x469d0c]
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 0x4527aa
xor eax, eax
jmp 0x452933
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 + 0x46bce0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4527e6
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00458b7f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4528c1
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4528ff
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 0x45284a
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45283b
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 0x45281b
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 0x45288a
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x452893
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x45280c
jmp 0x452895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x45292e
cmp dword [ebp - 0x6c], edi
je 0x4528ff
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4528f4
call fcn.004525d2
mov dword [eax], 9
call fcn.004525db
mov dword [eax], esi
jmp 0x452929
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 0x4528e9
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x452895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x452895
push dword [ebp - 0x6c]
call fcn.004525e4
pop ecx
jmp 0x452929
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x452917
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x452917
xor eax, eax
jmp 0x452931
call fcn.004525d2
mov dword [eax], 0x1c
call fcn.004525db
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x452931
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0044b588
add ebp, 0x3a0
leave
ret
Function at 0x4543e1
Capabilities:
Terminate process

Disassembly:
push 8
push 0x464a48
call fcn.0044f6e0
push 8
call fcn.0044f8ea
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46b770], esi
jne 0x454415
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x46b76c], esi
mov al, byte [ebp + 0x10]
mov byte [0x46b768], al
cmp dword [ebp + 0xc], edi
jne 0x45445f
cmp dword [0x46ba84], edi
je 0x45444f
mov eax, dword [0x46ba80]
sub eax, 4
mov dword [0x46ba80], eax
cmp eax, dword [0x46ba84]
jb 0x45444f
mov eax, dword [eax]
cmp eax, edi
je 0x454430
call eax
jmp 0x454430
push 0x469068
mov eax, 0x469060
call fcn.0045435f
pop ecx
push 0x469074
mov eax, 0x46906c
call fcn.0045435f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x454490
cmp dword [ebp + 0x10], edi
jne 0x45449e
mov dword [0x46b770], esi
push dword [ebp + 8]
call fcn.0045431d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x45449d
push 8
call fcn.0044f835
pop ecx
ret
call fcn.0044f71b
ret
Function at 0x4544e4
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 0x454512
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 0x454519
cmp ebx, dword [eax + 4]
jae 0x454519
xor eax, eax
jmp 0x454709
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45452a
xor eax, eax
inc eax
jmp 0x454708
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x454540
cmp ecx, edx
jae 0x454685
cmp dword [eax + 4], 0
je 0x454549
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x454531
cmp dword [ebp + 8], 0
je 0x45456b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x454685
cmp eax, esi
jae 0x454685
mov eax, dword [0x46b778]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x454590
cmp dword [esi*4 + 0x46b780], edi
je 0x454689
inc esi
cmp esi, eax
jl 0x45457e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x454705
cmp dword [ebp - 8], 0x1000000
jne 0x454705
test byte [ebp - 0xc], 0xcc
je 0x45460e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x454705
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x454705
cmp word [eax + 0x18], 0x10b
jne 0x454705
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x454705
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45460e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45460e
test byte [ecx + 0x27], 0x80
jne 0x454685
push 1
push 0x46b7c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x454522
mov ecx, dword [0x46b778]
test ecx, ecx
mov edx, ecx
jle 0x454642
lea eax, [ecx*4 + 0x46b77c]
cmp dword [eax], edi
je 0x454642
dec edx
sub eax, 4
test edx, edx
jg 0x454636
test edx, edx
jne 0x454673
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45464f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x454667
lea eax, [edx*4 + 0x46b780]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x454655
cmp ecx, 0x10
jge 0x454673
inc ecx
mov dword [0x46b778], ecx
push 0
push 0x46b7c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x454522
xor eax, eax
jmp 0x454708
test esi, esi
jle 0x454522
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46b7c0
call ebx
test eax, eax
jne 0x454522
cmp dword [esi*4 + 0x46b780], edi
je 0x4546df
mov eax, dword [0x46b778]
lea esi, [eax - 1]
test esi, esi
jl 0x4546cd
cmp dword [esi*4 + 0x46b780], edi
je 0x4546c9
dec esi
jns 0x4546bd
test esi, esi
jge 0x4546dd
cmp eax, 0x10
jge 0x4546d8
inc eax
mov dword [0x46b778], eax
lea esi, [eax - 1]
jmp 0x4546df
je 0x4546f7
xor ecx, ecx
test esi, esi
jl 0x4546f7
lea eax, [ecx*4 + 0x46b780]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4546e5
push 0
push 0x46b7c0
call ebx
jmp 0x454522
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454b87
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x469d0c]
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 + 0x46a5d0]
je 0x454bbc
inc eax
cmp eax, 0x13
jb 0x454bad
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46a5d0]
jne 0x454ce2
mov eax, dword [0x46b598]
cmp eax, 1
je 0x454cba
cmp eax, edx
jne 0x454bec
cmp dword [0x469d4c], 1
je 0x454cba
cmp ecx, 0xfc
je 0x454ce2
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 0x454c22
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00454790
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0044ddd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x454c56
mov eax, edi
push eax
call fcn.0044ddd0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4634b0
push edi
call fcn.0044cc50
add esp, 0x10
push edi
call fcn.0044ddd0
push dword [esi + 0x46a5d4]
mov ebx, eax
call fcn.0044ddd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044c380
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00454790
push edi
push ebx
call fcn.004547a0
push 0x4647e8
push ebx
call fcn.004547a0
push dword [esi + 0x46a5d4]
push ebx
call fcn.004547a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00458335
add esp, 0x2c
jmp 0x454ce2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46a5d4]
push dword [esi]
call fcn.0044ddd0
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.0044b588
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x458335
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46ba48], ebx
push esi
push edi
jne 0x4583b5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4583f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x465ee4
push edi
call esi
test eax, eax
mov dword [0x46ba48], eax
je 0x4583f0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46ba4c], eax
call esi
cmp dword [0x46b730], 2
mov dword [0x46ba50], eax
jne 0x4583b5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46ba58], eax
je 0x4583b5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46ba54], eax
mov eax, dword [0x46ba54]
test eax, eax
je 0x4583fa
call eax
test eax, eax
je 0x4583e1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46ba58]
test eax, eax
je 0x4583e1
test byte [ebp - 8], 1
jne 0x4583fa
cmp dword [0x46b73c], 4
jb 0x4583f4
or byte [ebp + 0x12], 0x20
jmp 0x458419
xor eax, eax
jmp 0x458429
or byte [ebp + 0x12], 4
jmp 0x458419
mov eax, dword [0x46ba4c]
test eax, eax
je 0x458419
call eax
mov ebx, eax
test ebx, ebx
je 0x458419
mov eax, dword [0x46ba50]
test eax, eax
je 0x458419
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46ba48]
pop edi
pop esi
pop ebx
leave
ret