joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100820b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10082128
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret

Function at 0x10082200
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.1002f5c0
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x1008233a
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1008233a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1008233a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x1008230f
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10059fd0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.1005b2ee
add esp, 0x14
test eax, eax
je 0x100822d4
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x100822d4
mov ecx, 1
jmp 0x100822d6
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.10082820
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x100822ef
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.10081f00
add esp, 0xc
mov edi, eax
jmp 0x100822f5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
Function at 0x10082660
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a10
call fcn.1002f5c0
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1008280a
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10082690
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x1008280a
call fcn.100820b0
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.10059fd0
push 0x2000
lea eax, [ebp - 0x2a0c]
mov dword [ebp - 0x2a10], 0
push 0
push eax
call fcn.10059fd0
add esp, 0x18
lea eax, [ebp - 0x2a10]
push eax
push 0x800
lea eax, [ebp - 0x2a0c]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x1008280a
push edi
push 0x104
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10060e17
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100838f0
xor edi, edi
add esp, 0x18
cmp dword [ebp - 0x2a10], edi
jbe 0x100827f6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + edi*4 - 0x2a0c]
call fcn.10082200
add esp, 0xc
test eax, eax
je 0x100827d4
lea eax, [ebp - 0xa0c]
push 0x400
push eax
call fcn.100838f0
add esp, 8
lea ecx, [ebp - 0xa0c]
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100827a9
test dx, dx
je 0x100827a5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100827a9
add eax, 4
add ecx, 4
test dx, dx
jne 0x10082783
xor eax, eax
jmp 0x100827ae
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100827d4
push dword [ebp + edi*4 - 0x2a0c]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100827d4
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x2a10]
jb 0x10082744
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1002ef19
mov esp, ebp
pop ebp
ret 4

Function at 0x100828a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x100828bc
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x100828f0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x100829b1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1008299b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.10059fd0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x100a0868
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x100829b1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.10010a80
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.100609d8
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x10082a11
cmp eax, 0x207
ja 0x10082a11
jne 0x10082a18
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10082a21
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
Function at 0x1095ba0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x788000]
mov dword [edi + 0xc1402c], 0x7f7e3bf6
push edi
jmp 0x1095bca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1095bd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1095bc0
mov eax, 1
add ebx, ebx
jne 0x1095be3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1095bf4
jne 0x1095c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1095c13
dec eax
add ebx, ebx
jne 0x1095c00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1095bd8
add ebx, ebx
jne 0x1095c0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1095c65
xor ecx, ecx
sub eax, 3
jb 0x1095c2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1095c9a
sar eax, 1
mov ebp, eax
jmp 0x1095c36
add ebx, ebx
jne 0x1095c36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1095c04
inc ecx
add ebx, ebx
jne 0x1095c44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1095c04
add ebx, ebx
jne 0x1095c51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1095c46
jne 0x1095c62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1095c46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1095c84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1095c76
jmp 0x1095bc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1095c84
add edi, ecx
jmp 0x1095bc6
pop esi
mov edi, esi
mov ecx, 0x7cb1a4
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1095cbf
cmp byte [edi], 0x6f
jne 0x1095ca4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1095ca2
lea edi, [esi + 0xc69000]
mov eax, dword [edi]
or eax, eax
je 0x1095d10
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc956a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc957f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1095cc5
mov ecx, edi
jns 0x1095cf4
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 + 0xc95800]
or eax, eax
je 0x1095d0a
mov dword [ebx], eax
add ebx, 4
jmp 0x1095ce2
call dword [esi + 0xc957fc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1095d41
cmp al, 0xef
ja 0x1095d34
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1095d16
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1095d23
mov ebp, dword [esi + 0xc95804]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x1095d75
sub esp, 0xffffff80
jmp 0xb6def5
Function at 0x40bb27
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x410438], eax
je 0x40bb49
cmp dword [0x410438], ebx
jne 0x40bbdd
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x410438
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x410438
push 4
push edi
mov dword [0x410438], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x410438]
not eax
mov dword [0x4120c0], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x9094e1a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
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
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x47715a77
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10449a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1088e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10a2014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x10a30ec
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.010580c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x10a2a8c
push eax
call fcn.010580c0
mov esi, dword [0x10a30fc]
xor ebx, ebx
mov edi, dword [0x10a3100]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x10a6390], bl
mov eax, ebx
mov ecx, 0x10a30ec
cmovae ecx, dword [0x10a30ec]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x10a64a0], al
inc ebx
cmp ebx, 0x100
jl 0x1044a20
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x10a6390]
movzx eax, byte [esi + 0x10a64a0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x1044a74
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x10a6390]
mov byte [esi + 0x10a6390], al
inc esi
mov byte [edi + 0x10a6390], dl
cmp esi, 0x100
jl 0x1044a50
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.01044690
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1044ac9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1044abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1044b1f
push edx
push ecx
call fcn.0105d663
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x1044b0b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1044b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1044b1f
push edx
push ecx
call fcn.0105d663
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.01076c6a
int3
Function at 0x10470a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x10a2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x9a05ac
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1047289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x1047289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.010740f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x9a06e8
nop
test eax, eax
je 0x1047289
push 4
push 0x1000
push 4
push 0
call 0x990e7a
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x8700b2
nop
test eax, eax
je 0x1047289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x1098df8
push dword [esp + 0x30]
call 0x8704df
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x10471ac
push 0x1098dfc
push 0x1098e14
call 0x990a6c
nop
push eax
call 0x870247
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x87034e
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x1047289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x9a04d0
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x1047243
mov dword [esp + 0xc], eax
call fcn.01046ef0
push eax
call 0x9805d1
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x9a04d0
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x10471f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x9a04d0
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x870737
nop
push dword [esp + 0x24]
call 0x990b27
nop
push 0x8000
push 0
push esi
call 0x9a0411
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0105cff1
mov esp, ebp
pop ebp
ret
Function at 0x104af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1089726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10a2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.01078b63
push eax
call fcn.01076660
add esp, 8
call fcn.0107663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0107663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0107663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.010445b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x104afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x104afe6
push 0x40
push 0
push 0x10a8560
sub esi, ecx
call fcn.010740f0
add esp, 0xc
mov dword [0x10a8554], 0
mov edx, esi
mov dword [0x10a8550], 0
lea ecx, [ebp - 0x410]
mov dword [0x10a8540], 0x67452301
mov dword [0x10a8544], 0xefcdab89
mov dword [0x10a8548], 0x98badcfe
mov dword [0x10a854c], 0x10325476
call fcn.01045530
call fcn.010455f0
mov ecx, 0x10a65a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x104b071
sub ecx, edx
push ecx
push 0x10a65a0
lea ecx, [ebp - 0x42c]
call fcn.010580c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x104b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x104b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x104b18c
push edx
push ecx
call fcn.0105d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x104b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.010580c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x104b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x104b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x104b18c
push edx
push ecx
call fcn.0105d663
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0105cff1
mov esp, ebp
pop ebp
ret
call fcn.01058200
call fcn.01076c6a
int3
Function at 0x105dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0xa715dc
nop
test eax, eax
je 0x105dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x105dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x105dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x105dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x105dd07
cmp dword [ecx + 0xe8], 0
je 0x105dd07
mov al, 1
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041a160
mov eax, dword [0x423018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x2004]
push 0x2000
push edx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419346
mov esp, ebp
pop ebp
ret

Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x401593
cmp eax, 0x3e5
je 0x401593
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x4015d3
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4015b1
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 4], 0
jmp 0x4015da
push 1
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4015da
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4015e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret