joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034ea
Capabilities:
Terminate process

Disassembly:
jmp 0x4508d9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4508ea
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004056d2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40360c
Capabilities:
Query environment variable

Disassembly:
jmp 0x498801
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x498812
pop esi
ret
push ebx
push edi
push esi
call fcn.004986e8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403e4f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49883a
push ebx
push esi
push edi
call fcn.004054c5
add esp, 0xc
push 0
call fcn.00406005
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40558d
Capabilities:
Parse pe header

Disassembly:
jmp 0x43f780
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43f7bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43f7bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f7bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43f7bf
cmp dword [ecx + 0x74], 0xe
jbe 0x43f7bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40632f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x412ec0
sub esp, 0x34
mov eax, dword [0x4cd024]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
xor ecx, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x24], eax
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
test eax, eax
je 0x4130a3
nop dword [eax]
mov edx, dword [ebx]
xorps xmm0, xmm0
add edx, esi
mov dword [esp + 0x38], 0
mov eax, edx
mov dword [esp + 0x3c], 0
movups xmmword [esp + 0x28], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412f31
sub eax, esi
lea ecx, [esp + 0x28]
push eax
push edx
call fcn.00405286
mov eax, dword [esp + 0x38]
lea ebp, [esp + 0x28]
mov edx, dword [esp + 0x28]
mov edi, eax
xor edi, 0x235
mov ebx, eax
cmp dword [esp + 0x3c], 0x10
cmovae ebp, edx
shr ebx, 2
xor esi, esi
test ebx, ebx
je 0x412fa9
nop dword [eax]
push ebp
push ebx
push str._x_and__p
call fcn.004021d0
imul ecx, dword [ebp + esi*4], 0x5bd1e995
add esp, 0xc
imul edi, edi, 0x5bd1e995
inc esi
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
cmp esi, ebx
jl 0x412f70
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
and eax, 3
xor ecx, ecx
sub eax, 1
je 0x412fcf
sub eax, 1
je 0x412fc5
sub eax, 1
jne 0x412fde
movsx ecx, byte [ebp + ebx*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebp + ebx*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebp + ebx*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x4c]
je 0x413050
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add ebx, 4
mov dword [esp + 0x18], ebx
cmp eax, 0x10
jb 0x413037
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41302d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130bc
push ecx
push edx
call fcn.00401a0a
add esp, 8
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x20]
jb 0x412f10
jmp 0x4130a3
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x4130a3
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x413099
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130bc
push ecx
push edx
call fcn.00401a0a
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f8b
add esp, 0x34
ret
call fcn.00404606
int3
Function at 0x490c82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d75
mov eax, dword [0x4cd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405c22
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x490cc4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x490e20
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405d76
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d08f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403184
mov ecx, dword [esi*4 + 0x4d08f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x490e19
cmp eax, dword [edi + ecx + 0x24]
jne 0x490e19
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490e19
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403184
add esp, 0x14
test edx, edx
jl 0x490e19
jg 0x490d8f
test eax, eax
jb 0x490e19
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x490e19
jl 0x490da9
cmp dword [ebp - 0x1008], eax
ja 0x490e19
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490dc7
test ebx, ebx
je 0x490e00
cmp ecx, edi
jae 0x490e00
mov al, byte [ecx]
cmp al, 0xd
jne 0x490de1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490ded
cmp byte [ecx + 1], 0xa
jne 0x490ded
inc ecx
jmp 0x490ded
movzx eax, al
movsx eax, byte [eax + 0x4cdb88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490dc7
cmp edx, ebx
jne 0x490dc7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x490e1e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f8b
leave
ret
Function at 0x496da0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x496deb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497262
test al, al
jne 0x496de5
sub edx, 2
cmp edx, edi
jne 0x496dcb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x496e0d
lea eax, [edi + 2]
cmp edx, eax
je 0x496e0d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00496999
add esp, 0x10
jmp 0x496f07
push esi
lea ecx, [ebp - 0x255]
call fcn.00497262
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x496e50
push dword [ebp - 0x25c]
jmp 0x496dfd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x496e8d
cmp word [ebp - 0x226], 0
je 0x496eae
cmp word [ebp - 0x226], ax
jne 0x496e8d
cmp word [ebp - 0x224], 0
je 0x496eae
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00496999
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x496efa
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x496e67
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x496ee2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x496f07
push 0x496381
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040531c
add esp, 0x10
jmp 0x496ed7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f8b
leave
ret
Function at 0x4a29e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d08f0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a2a23
cmp byte [ebx], 0xa
jne 0x4a2a23
or byte [eax + edi + 0x28], 4
jmp 0x4a2a28
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a2b26
mov al, byte [edx]
cmp al, 0x1a
je 0x4a2b08
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2a57
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a2a7c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2a86
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a2a39
jmp 0x4a2b26
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a2b03
cmp dword [ebp - 0xc], 0
je 0x4a2b03
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d08f0]
test byte [eax + edi + 0x28], 0x48
je 0x4a2add
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a2ac8
mov byte [esi], dl
jmp 0x4a2ad9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d08f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2b26
cmp byte [ebp - 1], 0xa
jne 0x4a2aec
cmp esi, ebx
jne 0x4a2aec
mov byte [esi], 0xa
jmp 0x4a2b25
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2b26
mov byte [esi], 0xd
jmp 0x4a2b25
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d08f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2b22
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2b26
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2b82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d08f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a2bc5
cmp word [esi], dx
jne 0x4a2bc5
or byte [edi + eax + 0x28], 4
jmp 0x4a2bca
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a2d1d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a2cfd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a2c0c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2c42
cmp eax, edx
jae 0x4a2c4e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a2be4
jmp 0x4a2d1d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a2cf9
cmp dword [ebp - 0x14], 0
je 0x4a2cf9
mov eax, dword [ebx*4 + 0x4d08f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a2cd1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a2c9a
mov word [esi], cx
jmp 0x4a2ccd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d08f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d08f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d08f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a2d1d
pop ebx
cmp word [ebp - 4], bx
jne 0x4a2ce2
cmp esi, dword [ebp + 0xc]
jne 0x4a2ce2
mov word [esi], bx
jmp 0x4a2d1a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a2d1d
push 0xd
jmp 0x4a2d16
mov ecx, dword [ebx*4 + 0x4d08f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2d14
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2d1d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
push 5
push 0
push eax
push str.releasephysx27QQSpeed_Launch.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 0x10

Function at 0x401082
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x405128
call fcn.00401410
mov edi, 0x94
mov eax, edi
call fcn.00402120
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 [0x40738c], ecx
mov eax, dword [esi + 4]
mov dword [0x407398], eax
mov edx, dword [esi + 8]
mov dword [0x40739c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x407390], esi
cmp ecx, 2
je 0x4010e2
or esi, 0x8000
mov dword [0x407390], esi
shl eax, 8
add eax, edx
mov dword [0x407394], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40111d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40111d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401135
cmp eax, 0x20b
je 0x401122
mov dword [ebp - 0x1c], esi
jmp 0x401149
cmp dword [ecx + 0x84], 0xe
jbe 0x40111d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401143
cmp dword [ecx + 0x74], 0xe
jbe 0x40111d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004020c3
pop ecx
test eax, eax
jne 0x401175
cmp dword [0x407378], 1
jne 0x401162
call fcn.00401878
push 0x1c
call fcn.00401700
push 0xff
call fcn.00401565
pop ecx
pop ecx
call fcn.00402021
mov dword [ebp - 4], esi
call fcn.00401e76
test eax, eax
jge 0x40118e
push 0x1b
call fcn.0040105d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4078f4], eax
call fcn.00401d54
mov dword [0x407370], eax
call fcn.00401cb2
test eax, eax
jge 0x4011b4
push 8
call fcn.0040105d
pop ecx
call fcn.00401a7f
test eax, eax
jge 0x4011c5
push 9
call fcn.0040105d
pop ecx
push 1
call fcn.00401595
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4011db
push eax
call fcn.0040105d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401a22
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4011fc
movzx eax, word [ebp - 0x40]
jmp 0x4011ff
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40121d
push edi
call fcn.004016c0
call fcn.004016e2
jmp 0x40124f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040144b
ret
Function at 0x4015ff
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4073cc], esi
push edi
jne 0x40161f
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 [0x4073c8], esi
mov byte [0x4073c4], al
jne 0x401685
mov ecx, dword [0x4078e8]
test ecx, ecx
je 0x401666
mov eax, dword [0x4078e4]
sub eax, 4
cmp eax, ecx
jmp 0x40165f
mov eax, dword [eax]
test eax, eax
je 0x401651
call eax
mov eax, dword [0x4078e4]
sub eax, 4
cmp eax, dword [0x4078e8]
mov dword [0x4078e4], eax
jae 0x401649
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401685
mov eax, dword [edi]
test eax, eax
je 0x40167e
call eax
add edi, 4
cmp edi, esi
jb 0x401676
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x4016a4
mov eax, dword [edi]
test eax, eax
je 0x40169d
call eax
add edi, 4
cmp edi, esi
jb 0x401695
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4016be
push dword [ebp + 8]
mov dword [0x4073cc], 1
call fcn.00401565
pop ebp
ret

Function at 0x401700
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x407030]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407040]
je 0x401737
inc eax
cmp eax, 0x13
jb 0x401728
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407040]
jne 0x40185a
mov eax, dword [0x407378]
cmp eax, 1
je 0x401835
cmp eax, edx
jne 0x401767
cmp dword [0x407038], 1
je 0x401835
cmp ecx, 0xfc
je 0x40185a
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40179d
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00402260
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00402490
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4017d1
mov eax, edi
push eax
call fcn.00402490
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40516c
push edi
call fcn.00402360
add esp, 0x10
push edi
call fcn.00402490
push dword [esi + 0x407044]
mov ebx, eax
call fcn.00402490
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402120
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402260
push edi
push ebx
call fcn.00402270
push 0x405168
push ebx
call fcn.00402270
push dword [esi + 0x407044]
push ebx
call fcn.00402270
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040215d
add esp, 0x2c
jmp 0x40185a
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x407044]
push dword [esi]
call fcn.00402490
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040104f
add ebp, 0x90
leave
ret
Function at 0x40215d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4074e4], ebx
push esi
push edi
jne 0x4021dd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4074e4], eax
je 0x402218
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4074e8], eax
call esi
cmp dword [0x40738c], 2
mov dword [0x4074ec], eax
jne 0x4021dd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4074f4], eax
je 0x4021dd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4074f0], eax
mov eax, dword [0x4074f0]
test eax, eax
je 0x402222
call eax
test eax, eax
je 0x402209
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4074f4]
test eax, eax
je 0x402209
test byte [ebp - 8], 1
jne 0x402222
cmp dword [0x407398], 4
jb 0x40221c
or byte [ebp + 0x12], 0x20
jmp 0x402241
xor eax, eax
jmp 0x402251
or byte [ebp + 0x12], 4
jmp 0x402241
mov eax, dword [0x4074e8]
test eax, eax
je 0x402241
call eax
mov ebx, eax
test ebx, ebx
je 0x402241
mov eax, dword [0x4074ec]
test eax, eax
je 0x402241
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4074e4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40260a
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 0x402638
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 0x40263f
cmp ebx, dword [eax + 4]
jae 0x40263f
xor eax, eax
jmp 0x40282f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402650
xor eax, eax
inc eax
jmp 0x40282e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402666
cmp ecx, edx
jae 0x4027ab
cmp dword [eax + 4], 0
je 0x40266f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402657
cmp dword [ebp + 8], 0
je 0x402691
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4027ab
cmp eax, esi
jae 0x4027ab
mov eax, dword [0x4074f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4026b6
cmp dword [esi*4 + 0x407500], edi
je 0x4027af
inc esi
cmp esi, eax
jl 0x4026a4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40282b
cmp dword [ebp - 8], 0x1000000
jne 0x40282b
test byte [ebp - 0xc], 0xcc
je 0x402734
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40282b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40282b
cmp word [eax + 0x18], 0x10b
jne 0x40282b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40282b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402734
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402734
test byte [ecx + 0x27], 0x80
jne 0x4027ab
push 1
push 0x407540
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402648
mov ecx, dword [0x4074f8]
test ecx, ecx
mov edx, ecx
jle 0x402768
lea eax, [ecx*4 + 0x4074fc]
cmp dword [eax], edi
je 0x402768
dec edx
sub eax, 4
test edx, edx
jg 0x40275c
test edx, edx
jne 0x402799
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402775
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40278d
lea eax, [edx*4 + 0x407500]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40277b
cmp ecx, 0x10
jge 0x402799
inc ecx
mov dword [0x4074f8], ecx
push 0
push 0x407540
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402648
xor eax, eax
jmp 0x40282e
test esi, esi
jle 0x402648
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407540
call ebx
test eax, eax
jne 0x402648
cmp dword [esi*4 + 0x407500], edi
je 0x402805
mov eax, dword [0x4074f8]
lea esi, [eax - 1]
test esi, esi
jl 0x4027f3
cmp dword [esi*4 + 0x407500], edi
je 0x4027ef
dec esi
jns 0x4027e3
test esi, esi
jge 0x402803
cmp eax, 0x10
jge 0x4027fe
inc eax
mov dword [0x4074f8], eax
lea esi, [eax - 1]
jmp 0x402805
je 0x40281d
xor ecx, ecx
test esi, esi
jl 0x40281d
lea eax, [ecx*4 + 0x407500]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40280b
push 0
push 0x407540
call ebx
jmp 0x402648
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret