joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017a20
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x1004e1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x1005d330]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
mov dword [esp + 0x34], eax
xor eax, eax
cmp ecx, eax
je 0x10017a5a
mov eax, 1
jmp 0x10017baf
push ebx
mov ebx, dword [esp + 0x4c]
cmp ebx, eax
jne 0x10017ab1
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x110], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x20], ecx
lea edx, [esp + 0xc]
push edx
mov ecx, 0x1007c540
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], esi
call fcn.10034980
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x10017bae
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10017ad3
xor eax, eax
jmp 0x10017bae
push ebp
mov ebp, dword [esp + 0x54]
push edi
push ebp
lea ecx, [esp + 0x58]
mov word [esp + 0x34], 2
call fcn.10001dc0
mov edi, dword [eax]
test edi, edi
mov dword [esp + 0x4c], 1
je 0x10017b0f
mov eax, dword [edi + 4]
test eax, eax
jne 0x10017b0a
mov edx, dword [edi]
push edx
call fcn.10044980
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x10017b11
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov dword [esp + 0x34], eax
je 0x10017b29
call fcn.100027a0
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x104]
mov word [esp + 0x32], ax
push 0x10
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10017b68
mov edx, dword [esi + 0x104]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x104], 0xffffffff
xor eax, eax
jmp 0x10017bac
lea edx, [esi + 4]
mov dword [esi + 0x110], 1
mov dword [esi + 0x108], ebx
mov eax, ebp
sub edx, ebp
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10017b80
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x10016f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10c], eax
mov eax, 1
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x34]
pop esi
call fcn.10036c09
add esp, 0x40
ret 8
Function at 0x10017bd0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x1004e208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1005d330]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x108]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x10017c0c
mov eax, 1
jmp 0x10017d56
mov eax, dword [esi + 0x104]
cmp eax, 0xffffffff
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
je 0x10017c2b
push eax
call ebp
mov dword [esi + 0x104], 0xffffffff
mov eax, dword [esi + 0x10c]
test eax, eax
push ebx
lea ebx, [esi + 0x10c]
je 0x10017c6f
push 0x4bf
push 0x7d0
push 1
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10017c60
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10017c92
xor eax, eax
jmp 0x10017d54
push edi
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x14]
mov word [esp + 0x1c], 2
call fcn.10001dc0
mov edi, dword [eax]
test edi, edi
mov dword [esp + 0x34], 0
je 0x10017ccc
mov eax, dword [edi + 4]
test eax, eax
jne 0x10017cc7
mov ecx, dword [edi]
push ecx
call fcn.10044980
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x10017cce
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x10017ce6
call fcn.100027a0
mov edi, dword [esp + 0x3c]
push edi
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
mov eax, dword [esi + 0x104]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10017d25
mov ecx, dword [esi + 0x104]
push ecx
call ebp
mov dword [esi + 0x104], 0xffffffff
xor eax, eax
jmp 0x10017d53
lea edx, [esp + 0x14]
push edx
push 0
push esi
push 0x10016f60
push 0
push 0
mov dword [esi + 0x110], 1
mov dword [esi + 0x108], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
mov eax, 1
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
pop esi
call fcn.10036c09
add esp, 0x28
ret 4
Function at 0x1001d5c0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
xor edx, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, ecx
xor edx, eax
and edx, 0xaaaaaaaa
xor eax, edx
xor ecx, edx
mov edx, eax
mov esi, dword [esp + 0x1c]
shr edx, 0x1f
add eax, eax
or edx, eax
mov dword [esp + 0x10], 8
lea ebx, [ebx]
mov ebx, dword [esi]
mov eax, ecx
shl eax, 0x1c
mov edi, ecx
shr edi, 4
or eax, edi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x1005c870]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1005c770]
or edi, ebp
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1005c670]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x1005c570]
mov eax, dword [esi + 4]
or edi, ebx
xor eax, ecx
add esi, 4
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1005c470]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1005c370]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1005c270]
and eax, 0x3f
or ebx, dword [eax*4 + 0x1005c170]
or ebx, edi
xor edx, ebx
mov ebx, dword [esi + 4]
add esi, 4
mov eax, edx
shl eax, 0x1c
mov edi, edx
shr edi, 4
or eax, edi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x1005c870]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1005c770]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, ebp
mov ebp, dword [ebx*4 + 0x1005c670]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x1005c570]
mov eax, dword [esi + 4]
add esi, 4
or edi, ebp
or edi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1005c470]
shr ebp, 0x10
and ebp, 0x3f
add esi, 4
or ebx, dword [ebp*4 + 0x1005c370]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1005c270]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x1005c170]
mov eax, dword [esp + 0x10]
or ebx, ebp
or ebx, edi
xor ecx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x1001d650
mov eax, ecx
shr ecx, 1
shl eax, 0x1f
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
shr edx, 1
shl ecx, 0x1f
or ecx, edx
mov edx, ecx
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
shl edx, 2
xor ecx, edx
mov edx, eax
shr edx, 0x10
xor edx, ecx
and edx, 0xffff
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov edx, eax
shr edx, 4
xor edx, ecx
and edx, 0xf0f0f0f
mov esi, edx
shl esi, 4
xor esi, eax
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
xor edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
pop ecx
ret
Function at 0x1001eaf0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x1005d330]
push esi
push edi
mov edi, dword [esp + 0x68]
mov esi, ecx
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x60], eax
je 0x1001eb59
mov eax, dword [esp + 0x70]
cmp eax, ecx
jl 0x1001eb59
push eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.1001e950
lea edx, [esp + 8]
push edx
push edi
mov ecx, esi
call fcn.1001ea20
mov ecx, dword [esp + 0x60]
pop edi
pop esi
call fcn.10036c09
add esp, 0x5c
ret 0xc
Function at 0x100256b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004eae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1005d330]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x110]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
jne 0x100258af
cmp dword [0x1007c410], ebx
je 0x100258af
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
cmp edi, dword [0x1007c410]
jge 0x10025851
imul edi, edi, 0x118
cmp dword [edi + 0x10078d64], ebx
push 1
push ebx
push ebx
push ebx
jne 0x10025723
push 1
jmp 0x10025725
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x10078d60], eax
xor eax, eax
mov ax, word [edi + 0x10078e74]
mov word [ebp - 0x24], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x10078d50]
push ecx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x22], ax
call fcn.10001dc0
mov esi, dword [eax]
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x1002577b
cmp dword [esi + 4], ebx
jne 0x10025776
mov edx, dword [esi]
push edx
call fcn.10044980
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x1002577d
xor esi, esi
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
je 0x100257cd
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100257ca
cmp esi, ebx
je 0x100257ca
mov eax, dword [esi]
cmp eax, ebx
je 0x100257b1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100257c1
push eax
call fcn.10045c46
add esp, 4
push esi
call fcn.10045c46
add esp, 4
mov dword [ebp - 0x2c], ebx
mov edx, dword [edi + 0x10078d60]
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1002580e
mov eax, dword [edi + 0x10078d60]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [edi + 0x10078e74]
push 0x10058824
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], ecx
call fcn.100374b2
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov edi, eax
jmp 0x10025700
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x110], 1
mov eax, dword [0x1007c410]
xor esi, esi
cmp eax, ebx
jle 0x1002588d
mov ebx, dword [sym.imp.WS2_32.dll_listen]
mov edi, 0x10078d60
mov eax, dword [edi]
push 5
push eax
call ebx
mov eax, dword [0x1007c410]
inc esi
add edi, 0x118
cmp esi, eax
jl 0x10025874
xor ebx, ebx
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push ecx
push ebx
push edx
push 0x10016f60
push ebx
push ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x10c], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10029b40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x7c
mov eax, dword [0x1005d330]
mov edx, dword [esp + 0x80]
push ebx
mov dword [esp + 0x7c], eax
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
xor ebx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10029b60
sub eax, esi
push eax
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x67452301
mov dword [esp + 0x3c], 0xefcdab89
mov dword [esp + 0x40], 0x98badcfe
mov dword [esp + 0x44], 0x10325476
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.100299d0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.10029aa0
mov esi, dword [esp + 0xa4]
mov eax, esi
add esp, 0x14
lea edi, [eax + 1]
jmp 0x10029bc0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10029bc0
sub eax, edi
push eax
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x38], 0x67452301
mov dword [esp + 0x3c], 0xefcdab89
mov dword [esp + 0x40], 0x98badcfe
mov dword [esp + 0x44], 0x10325476
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.100299d0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10029aa0
movzx eax, byte [esp + 0x30]
push eax
push str._02x
push 0x1005fc10
mov byte [0x1005fc32], bl
call fcn.10036e11
add esp, 0x20
mov edi, 0x1005fc12
xor esi, esi
mov ebx, 0xf
jmp 0x10029c40
movzx edx, byte [esp + esi + 0xc]
movzx ecx, byte [esp + esi + 0x1d]
or ecx, edx
push ecx
push str._02x
push edi
call fcn.10036e11
add esp, 0xc
inc esi
add edi, 2
dec ebx
jne 0x10029c40
movzx eax, byte [esp + 0x1b]
push eax
push str._02x
push 0x1005fc30
call fcn.10036e11
mov ecx, dword [esp + 0x90]
add esp, 0xc
pop edi
pop esi
mov eax, 0x1005fc10
pop ebx
call fcn.10036c09
add esp, 0x7c
ret
Function at 0x100345a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ebx, ebx
cmp eax, edi
je 0x100345ed
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
xor ecx, ecx
cmp edx, edi
je 0x100345e9
lea edx, [esp + 0x10]
sub edx, eax
lea esp, [esp]
cmp ecx, 0xa
jge 0x100345e9
mov ebp, dword [eax]
mov ebp, dword [ebp]
mov dword [edx + eax], ebp
mov ebp, dword [eax + 4]
add eax, 4
inc ecx
inc ebx
cmp ebp, edi
jne 0x100345d0
mov dword [esp + ecx*4 + 0x10], edi
cmp dword [esp + 0x40], edi
je 0x1003463b
mov ecx, esi
call fcn.100343b0
mov esi, dword [esp + 0x10]
mov dword [0x1007c538], eax
xor eax, eax
xor edx, edx
cmp esi, edi
je 0x10034632
jmp 0x10034610
cmp eax, 0xa
jge 0x10034632
mov ecx, dword [esp + eax*4 + 0x10]
mov ebp, dword [0x10067d04]
inc eax
cmp ecx, ebp
je 0x1003462c
mov dword [edx*4 + 0x10067d08], ecx
inc edx
cmp dword [esp + eax*4 + 0x10], edi
jne 0x10034610
mov dword [edx*4 + 0x10067d08], edi
jmp 0x10034688
mov esi, dword [esp + 0x10]
xor edx, edx
cmp esi, edi
mov dword [0x1007c538], 1
je 0x10034688
nop
cmp edx, 0xa
jge 0x10034688
mov eax, 0x10067d08
lea ebx, [ebx]
mov ecx, dword [eax]
cmp ecx, edi
je 0x10034676
cmp ecx, dword [esp + edx*4 + 0x10]
je 0x1003467f
add eax, 4
cmp eax, 0x10067d30
jl 0x10034660
mov eax, dword [esp + edx*4 + 0x10]
mov dword [0x10067d04], eax
mov eax, dword [esp + edx*4 + 0x14]
inc edx
cmp eax, edi
jne 0x10034650
cmp ebx, 1
jne 0x100346a9
mov dword [0x10067d0c], edi
pop edi
mov dword [0x10067d04], esi
mov dword [0x10067d08], esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
cmp ebx, edi
jne 0x100346b9
mov dword [0x10067d04], edi
mov dword [0x10067d08], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4

Function at 0x100348b0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x1005d330]
push esi
mov dword [esp + 0x198], eax
lea eax, [esp + 8]
push eax
push 0x101
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esi + 0x180]
test eax, eax
jne 0x10034959
mov dword [esi + 0x180], 1
lea eax, [esi + 0x188]
mov ecx, 0x1e
mov dword [eax], 0
add eax, 0x1c
dec ecx
jne 0x100348f4
push ebx
push ebp
push edi
lea ecx, [esi + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x184], 0xa
xor edi, edi
lea ebx, [esi + 0x90]
lea edx, [esp + 0x10]
push edx
push 0
push ebx
push 0x100348a0
push 0
push 0
mov dword [esp + 0x28], 0
mov dword [ebx], esi
mov dword [ebx + 4], edi
call ebp
mov dword [esi + edi*4], eax
mov eax, dword [esi + 0x184]
inc edi
add ebx, 8
cmp edi, eax
jl 0x10034925
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x198]
mov eax, 1
pop esi
call fcn.10036c09
add esp, 0x198
ret
Function at 0x10034980
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push edi
mov edi, ecx
mov ecx, dword [eax + 0x18]
xor ebp, ebp
cmp ecx, ebp
jne 0x1003499f
pop edi
or eax, 0xffffffff
pop ebp
add esp, 8
ret 4
cmp dword [edi + 0x180], ebp
push ebx
push esi
je 0x10034a6d
lea esi, [edi + 0x78]
mov dword [esp + 0x10], esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x184]
xor ebx, ebx
cmp ecx, ebp
jle 0x100349ed
mov edx, dword [edi + 0x180]
lea eax, [edi + 0x188]
cmp edx, ebp
je 0x100349ed
cmp dword [eax], ebp
je 0x10034a7a
mov esi, dword [edi + 0x184]
inc ebx
add eax, 0x1c
cmp ebx, esi
jl 0x100349d3
cmp ebx, ecx
jne 0x10034a4e
cmp ecx, 0x1e
jge 0x10034a4e
lea eax, [ecx + 0xa]
cmp eax, 0x1e
mov dword [edi + 0x184], eax
jle 0x10034a0e
mov dword [edi + 0x184], 0x1e
cmp ebx, dword [edi + 0x184]
mov esi, ebx
jge 0x10034a4e
lea ebx, [edi + ebx*8 + 0x90]
nop
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebx
push 0x100348a0
push ebp
push ebp
mov dword [esp + 0x2c], ebp
mov dword [ebx], edi
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + esi*4], eax
mov eax, dword [edi + 0x184]
inc esi
add ebx, 8
cmp esi, eax
jl 0x10034a20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x180], ebp
jne 0x100349b4
pop esi
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 8
ret 4
mov esi, dword [esp + 0x1c]
lea edx, [ebx + 0xe]
imul edx, edx, 0x1c
lea eax, [edx + edi]
mov edi, eax
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 8
ret 4
Function at 0x100399dd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10036fa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10039a78
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1007e994]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10039a78
cmp eax, 1
je 0x10039a99
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10039a78
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10039a45
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10039a74
xor eax, eax
inc eax
jmp 0x10039ab8
cmp edi, eax
jae 0x10039a7c
xor eax, eax
jmp 0x10039ab8
cmp eax, esi
jae 0x10039a83
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1007e994]
jmp 0x10039a9c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10039af8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10039be8
mov eax, 0x94
call fcn.10036fa0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10039c5d
mov ecx, dword [esi + 0x10]
mov dword [0x1007e994], ecx
mov eax, dword [esi + 4]
mov dword [0x1007e9a0], eax
mov edx, dword [esi + 8]
mov dword [0x1007e9a4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1007e998], esi
je 0x10039b63
or esi, 0x8000
mov dword [0x1007e998], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1007e99c], eax
call fcn.1003c1c8
test eax, eax
pop ecx
je 0x10039c5d
call fcn.1003b02a
test eax, eax
jne 0x10039b90
call fcn.1003c219
jmp 0x10039c5d
call fcn.100413b6
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10080250], eax
call fcn.10041294
mov dword [0x1007e980], eax
call fcn.1003e084
test eax, eax
jl 0x10039be1
call fcn.100411f2
test eax, eax
jl 0x10039bdc
call fcn.10040fbf
test eax, eax
jl 0x10039bdc
push 0
call fcn.1003a451
test eax, eax
pop ecx
jne 0x10039bdc
inc dword [0x1007e97c]
jmp 0x10039c6e
call fcn.1003e282
call fcn.1003ae13
jmp 0x10039b86
test eax, eax
jne 0x10039c18
cmp dword [0x1007e97c], eax
jle 0x10039c5d
dec dword [0x1007e97c]
cmp dword [0x1007e9d0], eax
jne 0x10039c07
call fcn.1003a58f
call fcn.1003e282
call fcn.1003ae13
call fcn.1003c219
jmp 0x10039c6e
cmp eax, 2
jne 0x10039c61
push 0x8c
push 1
call fcn.10040f04
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10039c5d
push esi
push dword [0x1005d6b0]
call dword [0x1007e9e4]
test eax, eax
push esi
je 0x10039c57
call fcn.1003ae30
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10039c6e
call fcn.10037066
pop ecx
xor eax, eax
jmp 0x10039c71
cmp eax, 3
jne 0x10039c6e
push 0
call fcn.1003affb
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1003a4bb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100552d8
call fcn.1003a5cc
push 8
call fcn.1003c3eb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1007e9d4], esi
jne 0x1003a4ef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1007e9d0], esi
mov al, byte [ebp + 0x10]
mov byte [0x1007e9cc], al
cmp dword [ebp + 0xc], edi
jne 0x1003a539
cmp dword [0x10080248], edi
je 0x1003a529
mov eax, dword [0x10080244]
sub eax, 4
mov dword [0x10080244], eax
cmp eax, dword [0x10080248]
jb 0x1003a529
mov eax, dword [eax]
cmp eax, edi
je 0x1003a50a
call eax
jmp 0x1003a50a
push 0x1005c0cc
mov eax, 0x1005c0c4
call fcn.1003a439
pop ecx
push 0x1005c0d8
mov eax, 0x1005c0d0
call fcn.1003a439
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1003a56a
cmp dword [ebp + 0x10], edi
jne 0x1003a578
mov dword [0x1007e9d4], esi
push dword [ebp + 8]
call fcn.1003a3f7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1003a577
push 8
call fcn.1003c336
pop ecx
ret
call fcn.1003a607
ret