joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030550
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp + 0x4c]
stosb byte es:[edi], al
call fcn.10034730
mov edx, eax
test edx, edx
mov dword [esp + 0x14], edx
je 0x10030668
mov eax, dword [edx + 4]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x10030668
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100305ac
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
je 0x10030657
lea ecx, [esp + 0x18]
push 0x100
push ecx
push eax
lea ecx, [ebp + 0x48]
call fcn.10032e20
lea edx, [esp + 0x18]
push edx
push 0
push 0x1f0003
call ebx
mov edi, eax
call esi
cmp eax, 5
je 0x100306c6
test edi, edi
jne 0x100306ca
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, eax
call esi
cmp eax, 5
je 0x100306ab
test edi, edi
jne 0x100306af
lea ecx, [esp + 0x18]
push ecx
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
call esi
cmp eax, 5
je 0x10030690
test edi, edi
jne 0x10030694
lea edx, [esp + 0x18]
push edx
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov edi, eax
call esi
cmp eax, 5
je 0x10030675
test edi, edi
jne 0x10030679
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov eax, dword [edx + 4]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jne 0x100305a8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x10030680
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x1003069b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x100306b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x100306d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

Function at 0x10033880
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10033a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a6b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
push edi
push 0xc
mov dword [esp + 0x14], esi
mov byte [esi], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov cl, byte [esp + 0x13]
push 0xc
mov dword [esp + 0x24], edi
mov byte [esi + 0xc], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dl, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x28], 1
mov byte [esi + 0x18], dl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov al, byte [esp + 0x1b]
push 0xc
mov byte [esp + 0x2c], 2
mov byte [esi + 0x24], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov cl, byte [esp + 0x1f]
push 0x2c
mov byte [esp + 0x30], 3
mov byte [esi + 0x30], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 0x14
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
mov dl, byte [esp + 0xf]
lea ebx, [esi + 0x3c]
push edi
push edi
mov ecx, ebx
mov byte [esp + 0x24], 4
mov byte [ebx], dl
call fcn.10034ec0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov al, byte [esp + 0xf]
push 0x28
mov byte [esp + 0x20], 5
mov byte [esi + 0x48], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edi
mov cl, byte [esp + 0xf]
mov byte [esp + 0x1c], 6
lea ebx, [esi + 0x54]
mov byte [ebx], cl
push edi
push edi
mov ecx, ebx
call fcn.10034fa0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dl, byte [esp + 0xf]
lea ebx, [esi + 0x60]
push edi
push edi
mov ecx, ebx
mov byte [esp + 0x24], 7
mov byte [ebx], dl
call fcn.10035020
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 8
call fcn.10019b80
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x6c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10033de0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100a6c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], 9
call fcn.10033be0
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 8
call fcn.10019be0
mov eax, dword [esi + 0x64]
lea edi, [esi + 0x60]
push eax
mov byte [esp + 0x24], 7
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.10034fd0
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor ebx, ebx
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x58]
lea edi, [esi + 0x54]
push eax
mov byte [esp + 0x24], 6
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.10034f50
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x4c]
lea edi, [esi + 0x48]
add esp, 4
lea edx, [esp + 0x10]
mov ecx, dword [eax]
mov byte [esp + 0x20], 5
push eax
push ecx
push edx
mov ecx, edi
call fcn.10034ef0
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x40]
lea edi, [esi + 0x3c]
add esp, 4
mov byte [esp + 0x20], 4
mov ecx, dword [eax]
push eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.10034e30
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x30]
add esp, 4
mov byte [esp + 0x20], 3
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.10034dd0
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x24]
add esp, 4
lea edx, [esp + 0x10]
mov ecx, dword [eax]
mov byte [esp + 0x20], 2
push eax
push ecx
push edx
mov ecx, edi
call fcn.10034d50
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x18]
add esp, 4
mov ecx, edi
mov byte [esp + 0x20], 1
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10034b90
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call fcn.10034d50
mov eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [esp + 0x20], bl
call fcn.10034b40
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.10034b40
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10038660
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x1003868a
mov eax, dword [esp + 4]
push 0
push 0
push eax
push fcn.100386a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 8
mov ecx, dword [esp + 4]
push ecx
call fcn.100386a0
pop ecx
ret 8
Function at 0x1003d9cc
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x1400
call fcn.1007e490
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x13f
xor eax, eax
lea edi, [esp + 0xf11]
mov byte [esp + 0xf10], 0
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x510], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13f
xor eax, eax
lea edi, [esp + 0x511]
mov byte [esp + 0xa10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13f
xor eax, eax
lea edi, [esp + 0xa11]
push 0x140
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea eax, [esp + 0xa10]
mov ecx, esi
push 0x500
push eax
call fcn.1003ddd0
test eax, eax
je 0x1003dba7
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea edi, [esi + 0x14]
push edi
push 0x100f40b4
call ebx
add esp, 8
test eax, eax
je 0x1003da8f
lea ecx, [esp + 0xa10]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x1003dba7
lea edx, [esi + 0x514]
lea ecx, [esp + 0x10]
mov edi, 0x500
lea eax, [esp + 0x10]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x1003dab3
mov byte [eax], cl
inc eax
dec edi
jne 0x1003daa4
jmp 0x1003dab7
test edi, edi
jne 0x1003dab8
dec eax
lea edx, [esp + 0x10]
mov byte [eax], 0
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xf10]
push ecx
push str._s.
push 0x500
push edx
call fcn.10001950
add esp, 0x10
lea eax, [esp + 0xf10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003db9c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [ebp], 0x10
jne 0x1003db64
lea ecx, [ebp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x51c]
push 0x500
push eax
call fcn.10001950
add esp, 0x14
lea ecx, [esp + 0x510]
push ecx
mov ecx, esi
call fcn.1003dcc0
cmp eax, 3
jne 0x1003db5c
mov edx, dword [esi]
push eax
lea eax, [esp + 0x514]
mov ecx, esi
push eax
call dword [edx]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push edi
call ebx
test eax, eax
jne 0x1003db10
push str.go_check_file_In_List
call fcn.10015340
add esp, 4
lea ecx, [esp + 0x510]
push ecx
mov ecx, esi
call fcn.1003df90
cmp eax, 3
jne 0x1003db9c
mov edx, dword [esi]
push eax
lea eax, [esp + 0x514]
mov ecx, esi
push eax
call dword [edx]
test edi, edi
je 0x1003dba7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
je 0x1003dbb4
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1400
ret
Function at 0x1003dbd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a96e0
push 0x1007e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 4], esi
push esi
push esi
push 3
push esi
push 3
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
jne 0x1003dc32
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003dc78
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0x100
jb 0x1003dc78
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003dc78
push esi
push edi
call fcn.1003c6e0
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1003dcb9
cmp ebx, 0xffffffff
je 0x1003dc90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1003dca0
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003ddd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9700
push 0x1007e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov edx, ecx
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [edx + 0x514]
mov dword [ebp - 0x50], eax
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov dword [ebp - 0x40], ebx
cmp ebx, esi
je 0x1003deed
lea edi, [ebx + 2]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], esi
mov ecx, edi
xor eax, eax
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push esi
push ebx
push 0
mov eax, dword [ebp - 0x50]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1003deeb
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0x100b78fc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1003deeb
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
mov edi, eax
shr edi, 0x10
mov dword [ebp - 0x30], edi
and eax, 0xffff
mov dword [ebp - 0x2c], eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
shr ecx, 0x10
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [ebp - 0x28], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
shl eax, 2
sub ecx, eax
mov dword [ebp - 0x24], ecx
and esi, 0xffff
mov dword [ebp - 0x20], esi
push esi
push ecx
push edx
push edi
push str._d._d._d._d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001950
add esp, 0x1c
mov dword [ebp - 0x3c], 1
xor esi, esi
mov dword [ebp - 4], 0xffffffff
call fcn.1003df21
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x1003df09
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10041970
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 3
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100419db
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x14]
push 2
push edx
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100419d4
cmp word [esp + 0xc], 0x5a4d
jne 0x100419d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x100421d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x10140e48]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test eax, eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
je 0x10042206
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10042570
ret 0x18
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 0x18

Function at 0x10042250
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x10042275
cmp ecx, 0xffffffff
je 0x10042275
cmp word [ecx], 0x5a4d
jne 0x10042275
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x10042275
xor eax, eax
ret

Function at 0x10042d00
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x10042d22
pop edi
pop esi
ret 8
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x10042d45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 8
mov ecx, dword [esp + 0xc]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameA
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x10044150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9820
push 0x1007e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xb4], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
pushal
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
popal
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xb4]
mov dword [esi + 4], eax
test eax, eax
je 0x10044214
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xac], 5
jne 0x100441f6
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x100441f6
mov dword [esi], 0x27
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [edx + ecx*4]
mov dword [0x10140ed0], eax
jmp 0x1004421e
mov dword [esi], 0x28
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [edx + ecx*4]
mov dword [0x10140ed0], eax
jmp 0x1004421e
mov dword [0x10140ed0], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007be70
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x10140f7c]
test eax, eax
je 0x1007be82
mov eax, dword [0x10140f8c]
test eax, eax
jne 0x1007be8f
call fcn.1007bef0
test eax, eax
je 0x1007be8f
or eax, 0xffffffff
ret
mov eax, dword [0x1013312c]
cmp eax, 0xffffffff
jne 0x1007beb5
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x1013312c], eax
jne 0x1007beb5
mov eax, 0xfffffffe
ret
mov cl, byte [esp + 0xc]
test cl, cl
mov ecx, 0x10140f78
jne 0x1007bec7
mov ecx, 0x10140f88
mov edx, dword [esp + 4]
push 0x10
push ecx
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1007beed
call fcn.1007bfe0
mov eax, 0xfffffffd
ret
xor eax, eax
ret

Function at 0x1007bef0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1007bf14
or eax, 0xffffffff
add esp, 0x190
ret
mov ecx, dword [0x100a9a8c]
push 0x10140f78
push ecx
call fcn.1007bf60
add esp, 8
test eax, eax
je 0x1007bf38
mov eax, 0xfffffffe
add esp, 0x190
ret
mov edx, dword [0x100a9a90]
push 0x10140f88
push edx
call fcn.1007bf60
add esp, 8
neg eax
sbb eax, eax
and al, 0xfd
add esp, 0x190
ret

Function at 0x1007bf60
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x1007bf79
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [eax], 0
je 0x1007bf92
mov ecx, dword [eax + 4]
add eax, 4
inc esi
test ecx, ecx
jne 0x1007bf83
test esi, esi
jne 0x1007bf9a
pop edi
mov eax, 0xfffffffe
pop esi
ret
push 0
call dword [sym.imp.MSVCRT.dll_time]
xor edx, edx
mov ecx, dword [edi + 0xc]
div esi
mov esi, dword [esp + 0x14]
add esp, 4
push 0x1f90
mov edx, dword [ecx + edx*4]
mov eax, dword [edx]
mov word [esi], 2
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
pop edi
xor eax, eax
pop esi
ret

Function at 0x1007d790
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edx, edx
xor eax, eax
mov ecx, ebp
mov edi, 0x100
mov dword [ecx], eax
inc eax
add ecx, 4
dec edi
jne 0x1007d7a5
mov ecx, ebp
mov dword [esp + 0x14], 0x100
mov eax, dword [esp + 0x18]
mov bl, byte [ecx]
mov edi, dword [ecx]
add ecx, 4
mov al, byte [edx + eax]
add eax, esi
add al, bl
and eax, 0xff
mov esi, eax
and eax, 0xffff
mov ebx, dword [ebp + eax*4]
lea eax, [ebp + eax*4]
mov dword [ecx - 4], ebx
mov dword [eax], edi
lea eax, [edx + 1]
xor edx, edx
div dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x1007d7b8
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1007d800
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edx, edx
xor edi, edi
test eax, eax
jbe 0x1007d855
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc edx
and edx, 0xff
mov eax, dword [ecx + edx*4]
add esi, eax
and esi, 0xff
mov ebx, dword [ecx + esi*4]
mov dword [ecx + edx*4], ebx
mov dword [ecx + esi*4], eax
mov ebx, dword [ecx + edx*4]
add eax, ebx
mov bl, byte [edi + ebp]
and eax, 0xff
mov al, byte [ecx + eax*4]
xor bl, al
mov eax, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, eax
jb 0x1007d81a
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x1007e840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9a98
push 0x1007e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1007e8db
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x1007e8db
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x1007e8db
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1007e8db
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1007e970
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x10140fa8]
test esi, esi
je 0x1007e99a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1007e983
pop edi
pop esi
pop ecx
ret