joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a7a7
Capabilities:
Create udp socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x18], 0xffffffff
push esi
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
mov ecx, dword [ecx + 4]
je 0x100a7d4
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009fdf
jmp 0x100a886
sub ecx, 0xa
push ebx
push edi
mov word [ebp - 0xa], 1
je 0x100a852
sub ecx, 7
je 0x100a852
dec ecx
jne 0x100a884
push dword [eax + 0x5c]
call fcn.01013a28
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x100a884
mov eax, dword [esi + 8]
mov ax, word [eax + 0x5c]
mov word [edi + 2], ax
mov eax, dword [esi + 8]
xor ebx, ebx
cmp dword [eax + 0x5c], edx
jle 0x100a82e
lea ecx, [edi + 4]
mov eax, dword [edx + eax + 0x64]
mov dword [ecx], eax
mov eax, dword [esi + 8]
inc ebx
add edx, 0xc
add ecx, 8
cmp ebx, dword [eax + 0x5c]
jl 0x100a819
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009fdf
push edi
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100a884
xor edi, edi
xor ebx, ebx
cmp dword [eax + 0x5c], edi
jle 0x100a884
mov eax, dword [edi + eax + 0x64]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009fdf
mov eax, dword [esi + 8]
inc ebx
add edi, 0xc
cmp ebx, dword [eax + 0x5c]
jl 0x100a85b
pop edi
pop ebx
pop esi
leave
ret 0x18
Function at 0x100a81b
Capabilities:
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x18], 0xffffffff
push esi
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
mov ecx, dword [ecx + 4]
je 0x100a7d4
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009fdf
jmp 0x100a886
sub ecx, 0xa
push ebx
push edi
mov word [ebp - 0xa], 1
je 0x100a852
sub ecx, 7
je 0x100a852
dec ecx
jne 0x100a884
push dword [eax + 0x5c]
call fcn.01013a28
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x100a884
mov eax, dword [esi + 8]
mov ax, word [eax + 0x5c]
mov word [edi + 2], ax
mov eax, dword [esi + 8]
xor ebx, ebx
cmp dword [eax + 0x5c], edx
jle 0x100a82e
lea ecx, [edi + 4]
mov eax, dword [edx + eax + 0x64]
mov dword [ecx], eax
mov eax, dword [esi + 8]
inc ebx
add edx, 0xc
add ecx, 8
cmp ebx, dword [eax + 0x5c]
jl 0x100a819
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009fdf
push edi
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100a884
xor edi, edi
xor ebx, ebx
cmp dword [eax + 0x5c], edi
jle 0x100a884
mov eax, dword [edi + eax + 0x64]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009fdf
mov eax, dword [esi + 8]
inc ebx
add edi, 0xc
cmp ebx, dword [eax + 0x5c]
jl 0x100a85b
pop edi
pop ebx
pop esi
leave
ret 0x18
Function at 0x100b0cc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [reloc.msvcrt.dll___p__commode]
xor eax, dword [ebp + 4]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, reloc.msvcrt.dll___p__commode
push eax
xor edi, edi
push 0x202
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100b0c6
cmp byte [ebp - 0x1ac], 2
jne 0x100b0c0
cmp byte [ebp - 0x1ab], 2
jne 0x100b0c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
call fcn.0101f0fc
cmp eax, reloc.msvcrt.dll___p__commode
mov dword [ebp - 0xc], eax
jne 0x100afce
cmp dword [ebp - 0x1c], reloc.msvcrt.dll___p__commode
jne 0x100b0c6
push dword [ebp - 0x10]
push edi
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x100b0c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.0101f0fc
cmp eax, reloc.msvcrt.dll___p__commode
mov dword [ebp - 0xc], eax
jne 0x100afcb
push esi
push edi
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100b0c6
mov dword [ebp - 8], esi
cmp dword [reloc.msvcrt.dll___p__commode], edi
mov dword [ebp - 0x14], 0x1001c4c
jne 0x100afe4
mov dword [ebp - 0x14], 0x1001c5c
cmp dword [ebp - 0xc], edi
mov dword [reloc.msvcrt.dll___p__commode], edi
mov dword [reloc.msvcrt.dll___p__commode], edi
je 0x100b07e
push ebx
mov ebx, 0x274
mov esi, dword [ebp - 8]
dec dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push 4
add esi, 0x14
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x100b072
mov esi, dword [ebp - 8]
cmp dword [esi + 0x5c], eax
jne 0x100b048
cmp dword [esi + 0x58], 3
jne 0x100b048
cmp dword [esi + 0x4c], 2
jne 0x100b048
push ebx
push eax
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [reloc.msvcrt.dll___p__commode], eax
je 0x100b07b
mov ecx, 0x9d
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [esi + 0x5c], 6
jne 0x100b072
push ebx
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [reloc.msvcrt.dll___p__commode], eax
je 0x100b07b
mov ecx, 0x9d
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0
jne 0x100afff
xor edi, edi
pop ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push dword [0x1024f78]
call esi
cmp dword [reloc.msvcrt.dll___p__commode], edi
je 0x100b09d
xor eax, eax
inc eax
jmp 0x100b0c8
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp eax, edi
je 0x100b0b0
push eax
push edi
push dword [0x1024f78]
call esi
push 0x2758
push 1
push 1
call fcn.0100418f
jmp 0x100b0c6
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0101ed84
leave
ret
Function at 0x100b3f1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebx + 0x8c]
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
jne 0x100b3e2
or eax, reloc.msvcrt.dll___p__commode
jmp 0x100b46d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0xc]
mov eax, dword [esi]
cmp eax, edi
jne 0x100b401
cmp dword [ebx + 0x4c], edi
jne 0x100b3fd
or eax, reloc.msvcrt.dll___p__commode
jmp 0x100b46c
cmp eax, edi
je 0x100b42d
cmp dword [ebp + 0xc], edi
push dword [ebp + 0x10]
je 0x100b40d
push 0xb
jmp 0x100b40f
push 9
push dword [0x1041760]
push edi
push esi
call fcn.010102f0
cmp eax, edi
mov dword [ebp + 8], eax
jge 0x100b42d
push dword [ebx + 0x1c]
push dword [esi]
call fcn.010095bf
lea esi, [ebx + 0x4c]
cmp dword [esi], edi
je 0x100b469
cmp dword [ebp + 0xc], edi
push dword [ebp + 0x10]
je 0x100b440
push 0xc
jmp 0x100b442
push reloc.msvcrt.dll__except_handler3
push dword [0x1041760]
push edi
push esi
call fcn.010102f0
cmp eax, edi
mov dword [ebp + 8], eax
jge 0x100b469
cmp dword [reloc.msvcrt.dll___p__commode], 9
jl 0x100b469
push dword [ebx + 0x5c]
push dword [esi]
call fcn.010095bf
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x100b458
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebx + 0x8c]
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
jne 0x100b3e2
or eax, reloc.msvcrt.dll___p__commode
jmp 0x100b46d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0xc]
mov eax, dword [esi]
cmp eax, edi
jne 0x100b401
cmp dword [ebx + 0x4c], edi
jne 0x100b3fd
or eax, reloc.msvcrt.dll___p__commode
jmp 0x100b46c
cmp eax, edi
je 0x100b42d
cmp dword [ebp + 0xc], edi
push dword [ebp + 0x10]
je 0x100b40d
push 0xb
jmp 0x100b40f
push 9
push dword [0x1041760]
push edi
push esi
call fcn.010102f0
cmp eax, edi
mov dword [ebp + 8], eax
jge 0x100b42d
push dword [ebx + 0x1c]
push dword [esi]
call fcn.010095bf
lea esi, [ebx + 0x4c]
cmp dword [esi], edi
je 0x100b469
cmp dword [ebp + 0xc], edi
push dword [ebp + 0x10]
je 0x100b440
push 0xc
jmp 0x100b442
push reloc.msvcrt.dll__except_handler3
push dword [0x1041760]
push edi
push esi
call fcn.010102f0
cmp eax, edi
mov dword [ebp + 8], eax
jge 0x100b469
cmp dword [reloc.msvcrt.dll___p__commode], 9
jl 0x100b469
push dword [ebx + 0x5c]
push dword [esi]
call fcn.010095bf
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x100b95d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov eax, dword [ebp - 8]
mov ebx, dword [eax + reloc.msvcrt.dll___p__commode]
jmp 0x100b95b
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
cmp dword [eax + 4], 0
je 0x100b958
lea ecx, [ebx + 0x44]
mov eax, dword [ecx]
cmp eax, ecx
je 0x100b8e8
test eax, eax
je 0x100b8e8
mov ecx, dword [eax]
mov esi, ecx
lea edx, [ebx + 0x44]
sub esi, edx
neg esi
sbb esi, esi
and dword [ebp - 4], 0
lea edi, [eax - 0xb4]
and esi, ecx
cmp dword [edi + 0x14], 0
je 0x100b892
mov edx, dword [ebp + 0x14]
lea eax, [edi + 0xc]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
cmp dword [edx + ecx*4], reloc.msvcrt.dll___p__commode
jne 0x100b892
push eax
call fcn.01006023
push 6
call fcn.01005924
mov dword [ebp - 4], 1
cmp dword [edi + 0x54], 0
je 0x100b8cc
lea eax, [edi + 0x4c]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
cmp ecx, dword [ebp + 0xc]
jae 0x100b8b2
mov edx, dword [ebp + 0x14]
cmp dword [edx + ecx*4], reloc.msvcrt.dll___p__commode
jmp 0x100b8b6
cmp dword [ebp + 0x10], 0
jne 0x100b8cc
push eax
call fcn.01006023
push 7
call fcn.01005924
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x100b8de
push edi
call fcn.010069fc
push edi
call fcn.01005db8
test esi, esi
mov eax, esi
jne 0x100b84a
mov esi, dword [ebx + 0x34]
jmp 0x100b919
cmp dword [esi + 0x10], 0
jne 0x100b8f9
movzx eax, byte [esi + 0x5a]
jmp 0x100b8fc
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + eax*4], reloc.msvcrt.dll___p__commode
jne 0x100b917
mov eax, esi
mov esi, dword [esi]
push eax
push ebx
call fcn.0101141a
cmp eax, reloc.msvcrt.dll___p__commode
je 0x100b958
jmp 0x100b919
mov esi, dword [esi]
test esi, esi
jne 0x100b8ed
mov esi, dword [ebx + 0x38]
jmp 0x100b93d
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + eax*4], reloc.msvcrt.dll___p__commode
jne 0x100b93b
mov eax, esi
mov esi, dword [esi]
push eax
push ebx
call fcn.01016728
jmp 0x100b93d
mov esi, dword [esi]
test esi, esi
jne 0x100b922
cmp dword [ebx + 0x34], esi
jne 0x100b958
cmp dword [ebx + 0x38], esi
jne 0x100b958
lea eax, [ebx + 0x44]
cmp dword [eax], eax
jne 0x100b958
push ebx
call fcn.0101acd4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x100b823
add dword [ebp - 8], 4
cmp dword [ebp - 8], 0x494
jb 0x100b815
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100b9ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
mov dword [ebp - 4], edx
jbe 0x100b9e1
mov eax, dword [ebp + 0x10]
push ebx
push esi
add eax, 0x18
push edi
xor esi, esi
cmp esi, dword [ebp + 0xc]
jae 0x100b9c3
mov ecx, dword [ebp + 0x14]
mov edi, dword [eax - 0x14]
add ecx, 0x18
cmp dword [ecx - 0x14], edi
jne 0x100b9af
mov ebx, dword [ecx]
cmp ebx, dword [eax]
je 0x100b9ba
inc esi
add ecx, 0x5c
cmp esi, dword [ebp + 0xc]
jb 0x100b9a4
jmp 0x100b9c0
mov ecx, dword [ebp + 0x18]
mov dword [ecx + edx*4], esi
cmp esi, dword [ebp + 0xc]
jne 0x100b9d3
mov ecx, dword [ebp + 0x18]
or dword [ecx + edx*4], reloc.msvcrt.dll___p__commode
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
inc edx
add eax, 0x5c
cmp edx, ecx
jb 0x100b994
pop edi
pop esi
pop ebx
mov edx, dword [ebp + 0xc]
cmp ecx, edx
mov eax, dword [ebp + 0x18]
mov dword [eax + ecx*4], edx
je 0x100b9f5
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x100bc7c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
push esi
lea esi, [eax + 0x10]
jmp 0x100bc9c
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [ecx + 4], esi
mov dword [eax + 4], eax
mov dword [eax], eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 0xa0]
push ecx
push eax
push dword [0x1024f90]
call fcn.0100450c
test al, al
je 0x100bc9c
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.010069fc
lea eax, [ebp - 4]
push eax
push 0xf
push dword [ebp + 0xc]
call fcn.01006a41
lea eax, [ebp - 4]
push eax
push 0x10
push dword [ebp + 0xc]
call fcn.01006a99
cmp dword [ebp - 4], 0
jne 0x100bc9c
push dword [ebp + 0xc]
call fcn.01005db8
cmp dword [esi], esi
jne 0x100bc3b
cmp dword [ebp + 8], 0
pop esi
je 0x100bcaf
push dword [ebp + 8]
call fcn.0100ac3a
leave
ret 8
Function at 0x100ca36
Capabilities:
Listen for remote procedure calls

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x100cb0c
push 8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100cb0c
push 8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100cb0c
test byte [esi], 3
je 0x100cb0c
mov esi, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ebx, 0x1024f20
push ebx
call ebp
and byte [esi + 0x4d], 0
cmp dword [esi + 0x5c], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x100ca63
push 0x1024f00
call ebp
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0x10], eax
push 0x1024f00
jne 0x100ca02
call edi
jmp 0x100ca19
and dword [esi + 0x20], 0
call edi
push ebx
call edi
push 1
push dword [esp + 0x14]
call fcn.0100c65a
push ebx
call ebp
push 0x1024ea0
call ebp
cmp dword [esi + 0x30], 0
je 0x100ca5c
cmp byte [esi + 0x4c], 0
jne 0x100ca5c
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x30]
and dword [esi + 0x30], 0
push 0x1024ea0
mov dword [esp + 0x14], eax
call edi
push ebx
call edi
push 1
push dword [esp + 0x14]
call fcn.0100c65a
push ebx
call ebp
jmp 0x100ca63
push 0x1024ea0
call edi
mov eax, dword [esp + 0x18]
test byte [eax], 2
je 0x100ca72
and dword [esi + 0x14], 0
jmp 0x100ca76
and dword [esi + 0x10], 0
push eax
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x14], 0
jne 0x100cb06
cmp dword [esi + 0x10], 0
jne 0x100cb06
push 0x1024ee0
call ebp
cmp dword [reloc.msvcrt.dll___p__commode], 0x1024ec0
jne 0x100cab0
push dword [0x1024ef8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [esi], reloc.msvcrt.dll___p__commode
mov dword [esi + 4], eax
mov dword [eax], esi
push 0x1024e80
mov dword [reloc.msvcrt.dll___p__commode], esi
call ebp
push dword [esi + 0x58]
push dword [0x1022288]
call fcn.010046bd
push dword [0x1022288]
call fcn.010047ed
test eax, eax
jne 0x100caf1
push 1
call fcn.0101d011
push 0x1024e80
call edi
push 5
call fcn.01005924
push 0x1024ee0
call edi
push ebx
call edi
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
Function at 0x100ca5a
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x100cb0c
push 8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100cb0c
push 8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100cb0c
test byte [esi], 3
je 0x100cb0c
mov esi, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ebx, 0x1024f20
push ebx
call ebp
and byte [esi + 0x4d], 0
cmp dword [esi + 0x5c], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x100ca63
push 0x1024f00
call ebp
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0x10], eax
push 0x1024f00
jne 0x100ca02
call edi
jmp 0x100ca19
and dword [esi + 0x20], 0
call edi
push ebx
call edi
push 1
push dword [esp + 0x14]
call fcn.0100c65a
push ebx
call ebp
push 0x1024ea0
call ebp
cmp dword [esi + 0x30], 0
je 0x100ca5c
cmp byte [esi + 0x4c], 0
jne 0x100ca5c
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x30]
and dword [esi + 0x30], 0
push 0x1024ea0
mov dword [esp + 0x14], eax
call edi
push ebx
call edi
push 1
push dword [esp + 0x14]
call fcn.0100c65a
push ebx
call ebp
jmp 0x100ca63
push 0x1024ea0
call edi
mov eax, dword [esp + 0x18]
test byte [eax], 2
je 0x100ca72
and dword [esi + 0x14], 0
jmp 0x100ca76
and dword [esi + 0x10], 0
push eax
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x14], 0
jne 0x100cb06
cmp dword [esi + 0x10], 0
jne 0x100cb06
push 0x1024ee0
call ebp
cmp dword [reloc.msvcrt.dll___p__commode], 0x1024ec0
jne 0x100cab0
push dword [0x1024ef8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [esi], reloc.msvcrt.dll___p__commode
mov dword [esi + 4], eax
mov dword [eax], esi
push 0x1024e80
mov dword [reloc.msvcrt.dll___p__commode], esi
call ebp
push dword [esi + 0x58]
push dword [0x1022288]
call fcn.010046bd
push dword [0x1022288]
call fcn.010047ed
test eax, eax
jne 0x100caf1
push 1
call fcn.0101d011
push 0x1024e80
call edi
push 5
call fcn.01005924
push 0x1024ee0
call edi
push ebx
call edi
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
Function at 0x101735f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x38]
push edi
xor edi, edi
test esi, esi
je 0x101739d
jmp 0x10171e1
mov esi, dword [ebp - 8]
cmp dword [esi + 0x50], 0
mov ebx, dword [esi]
mov dword [ebp - 8], ebx
jne 0x101735c
test byte [esi + 0x18], 1
jne 0x101735c
mov eax, dword [esi + 0x44]
sub eax, dword [reloc.msvcrt.dll___p__commode]
jns 0x101735c
push 0x22
push dword [esi + 0x14]
call fcn.01005941
push dword [esi + 0x14]
call fcn.0100bc1d
test eax, eax
je 0x1017245
push dword [esi + 0x14]
call fcn.01004c8f
test eax, eax
je 0x1017245
push 4
push dword [esi + 0x10]
lea eax, [esi + 4]
push dword [esi + 0x30]
push eax
push dword [esi + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.010130ff
mov eax, dword [esi + 0x10]
and dword [ebp - 4], 0
cmp word [eax + 2], 0
jbe 0x1017329
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*8 + 8]
sub eax, dword [reloc.msvcrt.dll___p__commode]
jns 0x101730d
test edi, edi
je 0x101728e
mov eax, dword [edi + 8]
cmp dword [eax + 0x5c], 2
jge 0x1017282
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [esi + 8]
je 0x101728a
push edi
call fcn.01017179
xor edi, edi
test edi, edi
jne 0x10172d5
push dword [esi + 0x14]
push 1
call fcn.0101bf45
test eax, eax
je 0x101739d
push eax
call fcn.0101aef7
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.01013d87
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x30]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 0x5c]
add eax, 8
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], ebx
lea ebx, [ebx + eax*4]
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 4]
push dword [eax + ecx*8 + 4]
call fcn.0101ae0b
test eax, eax
mov dword [ebx + 4], eax
je 0x10172ee
mov eax, dword [ebp - 0xc]
inc dword [eax + 0x5c]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x1017364
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 2]
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1017257
mov eax, dword [esi + 0x30]
and al, 0x18
cmp al, 0x10
je 0x101733e
test ebx, ebx
je 0x101733e
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
je 0x1017353
test edi, edi
je 0x1017353
mov eax, dword [edi + 8]
cmp dword [eax + 0x5c], 0
je 0x1017353
push edi
call fcn.01017179
xor edi, edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x1017364
test ebx, ebx
jne 0x10171de
test edi, edi
je 0x101739d
mov eax, dword [edi + 8]
xor esi, esi
xor ebx, ebx
cmp dword [eax + 0x5c], esi
jle 0x1017397
mov eax, dword [esi + eax + 0x64]
test eax, eax
je 0x101738b
push eax
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 8]
inc ebx
add esi, 0xc
cmp ebx, dword [eax + 0x5c]
jl 0x1017374
push edi
call fcn.0101bff6
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x10174a2
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x10173e0
mov eax, dword [esp + 8]
neg eax
sbb eax, eax
jmp 0x10174f1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10174ad
cmp byte [edx + 3], 2
je 0x10173f9
push 4
jmp 0x10174f0
cmp byte [ecx + 3], 2
je 0x1017406
push 5
jmp 0x10174f0
mov al, byte [edx + 8]
cmp al, byte [ecx + 8]
jne 0x101741f
movzx eax, al
dec eax
je 0x101743b
dec eax
je 0x101743b
sub eax, 3
je 0x101743b
dec eax
je 0x1017426
push 3
jmp 0x10174f0
mov edx, dword [edx + 0x10]
mov ecx, dword [ecx + 0x10]
cmp edx, ecx
je 0x1017472
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x10174f1
fld dword [edx + 0x10]
fcomp dword [ecx + 0x10]
fnstsw ax
test ah, 0x44
jp 0x1017476
fld dword [edx + 0x14]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 0x44
jp 0x1017476
fld dword [edx + 0x18]
fcomp dword [ecx + 0x18]
fnstsw ax
test ah, 0x44
jp 0x1017476
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x1c]
jne 0x1017476
mov eax, dword [edx + 0x20]
cmp eax, dword [ecx + 0x20]
jne 0x1017476
xor eax, eax
jmp 0x10174f1
fld dword [edx + 0x10]
fcomp dword [ecx + 0x10]
fnstsw ax
test ah, 1
jne 0x10174b2
fld dword [edx + 0x14]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 1
jne 0x10174b2
fld dword [edx + 0x18]
fcomp dword [ecx + 0x18]
fnstsw ax
test ah, 1
jne 0x10174b2
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x1c]
ja 0x10174b2
mov eax, dword [edx + 0x20]
cmp eax, dword [ecx + 0x20]
jb 0x10174b2
xor eax, eax
inc eax
jmp 0x10174f1
fld dword [edx + 0x10]
fcomp dword [ecx + 0x10]
fnstsw ax
test ah, 0x41
jp 0x10174ee
fld dword [edx + 0x14]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 0x41
jp 0x10174ee
fld dword [edx + 0x18]
fcomp dword [ecx + 0x18]
fnstsw ax
test ah, 0x41
jp 0x10174ee
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x1c]
jb 0x10174ee
mov eax, dword [edx + 0x20]
cmp eax, dword [ecx + 0x20]
ja 0x10174ee
or eax, reloc.msvcrt.dll___p__commode
jmp 0x10174f1
push 2
pop eax
ret 8