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

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x772a1713
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x730b2585
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x730a954b
push 0xffffffffffffffff
call fcn.7729863d
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x772a14a7
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.772a14bf
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x772a1707
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x772a16db
Function at 0x772b0f0d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x772b0f2f
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x772b0f2f
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x772b0f2f
ret
cmp word [ebx + 4], 0x14c
jne 0x772b0f2f
test word [ebx + 0x16], 2
je 0x772b0f2f
test word [ebx + 0x16], 0x100
je 0x772b0f2f
cmp word [ebx + 0x18], 0x10b
jne 0x772b0f2f
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x772b0f2f
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x772b0fbb
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x772b0f4f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.77297e9a
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x772b0f2f
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x772b0fbb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x772b0f2f
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x772b0f2f
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x772b0f2f
ret
cmp word [ebx + 4], 0x14c
jne 0x772b0f2f
test word [ebx + 0x16], 2
je 0x772b0f2f
test word [ebx + 0x16], 0x100
je 0x772b0f2f
cmp word [ebx + 0x18], 0x10b
jne 0x772b0f2f
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x772b0f2f
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x772b0fbb
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x772b0f4f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.77297e9a
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x772b0f2f
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x772b1072
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x772b10cb
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x772b1072
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x772b1081
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x776b6d24
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x772b10d2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77297f48
cmp eax, dword [ebp + 0xc]
pop eax
je 0x772b1171
add edi, 4
add eax, 2
dec ecx
jne 0x772b10b7
call 0x772b111e
loope 0x772b1114
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x772b116e
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x772b117f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x772b1132
cmp eax, ecx
ja 0x772b1132
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x772b11bc
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x772b11b2
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.77298427
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x772b1081
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x772b10cb
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x772b1072
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x772b1081
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x776b6d24
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x772b10d2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77297f48
cmp eax, dword [ebp + 0xc]
pop eax
je 0x772b1171
add edi, 4
add eax, 2
dec ecx
jne 0x772b10b7
call 0x772b111e
loope 0x772b1114
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x772b116e
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x772b117f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x772b1132
cmp eax, ecx
ja 0x772b1132
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x772b11bc
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x772b11b2
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.77298427
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x589b14ea
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7ca00a4b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401bde
Capabilities:
Terminate process

Disassembly:
push 2
call fcn.00402731
pop ecx
mov dword [0x403370], eax
call fcn.00401bca
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x401d00
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push ebx
mov ebx, ecx
push esi
push edi
push eax
test edx, edx
je 0x401d31
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
jmp 0x401d37
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, eax
mov dword [ebp - 0x24], eax
mov ecx, 0x720
sub esi, ecx
neg esi
sbb esi, esi
and esi, eax
jne 0x401daf
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov esi, eax
test esi, esi
jne 0x401db9
mov edi, dword [ebp - 0x1c]
cmp dword [ebp + 8], eax
je 0x401d84
mov al, byte [edi]
test al, al
je 0x401d84
movsx eax, al
push eax
call dword [sym.imp.msvcrt.dll_toupper]
mov byte [edi], al
inc edi
pop ecx
mov al, byte [edi]
test al, al
jne 0x401d6d
mov edi, dword [ebp - 0x1c]
sub ebx, 0
je 0x401dd9
sub ebx, 1
je 0x401dcc
sub ebx, 1
jne 0x401d9d
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.00401f03
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov eax, dword [ebp - 0x24]
mov ecx, 0x720
test esi, esi
jne 0x401db9
cmp eax, ecx
mov eax, ecx
je 0x401dbb
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402220
leave
ret 0xc
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.00401e19
jmp 0x401d9d
push 0x401224
push edi
push 0x401564
push 0xff
push dword [ebp - 0x20]
call fcn.00401c56
add esp, 0x14
test eax, eax
jns 0x401d9d
push eax
push 0x4012c0
push 2
call fcn.00402731
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x401e19
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x25
mov ebx, edx
lea edi, [ebp - 0xa4]
mov edx, ecx
mov esi, 0x401598
pop ecx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 9
pop ecx
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xe]
mov esi, edx
stosd dword es:[edi], eax
push 0x401224
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx]
lea edi, [ebp - 0x9a]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 9]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0xe]
mov dword [ebp - 0x50], eax
mov ax, word [edx + 0x13]
mov word [ebp - 0x43], ax
mov ax, word [edx + 0x15]
mov word [ebp - 0x3d], ax
mov ax, word [edx + 0x18]
mov word [ebp - 0x37], ax
mov ax, word [edx + 0x1a]
mov word [ebp - 0x31], ax
mov ax, word [edx + 0x1c]
mov word [ebp - 0x2b], ax
mov ax, word [edx + 0x1e]
mov word [ebp - 0x25], ax
mov ax, word [edx + 0x20]
mov word [ebp - 0x1f], ax
mov ax, word [edx + 0x22]
mov word [ebp - 0x19], ax
lea eax, [ebp - 0xa4]
push eax
push 0xff
push ebx
call fcn.00401c56
add esp, 0x10
pop edi
pop esi
pop ebx
test eax, eax
jns 0x401ef5
push eax
push 0x4012c0
push 2
call fcn.00402731
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402220
leave
ret 4

Function at 0x401f03
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
push ecx
push ecx
mov esi, edx
mov edx, 0xff
push ecx
mov ecx, esi
call fcn.00401cb9
test eax, eax
jns 0x401f3b
push eax
push 0x4012c0
push 2
call fcn.00402731
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
push ecx
mov ecx, esi
call fcn.00401c07
pop esi
test eax, eax
js 0x401f1b
ret
Function at 0x401ff3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x402750
call fcn.00402558
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402038
cmp eax, esi
jne 0x40202b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40203b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40200f
xor esi, esi
inc esi
cmp dword [0x403368], esi
jne 0x40204d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402087
cmp dword [0x403368], ebx
jne 0x402081
mov dword [0x403368], esi
push 0x4010cc
push 0x4010c0
call fcn.0040216c
pop ecx
pop ecx
test eax, eax
je 0x402087
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40215c
mov dword [0x403014], esi
cmp dword [0x403368], esi
jne 0x4020aa
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403368], 2
test edi, edi
jne 0x4020b7
xor eax, eax
mov ecx, 0x403364
xchg dword [ecx], eax
cmp dword [0x40336c], 0
je 0x4020e3
push 0x40336c
call fcn.004023b0
pop ecx
test eax, eax
je 0x4020e3
push ebx
push 2
push ebx
mov esi, dword [0x40336c]
mov ecx, esi
call dword [0x4040a0]
call esi
push dword [0x403020]
push dword [0x40301c]
push dword [0x403018]
call fcn.004018d0
add esp, 0xc
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x402141
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403014], 0
jne 0x402155
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00534000
jmp 0x401ff3

Function at 0x402294
Capabilities:
Parse pe header

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

Function at 0x402360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40239e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402396
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4023a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402386
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402470
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4024a1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4024a1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4024a1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40206c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor esi, esi
push 0x1a
mov dword [ebp - 4], eax
mov edi, esi
pop ebx
xor edx, edx
inc edx
mov ecx, edi
shl edx, cl
test eax, edx
je 0x4020bc
lea eax, [edi + 0x41]
push eax
lea eax, [ebp - 8]
push str._c:_
push eax
call fcn.0040131e
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x4020b8
cmp eax, 2
jne 0x4020b9
inc esi
mov eax, dword [ebp - 4]
inc edi
dec ebx
jne 0x402084
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402115
Capabilities:
Terminate process

Disassembly:
call fcn.00409b89
test eax, eax
je 0x402165
call fcn.004099bf
sub eax, 0x61
je 0x40215b
push 3
pop ecx
sub eax, ecx
je 0x402150
sub eax, 0xf
je 0x402145
sub eax, 4
je 0x40213e
dec eax
jne 0x402165
jmp 0x402166
mov dword [0x443dfc], ecx
ret
mov dword [0x443dfc], 4
ret
mov dword [0x443dfc], 2
ret
mov dword [0x443dfc], 1
ret
push 0
call fcn.00407a1e
int3

Function at 0x40216e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x443ad8]
mov edx, dword [0x443ac8]
push ebx
mov ebx, dword [0x443df8]
push esi
mov esi, dword [0x443ac4]
push edi
xor edi, edi
inc edi
mov dword [ebp - 4], eax
mov eax, dword [0x443c68]
mov dword [0x443ad8], esi
mov dword [0x443c68], edx
cmp ebx, edi
jle 0x4021de
mov esi, dword [ebp - 4]
mov edx, eax
mov ecx, dword [edi*4 + 0x443ad8]
mov eax, dword [edi*4 + 0x443c68]
mov dword [edi*4 + 0x443ad8], esi
mov dword [edi*4 + 0x443c68], edx
inc edi
mov esi, ecx
mov edx, eax
cmp edi, ebx
jl 0x4021ad
mov edx, dword [0x443ac8]
mov esi, dword [0x443ac4]
mov eax, dword [0x443dfc]
dec eax
je 0x4021fe
dec eax
je 0x4021fb
dec eax
je 0x4021f2
dec eax
jne 0x402205
inc edx
jmp 0x4021f3
dec edx
mov dword [0x443ac8], edx
jmp 0x402205
inc esi
jmp 0x4021ff
dec esi
mov dword [0x443ac4], esi
cmp esi, 0x13
ja 0x40226c
cmp edx, 0x13
ja 0x40226c
xor eax, eax
test ebx, ebx
jle 0x40222c
cmp dword [eax*4 + 0x443ad8], esi
jne 0x402227
cmp dword [eax*4 + 0x443c68], edx
je 0x40226c
inc eax
cmp eax, ebx
jl 0x402215
cmp esi, dword [0x443acc]
jne 0x402267
cmp edx, dword [0x443ad0]
jne 0x402267
inc dword [0x443ad4]
call fcn.00407a32
cdq
push 0x14
pop esi
idiv esi
mov dword [0x443acc], edx
call fcn.00407a32
cdq
idiv esi
inc dword [0x443df8]
mov dword [0x443ad0], edx
pop edi
pop esi
pop ebx
leave
ret
push str.Game_Over_
push 0x443f28
call section..text
push eax
call fcn.00403ae1
add esp, 0xc
push 0
call fcn.00407a1e
int3
Function at 0x41f796
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441768]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00411908
mov dword [ebp - 0x14], eax
cmp dword [0x446f94], edi
jne 0x41f887
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41f814
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f967
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41f967
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f967
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x446f94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x446f98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x446f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446fa4], eax
test eax, eax
je 0x41f884
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446fa0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f8ac
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f89f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41f8c1
push 4
pop eax
jmp 0x41f969
cmp dword [ebp - 0x14], edi
je 0x41f8c1
push dword [0x446f94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41f8a6
mov eax, dword [0x446fa0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41f91f
cmp dword [0x446fa4], esi
je 0x41f91f
push eax
call ebx
push dword [0x446fa4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f91f
test eax, eax
je 0x41f91f
call ecx
test eax, eax
je 0x41f914
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41f914
test byte [ebp - 8], 1
jne 0x41f91f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41f94f
mov eax, dword [0x446f98]
cmp eax, esi
je 0x41f94c
push eax
call ebx
test eax, eax
je 0x41f94c
call eax
mov edi, eax
test edi, edi
je 0x41f94c
mov eax, dword [0x446f9c]
cmp eax, esi
je 0x41f94c
push eax
call ebx
test eax, eax
je 0x41f94c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x446f94]
call ebx
test eax, eax
je 0x41f967
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41f969
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409d06
leave
ret