joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4181b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421848
push 0x41baa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x426be4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x426be0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x426bdc], ecx
shr eax, 0x10
mov dword [0x426bd8], eax
call fcn.004183d0
test eax, eax
jne 0x41821a
push 0x1c
call fcn.00418380
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041b7b0
call fcn.0041b7a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x48a074], eax
call fcn.0041b160
mov dword [0x426b88], eax
test eax, eax
je 0x41824d
mov eax, dword [0x48a074]
test eax, eax
jne 0x418257
push 0xffffffffffffffff
call fcn.0041aac0
add esp, 4
call fcn.0041aeb0
call fcn.0041adc0
call fcn.0041aa90
mov esi, dword [0x48a074]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x418336
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41829e
test al, al
je 0x41829e
and eax, 0xff
push eax
call fcn.0041ad60
add esp, 4
test eax, eax
je 0x418278
inc esi
mov dword [ebp - 0x64], esi
jmp 0x418278
cmp byte [esi], 0x22
jne 0x4182a7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4182b7
cmp al, 0x20
ja 0x4182b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4182a7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4182d8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4182dd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0041aac0
jmp 0x41831b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4182a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x418336

Function at 0x418380
Capabilities:
Terminate process

Disassembly:
cmp dword [0x426b90], 1
jne 0x41838e
call fcn.0041bb80
mov eax, dword [esp + 4]
push eax
call fcn.0041bbc0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41a610
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x48a060]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x41a7bd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x489f60]
lea edi, [ecx*4 + 0x489f60]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x41a7bd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x41a67e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x41a68f
push 2
push ebp
push eax
call fcn.0041cb20
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a7ee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x41a739
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x41a6ea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41a6d7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x41a6ba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a7df
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41a735
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41a6b6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41a7ae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41a782
cmp eax, 5
jne 0x41a76b
mov dword [0x426bd0], eax
mov dword [0x426bcc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0041d610
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x41a7a2
cmp byte [ebp], 0x1a
jne 0x41a7a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x426bcc], 0x1c
jmp 0x41a7c7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x426bcc], 9
pop edi
pop esi
pop ebp
mov dword [0x426bd0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x41a735
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a81f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x41a739
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x41a739
Function at 0x41ab00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x426c14]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x41ab1f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x426c10], 1
mov byte [0x426c0c], bl
jne 0x41ab79
mov ecx, dword [0x48a06c]
test ecx, ecx
je 0x41ab67
mov esi, dword [0x48a068]
sub esi, 4
cmp esi, ecx
jb 0x41ab67
mov eax, dword [esi]
test eax, eax
je 0x41ab60
call eax
mov ecx, dword [0x48a06c]
sub esi, 4
cmp esi, ecx
jae 0x41ab52
push 0x42301c
push 0x423014
call fcn.0041abb0
add esp, 8
push 0x423024
push 0x423020
call fcn.0041abb0
add esp, 8
test ebx, ebx
jne 0x41aba0
push ebp
mov dword [0x426c14], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x41b160
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x426d28]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x41b1a2
call edi
mov esi, eax
test esi, esi
je 0x41b18c
mov eax, 1
jmp 0x41b19d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41b2af
mov eax, 2
mov dword [0x426d28], eax
cmp eax, 1
jne 0x41b242
test esi, esi
jne 0x41b1bb
call edi
mov esi, eax
test esi, esi
je 0x41b2af
cmp word [esi], 0
mov eax, esi
je 0x41b1d5
add eax, 2
cmp word [eax], 0
jne 0x41b1c3
add eax, 2
cmp word [eax], 0
jne 0x41b1c3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41b234
push edi
call fcn.004179a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41b234
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41b226
push ebx
call fcn.00417b80
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41b2af
test ebx, ebx
jne 0x41b253
call ebp
mov ebx, eax
test ebx, ebx
je 0x41b2af
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41b26b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41b25b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41b25b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004179a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41b28d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x41bbc0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x426058
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x41bbe4
add eax, 8
inc ebp
cmp eax, 0x4260e8
jb 0x41bbd5
cmp ecx, dword [ebp*8 + 0x426058]
jne 0x41bd8b
mov eax, dword [0x426b90]
cmp eax, 1
je 0x41bd4d
test eax, eax
jne 0x41bc10
cmp dword [0x423e64], 1
je 0x41bd4d
cmp ecx, 0xfc
je 0x41bd8b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bc4b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x41bc94
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x421be0
add ebx, ecx
push ebx
call fcn.00417bd0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x421bc0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x42605c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041e0c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x489f60]
test eax, eax
je 0x41bd5e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x41bd68
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42605c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x41f2e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0041fb90
mov eax, dword [0x48a060]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x41f442
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x489f60]
test byte [edx + ecx*8 + 4], 1
je 0x41f442
push 1
push ebp
push ebx
call fcn.0041cb20
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41f44c
push 2
push ebp
push ebx
call fcn.0041cb20
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f44c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41f3e8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0041fb10
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41f38f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0041a610
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f3ab
sub esi, eax
test esi, esi
jle 0x41f3c1
jmp 0x41f380
cmp dword [0x426bd0], 5
jne 0x41f3be
mov dword [0x426bcc], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0041fb10
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0041cb20
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41f429
push 0
push ecx
push ebx
call fcn.0041cb20
add esp, 0xc
push ebx
call fcn.0041d890
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x41f429
mov dword [0x426bcc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x426bd0], eax
push 0
push edi
push ebx
call fcn.0041cb20
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x426bcc], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x41fe90
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42004e
push 0x3d
push edi
call fcn.00420330
mov esi, eax
add esp, 8
test esi, esi
je 0x42004e
cmp edi, esi
je 0x42004e
mov dl, byte [esi + 1]
mov ecx, dword [0x426bf8]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x426bf4]
cmp eax, ecx
jne 0x41fee7
push eax
call fcn.00420120
add esp, 4
mov dword [0x426bf4], eax
test eax, eax
jne 0x41ff62
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41ff0e
mov eax, dword [0x426bfc]
test eax, eax
je 0x41ff0e
call fcn.0041fa90
test eax, eax
je 0x41ff5d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41ff1a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004179a0
add esp, 4
mov dword [0x426bf4], eax
test eax, eax
je 0x42004e
mov dword [eax], 0
mov eax, dword [0x426bfc]
test eax, eax
jne 0x41ff5d
push 4
call fcn.004179a0
add esp, 4
mov dword [0x426bfc], eax
test eax, eax
je 0x42004e
mov dword [eax], 0
mov eax, dword [0x426bf4]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004200a0
mov esi, eax
add esp, 8
test esi, esi
jl 0x42005f
cmp dword [ebx], 0
je 0x42005f
test ebp, ebp
je 0x420057
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00417b80
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41ffb9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x41ffa8
lea eax, [esi*4]
push eax
push ebx
call fcn.00420190
add esp, 8
test eax, eax
je 0x41ffd3
mov dword [0x426bf4], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x420046
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004179a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x420046
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00417b80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x41ffd7
test ebp, ebp
jne 0x420046
test esi, esi
jge 0x420069
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00420190
add esp, 8
test eax, eax
je 0x42004e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x426bf4], eax
jmp 0x41ffd7
Function at 0x4cfa98
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4cfac6
mov eax, ebx
call fcn.004d054c
cmp dword [ebx + 0x40], 0
je 0x4cfabf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cfb37
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cfb29
cmp dword [ebx + 8], 0
je 0x4cfae8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cfafa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cfb29
cmp dword [ebx + 8], 0
je 0x4cfadb
cmp eax, 3
je 0x4cfb0d
dec eax
jne 0x4cfadb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cfadb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cfadb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cfb55
cmp dword [ebx + 0x14], 0xcc
je 0x4cfb55
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004cfb60
pop ebx
ret

Function at 0x4e83a8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
lea eax, [ebp - 4]
push eax
push 0x28
call fcn.00406ca0
push eax
call fcn.00406b78
test eax, eax
je 0x4e83f8
lea eax, [ebp - 0x14]
push eax
push 0x4e83fc
push 0
call fcn.00406b70
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00406b68
mov esp, ebp
pop ebp
ret
Function at 0x4ea1e2
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [eax], 0xfffff000
jne 0x4ea1f7
mov dl, byte [eax + 5]
cmp dl, 0xe8
je 0x4ea1fc
cmp dl, 0xcc
je 0x4ea1fc
dec eax
dec ecx
jne fcn.004ea1e2
ret
add eax, 0xa
add eax, dword [eax - 4]
ret

Function at 0x4ea4db
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, edx
sub ecx, ecx
push 6
pop edx
mov eax, dword fs:[ecx + 0x30]
cmp byte [ebx + 2], cl
jne 0x4ea4f5
dec edx
mov dword [eax], edx
mov byte [eax], dl
xor eax, dword [ebx + 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call 0x406df0
test eax, eax
je 0x4ea572
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x10]
push dword [ebp + 0x10]
call dword [ebx + 8]
test eax, eax
sete byte [ebp - 1]
pop eax
je 0x4ea555
sub ecx, ecx
cmp byte [ebx + 2], cl
mov edx, dword fs:[ecx + 0x30]
push eax
je 0x4ea530
shr eax, 2
inc eax
shl eax, 3
add eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebx + 4]
mov dword [eax], ecx
cmp byte [ecx], 7
pop eax
jae 0x4ea54d
inc dword [ecx + 4]
dec dword [edx + 4]
jmp 0x4ea555
inc word [ecx + 2]
dec word [edx + 2]
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x18]
pop eax
cmp byte [ebp - 1], 0
je 0x4ea572
push eax
call fcn.00406bb0
push 0x57
pop ecx
call fcn.004ea46b
pop ebx
leave
ret 0xc
Function at 0x520270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbd000]
mov dword [edi + 0xea0c4], 0x4b115793
push edi
or ebp, 0xffffffff
jmp 0x52029a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5202a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x520290
mov eax, 1
add ebx, ebx
jne 0x5202b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5202c4
jne 0x5202e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5202e3
dec eax
add ebx, ebx
jne 0x5202d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5202a8
add ebx, ebx
jne 0x5202df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x520335
xor ecx, ecx
sub eax, 3
jb 0x5202fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52036a
sar eax, 1
mov ebp, eax
jmp 0x520306
add ebx, ebx
jne 0x520306
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5202d4
inc ecx
add ebx, ebx
jne 0x520314
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5202d4
add ebx, ebx
jne 0x520321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x520316
jne 0x520332
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x520316
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x520354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x520346
jmp 0x520296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x520354
add edi, ecx
jmp 0x520296
pop esi
mov edi, esi
mov ecx, 0x698a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x520372
cmp byte [edi], 0x14
jne 0x520372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x520377
lea edi, [esi + 0x11c000]
mov eax, dword [edi]
or eax, eax
je 0x5203e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x121db0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x121eb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5203a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x121eb8]
or eax, eax
je 0x5203e0
mov dword [ebx], eax
add ebx, 4
jmp 0x5203c1
call dword [esi + 0x121ec8]
mov ebp, dword [esi + 0x121ebc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52041a
sub esp, 0xffffff80
jmp fcn.004eabd8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx