joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468ac9
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.00466420
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x468b64
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 [0x4cb980]
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 0x468b64
cmp eax, 1
je 0x468b85
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 0x468b64
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x468b31
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x468b60
xor eax, eax
inc eax
jmp 0x468ba4
cmp edi, eax
jae 0x468b68
xor eax, eax
jmp 0x468ba4
cmp eax, esi
jae 0x468b6f
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 [0x4cb980]
jmp 0x468b88
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 0x46ab5f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4cd290]
push edi
jae 0x46ad34
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4cd2a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x46ad34
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x46ac0a
test dl, 2
jne 0x46ac0a
test dl, 0x48
je 0x46abd4
cmp byte [eax + 5], 0xa
je 0x46abd4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46ac1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x46ac05
mov dword [0x4cb978], ecx
jmp 0x46ad3b
cmp eax, 0x6d
jne 0x46ac11
xor eax, eax
jmp 0x46ad48
push eax
call fcn.0046a6b6
pop ecx
jmp 0x46ad45
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x46ad2f
test eax, eax
je 0x46ac44
cmp byte [ebx], 0xa
jne 0x46ac44
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46ac4d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x46ad29
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x46ad19
cmp al, 0xd
je 0x46ac7f
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x46ad0b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x46ac99
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x46ac94
add dword [ebp - 8], 2
jmp 0x46aced
mov dword [ebp - 8], eax
jmp 0x46ad07
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46acc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46ad07
cmp dword [ebp - 0x10], 0
je 0x46ad07
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46ace2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46aced
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46ad0a
cmp ebx, dword [ebp + 0xc]
jne 0x46acf2
cmp byte [ebp - 1], 0xa
jne 0x46acf2
mov byte [ebx], 0xa
jmp 0x46ad0a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004680f9
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46ad0b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x46ac63
jmp 0x46ad29
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46ad29
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x46ad48
and dword [0x4cb978], 0
mov dword [0x4cb974], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474a80
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x44]
push 0xfffffffffffffff0
push edi
call ebx
push 0xffffffffffffffec
push edi
mov dword [esi + 0xd0], eax
call ebx
mov dword [esi + 0xd4], eax
lea eax, [esi + 0xd8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push DirectSoundCreate
push 0xfffffffffffffff0
push edi
call ebx
push 8
push 0xffffffffffffffec
push edi
call ebx
push 0
push edi
call dword [sym.imp.USER32.dll_SetMenu]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x48]
push 0x473e70
push esi
push 0
push 0
mov dword [esi + 0xcc], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
mov dword [esi + 0xec], eax
jge 0x474b1c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov ebp, eax
call fcn.00441c90
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x6c]
add esp, 8
mov eax, dword [esi + 0x48]
mov edx, dword [eax]
push 0x11
push edi
push eax
call dword [edx + 0x50]
test eax, eax
mov dword [esi + 0xec], eax
jl 0x474bc6
mov edx, dword [esi + 0xcc]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [esi + 0xc8]
push edx
mov edx, dword [esi + 0xc4]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
mov dword [esi + 0xec], eax
jl 0x474b80
push 0
mov ecx, esi
call fcn.00474660
mov eax, dword [esi + 0x50]
test eax, eax
je 0x474bb8
pop edi
mov al, 1
mov byte [esi + 0xc0], al
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x1e
lea ebp, [esi + 0xf0]
push str.IDirectDraw::SetDisplayMode_:
mov ecx, ebp
call fcn.00403bd0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, eax
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x474ba4
sub ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.00405970
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
push 8
push edi
push eax
call dword [ecx + 0x50]
jmp 0x474c04
push 0x23
lea ebp, [esi + 0xf0]
push str.IDirectDraw::SetCooperativeLevel_:
mov ecx, ebp
call fcn.00403bd0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov ecx, eax
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x474bf0
sub ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.00405970
mov eax, dword [esi + 0xd0]
push eax
push 0xfffffffffffffff0
push edi
call ebx
mov ecx, dword [esi + 0xd4]
push ecx
push 0xffffffffffffffec
push edi
call ebx
mov eax, dword [esi + 0xdc]
mov edx, dword [esi + 0xe4]
mov ecx, dword [esi + 0xd8]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 0xe0]
sub edx, ecx
push edx
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x12
push str.setupFullScreen_:
push 0
lea ecx, [esi + 0xf0]
call fcn.00474370
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x47ce90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47cec0
push esi
call fcn.00484790
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x47ceb9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x47cf37
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x47cf27
mov eax, dword [esi + 8]
test eax, eax
je 0x47cee4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47cf23
cmp eax, 2
je 0x47cf27
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47ced7
cmp eax, 3
je 0x47cf0a
cmp eax, 1
jne 0x47ced7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x47ced7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x47ced7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.0047cd20
pop esi
ret
cmp eax, 0xcc
je 0x47cf57
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.0047cd20
pop esi
ret

Function at 0x47ef50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47ef5b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x47f053
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4ac568]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x47ef76
test edi, edi
je 0x47f072
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x4ac568]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x47f057
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x493d8d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x493da6
or eax, 0xffffffff
jmp 0x493e07
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x493e03
push 0x3d
push esi
call fcn.004940be
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x493e03
cmp esi, eax
je 0x493e03
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4cb9a0]
sete cl
cmp eax, dword [0x4cb9a4]
mov dword [ebp - 8], ecx
jne 0x493de9
mov edi, eax
call fcn.00493d2c
mov dword [0x4cb9a0], eax
cmp eax, ebx
jne 0x493e42
cmp dword [ebp + 0xc], ebx
je 0x493e0b
cmp dword [0x4cb9a8], ebx
je 0x493e0b
call fcn.0049210f
test eax, eax
je 0x493e42
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x493e14
xor eax, eax
jmp 0x493e06
push 4
call fcn.004627e9
cmp eax, ebx
pop ecx
mov dword [0x4cb9a0], eax
je 0x493e03
mov dword [eax], ebx
cmp dword [0x4cb9a8], ebx
jne 0x493e42
push 4
call fcn.004627e9
cmp eax, ebx
pop ecx
mov dword [0x4cb9a8], eax
je 0x493e03
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4cb9a0]
call fcn.00493cdf
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x493ea3
cmp dword [esi], ebx
je 0x493ea3
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00462714
cmp dword [ebp - 8], ebx
pop ecx
jne 0x493e86
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x493ee4
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x493e7d
mov eax, edi
shl eax, 2
push eax
push dword [0x4cb9a0]
call fcn.0046481d
cmp eax, ebx
pop ecx
pop ecx
je 0x493ee4
jmp 0x493edf
cmp dword [ebp - 8], ebx
jne 0x493f4f
cmp edi, ebx
jge 0x493eb2
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4cb9a0]
call fcn.0046481d
cmp eax, ebx
pop ecx
pop ecx
je 0x493e03
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4cb9a0], eax
cmp dword [ebp + 0xc], ebx
je 0x493f39
push dword [ebp - 4]
call fcn.00462820
inc eax
inc eax
push eax
call fcn.004627e9
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x493f39
push dword [ebp - 4]
push esi
call fcn.004639f0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x493f32
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00462714
pop ecx
cmp dword [ebp - 8], ebx
je 0x493f47
push dword [ebp - 4]
call fcn.00462714
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x493e06
push dword [ebp - 4]
call fcn.00462714
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x493e10
Function at 0x493f62
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00466420
mov eax, dword [0x4bb98c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4cd290]
mov dword [ebp - 4], eax
jae 0x4940a5
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4cd2a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4940a5
push 1
push esi
push ebx
call fcn.004680f9
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4940af
push 2
push esi
push ebx
call fcn.004680f9
add esp, 0xc
cmp eax, 0xffffffff
je 0x4940af
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x49404f
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00467ec0
push 0x8000
push ebx
call fcn.00494125
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x49400e
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00468185
add esp, 0xc
cmp eax, 0xffffffff
je 0x49402c
sub edi, eax
test edi, edi
jg 0x494003
jmp 0x494042
cmp dword [0x4cb978], 5
jne 0x49403f
mov dword [0x4cb974], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00494125
pop ecx
pop ecx
jmp 0x49408f
jge 0x49408f
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004680f9
push ebx
call fcn.0046a8a3
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x49408f
mov dword [0x4cb974], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4cb978], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004680f9
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4940b2
mov dword [0x4cb974], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00461d91
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4fe60c8a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1e3a6b93
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4014c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402530
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4051c8], eax
xor eax, eax
mov al, byte [0x4051c9]
mov dword [0x4051d4], eax
mov eax, dword [0x4051c8]
shr dword [0x4051c8], 0x10
and eax, 0xff
mov dword [0x4051d0], eax
shl eax, 8
add eax, dword [0x4051d4]
mov dword [0x4051cc], eax
call fcn.00402510
mov dword [ebp - 4], 0
call fcn.00402330
call fcn.00402320
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40714c], eax
call fcn.00401ec0
mov dword [0x405188], eax
test eax, eax
je 0x401559
cmp dword [0x40714c], 0
jne 0x401563
push 0xffffffffffffffff
call fcn.004017a0
add esp, 4
call fcn.00401c40
call fcn.00401b60
call fcn.00401770
mov esi, dword [0x40714c]
mov al, byte [esi]
cmp al, 0x22
je 0x40158a
cmp al, 0x20
jbe 0x4015b7
inc esi
cmp byte [esi], 0x20
ja 0x401582
jmp 0x4015b7
inc esi
cmp byte [esi], 0x22
je 0x4015b6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4015b1
xor eax, eax
mov al, bl
push eax
call fcn.00401b00
add esp, 4
test eax, eax
je 0x4015ab
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401593
cmp byte [esi], 0x22
jne 0x4015b7
inc esi
cmp byte [esi], 0
je 0x4015c7
cmp byte [esi], 0x20
ja 0x4015c7
inc esi
cmp byte [esi], 0
jne 0x4015bc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4015eb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004017a0
jmp 0x40162c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4017e0
Capabilities:
Terminate process

Disassembly:
mov dword [0x405200], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4051fc], bl
jne 0x40183c
cmp dword [0x407148], 0
je 0x40182a
mov esi, dword [0x407140]
sub esi, 4
cmp esi, dword [0x407148]
jb 0x40182a
mov eax, dword [esi]
test eax, eax
je 0x40181f
call eax
sub esi, 4
cmp esi, dword [0x407148]
jae 0x401817
push 0x40501c
push 0x405014
call fcn.00401860
add esp, 8
push 0x405024
push 0x405020
call fcn.00401860
add esp, 8
test ebx, ebx
jne 0x40185d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x401ec0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x4052a8], 0
push ebx
push esi
push edi
push ebp
jne 0x401f10
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x401eee
mov dword [0x4052a8], 1
mov ebx, dword [esp + 0x10]
jmp 0x401f1e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x401f06
mov dword [0x4052a8], 2
jmp 0x401f1e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4052a8], 1
jne 0x401fcd
test edi, edi
jne 0x401f41
call esi
mov edi, eax
test edi, edi
jne 0x401f41
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x401f5b
add esi, 2
cmp word [esi], 0
jne 0x401f49
add esi, 2
cmp word [esi], 0
jne 0x401f49
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x401fbc
push ebp
call fcn.00402b60
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x401fbc
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401fab
push ebx
call fcn.00402b40
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4052a8], 2
jne 0x402051
test ebx, ebx
jne 0x401ff0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x401ff0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x402005
inc ebp
cmp byte [ebp], 0
jne 0x401ff7
inc ebp
cmp byte [ebp], 0
jne 0x401ff7
sub ebp, ebx
inc ebp
push ebp
call fcn.00402b60
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40202a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret