joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x402be1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x402bc4
cmp edi, 2
jb 0x402bc4
cmp byte [esi], cl
jne 0x402bc4
cmp byte [esi + 1], cl
jne 0x402bc4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432ff0]
jmp 0x402b95
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432ff0]
test edi, edi
jne 0x402b95
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402c10
cmp cl, 0x23
jne 0x402bf7
cmp byte [esi], cl
jne 0x402bf7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x432ff0]
test cl, cl
jne 0x402be8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x402d95
push 0x5d3
push str.C:Users_adminDesktoposemberv2imguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x402da2
mov dword [edi], 0
mov edx, 0x432d48
mov ecx, esi
call fcn.00402c20
mov esi, eax
test esi, esi
je 0x402e92
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402e88
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402e88
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x402e88
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402e88
mov eax, dword [0x43c758]
test eax, eax
je 0x402e1c
inc dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e88
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x402e6d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x43c758]
add esp, 4
test eax, eax
je 0x402e5a
dec dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x402e7f
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xbc], 0
jg 0x404838
push 0x55e
push str.C:Users_adminDesktoposemberv2imguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0xbc]
mov edi, 4
mov eax, dword [esi + 0xc4]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432ff0]
sub edi, 1
jne 0x404852
mov ecx, dword [0x43c758]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a4c], eax
jne 0x404884
mov dword [ecx + 0x1a50], eax
cmp dword [ecx + 0x1a84], eax
jne 0x404893
mov byte [ecx + 0x1a88], 1
pop ebp
ret 4

Function at 0x406c10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x406c29
cmp byte [edi + 0x2e10], 0
je 0x406c41
push 0xf17
push str.C:Users_adminDesktoposemberv2imguiimgui.cpp
push str._g.Initialized___g.SettingsLoaded
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], str.Window
mov al, 0x57
mov esi, 0x4308e1
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x406c6e
cmp byte [esi], al
jne 0x406c6e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x432ff0]
test al, al
jne 0x406c60
mov esi, dword [edi + 0x2e24]
not edx
mov ecx, dword [edi + 0x2e28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x412c60
mov dword [ebp - 0x14], 0x412d00
mov dword [ebp - 0x10], 0x412d90
mov dword [ebp - 0xc], 0x412e40
mov dword [ebp - 8], 0x412fa0
cmp esi, ecx
jne 0x406d52
inc esi
test ecx, ecx
je 0x406cd3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x406cd8
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x406d52
mov eax, dword [0x43c758]
test eax, eax
je 0x406cf0
inc dword [eax + 0x374]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [edi + 0x2e2c]
test eax, eax
je 0x406d46
mov ecx, dword [edi + 0x2e24]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2e2c]
add esp, 0xc
test ecx, ecx
je 0x406d3c
mov eax, dword [0x43c758]
test eax, eax
je 0x406d3c
dec dword [eax + 0x374]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x2e2c], ebx
mov dword [edi + 0x2e28], esi
mov eax, dword [edi + 0x2e24]
movups xmm0, xmmword [ebp - 0x24]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e2c]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e24]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4082a0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x4082dd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x4082c3
cmp byte [esi], bl
jne 0x4082c3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x432ff0]
test bl, bl
jne 0x4082b4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00408240
Function at 0x412260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x43c758]
push edi
cmp byte [esi + 0x2e3c], 0
je 0x4122ff
cmp dword [esi + 0x2e44], 0
lea edi, [esi + 0x2e48]
je 0x4122f1
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x4122a9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00413b50
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00403240
mov edx, dword [edi]
mov ecx, 0x43c754
push dword [esi + 0x2e44]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2e50]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00403240
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x43c758]
mov eax, ecx
mov dword [esp + 0x10], eax
push edi
mov dword [esi + 0x2e14], 0
test eax, eax
je 0x412c58
lea edi, [esi + 0x2e18]
mov dword [esi + 0x2e14], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x412b99
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00413b50
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x412bae
push 8
mov ecx, edi
call fcn.00413b50
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0
inc dword [edi]
mov eax, dword [esi + 0x2e24]
test eax, eax
jle 0x412c14
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp ebx, eax
jl 0x412beb
push 0x554
push str.C:Users_adminDesktoposemberv2imguiimgui.h
push str.i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esi + 0x2e2c]
add eax, ecx
push edi
push eax
push esi
mov eax, dword [eax + 0x1c]
call eax
mov ecx, dword [esp + 0x1c]
inc ebx
mov eax, dword [esi + 0x2e24]
add ecx, 0x24
add esp, 0xc
mov dword [esp + 0x10], ecx
cmp ebx, eax
jl 0x412beb
mov edi, dword [edi]
mov ebx, 0x43c754
mov ecx, dword [esp + 0x14]
mov edx, 0x432d4c
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2e20]
test eax, eax
cmovne ebx, eax
call fcn.00402c20
mov esi, eax
test esi, esi
je 0x412c58
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cd30
Capabilities:
Create process on windows
Create process suspended
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
xorps xmm0, xmm0
mov dword [ebp - 0xc], ecx
push ebx
xor eax, eax
movlpd qword [ebp - 0x64], xmm0
push esi
xor edx, edx
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x36], xmm0
movlpd qword [ebp - 0x2e], xmm0
mov word [ebp - 0x26], ax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], ax
push edi
test ecx, ecx
je 0x42cd94
mov edx, ecx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42cd85
sub edx, ecx
sar edx, 1
lea eax, [edx*2 + 0x800]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push str.COMSPEC
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 8
mov ebx, eax
push 0
push 0
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi + esi]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
push esi
mov esi, eax
push esi
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call edi
test eax, eax
jne 0x42cedb
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ebx, dword [ebp - 4]
mov ecx, str.CMD.EXE
mov edx, ebx
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42ce10
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x42ce23
mov eax, dword [str.__c]
mov edx, dword [ebp - 0xc]
mov esi, edx
mov dword [ecx], eax
mov eax, dword [0x4396d4]
mov dword [ecx + 4], eax
mov ax, word [0x4396d8]
mov word [ecx + 8], ax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42ce50
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42ce60
mov ecx, edx
lea eax, [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x68]
mov ecx, edx
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42ceca
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42ceba
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42cdff
mov ebx, dword [ebp - 4]
mov edx, esi
mov ecx, ebx
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x42cef0
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x42ce20
Function at 0x42e280
Capabilities:
Query environment variable

Disassembly:
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [0x43c780], 0
je 0x42e2a4
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
jne 0x42e2d0
call fcn.0042dd10
test eax, eax
jne 0x42e2d0
push str.SSH_CLIENT
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x42e3c1
push str.DISPLAY
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x42e3c1
call fcn.0042dd10
mov byte [0x454830], 0
test eax, eax
je 0x42e2ec
sub esp, 8
call fcn.0042de00
add esp, 8
ret
cmp dword [0x43c82c], 0
jne 0x42e329
cmp dword [0x43c780], 0
jne 0x42e329
push str.missing_software___we_will_try_basic_console_input_
push str._n_n_s_n
mov dword [0x43c82c], 1
call fcn.0042cc00
push str._____________n______________n_tiny_file__n__dialogs___n_____________n______tiny_file_dialogs_on_Windows_needs:_n_ta_graphic_display_nor_tdialog.exe__enhanced_console_mode__nor_ta_console_for_basic_input
push str._s_n_n
call fcn.0042cc00
add esp, 0x10
push 0x438b9c
push str._n_s_n_n
call fcn.0042cc00
push str.Open_file
push 0x4399ac
call fcn.0042cc00
push str._ctrl_Z__enter_to_cancel_:
call fcn.0042cc00
add esp, 0x14
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0x400
push 0x454830
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x42e3be
push 0x432de4
call fcn.0042cc00
add esp, 4
push 0x1b
push 0x454830
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
jne 0x42e3be
mov ecx, 0x454830
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e3a0
sub ecx, edx
cmp byte [ecx + 0x45482f], 0xa
jne 0x42e3b8
mov byte [ecx + 0x45482f], al
mov eax, 0x454830
ret
xor eax, eax
ret
sub esp, 8
mov byte [0x454830], 0
call fcn.0042cf10
add esp, 8
ret
Function at 0x42f343
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f382
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f382
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f382
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f382
cmp dword [ecx + 0x74], 0xe
jbe 0x42f382
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10034ac9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10034aed
xor eax, eax
jmp 0x10034c2b
push 1
lea eax, [ebp + 8]
push eax
push 0x4f47
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100349ff
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10034b1a
xor eax, eax
jmp 0x10034c2b
push 1
lea eax, [ebp - 8]
push eax
push 0x135f
lea eax, [ebp - 0xc]
push eax
call fcn.10034a65
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x10034b3e
xor eax, eax
jmp 0x10034c2b
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.1003489c
add esp, 0x18
push dword [ebp + 8]
push dword [ebp - 8]
push 0
push 0x5a1e
push 0x4778
push dword [ebp - 4]
push 0x720c
call fcn.10033445
add esp, 0x1c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10034bae
push dword [ebp - 0x14]
push 0x4729
push 0x36b7
push 0x77fe
push dword [ebp - 4]
push 0x50de
push 1
call fcn.1002c329
add esp, 0x1c
push dword [ebp - 4]
call fcn.10031e41
pop ecx
test eax, eax
jne 0x10034bbf
xor eax, eax
jmp 0x10034c2b
push dword [ebp - 4]
push 0
push 0x17af
call fcn.10030983
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10034c13
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10034bf0
xor eax, eax
jmp 0x10034c2b
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10034c09
xor eax, eax
jmp 0x10034c2b
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10034c24
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10034c28
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10087f52
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009038c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10078d5c
mov dword [ebp - 0x14], eax
cmp dword [0x11aa610c], esi
jne 0x10088045
push 0x800
push esi
push 0x1000814c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10087fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10088125
push esi
push esi
push 0x1000814c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10088125
push 0x10008164
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10088125
push eax
call ebx
push 0x10008170
push edi
mov dword [0x11aa610c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008180
push edi
mov dword [0x11aa6110], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008194
push edi
mov dword [0x11aa6114], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x11aa611c], eax
test eax, eax
je 0x10088042
push 0x100081b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x11aa6118], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008806a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008805d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008807f
push 4
pop eax
jmp 0x10088127
cmp dword [ebp - 0x14], esi
je 0x1008807f
push dword [0x11aa610c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10088064
mov eax, dword [0x11aa6118]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100880dd
cmp dword [0x11aa611c], edi
je 0x100880dd
push eax
call ebx
push dword [0x11aa611c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100880dd
test eax, eax
je 0x100880dd
call ecx
test eax, eax
je 0x100880d2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100880d2
test byte [ebp - 8], 1
jne 0x100880dd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008810d
mov eax, dword [0x11aa6110]
cmp eax, edi
je 0x1008810a
push eax
call ebx
test eax, eax
je 0x1008810a
call eax
mov esi, eax
test esi, esi
je 0x1008810a
mov eax, dword [0x11aa6114]
cmp eax, edi
je 0x1008810a
push eax
call ebx
test eax, eax
je 0x1008810a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x11aa610c]
call ebx
test eax, eax
je 0x10088125
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10088127
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x401784
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x40183a
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xcfc4c0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xcfc4c0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xcfc4c0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xcfc4c0]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 4
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x40179d
jmp 0x401871
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xcfc4c0]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
sub dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
jne 0x401846
mov eax, dword [ebp - 4]
not eax
leave
ret
Function at 0x420110
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004269a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004269a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x420170
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xdef07c]
test esi, esi
jle 0x420290
mov eax, dword [0xdef080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4201a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x420227
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x420190
mov dword [esp], ebx
call fcn.00420af0
mov edi, eax
test eax, eax
je 0x4202b7
mov eax, dword [0xdef080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00420c30
mov edx, dword [0xdef080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x420297
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x420220
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x420230
add dword [0xdef07c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xdef080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x420220
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00420110
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4201ae
mov eax, dword [0xdef080]
mov eax, dword [eax + ebx + 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.00420110
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00420110
lea esi, [esi]
nop