joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100662e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1008b008]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10066323
cmp byte [ebx], 0xa
jne 0x10066323
or byte [edi + eax + 0x28], 4
jmp 0x10066328
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10066427
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006640a
inc eax
cmp dl, 0xd
je 0x10066354
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006637a
cmp eax, ecx
jae 0x10066388
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1006633c
jmp 0x10066427
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10066405
cmp dword [ebp - 0x10], 0
je 0x10066405
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1008b008]
test byte [eax + edi + 0x28], 0x48
je 0x100663df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100663ca
mov byte [esi], dl
jmp 0x100663db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008b008]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10066427
cmp byte [ebp - 1], 0xa
jne 0x100663ee
cmp esi, ebx
jne 0x100663ee
mov byte [esi], 0xa
jmp 0x10066426
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006627f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10066427
mov byte [esi], 0xd
jmp 0x10066426
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1008b008]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10066424
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10066427
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10066430
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1008b008]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10066476
cmp word [ebx], dx
jne 0x10066476
or byte [eax + edi + 0x28], 4
jmp 0x1006647b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100665de
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100665be
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100664bc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100664f2
cmp eax, edx
jae 0x10066500
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10066497
jmp 0x100665de
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100665b9
cmp dword [ebp - 0x18], 0
je 0x100665b9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1008b008]
test byte [eax + edi + 0x28], 0x48
je 0x1006658f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10066553
mov word [esi], cx
jmp 0x1006658a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1008b008]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1008b008]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1008b008]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100665de
pop eax
cmp word [ebp - 4], ax
jne 0x1006659f
cmp esi, ebx
jne 0x1006659f
mov word [esi], ax
jmp 0x100665db
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006627f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100665de
push 0xd
pop eax
jmp 0x1006659a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1008b008]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100665d8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100665de
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006a240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006a26d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006a26d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1006c931
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006a6b0
mov eax, dword [0x10089040]
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.1005a570
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006c973
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006cacf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006a4b0
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 + 0x1008b008]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10066261
mov ecx, dword [esi*4 + 0x1008b008]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1006cac8
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006cac8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006cac8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10066261
add esp, 0x14
test edx, edx
jl 0x1006cac8
jg 0x1006ca3e
test eax, eax
jb 0x1006cac8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006cac8
jl 0x1006ca58
cmp dword [ebp - 0x1008], eax
ja 0x1006cac8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006ca76
test ebx, ebx
je 0x1006caaf
cmp ecx, edi
jae 0x1006caaf
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006ca90
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006ca9c
cmp byte [ecx + 1], 0xa
jne 0x1006ca9c
inc ecx
jmp 0x1006ca9c
movzx eax, al
movsx eax, byte [eax + 0x100899b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006ca76
cmp edx, ebx
jne 0x1006ca76
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006cacd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10043637
leave
ret
Function at 0x1006edf9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006ed75
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006ef68
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006ef68
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006ef1d
jg 0x1006ee55
test eax, eax
je 0x1006ef13
push 1
push 0x1000
call fcn.1005ad22
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006ee78
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006ef0a
push 0x8000
push ebx
call fcn.1006eca6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006eea1
jg 0x1006ee9c
cmp ecx, 0x1000
jb 0x1006eea1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100652b9
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006eee6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006ee9c
jl 0x1006eecd
test ecx, ecx
jne 0x1006ee8e
push dword [ebp - 0xc]
push ebx
call fcn.1006eca6
push esi
call fcn.100595fe
add esp, 0xc
xor ebx, ebx
jmp 0x1006ef76
cmp byte [edi + 0x24], 0
je 0x1006eefd
cmp dword [edi + 0x20], 5
jne 0x1006eefd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006ef08
mov ebx, dword [edi + 0x18]
jmp 0x1006ef0a
xor ebx, ebx
push esi
call fcn.100595fe
pop ecx
jmp 0x1006ef76
test ecx, ecx
jg 0x1006eedf
jl 0x1006ef1d
test eax, eax
jae 0x1006eedf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006627f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006ef3d
cmp byte [edi + 0x1c], 0
je 0x1006eedf
jmp 0x1006ef6e
push ebx
call fcn.100636bf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006eedf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006ef76
cmp byte [edi + 0x1c], 0
je 0x1006ef73
mov ebx, dword [edi + 0x18]
jmp 0x1006ef76
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006627f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006fa04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1006fa25
jl 0x1006fa1c
test edi, edi
jne 0x1006fa25
xor eax, eax
xor edx, edx
jmp 0x1006fae6
cmp dword [ebx + 0x38], 0
je 0x1006fa3a
push eax
push edi
push dword [ebp + 8]
call fcn.10021030
jmp 0x1006fae6
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1006fa81
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1006fa81
cmp eax, edi
jb 0x1006fa5b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100451f0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1006fa87
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1006fadb
mov ecx, ebx
call fcn.1006f3b6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1006fac6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1006d1d2
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1006fadb
jmp 0x1006fa99
test edx, edx
je 0x1006fadb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1006d1d2
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x406231
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d54], 0
push esi
jne 0x406268
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406242
mov dword [ecx*4 + 0x426d50], eax
inc ecx
cmp ecx, 0x100
jl 0x40623d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406299
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d50]
xor eax, esi
inc ecx
dec edx
jne 0x40627b
pop edi
not eax
pop esi
ret 0xc

Function at 0x40a550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [ecx]
mov byte [0x458b104d], al
or byte [ebp + 0x1c0e5629], al
cmp esi, dword [eax + eax*4 - 1]
cmp eax, esi
adc dword ds:[ebx - 0x7575f3ab], ecx
test cl, cl
mov bl, al
mov cl, byte [edx - 0x3c77367c]
je 0x40a57a
inc eax
inc edx
xor esi, eax
jb 0x40a569
mov byte [eax], 0
pop esi
pop ebp
ret 0x780c

Function at 0x40abf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
leave
in al, dx
or byte [ebx + 0x56533d32], cl
push edi
mov eax, dword [esi - 0x7b]
dec dword [ecx + 0xec5fc7d]
pop edi
pop esi
xor eax, eax
pushfd
mov esp, ebp
pop ebp
in al, 0x10
add byte [ebx + 0x45b9fc7d], cl
adc al, 0x83
cmp byte [eax], al
mov ecx, 0x8758b99
cld
mov ecx, 0x38831445
add byte [ecx + 0x8758b99], bh
xor eax, dword [ebx]
clc
movsb byte es:[edi], byte [esi]
push cs
add dh, 2
and dword [ebx], 0x9000080
mov dword [ebp + 8], esi
jge 0x40ac12
dec edi
mov dword [edx], edi
mov esi, dword [eax]
dec esi
mov ch, 0x56
test dword [ebp + 0x58], eax
mov byte [ecx], ah
inc eax
mov dword [ebp + 0x10], eax
jmp 0x40ad51
mov eax, dword [edx]
test eax, eax
mov dword [ebp + 0x11], eax
invalid
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x706235
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xb24f41
jmp 0xb20a9a
push ebx
mov ebx, esp
push edx
mov edx, 4
add ebx, edx
pop edx
sub ebx, 4
xor ebx, dword [esp]
xor dword [esp], ebx
xor ebx, dword [esp]
jmp 0xb20b00
pop esp
mov dword [esp], eax
mov dword [esp], ebx
jmp 0xb20b0c
jmp 0xb32dcc
jmp 0xb24f97
push 0x436ae867
mov dword [esp], ecx
mov ecx, esp
add ecx, 4
jmp 0xb25003
push ebx
mov ebx, 4
sub ecx, ebx
pop ebx
xor ecx, dword [esp]
xor dword [esp], ecx
xor ecx, dword [esp]
pop esp
mov dword [esp], ebp
jmp 0xb25063
jmp 0xb3eb19
jmp 0xb31693
inc esi
sub esi, 0x967fb149
add edx, esi
pop esi
push esi
mov esi, 0x14
sub edx, esi
pop esi
xchg dword [esp], edx
pop esp
jmp 0xb316b4
push edx
push esp
mov edx, dword [esp]
add esp, 4
push esi
mov esi, 0x37fdb342
neg esi
xor esi, 0x5e7dfdf2
jns 0xb31693
jmp 0xb315cf
jmp 0xb209d9
jmp 0xb32ed9
mov dword [esp], ecx
jmp 0xb32ef0
push eax
push eax
mov eax, 0x385a94aa
mov dword [esp + 4], eax
push dword [esp]
pop eax
add esp, 4
jmp 0xb32ed1
jmp 0xb44f66
push 0x244d72a3
mov dword [esp], esp
add dword [esp], 4
mov ebp, dword [esp]
push ecx
mov ecx, esp
add ecx, 4
add ecx, 4
xchg dword [esp], ecx
mov esp, dword [esp]
jmp 0xb3ec54
jmp 0xb31579
jmp 0xb4501e
pop dword [esp]
pop esp
mov dword [esp], edx
jmp 0xb45094
push eax
sub esp, 4
mov dword [esp], esp
add dword [esp], 4
pop eax
add eax, 4
sub eax, 4
push eax
push dword [esp + 4]
pop eax
jmp 0xb45012
jmp 0xb2cff1
Function at 0x40e104
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42d700
cmp edx, dword [eax]
je 0x40e126
add eax, 8
inc ecx
cmp eax, 0x42d790
jl 0x40e117
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42d700]
jne 0x40e254
mov eax, dword [0x4302b4]
cmp eax, 1
je 0x40e22e
test eax, eax
jne 0x40e157
cmp dword [0x42cf84], 1
je 0x40e22e
cmp edx, 0xfc
je 0x40e254
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e18e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e1d1
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425d70
push edi
call fcn.00410f70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e270
lea eax, [ebp - 0xa0]
push 0x425d50
push eax
call fcn.0040e270
push dword [esi + 0x42d704]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410ee2
add esp, 0x2c
pop edi
jmp 0x40e254
lea eax, [ebp + 8]
lea esi, [esi + 0x42d704]
push 0
push eax
push dword [esi]
call fcn.0040d850
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x415fb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b920
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41607b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41607b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41602e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416039
or bh, 8
and edi, 0x8000000
je 0x416054
mov eax, dword [0x431a5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41607b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41647b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41649f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4164ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41ae43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41ae85
call fcn.0041f26f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ae85
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ae7c
xor eax, eax
jmp 0x41ae8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ae93
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f95d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41f98b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f9a9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f8c3
jmp 0x41f9a9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f9a9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f8c3
test edi, edi
mov eax, edi
jne 0x41f993
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8