joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c70
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
pxor xmm0, xmm0
cmp edx, 2
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
jg 0x403cb5
cmp byte [ecx], 0x2e
jne 0x403cb5
mov al, byte [ecx + 1]
mov dword [esp + 4], 0
test al, al
je 0x403ca9
cmp al, 0x2e
jne 0x403cb5
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 4], 0x67452301
nop word cs:[eax + eax]
nop
mov eax, edx
mov esi, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
shl eax, 8
or eax, edx
mov ebx, eax
shl ebx, 0x10
or ebx, eax
cmp edx, 0x11
cmovl esi, edx
test edx, edx
mov dword [esp], esi
jle 0x403d70
xor ecx, ecx
mov edx, ebx
lea esi, [esp + 0x20]
mov dword [esp + 8], 4
jmp 0x403d18
inc ecx
mov ebx, edi
cmp ecx, dword [esp]
jge 0x403d50
mov eax, ecx
mov edi, ebx
and eax, 3
cmove edx, ebx
mov ebx, dword [esp + 0x10]
shl edx, 8
movzx ebx, byte [ebx + ecx]
or edx, ebx
cmp eax, 3
jne 0x403d10
dec dword [esp + 8]
mov dword [esi], edx
add esi, 4
mov edx, edi
jmp 0x403d10
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x403deb
cmp ecx, 1
mov dword [esi], edx
jne 0x403d7d
jmp 0x403deb
mov dword [esp + 0x20], ebx
mov ecx, 4
lea esi, [esp + 0x20]
cmp ecx, 3
mov eax, 2
cmovl eax, ecx
neg eax
lea eax, [ecx + eax + 1]
cmp eax, 8
jae 0x403da0
mov eax, esi
jmp 0x403dd8
mov edi, ecx
mov ecx, eax
movd xmm0, ebx
mov dword [esp], eax
and ecx, 0xfffffff8
pshufd xmm0, xmm0, 0
lea eax, [esi + ecx*4]
sub edi, ecx
add esi, 0x14
mov edx, ecx
nop dword [eax]
movdqu xmmword [esi - 0x10], xmm0
movdqu xmmword [esi], xmm0
add esi, 0x20
add edx, 0xfffffff8
jne 0x403dc0
cmp dword [esp], ecx
mov ecx, edi
je 0x403deb
inc ecx
add eax, 4
nop dword [eax]
dec ecx
mov dword [eax], ebx
add eax, 4
cmp ecx, 2
jg 0x403de0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 4]
mov esi, 0xfffffff1
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, 0x9e3779b9
nop dword [eax]
mov ebx, ecx
mov ecx, edi
mov edi, ebx
lea edx, [ebx + eax]
shr edi, 5
add edi, dword [esp + 8]
xor edi, edx
mov edx, ebx
shl edx, 4
add edx, dword [esp]
xor edi, edx
add edi, ecx
mov ecx, edi
lea edx, [eax + edi]
shr ecx, 5
add ecx, dword [esp + 0x18]
xor ecx, edx
mov edx, edi
shl edx, 4
add edx, dword [esp + 0x1c]
xor ecx, edx
add ecx, ebx
test esi, esi
je 0x403e70
add eax, 0x9e3779b9
inc esi
jmp 0x403e20
mov edx, dword [esp + 0x14]
add dword [esp + 4], edi
cmp edx, 0x11
jl 0x403ca9
add dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
add edx, 0xfffffff0
add ecx, 0x10
jmp 0x403cd0
Function at 0x403f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ecx, ecx
je 0x403ff1
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
movzx edi, byte [edx]
inc edx
xor edi, eax
mov esi, edi
mov eax, edi
mov ebp, edi
and esi, 1
shr eax, 1
shl ebp, 0x1c
neg esi
sar ebp, 0x1f
and esi, 0xedb88320
and ebp, 0xedb8832
xor esi, eax
mov eax, edi
shl eax, 0x1e
mov ebx, esi
shl esi, 0x1a
sar eax, 0x1f
shr ebx, 1
sar esi, 0x1f
and eax, 0xedb88320
and esi, 0x76dc4190
xor eax, ebx
mov ebx, eax
shl eax, 0x1a
shr ebx, 6
sar eax, 0x1f
xor ebp, ebx
mov ebx, edi
and eax, 0xedb88320
shl ebx, 0x1b
sar ebx, 0x1f
and ebx, 0x1db71064
xor ebx, ebp
mov ebp, edi
shl edi, 0x1a
sar edi, 0x1f
shl ebp, 0x1d
and edi, 0x3b6e20c8
sar ebp, 0x1f
xor edi, ebx
and ebp, 0x76dc419
xor esi, edi
xor eax, esi
xor eax, ebp
dec ecx
jne 0x403f60
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x10]
mov eax, 0xf2f52010
mov edx, dword [ecx + 0xa4]
test edx, edx
je 0x4048e8
movdqa xmm0, xmmword [0x456ba0]
movdqa xmm1, xmmword [0x456bb0]
xor esi, esi
nop dword [eax]
movzx edi, byte [ecx + esi]
inc esi
xor edi, eax
mov eax, edi
mov ebx, edi
movd xmm2, edi
shl edi, 0x1e
and eax, 1
shr ebx, 1
pshufd xmm2, xmm2, 0
sar edi, 0x1f
neg eax
pand xmm2, xmm0
and edi, 0xedb88320
and eax, 0xedb88320
pcmpeqd xmm2, xmm0
xor eax, ebx
pand xmm2, xmm1
mov ebx, eax
shl eax, 0x1a
pshufd xmm3, xmm2, 0x4e
shr ebx, 1
sar eax, 0x1f
pxor xmm3, xmm2
xor edi, ebx
pshufd xmm2, xmm3, 0xe5
and eax, 0x76dc4190
mov ebx, edi
shl edi, 0x1a
pxor xmm2, xmm3
sar edi, 0x1f
shr ebx, 6
and edi, 0xedb88320
xor edi, eax
movd eax, xmm2
xor edi, ebx
xor eax, edi
cmp edx, esi
jne 0x404860
cmp edx, 0xffb
ja 0x40498e
cmp edx, 0xffc
je 0x40498e
movdqa xmm0, xmmword [0x456ba0]
movdqa xmm1, xmmword [0x456bb0]
add edx, 0xfffff004
nop word [eax + eax]
movzx esi, byte [ecx + edx + 0x1000]
xor esi, eax
mov eax, esi
mov edi, esi
movd xmm2, esi
shl esi, 0x1e
and eax, 1
shr edi, 1
pshufd xmm2, xmm2, 0
sar esi, 0x1f
neg eax
pand xmm2, xmm0
and esi, 0xedb88320
and eax, 0xedb88320
pcmpeqd xmm2, xmm0
xor eax, edi
pand xmm2, xmm1
mov edi, eax
shl eax, 0x1a
pshufd xmm3, xmm2, 0x4e
shr edi, 1
sar eax, 0x1f
pxor xmm3, xmm2
xor esi, edi
pshufd xmm2, xmm3, 0xe5
and eax, 0x76dc4190
mov edi, esi
shl esi, 0x1a
pxor xmm2, xmm3
sar esi, 0x1f
shr edi, 6
and esi, 0xedb88320
xor esi, eax
movd eax, xmm2
xor esi, edi
xor eax, esi
inc edx
jne 0x404910
pop esi
pop edi
pop ebx
ret
Function at 0x40a070
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00419c50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x40a0d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x4779a0]
test eax, eax
jle 0x40a1e0
mov edx, dword [0x4779a4]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x40a101
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x40a17a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x40a0f0
mov dword [esp], esi
call fcn.00419db0
test eax, eax
mov edi, eax
je 0x40a207
lea esi, [ebx + ebx*4]
mov ebx, dword [0x4779a4]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.00419ea0
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x4779a4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40a1e7
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x40a182
add dword [0x4779a0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x40a173
cmp eax, 0x80
je 0x40a173
cmp eax, 8
je 0x40a173
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x4779a4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a173
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040a070
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x40a10b
mov eax, dword [0x4779a4]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040a070
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040a070
mov esi, esi
lea edi, [edi]

Function at 0x40b1e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.0040abe0
Function at 0x40c900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, 1
movaps xmmword [esp], xmm0
movaps xmmword [esp + 0x10], xmm0
test eax, eax
je 0x40c932
mov eax, dword [eax]
test eax, eax
je 0x40c932
mov esi, eax
jle 0x40ca4e
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x10]
nop dword [eax]
call fcn.0040caa0
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 1], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 2], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 3], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 4], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 5], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 6], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 7], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 8], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 9], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xa], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xb], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xc], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xd], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xe], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xf], al
push ebx
lea eax, [esp + 4]
push eax
call fcn.0041c470
add esp, 8
movzx eax, word [esp + 0x18]
and eax, 0x3fff
or eax, 0x8000
mov word [esp + 0x18], ax
movzx eax, word [esp + 0x16]
and eax, 0xfff
or eax, 0x4000
mov word [esp + 0x16], ax
push edi
push ebx
call fcn.0041c260
add esp, 8
add edi, 0x10
dec esi
jne 0x40c940
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cb40
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [0x456b50]
cmp dword [ebx + 0x5a8], 0
jle 0x40cca2
xor ebp, ebp
jmp 0x40cb7b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
inc ebp
cmp ebp, dword [ebx + 0x5a8]
jge 0x40cca2
mov eax, ebp
shl eax, 6
mov eax, dword [ebx + eax + 0x3ac]
mov dword [esp], eax
push 0x1000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x40cc20
mov esi, eax
push 0x1000
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
test eax, eax
je 0x40cc40
mov edi, eax
push 0
push 0
push 0
push dword [esp + 0xc]
call fcn.0040b5f0
add esp, 0x10
test edx, edx
js 0x40cb5c
mov ebx, 0x1000
nop word cs:[eax + eax]
nop
push 0x1000
push esi
push dword [esp + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
cmp eax, 0x1000
jne 0x40cc5c
push 0x1000
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40cc5c
dec ebx
jne 0x40cbe0
mov bl, 1
jmp 0x40cc5e
cmp dword [ebx + 0x5b8], 0
jle 0x40cb6e
push str._tError:_Malloc_Failed_for_buf___
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
jmp 0x40cb6b
cmp dword [ebx + 0x5b8], 0
jle 0x40cb65
push str._tError:_Calloc_Failed_for_zero_buf___
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
jmp 0x40cb62
xor ebx, ebx
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
test bl, bl
mov ebx, dword [0x456b50]
je 0x40cb6e
cmp dword [ebx + 0x5b8], 0
js 0x40cb6e
push 0x1000
push str.Info:_Found_all_zeros_in_first__d_blocks_n
call fcn.0040ccc0
add esp, 8
jmp 0x40cb6e
mov dword [ebx + 0x5c4], 1
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40d4f0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40d52d
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
mov eax, esi
sub eax, ebp
push eax
push edi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
js 0x40d531
je 0x40d53f
add ebp, eax
add edi, eax
cmp ebp, esi
jb 0x40d510
xor eax, eax
jmp 0x40d544
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, eax
xor eax, eax
sub eax, dword [ecx]
jmp 0x40d544
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
not eax
test ecx, ecx
je 0x40e2d6
mov edx, dword [esp + 0x10]
nop word cs:[eax + eax]
nop
movzx esi, byte [edx]
movzx edi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x468848]
dec ecx
jne 0x40e2c0
not eax
pop esi
pop edi
ret
Function at 0x419cd0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x419d08
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x419cfe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x419d0a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x419cf0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41f390
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov al, byte [0x477a20]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test al, al
je 0x41f48e
push dword [0x477a1c]
push dword [0x477a18]
push ebx
push esi
call fcn.0040a5d0
add esp, 0x10
mov dword [esp + 0xc], eax
mov eax, edi
and eax, 2
add eax, 2
push 0
push 0
push 0
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x41f43a
mov edx, dword [esp + 0xc]
mov ebx, eax
mov eax, edi
mov ecx, 0xf001f
sub esi, edx
test al, 2
mov eax, 4
cmove ecx, eax
mov eax, dword [ebp + 0x18]
add eax, edx
push eax
push esi
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x41f478
mov edi, eax
push 0x10
call fcn.0040e310
add esp, 4
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc]
mov esi, eax
mov dword [eax], edi
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
jmp 0x41f481
xor esi, esi
cmp dword [ebp + 0x18], 0
jne 0x41f481
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
jne 0x41f481
push 0x10
call fcn.0040e310
add esp, 4
mov dword [eax], 0x469dd0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, eax
mov dword [eax + 0xc], 0
jmp 0x41f481
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x477a20
call fcn.00426d90
add esp, 4
test eax, eax
je 0x41f3b2
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov dword [0x477a1c], 0
mov dword [0x477a18], eax
push 0x477a20
call fcn.00426e20
add esp, 4
jmp 0x41f3b2
Function at 0x42b6f9
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ecx + 0x64]
lea ebx, [ecx + 0x54]
mov esi, ecx
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp], eax
nop dword [eax + eax]
cmp dword [esi + 0x58], 0
jne 0x42b6dd
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x42b676
cmp eax, 0xfffffffb
jne 0x42b77d
cmp dword [esi + 0x34], 0
jne 0x42b70b
mov dword [esp + 8], edi
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
xor ebp, ebp
nop dword [eax]
mov eax, edi
mov ecx, 0x40000000
sub eax, ebp
cmp eax, 0x40000000
cmovae eax, ecx
lea ecx, [ebx + ebp]
push eax
push ecx
push dword [esi + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
jle 0x42b6bd
add ebp, eax
cmp ebp, edi
jb 0x42b690
jmp 0x42b6ca
js 0x42b761
mov dword [esi + 0x34], 1
add dword [esi + 0x58], ebp
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov dword [esi + 0x54], eax
je 0x42b70b
push 0
push ebx
call fcn.00438760
add esp, 8
mov edi, eax
add eax, 4
cmp eax, 6
ja case.0x42b6f2.1
jmp dword [eax*4 + 0x46b418]
mov eax, dword [esi + 0x64]
cmp edi, 1
je 0x42b71e
test eax, eax
jne 0x42b660
jmp 0x42b71e
push str.unexpected_end_of_file
push 0xfffffffffffffffb
push esi
call fcn.0041fca0
add esp, 0xc
mov eax, dword [esi + 0x64]
mov ecx, dword [esp]
sub ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 0x60]
sub eax, ecx
mov dword [esi + 4], eax
xor eax, eax
cmp edi, 1
jne 0x42b782
mov dword [esi + 0x2c], 0
jmp 0x42b782
push str.internal_error:_inflate_stream_corrupt
push 0xfffffffffffffffe
jmp 0x42b774
push str.out_of_memory
push 0xfffffffffffffffc
jmp 0x42b774
mov eax, dword [esi + 0x6c]
mov ecx, str.compressed_data_error
test eax, eax
cmovne ecx, eax
push ecx
push 0xfffffffffffffffd
jmp 0x42b774
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push 0xffffffffffffffff
push esi
call fcn.0041fca0
add esp, 0xc
mov eax, 0xffffffff
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42c733
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x42c746
jmp 0x42c87a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044d000
cmp eax, 1
jne 0x42c872
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x42c7be
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x42c7d0
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x42c7ea
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x42c7f8
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x42c828
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x42c83f
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x42c824
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x42c85d
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x42d806
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x42d67b
mov dword [esp], 0x477c74
call fcn.0042cdcd
mov eax, dword [0x476284]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x42d84d
mov eax, dword [ebp - 0x20]
jmp 0x42d998
call fcn.0042c63c
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x42d864
cmp dword [ebp - 0x20], 0
jne 0x42d86e
mov eax, 0
jmp 0x42d998
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042c733
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x42d940
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x476284]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x42d995
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret