joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006aab0
Capabilities:
Compute adler32 checksum

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ecx, 0x1010cb2b
mov esi, edx
call fcn.100b1e70
mov ebp, dword [esp + 0x24]
mov eax, 0x5e6ea9af
mul ebp
mov ebx, ebp
xor edi, edi
shr edx, 0xb
mov ecx, 1
imul eax, edx, 0x15b0
sub ebx, eax
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x1006abe9
nop
xor edx, edx
mov dword [esp + 0x14], edx
cmp ebx, 7
jbe 0x1006ab52
mov ebp, 7
sub ebp, esi
movzx eax, byte [esi]
add edx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add esi, 8
add edi, ecx
add ecx, eax
add edi, ecx
lea eax, [esi + ebp]
cmp eax, ebx
jb 0x1006ab02
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
cmp edx, eax
jae 0x1006abae
sub eax, edx
cmp eax, 2
jb 0x1006aba1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub edx, eax
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [esp + 0x14], eax
nop dword [eax]
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add ebp, ecx
sub edx, 1
jne 0x1006ab80
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jae 0x1006aba9
movzx eax, byte [esi]
add ecx, eax
add edi, ecx
inc esi
lea eax, [ebx + ebp]
add edi, eax
mov eax, 0x80078071
mov ebx, dword [esp + 0x10]
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub dword [esp + 0x24], ebx
mov ebx, 0x15b0
mov dword [esp + 0x10], ebx
jne 0x1006aaf0
shl edi, 0x10
lea eax, [ecx + edi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10076980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x100fe040]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x84]
mov ecx, 0x1010cb2b
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
call fcn.100b1e70
mov eax, dword [0x1010223c]
mov dword [esp + 0x18], eax
cmp dword [eax + 0x2bfc], 0
jne 0x100769d0
call fcn.10039e40
mov al, byte [edi]
mov esi, edi
test al, al
je 0x100769ea
cmp al, 0x25
jne 0x100769e2
cmp byte [esi + 1], al
jne 0x100769ea
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100769d8
cmp byte [esi], 0x25
jne 0x10076a2f
mov ecx, esi
call fcn.100767d0
cmp byte [eax], 0
jne 0x100769ff
mov edi, esi
jmp 0x10076a2f
sub eax, esi
mov edi, 0x20
inc eax
cmp eax, edi
cmovb edi, eax
cmp edi, 1
jb 0x10076a2b
jbe 0x10076a26
lea eax, [edi - 1]
push eax
lea eax, [esp + 0x50]
push esi
push eax
call dword [sym.imp.ucrtbased.dll_strncpy]
add esp, 0xc
mov byte [esp + edi + 0x4b], 0
lea edi, [esp + 0x4c]
push edi
push ebp
mov ebp, dword [esp + 0x84]
lea ecx, [esp + 0x34]
push ebp
mov edx, 0x20
call fcn.10073dc0
add esp, 0xc
lea esi, [esp + 0x2c]
nop
mov al, byte [esi]
cmp al, 0x20
je 0x10076a5a
cmp al, 9
jne 0x10076a5d
inc esi
jmp 0x10076a50
mov edi, esi
test al, al
je 0x10076a80
inc esi
cmp byte [esi], 0
jne 0x10076a63
cmp esi, edi
jbe 0x10076a80
nop dword [eax]
mov al, byte [esi - 1]
cmp al, 0x20
je 0x10076a7b
cmp al, 9
jne 0x10076a80
dec esi
cmp esi, edi
ja 0x10076a70
lea eax, [esp + 0x2c]
cmp edi, eax
je 0x10076a9b
mov eax, esi
sub eax, edi
push eax
lea eax, [esp + 0x30]
push edi
push eax
call sub.VCRUNTIME140D.dll_memmove
add esp, 0xc
sub esi, edi
mov byte [esp + esi + 0x2c], 0
cmp ebp, 4
je 0x10076ab1
mov eax, 0x11
cmp ebp, 5
jne 0x10076ab6
mov eax, 0x20010
movss xmm0, dword [ebx + 8]
lea edx, [esp + 0x2c]
subss xmm0, dword [ebx]
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
movss dword [esp + 0x30], xmm0
lea eax, [esp + 0x30]
movss xmm0, dword [ebx + 0xc]
subss xmm0, dword [ebx + 4]
push eax
push 0x20
movss dword [esp + 0x3c], xmm0
call fcn.1007a140
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov bl, al
cmp dword [esi + 0x2bfc], 0
jne 0x10076b30
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x19bc], eax
je 0x10076b24
push 0xad5
push str.D:onistrix_2018imguiimgui_widgets.cpp
push str.g.ActiveId__id
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 0x19bc]
mov dword [esi + 0x2bfc], eax
test bl, bl
je 0x10076b60
mov edx, dword [esi + 0x1d60]
lea ecx, [esp + 0x2c]
push 0
push dword [esp + 0x24]
push ebp
call fcn.10073ff0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100afa20
add esp, 0x64
ret
mov ecx, dword [esp + 0x6c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100afa20
add esp, 0x64
ret
Function at 0x10092090
Capabilities:
Create thread

Disassembly:
mov ecx, 0x1010cb2b
call fcn.100b1e70
mov eax, dword [esp + 8]
sub eax, 0
je 0x100920d1
sub eax, 1
jne 0x100920c9
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [esp + 0xc]
push 0x10091d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 0xc
cmp dword [esp + 0xc], 0
jne 0x100920c9
call fcn.10091ea0
ret 0xc
Function at 0x100981e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x24
mov eax, dword [0x100fe040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, 0x1010c0a9
call fcn.100b1e70
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100982ee
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100982e7
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x14], 0x10
jb 0x100982cb
call ebx
cmp dword [esp + 0x20], eax
jne 0x100982cb
call ebp
cmp dword [esp + 0x1c], eax
je 0x100982cb
mov edx, dword [esi]
test edx, edx
jne 0x10098293
push 0x200
push edx
push dword [0x10102244]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100982e7
jmp 0x100982be
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100982be
shl eax, 3
push eax
push edx
push 0
push dword [0x10102244]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100982e7
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10098253
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10098338
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10098338
mov ebp, dword [esp + 0x38]
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10098332
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.10097f50
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10098300
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100afa20
add esp, 0x24
ret

Function at 0x10098350
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0x1010c0a9
call fcn.100b1e70
cmp dword [ebx], 0
je 0x100983aa
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10098399
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10098391
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10098372
pop edi
pop ebp
push dword [ebx]
push 0
push dword [0x10102244]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x100983b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov eax, dword [0x100fe040]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov ecx, 0x1010c0a9
call fcn.100b1e70
imul esi, esi, 0x2c
add esi, dword [0x10109c80]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1009841c
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100afa20
add esp, 8
ret
test ebx, ebx
je 0x1009843d
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1009845e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1009845e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10098458
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1009845e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100afa20
add esp, 8
ret
Function at 0x95ce80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40e000]
push edi
or ebp, 0xffffffff
jmp 0x95cea2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x95cea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95ce98
mov eax, 1
add ebx, ebx
jne 0x95cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x95cecc
jne 0x95ceeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95ceeb
dec eax
add ebx, ebx
jne 0x95ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x95ceb0
add ebx, ebx
jne 0x95cee7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x95cf3d
xor ecx, ecx
sub eax, 3
jb 0x95cf03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x95cf72
sar eax, 1
mov ebp, eax
jmp 0x95cf0e
add ebx, ebx
jne 0x95cf0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95cedc
inc ecx
add ebx, ebx
jne 0x95cf1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95cedc
add ebx, ebx
jne 0x95cf29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x95cf1e
jne 0x95cf3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x95cf1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x95cf5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x95cf4e
jmp 0x95ce9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x95cf5c
add edi, ecx
jmp 0x95ce9e
pop esi
mov edi, esi
mov ecx, 0x292f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x95cf7a
cmp byte [edi], 0x12
jne 0x95cf7a
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 0x95cf7f
lea edi, [esi + 0x558000]
mov eax, dword [edi]
or eax, eax
je 0x95cfee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5658ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x565a14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x95cfac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x565a18]
or eax, eax
je 0x95cfe8
mov dword [ebx], eax
add ebx, 4
jmp 0x95cfc9
call dword [esi + 0x565a28]
mov ebp, dword [esi + 0x565a1c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x95d022
sub esp, 0xffffff80
jmp 0x5bd114
Function at 0x100319d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100319f8
xor eax, eax
jmp 0x10031b55
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10031651
add esp, 0x10
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10031a20
xor eax, eax
jmp 0x10031b55
push 0x1168
lea eax, [ebp - 8]
push eax
push 0x2e6c
push 0x786a
lea eax, [ebp - 0xc]
push eax
push 0x43c9
push 1
call fcn.100316b7
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jne 0x10031a53
xor eax, eax
jmp 0x10031b55
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x6d55
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x2b5f
call fcn.10031755
add esp, 0x20
push dword [ebp + 8]
push 0x26ee
push 0x7421
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.10027895
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 4]
push eax
push 0x58ea
push 1
push 0x57d6
lea eax, [ebp - 0x1c]
push eax
call fcn.10031814
add esp, 0x14
push dword [ebp - 4]
call fcn.1003117b
pop ecx
test eax, eax
jne 0x10031ad4
xor eax, eax
jmp 0x10031b55
push 0x3699
push 0x7c83
push 0x7984
lea eax, [ebp - 4]
push eax
push 0x66b8
push 0x207
push 1
call fcn.10031888
add esp, 0x1c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10031b3d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10031b1a
xor eax, eax
jmp 0x10031b55
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10031b33
xor eax, eax
jmp 0x10031b55
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10031b4e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x10031b52
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1004415d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10044205
push ebx
push dword [esi]
xor ebx, ebx
push ebx
push dword [esi + 4]
call fcn.10026278
push dword [esi + 4]
call fcn.10064a32
add esp, 0x10
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x18]
push 2
call fcn.10017d9e
xor ecx, ecx
mov dword [ebp - 8], ebx
inc ecx
jmp 0x100441a7
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xc], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jl 0x1004419d
mov dword [ebp - 8], ebx
jmp 0x100441be
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x100441b1
push edi
mov edi, dword [ebp - 0x18]
mov dword [edi + 4], ebx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x100441e1
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_FlashWindow]
inc dword [edi + 4]
cmp dword [edi + 4], ebx
jle 0x100441cb
mov byte [ebp - 1], bl
pop edi
cmp byte [ebp - 1], bl
je 0x100441fa
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x18]
call fcn.10017e20
mov dword [esi], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10047247
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1004726c
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10047267
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
jmp 0x10047380
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10017e3c
cmp dword [eax], 0
jne 0x100472f2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], 1
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.10017e3c
mov dword [eax], 1
xor eax, eax
inc eax
jne 0x100472f2
and dword [ebp - 0x10], 0
jmp 0x100472f9
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jle 0x1004731b
push 0
mov ecx, dword [ebp - 8]
call fcn.10017e3c
cmp dword [eax], 0
je 0x1004731b
mov dword [ebp - 0x14], 1
jmp 0x1004731f
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0xbdd7
je 0x1004733d
push 0
mov ecx, dword [ebp - 8]
call fcn.10017e3c
cmp dword [eax], 0
jne 0x1004733d
and dword [ebp - 0x18], 0
jmp 0x10047344
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10017e3c
push 0
mov ecx, dword [ebp - 8]
call fcn.10017e3c
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.10017e3c
mov eax, dword [ebp - 0x40]
mov dword [eax], 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x100485a2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100485fd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100485de
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x100485fb
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10017e3c
mov dword [eax], 1
jmp 0x100485d3
jmp 0x1004860f
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004860f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esp, ebp
pop ebp
ret
Function at 0x10079790
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10083330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10068f2a
mov dword [ebp - 0x14], eax
cmp dword [0x106709ec], esi
jne 0x10079883
push 0x800
push esi
push 0x10007aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10079810
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10079963
push esi
push esi
push 0x10007aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10079963
push 0x10007b04
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10079963
push eax
call ebx
push 0x10007b10
push edi
mov dword [0x106709ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b20
push edi
mov dword [0x106709f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b34
push edi
mov dword [0x106709f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106709fc], eax
test eax, eax
je 0x10079880
push 0x10007b50
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106709f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100798a8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007989b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100798bd
push 4
pop eax
jmp 0x10079965
cmp dword [ebp - 0x14], esi
je 0x100798bd
push dword [0x106709ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100798a2
mov eax, dword [0x106709f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007991b
cmp dword [0x106709fc], edi
je 0x1007991b
push eax
call ebx
push dword [0x106709fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007991b
test eax, eax
je 0x1007991b
call ecx
test eax, eax
je 0x10079910
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10079910
test byte [ebp - 8], 1
jne 0x1007991b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007994b
mov eax, dword [0x106709f0]
cmp eax, edi
je 0x10079948
push eax
call ebx
test eax, eax
je 0x10079948
call eax
mov esi, eax
test esi, esi
je 0x10079948
mov eax, dword [0x106709f4]
cmp eax, edi
je 0x10079948
push eax
call ebx
test eax, eax
je 0x10079948
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106709ec]
call ebx
test eax, eax
je 0x10079963
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10079965
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100650dd
mov esp, ebp
pop ebp
ret
Function at 0x40a61d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40a63b
mov eax, 0x6edf85
push eax
push 1
mov ebx, 0x4cfb40
call fcn.004cf50c
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a665
mov eax, 0
jmp 0x40a6d9
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x40a6c6
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40a6af
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40a69e
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40a68f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4