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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x551ee1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x902680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x551ee1
test cl, 0x48
je 0x551d78
cmp byte [eax + 5], 0xa
je 0x551d78
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x551dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x551db2
call fcn.0054b875
mov dword [eax], 9
call fcn.0054b87e
mov dword [eax], esi
jmp 0x551dc2
cmp eax, 0x6d
je 0x551ee1
push eax
call fcn.0054b887
pop ecx
or eax, 0xffffffff
jmp 0x551ee3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x551edc
test eax, eax
je 0x551df1
cmp byte [ebx], 0xa
jne 0x551df1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x551dfa
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x551ed6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x551ec6
cmp al, 0xd
je 0x551e2c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x551eb8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x551e46
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x551e41
add dword [ebp + 0x10], 2
jmp 0x551e9a
mov dword [ebp + 0x10], eax
jmp 0x551eb4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x551e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x551eb4
cmp dword [ebp - 0xc], 0
je 0x551eb4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x551e8f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x551e9a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x551eb7
cmp ebx, dword [ebp + 0xc]
jne 0x551e9f
cmp byte [ebp - 1], 0xa
jne 0x551e9f
mov byte [ebx], 0xa
jmp 0x551eb7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00552191
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x551eb8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x551e10
jmp 0x551ed6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x551ed6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x551ee3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x552ab2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5d7064]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x5d76d8]
je 0x552ae7
inc eax
cmp eax, 0x13
jb 0x552ad8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5d76d8]
jne 0x552c0d
mov eax, dword [0x8794bc]
cmp eax, 1
je 0x552be5
cmp eax, edx
jne 0x552b17
cmp dword [0x5d704c], 1
je 0x552be5
cmp ecx, 0xfc
je 0x552c0d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x552b4d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0054f2f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0054cd70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x552b81
mov eax, edi
push eax
call fcn.0054cd70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5693d0
push edi
call fcn.0054b3f0
add esp, 0x10
push edi
call fcn.0054cd70
push dword [esi + 0x5d76dc]
mov ebx, eax
call fcn.0054cd70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0054d230
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0054f2f0
push edi
push ebx
call fcn.0054f300
push 0x5693b0
push ebx
call fcn.0054f300
push dword [esi + 0x5d76dc]
push ebx
call fcn.0054f300
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0055728a
add esp, 0x2c
jmp 0x552c0d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x5d76dc]
push dword [esi]
call fcn.0054cd70
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0054bec8
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x555fc5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x555ff3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x555ffa
cmp ebx, dword [eax + 4]
jae 0x555ffa
xor eax, eax
jmp 0x5561ea
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x55600b
xor eax, eax
inc eax
jmp 0x5561e9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x556021
cmp ecx, edx
jae 0x556166
cmp dword [eax + 4], 0
je 0x55602a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x556012
cmp dword [ebp + 8], 0
je 0x55604c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x556166
cmp eax, esi
jae 0x556166
mov eax, dword [0x879858]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x556071
cmp dword [esi*4 + 0x879860], edi
je 0x55616a
inc esi
cmp esi, eax
jl 0x55605f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5561e6
cmp dword [ebp - 8], 0x1000000
jne 0x5561e6
test byte [ebp - 0xc], 0xcc
je 0x5560ef
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5561e6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5561e6
cmp word [eax + 0x18], 0x10b
jne 0x5561e6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5561e6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5560ef
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5560ef
test byte [ecx + 0x27], 0x80
jne 0x556166
push 1
push 0x8798a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x556003
mov ecx, dword [0x879858]
test ecx, ecx
mov edx, ecx
jle 0x556123
lea eax, [ecx*4 + 0x87985c]
cmp dword [eax], edi
je 0x556123
dec edx
sub eax, 4
test edx, edx
jg 0x556117
test edx, edx
jne 0x556154
push 0xf
pop ebx
cmp ecx, ebx
jg 0x556130
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x556148
lea eax, [edx*4 + 0x879860]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x556136
cmp ecx, 0x10
jge 0x556154
inc ecx
mov dword [0x879858], ecx
push 0
push 0x8798a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x556003
xor eax, eax
jmp 0x5561e9
test esi, esi
jle 0x556003
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x8798a0
call ebx
test eax, eax
jne 0x556003
cmp dword [esi*4 + 0x879860], edi
je 0x5561c0
mov eax, dword [0x879858]
lea esi, [eax - 1]
test esi, esi
jl 0x5561ae
cmp dword [esi*4 + 0x879860], edi
je 0x5561aa
dec esi
jns 0x55619e
test esi, esi
jge 0x5561be
cmp eax, 0x10
jge 0x5561b9
inc eax
mov dword [0x879858], eax
lea esi, [eax - 1]
jmp 0x5561c0
je 0x5561d8
xor ecx, ecx
test esi, esi
jl 0x5561d8
lea eax, [ecx*4 + 0x879860]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5561c6
push 0
push 0x8798a0
call ebx
jmp 0x556003
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55728a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x879920], ebx
push esi
push edi
jne 0x55730a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x557345
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56d814
push edi
call esi
test eax, eax
mov dword [0x879920], eax
je 0x557345
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x879924], eax
call esi
cmp dword [0x879470], 2
mov dword [0x879928], eax
jne 0x55730a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x879930], eax
je 0x55730a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x87992c], eax
mov eax, dword [0x87992c]
test eax, eax
je 0x55734f
call eax
test eax, eax
je 0x557336
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x879930]
test eax, eax
je 0x557336
test byte [ebp - 8], 1
jne 0x55734f
cmp dword [0x87947c], 4
jb 0x557349
or byte [ebp + 0x12], 0x20
jmp 0x55736e
xor eax, eax
jmp 0x55737e
or byte [ebp + 0x12], 4
jmp 0x55736e
mov eax, dword [0x879924]
test eax, eax
je 0x55736e
call eax
mov ebx, eax
test ebx, ebx
je 0x55736e
mov eax, dword [0x879928]
test eax, eax
je 0x55736e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x879920]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x558f78
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0054d230
mov eax, dword [0x5d7064]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00552191
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5590ab
push 2
push esi
push dword [ebp + 8]
call fcn.00552191
add esp, 0xc
cmp eax, ebx
je 0x5590ab
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x55904b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0054cbb0
push 0x8000
push dword [ebp + 8]
call fcn.00559f56
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x559001
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0055186a
add esp, 0xc
cmp eax, 0xffffffff
je 0x559021
sub edi, eax
test edi, edi
jg 0x558ff9
jmp 0x559039
call fcn.0054b87e
cmp dword [eax], 5
jne 0x559036
call fcn.0054b875
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00559f56
pop ecx
pop ecx
jmp 0x559093
jge 0x559093
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00552191
push dword [ebp + 8]
call fcn.00552710
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x559093
call fcn.0054b875
mov dword [eax], 0xd
call fcn.0054b87e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00552191
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5590ad
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0054bec8
leave
ret
Function at 0x559d81
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x559d9a
or eax, 0xffffffff
jmp 0x559dfb
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x559df7
push 0x3d
push esi
call fcn.0055a27a
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x559df7
cmp esi, eax
je 0x559df7
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x879490]
sete cl
cmp eax, dword [0x879494]
mov dword [ebp - 8], ecx
jne 0x559ddd
mov edi, eax
call fcn.00559d20
mov dword [0x879490], eax
cmp eax, ebx
jne 0x559e36
cmp dword [ebp + 0xc], ebx
je 0x559dff
cmp dword [0x879498], ebx
je 0x559dff
call fcn.00558cd9
test eax, eax
je 0x559e36
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x559e08
xor eax, eax
jmp 0x559dfa
push 4
call fcn.00549160
cmp eax, ebx
pop ecx
mov dword [0x879490], eax
je 0x559df7
mov dword [eax], ebx
cmp dword [0x879498], ebx
jne 0x559e36
push 4
call fcn.00549160
cmp eax, ebx
pop ecx
mov dword [0x879498], eax
je 0x559df7
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x879490]
call fcn.00559cd3
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x559e97
cmp dword [esi], ebx
je 0x559e97
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00549048
cmp dword [ebp - 8], ebx
pop ecx
jne 0x559e7a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x559ed8
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x559e71
mov eax, edi
shl eax, 2
push eax
push dword [0x879490]
call fcn.0054b07c
cmp eax, ebx
pop ecx
pop ecx
je 0x559ed8
jmp 0x559ed3
cmp dword [ebp - 8], ebx
jne 0x559f43
cmp edi, ebx
jge 0x559ea6
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x879490]
call fcn.0054b07c
cmp eax, ebx
pop ecx
pop ecx
je 0x559df7
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x879490], eax
cmp dword [ebp + 0xc], ebx
je 0x559f2d
push dword [ebp - 4]
call fcn.0054cd70
inc eax
inc eax
push eax
call fcn.00549160
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x559f2d
push dword [ebp - 4]
push esi
call fcn.0054f2f0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x559f26
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00549048
pop ecx
cmp dword [ebp - 8], ebx
je 0x559f3b
push dword [ebp - 4]
call fcn.00549048
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x559dfa
push dword [ebp - 4]
call fcn.00549048
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x559e04
Function at 0x919e28
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x919e94
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x919edd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.009329d0
add esp, 8
test eax, eax
jne 0x919edb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x919edf
jmp 0x919e8b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x9258fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x92590a
xor eax, eax
jmp 0x925ad3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x925a8b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9489a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x925913
cmp dword [ebp + 0x10], 0
je 0x925acd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x9489a4]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x925a91
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp eax, 0x35830eb8
inc eax
mov eax, 0xacfceac0
mov eax, ecx
cmp eax, 0xffffffb7
inc eax
inc eax
inc eax
mov eax, ebx
nop
mov eax, 0x234a7241
mov eax, ecx
nop
cmp eax, 0xeb915a3
cmp eax, 0x3a
cmp eax, 0x22
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
inc eax
mov eax, ebx
mov eax, ecx
mov eax, 0xf4011d87
inc eax
cmp eax, 0x380c1aaa
mov eax, ebx
mov eax, ecx
inc eax
mov eax, ebx
cmp eax, 0xe5488c92
cmp eax, 0x37d6e9d0
cmp eax, 0x986a6f55
inc eax
nop
nop
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0xffffffb6
inc eax
mov eax, ebx
cmp eax, 0xfffffffb
mov eax, ecx
cmp eax, 0x51
nop
cmp eax, 0xffffffd1
cmp eax, 0x6e39ef12
inc eax
mov eax, 0x1bb33da2
cmp eax, 0x425a83c2
inc eax
cmp eax, 0xe4179916
inc eax
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
inc eax
inc eax
cmp eax, 0x68
inc eax
cmp eax, 0xffffff91
cmp eax, 7
cmp eax, 0xa28c5302
inc eax
mov eax, 0xa8ef2a66
inc eax
mov eax, 0xb8804025
nop
nop
inc eax
cmp eax, 0x3db6cd9e
nop
cmp eax, 0x62
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
cmp eax, 0x56
mov eax, ebx
nop
mov eax, ebx
cmp eax, 0x42
cmp eax, 0x70bfbaa9
mov eax, ebx
mov eax, ebx
inc eax
mov eax, ebx
inc eax
mov eax, ecx
inc eax
mov eax, ecx
mov eax, ebx
mov eax, ecx
mov eax, ebx
cmp eax, 0x879235d8
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
nop
cmp eax, 0x52fc67ba
cmp eax, 0x55
nop
mov eax, 0x864a6934
mov eax, ecx
cmp eax, 0x3260974f
cmp eax, 0xe9025921
mov eax, ebx
mov eax, ecx
inc eax
cmp eax, 0x5363ddc1
mov eax, ebx
inc eax
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6e04a570
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6e05ab80
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.6e05ab80
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 0x6e04a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6e16e054]
test esi, esi
jle 0x6e04a6f0
mov eax, dword [0x6e16e058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6e04a604
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6e04a687
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6e04a5f0
mov dword [esp], ebx
call fcn.6e04ad30
mov edi, eax
test eax, eax
je 0x6e04a717
mov eax, dword [0x6e16e058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6e04ae70
mov edx, dword [0x6e16e058]
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 0x6e04a6f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6e04a680
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6e04a690
add dword [0x6e16e054], 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 [0x6e16e058]
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 0x6e04a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6e04a570
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6e04a60e
mov eax, dword [0x6e16e058]
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.6e04a570
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6e04a570
lea esi, [esi]
nop