joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1314634c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x131fcae8
cmp dword [ebp + 0xc], 2
jl 0x13146360
mov ebx, 0x131fcb18
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x13146398
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, sub.kernel32.dll_RaiseException
mov dword [0x131fa014], eax
mov eax, 0x131425b0
mov dword [0x131fa018], eax
mov eax, ebx
call fcn.13146230
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x131463cd
cmp al, 3
jge 0x131463cd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x131463de
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x131463e9
call dword [ecx + eax*4]
cmp dword [0x131fa038], 0
jne 0x131463ff
mov byte [0x131fa040], 1
fnstcw word [0x131f7024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.13146654
call fcn.131462e0
ret 4

Function at 0x131465c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x131fa054], 0
je 0x13146625
cmp word [0x131fa330], 0xd7b2
jne 0x131465ed
cmp dword [0x131fa338], 0
jbe 0x131465ed
mov eax, 0x131fa32c
call dword [0x131fa348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x13146650
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x131f7028], 0
jne 0x13146641
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x131467d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x131f702c], 0
je 0x131467fb
mov edx, edi
mov eax, esi
call dword [0x131f702c]
mov ebx, eax
jmp 0x1314680c
mov eax, 8
call fcn.13144350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x131fa055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x13146798
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x13146841
mov edx, 8
mov eax, ebx
call fcn.1314436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x13148ae0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x13148c45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.13146914
cmp si, word [0x131f77dc]
jb 0x13148b78
cmp si, word [0x131f79dc]
ja 0x13148b78
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x13148b78
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x131f77dc]
jae 0x13148b52
mov edi, ebx
dec edi
jmp 0x13148b73
cmp si, word [ebx*8 + 0x131f77dc]
jbe 0x13148b62
inc ebx
mov dword [ebp - 8], ebx
jmp 0x13148b73
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x131f77e0]
call fcn.131489f0
jmp 0x13148b78
cmp edi, dword [ebp - 8]
jae 0x13148b3c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x13148c27
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x13148c27
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.13147440
push dword [ebp - 0x160]
push 0x13148c60
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.13147440
push dword [ebp - 0x164]
push 0x13148c70
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.13147440
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.13147678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13148c4c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.13146974
ret
Function at 0x13148df8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x13148efb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x131fcb55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x131fcb6e]
jne 0x13148e44
mov eax, esi
mov edx, 0x131fcb70
mov ecx, 0x55
call fcn.13147440
push 0x131fcb55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x13148ee5
push 0x131fcb55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.13146914
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x13148eb3
cmp byte [0x131fcb54], 0
je 0x13148e78
mov edx, esi
mov eax, ebx
call fcn.13148cdc
jmp 0x13148eb3
mov edx, esi
mov eax, ebx
call fcn.13148ae0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x13148eb3
cmp dword [esi], 0
je 0x13148e9c
mov eax, esi
mov edx, 0x13148f14
call fcn.13147598
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.13148ae0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.13147598
push 0x131fcb55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x131fcb6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.1314739c
push eax
push 0x131fcb70
call sub.kernel32.dll_lstrcpynW
push 0x131fcb55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13148f02
lea eax, [ebp - 4]
call fcn.13146914
ret
Function at 0x13149130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.131469f8
xor eax, eax
push ebp
push 0x13149355
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x13149170
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x1314918a
push 0x105
mov eax, dword [ebp - 4]
call fcn.1314739c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x1314933f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x13149364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13149259
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x13149364
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13149259
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x131493a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13149259
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x131493a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13149259
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x131493d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x13149259
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x13149408
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x1314933f
xor eax, eax
push ebp
push 0x13149338
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.13148f3c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x131492c8
mov eax, dword [ebp - 0x10]
call fcn.13144350
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.131473ec
jmp 0x13149313
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x13149448
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x13149313
mov eax, dword [ebp - 0x10]
call fcn.13144350
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x13149448
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.131473ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314933f
cmp dword [ebp - 8], 0
je 0x1314932e
mov eax, dword [ebp - 8]
call fcn.1314436c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314935c
lea eax, [ebp - 4]
call fcn.13146914
ret
Function at 0x13149694
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.131469f8
xor eax, eax
push ebp
push 0x13149754
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.13147440
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.131475f0
mov eax, dword [ebx]
call fcn.1314955c
test al, al
jne 0x13149731
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.13147440
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.131475f0
mov eax, dword [ebx]
call fcn.1314955c
test al, al
jne 0x13149731
mov eax, ebx
call fcn.13146914
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314975b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.13146974
lea eax, [ebp - 4]
call fcn.13146914
ret

Function at 0x1314a040
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x1315a9ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x1315aa45
test eax, edx
je 0x1315aa48
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x1315aa03
movzx eax, word [eax]
sub eax, ecx
jmp 0x1315aa2a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x1315aa2b
add ecx, 4
js 0x1315aa1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x1315aa28
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x1315aa2a
xor eax, eax
ret
test eax, eax
je 0x1315aa54
test edx, edx
jne 0x1315a9f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x1315b7cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.1314739c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1315b836
test ah, 4
je 0x1315b82f
test bl, bl
jne 0x1315b7f4
mov al, 1
jmp 0x1315b85d
test al, 0x10
je 0x1315b7fc
xor eax, eax
jmp 0x1315b85d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x1315b820
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x1315b85d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x1315b85d
test al, 0x10
sete al
jmp 0x1315b85d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x1315b857
cmp ebx, 3
je 0x1315b857
cmp ebx, 0x7b
je 0x1315b857
mov eax, esi
call fcn.1315b78c
test al, al
jne 0x1315b85b
xor eax, eax
jmp 0x1315b85d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x1315ebcc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x1315ec05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.13146a7c
jmp 0x1315ec0e
mov eax, ebx
mov edx, esi
call fcn.13146cd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1315ec18
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x1315ec3a
movzx eax, word [esp]
jmp 0x1315ec3c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x1315f8f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x1315fa1d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.1315f708
mov esi, eax
mov eax, dword [0x131f9c2c]
cmp byte [eax], 0
je 0x1315f9c5
mov eax, dword [0x131f99cc]
call fcn.1314480c
call fcn.131444cc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x1315f8d0]
call fcn.13148530
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x1315fa38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x1315fa01
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x131f9960]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x131fcc38]
call fcn.13148624
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1315fa24
lea eax, [ebp - 4]
mov edx, dword [0x1315f8d0]
call fcn.1314853c
ret

Function at 0x13160a5c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x13160b32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.13146d1c
lea eax, [ebp - 4]
call fcn.13146e84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.1314739c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x13160b1c
mov eax, ebx
call fcn.13144350
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x13160b15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.1314739c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x13160aff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x13160b44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x13160aff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13160b1c
mov eax, dword [ebp - 0x10]
call fcn.1314436c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13160b39
lea eax, [ebp - 4]
call fcn.13146914
ret
Function at 0x13161c70
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.13147440
add esp, 0x800
pop ebx
ret

Function at 0x13185b1c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x13185bba
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x13185b7e
cmp byte [ebx + 0x10], 0
jne 0x13185b7e
cmp byte [ebx + 0x3c], 0
jne 0x13185b7e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x13185b9f
lea edx, [ebp - 4]
mov eax, dword [0x131f9bc8]
call fcn.13149f8c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x13175f40]
call fcn.1315fa3c
call fcn.13145fe4
jmp 0x13185b9f
lea edx, [ebp - 8]
mov eax, dword [0x131f9bc8]
call fcn.13149f8c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x13175f40]
call fcn.1315fa3c
call fcn.13145fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13185bc1
lea eax, [ebp - 8]
mov edx, 2
call fcn.13146974
ret

Function at 0x131864c8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x13186516
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.13185a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1318652f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x13186538
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.13185a68
dec esi
jne 0x1318655a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x13187dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x131fef90
cmp dword [edi], 0
jne 0x13187e4c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x131fef8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x131f8014
mov ecx, 2
call fcn.1314451c
mov edx, 0x13187da8
lea eax, [esi + 5]
call fcn.13187dc8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.13187dc8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x13187e21
mov dword [0x131fef8c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x13189ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.131469f8
mov eax, dword [ebp - 8]
call fcn.131469f8
xor eax, eax
push ebp
push 0x1318a000
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x13189fd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.1314739c
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
call fcn.1314739c
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.1314b820
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x20]
sub eax, 5
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, 0xff
call fcn.13144350
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp - 0x1c]
add edx, 5
mov eax, dword [ebp - 0x20]
call fcn.13189e68
mov edx, dword [ebp - 0x1c]
add edx, 4
mov byte [edx], al
mov eax, dword [ebp - 0x20]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x20]
inc eax
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 5
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x1c]
add eax, 5
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x13189fe1
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318a007
lea eax, [ebp - 8]
mov edx, 2
call fcn.13146974
ret