joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c5ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10216ab8], 0
mov dword [0x10216abc], 0
mov dword [0x10216ac8], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x101c5e42
jmp 0x101c5e2c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add eax, 1
mov dword [0x10216ab0], 0x1e8a
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x10216ab8], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10216abc], edx
mov dword [0x10216ab0], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x10216ac0], cl
mov dword [0x10216ab4], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10216ac0]
mov edx, dword [0x10216abc]
mov byte [ebx + edx], cl
mov edx, dword [0x10216ab8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10216abc]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10216ac8], ecx
mov dword [0x10216ab0], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x10216ab4], 0xbad
mov dword [0x10216ab0], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x101c5e40
mov eax, dword [0x10216abc]
mov ecx, dword [0x10216ab8]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x101c5d2f
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
jmp 0x101c5d2f
jmp 0x101c5e42
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c5e50
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x10216ab0], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.101c4540
lea ecx, [0x101c5720]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], 0x12fc00
mov edx, dword [0x10216a9c]
mov dword [esp + 0x68], edx
mov edx, dword [0x10216aa0]
mov dword [esp + 0x74], edx
mov edx, dword [0x10216aa4]
mov dword [esp + 0x78], edx
mov edx, dword [0x10216aa8]
mov dword [esp + 0x60], edx
mov edx, dword [0x10216aac]
mov dword [esp + 0x58], edx
mov dword [0x10216ab0], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x101c5f5a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], eax
mov dword [0x10216ab4], 0x1fcc
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x28], eax
call fcn.101c4a20
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x101c5f87
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101c5210
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10216ab0], 0x1ed4
mov dword [esp + 0x10], eax
jmp 0x101c5f87
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x101c5f48
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
je 0x101c5edc
jmp 0x101c5f48
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x8e1518
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e151e
pop ebp
sub ebp, 6
sub ebp, 0x4e1518
jmp 0x8e157c
jmp 0x8e1585
mov eax, 0x4e1518
add eax, ebp
add eax, 0x93
mov ecx, 0x625
mov edx, 0xf5d6be6b
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e159c
jmp 0x8e15af
add dword [ebx], ebp
add ebp, dword [ebx + 0x7b]
imul ebp, dword [ebx + 3], 0x6b
cmpsd dword [esi], dword es:[edi]
inc edi
imul ebx, dword [eax - 0x55], 0x3b
xchg esp, eax
invalid
Function at 0x4125ec
Capabilities:
Terminate process

Disassembly:
call fcn.004125f9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401e10
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4042d8
call fcn.00401f7c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x405478
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x401bd1
cmp eax, esi
jne 0x401bc4
xor esi, esi
inc esi
mov ebx, esi
jmp 0x401bd4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401bab
xor esi, esi
inc esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401be7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401c16
mov eax, dword [0x405474]
test eax, eax
jne 0x401c10
mov dword [0x405474], esi
push 0x4030e4
push 0x4030d8
call fcn.00401b1a
pop ecx
pop ecx
test eax, eax
je 0x401c16
jmp 0x401d3e
mov dword [0x40513c], esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401c3a
push 0x4030d4
push 0x4030cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x405474], 2
test ebx, ebx
jne 0x401c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40547c], 0
je 0x401c6a
push 0x40547c
call fcn.00401f04
pop ecx
test eax, eax
je 0x401c6a
push 0
push 2
push 0
call dword [0x40547c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401cc6
test al, al
je 0x401c84
cmp dword [ebp - 0x1c], 0
jne 0x401cc6
mov al, byte [esi]
test al, al
je 0x401c94
cmp al, 0x20
ja 0x401c94
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401c84
test byte [ebp - 0x3c], 1
je 0x401ca0
movzx eax, word [ebp - 0x38]
jmp 0x401ca3
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x405138], eax
cmp dword [0x40512c], 0
jne 0x401d1a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x401cd5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401ce8
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401c71
cmp dword [0x40513c], 0
jne 0x401d29
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405138]
jmp 0x401d4a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401fc1
ret
call fcn.004020ab
jmp 0x401b71
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..retplne
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x62392897
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..reloc
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x13ce7e0f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002ef6
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.10010700
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.1000b000
mov edx, dword [esp]
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.100105a0
lea eax, [esp + 8]
push eax
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push dword [esp + 0xc]
call fcn.1000e1a9
call fcn.10010690
lea edx, [0x10014028]
call fcn.1000b0a0
mov ecx, eax
call fcn.1000b0b0
je 0x10002f82
mov edx, dword [esp + 4]
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.100105a0
lea edx, str..dll
push edx
call fcn.100105a0
lea eax, [esp + 8]
push eax
call fcn.10010600
cmp dword [esp + 0x18], 0
je 0x10002ffd
push dword [0x100170e0]
lea edx, [0x10014028]
pop ecx
call fcn.1000b0b0
je 0x10002ffd
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push 0x104
call fcn.1000d200
push 0x100170e0
call fcn.10010600
push 0x104
mov eax, dword [0x100170e0]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [0x100170e0]
call fcn.1000d250
push 0x100170e0
call fcn.10010600
mov edx, dword [0x100170e0]
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.100105a0
lea edx, [0x100143ec]
push edx
call fcn.100105a0
mov edx, dword [esp + 8]
push edx
call fcn.100105a0
lea eax, [esp + 8]
push eax
call fcn.10010600
push dword [esp + 4]
call sub.KERNEL32.dll_LoadLibraryW
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x1000309f
push edx
call fcn.10010560
pop edx
push eax
push 0x10
lea eax, str.PurePortable
push eax
push edx
call fcn.10010560
pop edx
push eax
lea edx, str.Failed_load_original_dll_n
push edx
call fcn.100105a0
mov edx, dword [esp + 0x10]
push edx
call fcn.100105a0
call fcn.10010690
push 0
call fcn.1000b102
add dword [esp + 4], edx
call sub.USER32.dll_MessageBoxW
call fcn.1000b120
push 0x45a
call fcn.1000e020
mov eax, dword [esp + 8]
jmp 0x100030a7
push dword [esp + 4]
call fcn.10010760
push dword [esp]
call fcn.10010760
add esp, 0xc
pop ebx
ret 8
Function at 0x10005cb7
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push eax
call fcn.10010700
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.1000b000
mov eax, dword [esp]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
jmp 0x10005cd8
push dword [esp]
call fcn.10010760
add esp, 4
ret 4

Function at 0x10009d54
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.10010700
mov eax, dword [0x10016f38]
mov dword [0x1001718c], eax
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push 0x7fff
call fcn.1000d200
lea eax, [esp + 4]
push eax
call fcn.10010600
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.100103f0
push 0x10017278
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push dword [0x10017278]
call fcn.1000e22c
push 0x1001738c
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [0x1001738c]
call fcn.1000d250
push 0x10017104
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push 1
push dword [0x10017278]
call fcn.1000e2ab
push 0x10017374
call fcn.10010600
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x1001718c]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.100103f0
push 0x10016f5c
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push dword [0x10016f5c]
call fcn.1000e22c
push 0x100171f4
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [0x100171f4]
call fcn.1000d250
push 0x100172a8
call fcn.10010600
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
push 1
push dword [0x10016f5c]
call fcn.1000e2ab
push 0x10017068
call fcn.10010600
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [esp + 0xc]
call fcn.1000d250
push 0x10017218
call fcn.10010600
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [esp + 0xc]
call fcn.1000d250
push 0x100170e0
call fcn.10010600
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.10010560
pop edx
push eax
push edx
call fcn.10010560
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [esp + 0xc]
call fcn.1000d250
push 0x1001720c
call fcn.10010600
xor eax, eax
push dword [esp]
call fcn.10010760
add esp, 4
ret
Function at 0x1000b430
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x1000b5ce
mov esi, eax
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
je 0x1000b616
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x1000b509
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
mov eax, dword [0x100176d8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x1000b5ed
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
je 0x1000b5e2
cmp dword [esp + 0x24], 0xf
jbe 0x1000b4e6
mov edi, dword [esp + 0x30]
call ebp
cmp edi, eax
jne 0x1000b4e6
mov edi, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1000b4e6
mov edx, dword [ebx]
test edx, edx
je 0x1000b4a2
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jb 0x1000b4d4
lea ecx, [eax + eax]
mov dword [ebx + 4], ecx
shl eax, 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [0x100176d8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x1000b5ed
mov dword [ebx], eax
jmp 0x1000b4d4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
call fcn.1000b2a6
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esi, 1
cmp dword [ebx + 8], esi
jbe 0x1000b5c7
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x1000b573
jmp 0x1000b59a
mov eax, 0
jmp 0x1000b5d3
mov eax, 9
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0
jmp 0x1000b5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000b629
mov eax, dword [ebx]
test eax, eax
je 0x1000b616
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x100176d8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebx], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, 9
jmp 0x1000b5d3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [ebx], 0
je 0x1000b650
cmp dword [ebx + 8], 0
je 0x1000b5db
mov esi, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x1000b5a2
mov eax, 0
jmp 0x1000b5d3
Function at 0x1000b65a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, edx
imul eax, eax, 0x2c
add eax, dword [0x10017748]
mov ebx, eax
mov esi, dword [eax]
mov ebp, 5
test byte [eax + 0x14], 1
je 0x1000b683
sub esi, 5
mov ebp, 7
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov edx, 0xa
test eax, eax
je 0x1000b723
test edi, edi
je 0x1000b72d
mov byte [esi], 0xe9
lea eax, [esi + 5]
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [esi + 1], ecx
test byte [ebx + 0x14], 1
je 0x1000b6cd
mov eax, dword [ebx]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
sub esp, 0xc
and edi, 1
lea edx, [edi + edi]
movzx eax, byte [ebx + 0x14]
and eax, 0xfffffff9
shl edi, 2
or eax, edx
or eax, edi
mov byte [ebx + 0x14], al
mov edx, 0
mov eax, edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebx + 0x14], 1
je 0x1000b749
mov edx, dword [ebx + 0xc]
mov dword [esi], edx
movzx edx, word [ebx + 0x10]
mov word [esi + 4], dx
movzx eax, byte [ebx + 0x12]
mov byte [esi + 6], al
jmp 0x1000b6cd
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
movzx eax, byte [ebx + 0x10]
mov byte [esi + 4], al
jmp 0x1000b6cd

Function at 0x1000b75a
Capabilities:
Resume thread

Disassembly:
cmp dword [eax], 0
je 0x1000b7eb
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, eax
cmp dword [eax + 8], 0
je 0x1000b7c4
mov ebx, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x1000b79f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add ebx, 1
cmp dword [edi + 8], ebx
jbe 0x1000b7c4
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x1000b77f
jmp 0x1000b797
mov eax, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x100176d8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
ret
Function at 0x1000cf9d
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x10017490], 0
push ebx
push esi
mov esi, 0x10017498
jne 0x1000cfc9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x100174b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10017490], 1
push dword [0x100174b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x1000d066
push 0x14
push 8
push dword [0x10016f34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000d090
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10017494]
test eax, eax
je 0x1000d00b
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x10017494], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x1000d095
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x100174b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x10016f34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000d090
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x1000e4c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x1000e4fc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x1000e8b0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1001773c]
call fcn.1000f93c
test eax, eax
je case.0x1000e8de.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x1000e8de.3
movzx ecx, byte [ecx + 0x1000e9e8]
jmp dword [ecx*4 + 0x1000e9d0]
cmp dword [eax + 4], 0
je 0x1000e8fb
push 2
push 0x10012028
push eax
call fcn.1000ed60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x10012028
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1000e92a
push 3
push 0x1001202c
push eax
call fcn.1000ed60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x1001202c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1000e959
push 2
push 0x10012030
push eax
call fcn.1000ed60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x10012030
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1000e988
push 4
push 0x10012034
push eax
call fcn.1000ed60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x10012034
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x1000e9b7
push 4
push 0x1001203c
push eax
call fcn.1000ed60
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x1001203c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8