joyce8/EMBER2024-capa huggingface dataset:
Function at 0x544d39
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.00544b5d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x544ea8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x544ea8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x544e5d
jg 0x544d95
test eax, eax
je 0x544e53
push 1
push 0x1000
call fcn.0052948e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x544db8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x544e4a
push 0x8000
push ebx
call fcn.005270f5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x544de1
jg 0x544ddc
cmp ecx, 0x1000
jb 0x544de1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052eb98
add esp, 0x10
cmp eax, 0xffffffff
je 0x544e26
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 0x544ddc
jl 0x544e0d
test ecx, ecx
jne 0x544dce
push dword [ebp - 0xc]
push ebx
call fcn.005270f5
push esi
call fcn.005294f1
add esp, 0xc
xor ebx, ebx
jmp 0x544eb6
cmp byte [edi + 0x24], 0
je 0x544e3d
cmp dword [edi + 0x20], 5
jne 0x544e3d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x544e48
mov ebx, dword [edi + 0x18]
jmp 0x544e4a
xor ebx, ebx
push esi
call fcn.005294f1
pop ecx
jmp 0x544eb6
test ecx, ecx
jg 0x544e1f
jl 0x544e5d
test eax, eax
jae 0x544e1f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00530cc7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x544e7d
cmp byte [edi + 0x1c], 0
je 0x544e1f
jmp 0x544eae
push ebx
call fcn.00538f0a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x544e1f
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 0x544eb6
cmp byte [edi + 0x1c], 0
je 0x544eb3
mov ebx, dword [edi + 0x18]
jmp 0x544eb6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00530cc7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x545c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x545c8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x545c8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4030b8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030e4
mov ecx, dword [0x4705f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f3a
cmp eax, edi
jl 0x4031dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp dword [ebp - 4], esi
jne 0x4031d9
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f3a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031dc
cmp dword [ebp + 0x10], edi
jne 0x4031a8
cmp dword [ebp + 8], edi
jle 0x4031d4
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403158
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp edi, dword [ebp - 4]
jne 0x4031d9
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp dword [ebp + 0x14], edi
jne 0x4031a4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x40314b
jmp 0x4031d4
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031b3
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031dc
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x4043e2
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40441d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x404404
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x404415
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40441f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4043fa
xor eax, eax
pop edi
pop esi
ret

Function at 0x405d2c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.00404367
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x406448
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
invalid
invalid
add al, 0xf9
Function at 0x40668f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406178
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4066c4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x40686a
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4066df
test eax, eax
je 0x406815
test cl, 2
je 0x406815
push edi
push ebx
mov esi, 0x45b908
push esi
call fcn.00405bee
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406702
push str..
push esi
call edi
jmp 0x406708
push ebx
call fcn.0040614b
cmp word [ebx], 0
jne 0x406718
cmp word [0x45b908], 0x5c
jne 0x406720
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406804
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004058e9
xor edi, edi
cmp word [eax], di
je 0x406767
cmp word [ebp - 0x28], di
je 0x406767
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406782
movzx eax, word [esi + 2]
cmp ax, di
je 0x4067e1
cmp ax, 0x2e
jne 0x406782
cmp word [esi + 4], di
je 0x4067e1
push esi
push dword [ebp - 4]
call fcn.00405bee
test byte [ebp - 0x25c], 0x10
je 0x4067a9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4067e1
push dword [ebp + 0xc]
push ebx
call fcn.0040668f
jmp 0x4067e1
push ebx
call fcn.00405a14
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4067d9
test byte [ebp + 0xc], 4
je 0x4067d1
push ebx
push 0xfffffffffffffff1
call fcn.00404ba9
push edi
push ebx
call fcn.0040665c
jmp 0x4067e1
inc dword [0x470668]
jmp 0x4067e1
push ebx
push 0xfffffffffffffff2
call fcn.00404ba9
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406747
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406806
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406815
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406869
cmp dword [ebp - 0xc], esi
je 0x406859
push ebx
call fcn.00405cce
test eax, eax
je 0x406869
push ebx
call fcn.0040611c
push ebx
call fcn.00405a14
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406861
test byte [ebp + 0xc], 4
je 0x406859
push ebx
push 0xfffffffffffffff1
call fcn.00404ba9
push esi
push ebx
call fcn.0040665c
jmp 0x406869
inc dword [0x470668]
jmp 0x406869
push ebx
push 0xffffffffffffffe5
call fcn.00404ba9
pop esi
pop ebx
leave
ret 8
Function at 0xa72390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f5000]
push edi
or ebp, 0xffffffff
jmp 0xa723b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa723b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa723a8
mov eax, 1
add ebx, ebx
jne 0xa723cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa723c0
jne 0xa723dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa723c0
xor ecx, ecx
sub eax, 3
jb 0xa723f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa72462
mov ebp, eax
add ebx, ebx
jne 0xa723fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xa72408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xa7242c
inc ecx
add ebx, ebx
jne 0xa72418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa7240d
jne 0xa72429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa7240d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa7244c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa7243d
jmp 0xa723ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa7244c
add edi, ecx
jmp 0xa723ae
pop esi
mov edi, esi
mov ecx, 0xea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa7246a
cmp byte [edi], 6
jne 0xa7246a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa7246f
lea edi, [esi + 0x66a000]
mov eax, dword [edi]
or eax, eax
je 0xa724e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x672458]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6724f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa7249c
mov ecx, edi
jns 0xa724cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6724fc]
or eax, eax
je 0xa724e1
mov dword [ebx], eax
add ebx, 4
jmp 0xa724b9
call dword [esi + 0x67250c]
mov ebp, dword [esi + 0x672500]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa7251b
sub esp, 0xffffff80
jmp 0x409a16
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x438c85
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop eax
add edi, 0x73e1328e
add edi, 0x11056c97
call fcn.00438cc9
sub ecx, 0xcd3429db
xor dword [ebx], eax
or ecx, edi
sub edi, ecx
add edi, 0x4b45ff3c
add ebx, 1
mov edi, 0x49d222ad
cmp ebx, esi
jne fcn.00438c85
or ecx, ecx
dec edi
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x180606d8
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..tls
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x23a92acf
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401040
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x220
lea eax, [ebp - 0x224]
mov ebx, edx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x40108e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401554
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x4010f7
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
mov eax, ebx
lea ecx, [ebp - 0x208]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4010e0
test dl, dl
je 0x4010dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4010e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4010c0
xor eax, eax
jmp 0x4010e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401111
lea eax, [ebp - 0x228]
push eax
push esi
call edi
test eax, eax
jne 0x4010b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401554
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401554
mov esp, ebp
pop ebp
ret

Function at 0x401130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x404400]
push edi
push 0x40
push 0x1000
push ebx
mov edi, edx
push 0
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push ebx
push eax
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4011d2
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov al, byte [ecx]
mov byte [ebp - 1], al
mov edx, dword [ebp - 8]
mov al, byte [ebp - 1]
add edx, ebx
cmp byte [edx], al
jne 0x401188
cmp byte [edi], 0x78
je 0x40118d
cmp byte [edi], 0x3f
jne 0x4011a1
mov esi, edi
mov eax, ecx
sub esi, ecx
mov cl, byte [esi + eax]
cmp cl, 0x78
jne 0x4011be
mov cl, byte [edx]
cmp cl, byte [eax]
je 0x4011c2
mov ecx, edi
inc ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011a7
mov eax, dword [ebp + 8]
sub ecx, edx
sub eax, ecx
cmp ebx, eax
ja 0x4011d2
mov ecx, dword [ebp + 0xc]
jmp 0x401177
test cl, cl
je 0x4011c6
inc edx
inc eax
jmp 0x401193
mov eax, dword [ebp - 0xc]
pop edi
pop esi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100176c0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [0x1001e7f8]
mov eax, dword [eax]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x22c]
call eax
test eax, eax
je 0x10017710
push 0x50e
push str.hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.10005d70
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005d10
ret

Function at 0x10017720
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001e7f8]
mov eax, dword [eax]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x10017763
push 0x51b
push str.hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.10005d70
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005d10
ret

Function at 0x10017ff3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e108]
jne 0x10017ffd
repz ret
jmp fcn.10018482

Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407670
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x36c
mov esi, dword [esp + 0x380]
lea ebp, [esp + 0x34]
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll_time]
mov eax, dword [esi + 0x1b0]
mov edi, dword [esi + 0x914]
mov ebx, dword [esi + 0x1a4]
mov dword [esp], ebp
lea ebp, [esp + 0x40]
mov dword [esp + 0x2c], eax
call dword [sym.imp.msvcrt.dll_localtime]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0x10]
lea ecx, [edx + 1]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0x14]
mov dword [esp], ebp
add eax, 0x76c
mov dword [esp + 4], 0x4bf3b3
mov dword [esp + 8], eax
call sym.sprintf_char__char_const__..._
mov dword [esp + 8], edi
lea edi, [esp + 0x60]
mov dword [esp + 4], 0x4bf3cb
mov dword [esp], edi
call sym.sprintf_char__char_const__..._
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 0x18c]
lea ebp, [esp + 0x160]
mov dword [esp + 0x10], str.usbfifo
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4bf3d6
mov dword [esp], ebp
call sym.sprintf_char__char_const__..._
mov dword [esp], edi
call dbg.opendir
test eax, eax
je 0x407810
mov dword [esp + 4], 0x4bf45b
mov dword [esp], ebp
call sym._fopen
mov dword [esp + 0x28], eax
test eax, eax
je 0x407830
mov eax, dword [esp + 0x384]
test eax, eax
je 0x4077eb
mov eax, dword [esp + 0x384]
xor edi, edi
lea ebp, [esp + 0x38]
add eax, eax
sub ebx, eax
sub ebx, 2
and ebx, dword [esp + 0x2c]
lea esi, [esi]
mov eax, dword [esi + 0x1a0]
add edi, 1
movzx eax, word [eax + ebx]
mov dword [esp + 4], str._04x_n
add ebx, 2
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym.sprintf_char__char_const__..._
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call sym._fwrite
and ebx, dword [esi + 0x1b0]
cmp dword [esp + 0x384], edi
jne 0x407798
mov esi, dword [esp + 0x28]
mov dword [esp], esi
call sym._fflush
mov dword [esp], esi
call sym._fclose
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], str.ERROR:Cannot_open_save_path_directory__s_n
call sym._pprintf
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 0x190]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x18c]
mov dword [esp], str.ERROR:_d_d:_failed_to_open_usbfifo_file__s._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x4077ff