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

Disassembly:
cmp ecx, dword [0x100b048]
jne 0x100398d
repz ret
jmp fcn.01003860

Function at 0x1004109
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [edi], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004175
cmp dword [ebp + 0x10], 1
je 0x100414d
cmp dword [ebp + 0x10], 2
je 0x100414d
push 0xd
pop eax
jmp 0x1004175
mov ecx, dword [ebp - 4]
test esi, esi
je 0x100416f
test ecx, ecx
je 0x100416a
test cl, 1
jne 0x1004148
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x100416f
jmp 0x1004148
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10041b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10041ca
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004203
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10041ff
cmp esi, ecx
jae 0x1004203
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x10041ef
cmp esi, ecx
jb 0x1004207
xor eax, eax
jmp 0x1004210
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x1004891
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x104
push esi
mov esi, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x10048dc
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010047fc
pop ecx
pop ecx
push esi
push 0
push 0x10018e0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10048ea
push 0x10017b8
push dword [ebp + 0xc]
push esi
call fcn.01002c9c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01003983
leave
ret
Function at 0x1004ec6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100b048]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x100b0b0], edi
jg 0x1004f77
push 0xffffffffffffffff
push edi
push 0x100b0b0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
jne 0x1004f6f
push esi
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
je 0x1004f5d
cmp dword [ebp - 0x10c], 6
jb 0x1004f5d
push 0x1001be8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x1001bf8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100b6ac], eax
mov dword [0x100b0b0], 1
jmp 0x1004f77
mov dword [0x100b0b0], 2
jmp 0x1004f77
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
cmp dword [0x100b0b0], edi
jle 0x1004f69
cmp dword [0x100b0b0], 1
pop edi
jne 0x1004f89
call dword [0x100b6ac]
jmp 0x1004f91
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003983
leave
ret

Function at 0x1006460
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
test ecx, ecx
push esi
mov esi, dword [ebp + 8]
jbe 0x1006492
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ce8]
sub ecx, 1
add esi, 1
test ecx, ecx
ja 0x1006473
pop esi
pop ebp
ret 8

Function at 0x10069b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x10017b8
push edi
lea eax, [edi + edi]
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], eax
call fcn.01002c9c
cmp dword [ebp + 0x14], edi
jae 0x10069e9
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1006a59
cmp dword [ebp - 4], 1
jne 0x1006a49
mov eax, dword [ebp + 0x14]
test al, 1
jne 0x1006a49
cmp eax, 2
jb 0x1006a49
shr eax, 1
sub eax, 1
cmp word [esi + eax*2], bx
je 0x1006a67
add eax, 1
cmp eax, edi
jae 0x1006a39
mov word [esi + eax*2], bx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov ebx, 0x8007007a
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov ebx, 0x8007000b
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
jle 0x1006a65
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401170
Capabilities:
Terminate process

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.cygwin1.dll___getreent
lea ebx, [esp + 0x24]
mov dword [esp + 4], str.Failed_to_reallocate_a_memory_block___s__to__d_bytes._n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
call sub.cygwin1.dll___errno
mov eax, dword [eax]
test eax, eax
jne 0x4011ac
mov dword [esp], 1
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___errno
mov esi, dword [eax]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.errno:__d_s__if_applicable__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4011a0

Function at 0x4014a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov edx, 0x10624dd3
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
movzx ecx, byte [esp + 0x60]
mov ebx, dword [esp + 0x6c]
test eax, eax
lea esi, [eax + 0x1f]
cmovns esi, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x28], eax
mov eax, ebx
sar esi, 5
imul edx
mov eax, ebx
sar eax, 0x1f
sar edx, 6
sub edx, eax
mov eax, dword [esp + 0x60]
imul ebp, edx, 0xfffffc18
mov edi, edx
add eax, 1
mov dword [esp + 0x2c], eax
add ebp, ebx
imul ebp, ebp, 0x3e8
lea esi, [esi]
nop
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
or dword [esp + esi*4 + 0x38], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
call sub.cygwin1.dll_select
mov ebx, eax
test eax, eax
je 0x4015a8
cmp eax, 0xffffffff
jne 0x4015c0
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x401500
call sub.cygwin1.dll___errno
cmp dword [eax], 0xb
je 0x401500
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], str.myread::select_failed:__s_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], 0x40b020
call sub.cygwin1.dll_snprintf
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x4c
mov ebx, 0xfffffffe
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.cygwin1.dll_read
add esp, 0x4c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4017f0
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x7c]
test esi, esi
je 0x4019c7
mov eax, dword [esp + 0x70]
movzx ecx, byte [esp + 0x70]
mov edx, 0x10624dd3
mov dword [esp + 0x3c], 0
test eax, eax
lea ebx, [eax + 0x1f]
cmovns ebx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x2c], eax
mov eax, ebp
sar ebx, 5
imul edx
mov eax, ebp
sar eax, 0x1f
sar edx, 6
sub edx, eax
imul eax, edx, 0xfffffc18
mov dword [esp + 0x30], edx
add eax, ebp
imul eax, eax, 0x3e8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
add eax, 1
mov dword [esp + 0x38], eax
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
or dword [esp + ebx*4 + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.cygwin1.dll_select
mov ebp, eax
test eax, eax
je 0x4019b8
cmp ebp, 0xffffffff
je 0x401910
mov eax, dword [esp + 0x70]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_write
mov ebp, eax
cmp eax, 0xffffffff
je 0x401968
test eax, eax
je 0x401900
add dword [esp + 0x3c], eax
add edi, eax
sub esi, eax
jne 0x401870
mov ebp, dword [esp + 0x3c]
add esp, 0x5c
pop ebx
pop esi
mov eax, ebp
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x401870
call sub.cygwin1.dll___errno
cmp dword [eax], 0xb
je 0x401870
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], str.mywrite::select_failed:__s_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], 0x40b020
call sub.cygwin1.dll_snprintf
add esp, 0x5c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x401870
call sub.cygwin1.dll___errno
cmp dword [eax], 0xb
je 0x401870
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], str.mywrite::write_failed:__s_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], 0x40b020
call sub.cygwin1.dll_snprintf
jmp 0x40195b
add esp, 0x5c
mov ebp, 0xfffffffe
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
jmp 0x40195b

Function at 0x401ab0
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x20]
lea ebx, [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
call sub.cygwin1.dll___errno
mov ebx, dword [eax]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.errno_d__if_applicable__n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401b90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x35
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.HTTPing_v1.5.2___C__2003_2011_folkert_vanheusden.com_n
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x15
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.SSL_support_included_n
call sub.cygwin1.dll_fwrite
add esp, 0x1c
ret
Function at 0x4029f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
cmp edi, 2
jbe 0x402a67
lea esi, [esi]
nop
movsx eax, byte [esi]
movsx edx, byte [esi + 1]
mov ecx, 4
shl eax, 8
add edx, eax
movsx eax, byte [esi + 2]
shl edx, 8
add eax, edx
mov ebp, eax
sar ebp, 0x1f
shr ebp, 0x1a
lea edx, [eax + ebp]
and edx, 0x3f
sub edx, ebp
mov ebp, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
test eax, eax
movzx edx, byte [ebp + edx]
mov byte [ebx + ecx - 1], dl
lea edx, [eax + 0x3f]
cmovs eax, edx
sar eax, 6
sub ecx, 1
jne 0x402a2a
sub edi, 3
add esi, 3
add ebx, 4
cmp edi, 2
ja 0x402a10
test edi, edi
jne 0x402a7b
mov byte [ebx], 0
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov byte [esp + 0xf], 0
xor edx, edx
mov word [esp + 0xd], ax
movzx eax, byte [esi + edx]
mov byte [esp + edx + 0xd], al
add edx, 1
cmp edx, edi
jb 0x402a89
movsx eax, byte [esp + 0xd]
movsx edx, byte [esp + 0xe]
mov ecx, 4
shl eax, 8
add edx, eax
movsx eax, byte [esp + 0xf]
shl edx, 8
add eax, edx
lea esi, [esi]
lea esi, [esi]
mov esi, eax
sar esi, 0x1f
shr esi, 0x1a
lea edx, [eax + esi]
and edx, 0x3f
sub edx, esi
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
test eax, eax
movzx edx, byte [esi + edx]
mov byte [ebx + ecx - 1], dl
lea edx, [eax + 0x3f]
cmovs eax, edx
sar eax, 6
sub ecx, 1
jne 0x402ac0
mov byte [ebx + 3], 0x3d
cmp edi, 1
jne 0x402afb
mov byte [ebx + 2], 0x3d
mov byte [ebx + 4], 0
add esp, 0x10
add ebx, 4
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402e20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp], eax
mov dword [esp + 0x2c], 1
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x402e61
xor eax, eax
add esp, 0x3c
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], str.could_not_set_TCP_NODELAY_on_socket___s__n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], 0x40b020
call sub.cygwin1.dll_snprintf
mov eax, 0xffffffff
jmp 0x402e5d

Function at 0x402ea0
Capabilities:
Resolve dns

Disassembly:
push esi
xor edx, edx
xor eax, eax
push ebx
sub esp, 0x44
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x20
jb 0x402eb1
cmp cl, 1
lea ebx, [esp + 0x16]
mov dword [esp + 8], 0x40888c
sbb eax, eax
mov dword [esp + 4], 0xa
and eax, 0xffffffeb
mov dword [esp], ebx
add eax, 0x17
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], 6
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_snprintf
lea eax, [esp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.cygwin1.dll_getaddrinfo
test eax, eax
je 0x402f38
mov eax, dword [esp + 0x50]
mov dword [esp], str.Error_resolving__s
mov dword [esp + 4], eax
call fcn.00401ab0
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov dword [esp], ebx
call sub.cygwin1.dll_freeaddrinfo
add esp, 0x44
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
cmp dword [0x421e18], 0
jne 0x40125b
push ebx
push esi
push edi
mov edx, 1
xor esi, esi
mov eax, edx
mov dword [ebp + esi*4 - 0x808], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x408], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
movzx edx, cl
cmp esi, 0x100
jl 0x401020
mov esi, 1
mov edx, 0x4219f0
nop dword [eax]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x421a18
jl 0x401060
mov eax, 1
mov byte [0x4213f0], 0x63
mov byte [0x421953], 0
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, dword [ebp + eax*4 - 0x408]
lea eax, [ebp - 0x40c]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
add eax, eax
shr ecx, 7
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x4213f0], bl
mov byte [ebx + 0x4218f0], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jl 0x4010a0
xor edi, edi
mov dword [ebp - 8], 0xff
nop dword [eax]
nop dword [eax + eax]
movzx esi, byte [edi + 0x4213f0]
mov eax, esi
movzx ebx, byte [edi + 0x4218f0]
and al, 0x80
mov dword [ebp - 4], ebx
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, esi
mov edx, ecx
shl edx, 8
xor edx, esi
shl edx, 8
xor edx, esi
shl edx, 8
xor edx, eax
mov dword [edi*4 + 0x422e20], edx
shl edx, 8
or edx, ecx
mov dword [edi*4 + 0x422a20], edx
shl edx, 8
or edx, esi
mov dword [edi*4 + 0x421e20], edx
shl edx, 8
or edx, esi
mov dword [edi*4 + 0x421a18], edx
test ebx, ebx
je 0x4011f7
mov eax, dword [ebp + ebx*4 - 0x408]
mov esi, 0xff
add eax, dword [ebp - 0x3dc]
cdq
idiv esi
mov eax, dword [ebp + ebx*4 - 0x408]
add eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp + edx*4 - 0x808]
cdq
idiv esi
mov eax, dword [ebp + ebx*4 - 0x408]
mov ebx, 0xff
add eax, dword [ebp - 0x3e4]
mov esi, dword [ebp + edx*4 - 0x808]
cdq
idiv ebx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x408]
add eax, dword [ebp - 0x3d0]
mov ebx, dword [ebp + edx*4 - 0x808]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x808]
jmp 0x4011ff
xor ecx, ecx
xor esi, esi
xor ebx, ebx
xor eax, eax
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, ebx
shl ecx, 8
xor ecx, eax
mov edx, ecx
mov dword [edi*4 + 0x422620], ecx
shr edx, 0x18
shl ecx, 8
or edx, ecx
mov eax, edx
mov dword [edi*4 + 0x422220], edx
shr eax, 0x18
shl edx, 8
or eax, edx
mov dword [edi*4 + 0x423220], eax
ror eax, 0x18
mov dword [edi*4 + 0x4214f0], eax
inc edi
cmp edi, 0x100
jl 0x401120
pop edi
pop esi
pop ebx
mov dword [0x421e18], 1
mov esp, ebp
pop ebp
ret
Function at 0x406c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x406c1e
mov dword [esi], 1
jmp 0x406ce9
push 2
push 0
push 0
push ebx
call fcn.0040c8f2
push ebx
call fcn.0040c2b5
add esp, 0x14
mov dword [ebp + 8], edx
mov edi, eax
push 0
push 0
push 0
push ebx
call fcn.0040c8f2
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
jg 0x406c5e
jl 0x406c54
test edi, edi
jae 0x406c5e
mov eax, 2
jmp 0x406ce7
xor ecx, ecx
cmp ecx, eax
jne 0x406ce2
lea eax, [edi + 2]
push eax
call fcn.0040c92c
add esp, 4
test eax, eax
jne 0x406c7c
mov dword [esi], 3
jmp 0x406ce9
push ebx
push edi
mov ebx, eax
push 1
push ebx
call fcn.0040c4dc
add esp, 0x10
cmp eax, edi
je 0x406ca0
push ebx
call fcn.0040bcaf
add esp, 4
mov dword [esi], 2
jmp 0x406ce9
mov edx, edi
mov ecx, ebx
call fcn.004041f0
cmp eax, 2
je 0x406cb3
cmp eax, 3
jne 0x406cbf
and edi, 0xfffffffe
xor ecx, ecx
mov word [edi + ebx], cx
add edi, 2
push dword [ebp + 0x14]
sub esp, 8
push eax
mov eax, dword [ebp - 4]
mov edx, eax
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.004069a0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov dword [esi], eax
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4089a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4089e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4089e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4089e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4089e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4089e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40c0b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00417e90
mov eax, dword [section..data]
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.0040e29a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40c0fb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40c257
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00417de0
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 + 0x4210b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00410866
mov ecx, dword [esi*4 + 0x4210b0]
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 0x40c250
cmp eax, dword [edi + ecx + 0x24]
jne 0x40c250
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 0x40c250
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410866
add esp, 0x14
test edx, edx
jl 0x40c250
jg 0x40c1c6
test eax, eax
jb 0x40c250
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40c250
jl 0x40c1e0
cmp dword [ebp - 0x1008], eax
ja 0x40c250
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40c1fe
test ebx, ebx
je 0x40c237
cmp ecx, edi
jae 0x40c237
mov al, byte [ecx]
cmp al, 0xd
jne 0x40c218
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40c224
cmp byte [ecx + 1], 0xa
jne 0x40c224
inc ecx
jmp 0x40c224
movzx eax, al
movsx eax, byte [eax + 0x420248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40c1fe
cmp edx, ebx
jne 0x40c1fe
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40c255
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040802b
leave
ret