joyce8/EMBER2024-capa huggingface dataset:
Function at 0x136532
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x234], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, ebx
mov byte [esi], 0
call fcn.0013701d
mov ebx, eax
jmp 0x1365f3
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1365f8
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00111dfc
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00110cf4
push dword [ebp - 8]
lea eax, [ebp - 0x438]
push eax
call fcn.00110fa7
add esp, 0x24
test eax, eax
jne 0x1365dd
mov eax, dword [ebp - 0x22c]
jmp 0x1365eb
test ebx, ebx
je 0x1365f3
mov eax, dword [ebp - 0x22c]
cmp ebx, eax
jne 0x1365f3
mov ecx, dword [ebp - 4]
mov byte [esi], 1
mov dword [ecx], eax
cmp byte [esi], 0
je 0x13657b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x136ca9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x136ce4
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x136cd9
or eax, eax
jmp 0x136ce4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x136ce9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
push eax
push edi
mov ebx, edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x136d0e
xor al, al
jmp 0x136eb6
push esi
call fcn.0010f4ea
pop ecx
push eax
mov dword [ebp - 4], eax
push esi
xor eax, eax
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00110cdb
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0010f4ea
mov edi, eax
push 0x18dc54
push edi
call fcn.00110d23
push 0x18dc54
push esi
call fcn.001115e3
add esp, 0x18
test eax, eax
je 0x136dfa
push str.StringFileInfo_
push edi
call fcn.00110cf4
push 0x18dc54
push esi
call fcn.00111a06
add esp, 0x10
test eax, eax
jne 0x136df1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x136dcd
mov eax, dword [ebp - 0x10]
push 0
mov esi, dword [eax]
push esi
push 4
lea ecx, [edi + 0x20]
pop edx
call fcn.000fce87
push 0
shr esi, 0x10
push esi
push 4
lea ecx, [edi + 0x28]
pop edx
call fcn.000fce87
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x136dda
push str.04090000
push edi
call fcn.00110cf4
pop ecx
pop ecx
push 0x18dc54
push edi
call fcn.00110cf4
push esi
push edi
call fcn.00110cf4
add esp, 0x10
jmp 0x136dfa
push esi
push edi
call fcn.00110cf4
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.00110fa7
pop ecx
pop ecx
test eax, eax
jne 0x136e35
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.001123ac
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0010f55e
push edi
call fcn.0010f55e
add esp, 0x14
mov al, 1
jmp 0x136eb6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x136ea3
push 0x18dc54
push esi
call fcn.001115e3
pop ecx
pop ecx
test eax, eax
jne 0x136e85
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.0011172b
add esp, 0x18
jmp 0x136e9f
push 0x200
push dword [ebp - 8]
push ebx
call fcn.001123ac
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0010f55e
push edi
call fcn.0010f55e
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x136f02
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x136fc5
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x136fc5
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x136f62
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x136f59
cmp esi, ecx
jle 0x136f75
push str.0.0.0.0
push edi
call fcn.00110d23
pop ecx
pop ecx
jmp 0x136fbd
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0010ee80
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00112590
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00137c56
mov esi, eax
push esi
push edi
call fcn.00110d23
push esi
call fcn.0010f55e
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x136fd2
push 0x18dc00
push edi
call fcn.00110d23
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1371fa
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x137253
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
leave
ret

Function at 0x1372cb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1372de
test al, 0x10
je 0x1372de
mov al, 1
ret
xor al, al
ret
Function at 0x13732b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [0x1b32f9], 0
test edi, edi
je 0x13737d
mov byte [0x1b32fa], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x13778f
push ecx
push ecx
mov dword [ebp - 8], edi
call fcn.0011217f
mov esi, eax
mov eax, dword [ebp - 4]
add esp, 0x18
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x1373a8
push 0xffffffffffffffff
push esi
mov byte [0x1b32fa], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1b32f9], 1
jne 0x1373b6
or eax, 0xffffffff
jmp 0x1373b8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x137555
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20428
call fcn.0011f8a0
push esi
lea eax, [ebp - 0x20428]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00136ebb
lea eax, [ebp - 0x10428]
push eax
mov edx, 0x7fff
mov ecx, esi
call fcn.00136ebb
pop ecx
pop ecx
lea ecx, [ebp - 0x20428]
call fcn.001372cb
test al, al
jne 0x1375a1
xor al, al
jmp 0x137741
lea ecx, [ebp - 0x10428]
call fcn.001372cb
xor esi, esi
test al, al
je 0x137673
cmp byte [ebp + 8], 0
je 0x13759a
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x137612
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call fcn.001115e3
pop ecx
pop ecx
test eax, eax
je 0x13760b
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x137741
mov al, 1
jmp 0x137741
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x20428]
push esi
push eax
call fcn.00111dfc
lea eax, [ebp - 0x10428]
push 0x18dc54
push eax
call fcn.00110cf4
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x10428]
push eax
call fcn.00110cf4
add esp, 0x24
cmp word [ebp - 0x224], si
je 0x137673
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10428]
push eax
call fcn.00110cf4
pop ecx
pop ecx
lea edx, [ebp - 0x10428]
lea ecx, [ebp - 0x20428]
call fcn.0013725e
test al, al
je 0x1376b8
push 1
lea edx, [ebp - 0x10428]
lea ecx, [ebp - 0x20428]
call fcn.00135f85
pop ecx
test al, al
je 0x13759a
mov dl, 1
lea ecx, [ebp - 0x20428]
call fcn.0013793d
test al, al
jmp 0x137603
lea eax, [ebp - 0x10428]
push eax
lea eax, [ebp - 0x20428]
push eax
call fcn.001115e3
pop ecx
pop ecx
test eax, eax
je 0x13759a
lea eax, [ebp - 0x20428]
push eax
call fcn.00110cdb
xor ecx, ecx
mov word [ebp + eax*2 - 0x20426], cx
lea eax, [ebp - 0x10428]
push eax
call fcn.00110cdb
pop ecx
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x10426], cx
lea eax, [ebp - 0x20428]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10428]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], esi
mov dword [ebp - 6], esi
mov dword [ebp - 0xe], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
leave
ret
Function at 0x13793d
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.0011f8a0
push ebx
lea eax, [ebp - 0x10020]
mov bl, dl
push eax
mov edx, 0x7fff
call fcn.00136ebb
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.001372cb
test al, al
je 0x1379d0
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x137986
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x1379d0
call fcn.00110cdb
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x1379d3
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push str.SeShutdownPrivilege
lea ecx, [ebp - 0x10]
mov esi, edx
call fcn.00135ec3
push ecx
lea ecx, [ebp - 0x10]
call fcn.0012b134
test al, al
jne 0x1379fd
xor esi, esi
jmp 0x137a4a
cmp ebx, 0x20
je 0x137a3c
cmp ebx, 0x40
je 0x137a38
test bl, 0xb
jne 0x137a17
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x137a48
xor ecx, ecx
test bl, 0x14
je 0x137a1f
inc ecx
xor eax, eax
test bl, 2
je 0x137a27
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x137a48
xor eax, eax
jmp 0x137a3f
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0012ab84
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x137a58
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x137ad6
jne 0x137a6b
push 0
jmp 0x137ad0
cmp esi, 0xf
jae 0x137acf
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x137acf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x1a2720]
call fcn.00161906
cmp eax, esi
jb 0x137a88
jmp 0x137ad6
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret
Function at 0x137bf7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x137c52
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x139568
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x1395a2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1395df
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
test dword [ebp + 8], eax
je 0x1395c8
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x13959c
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x139616
or eax, 0xffffffff
jmp 0x13959c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x1395ed
cmp eax, 0xffffffff
je 0x1395ed
push 1
mov edx, esi
mov ecx, eax
call fcn.00139428
pop ecx
jmp 0x13959a
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x1a388c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x139598
test eax, eax
je 0x139598
mov ecx, dword [esi]
push 1
lea edx, [ebp + 0x10]
call fcn.00139428
pop ecx
mov ecx, esi
call fcn.001393d1
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x13959a
Function at 0x139634
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x13966d
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1396a8
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
test al, 1
je 0x139692
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x139667
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1396df
or eax, 0xffffffff
jmp 0x139667
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x1396b6
cmp eax, 0xffffffff
je 0x1396b6
push 1
mov edx, esi
mov ecx, eax
call fcn.00139428
pop ecx
jmp 0x139665
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0x1a388c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x139663
test eax, eax
je 0x139663
mov ecx, dword [esi]
push 1
lea edx, [ebp + 0x10]
call fcn.00139428
pop ecx
mov ecx, esi
call fcn.001393d1
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x139665
Function at 0x1398ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
push 0x1f5
lea esi, [ebx + 0x34]
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
call fcn.0010f4ea
mov edi, eax
mov eax, 0xffff
push eax
mov dword [ebp - 8], edi
mov dword [ebx + 0x10], eax
call fcn.0010f4ea
pop ecx
pop ecx
push 0
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1399c4
cmp dword [ebp - 4], 0
jbe 0x1399c1
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x10], eax
jae 0x139986
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0x13994e
fadd qword [0x1a6a00]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x1a2710]
call fcn.00161906
push eax
mov dword [ebx + 0x10], eax
call fcn.0010f4ea
push dword [ebx + 0xc]
mov dword [ebx + 8], eax
push edi
push dword [ebx + 8]
call fcn.0010ee80
push edi
call fcn.0010f55e
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
add esp, 0x14
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 8]
push ecx
push edi
push eax
call fcn.0010ee80
mov eax, dword [ebp - 4]
add dword [ebx + 0xc], eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x139916
mov esi, dword [ebp - 0xc]
push edi
call fcn.0010f55e
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x139a82
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
jne 0x139aa6
call fcn.001398ac
test al, al
je 0x139aa6
mov ecx, dword [esi + 8]
call fcn.001392d4
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.001399f9
cmp dword [esi + 0x24], 0
jne 0x139ad3
mov ecx, esi
call fcn.001397af
test al, al
je 0x139ad3
call fcn.001397a5
test al, al
jne 0x139ad3
mov ecx, dword [esi + 0x10]
call fcn.001392d4
mov dword [esi + 0x24], eax
mov ecx, eax
pop esi
jmp fcn.001399f9
pop esi
ret

Function at 0x139ad5
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x139ae4
call fcn.00139a20
mov ecx, dword [esi + 0x24]
pop esi
test ecx, ecx
jne fcn.00139a20
ret

Function at 0x13b5e8
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x1af7e0]
jne 0x13b5f5
call fcn.0013b6cc
mov eax, dword [0x1b3310]
mov ecx, dword [eax]
add eax, 4
mov dword [0x1b3310], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x13b62d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x1af7e0]
jne 0x13b63f
call fcn.0013b6cc
mov eax, dword [0x1b3310]
mov ecx, dword [eax]
add eax, 4
mov dword [0x1b3310], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x13b682
fadd qword [0x1a6a00]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x1a69d0]
leave
ret

Function at 0x13b690
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x1b3318], ecx
mov edx, esi
mov ecx, 0x1b3318
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
add ecx, 4
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ecx], eax
inc edx
cmp ecx, 0x1b3cd4
jl 0x13b6a1
mov dword [0x1af7e0], esi
mov dword [0x1b3304], esi
pop esi
ret

Function at 0x13b6cc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x1b3304], 0
push ebx
push esi
push edi
mov esi, 0x1b3318
jne 0x13b6ec
push 0
call fcn.0011344a
pop ecx
mov ecx, eax
call fcn.0013b690
mov dword [0x1af7e0], 0x270
mov dword [0x1b3310], esi
mov edi, 0xe3
mov ebx, 0x9908b0df
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and ecx, ebx
and eax, 0x7ffffffe
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
dec edi
jne 0x13b706
mov edi, 0x18c
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and ecx, ebx
and eax, 0x7ffffffe
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
lea esi, [edx]
dec edi
jne 0x13b737
mov ecx, dword [0x1b3318]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
xor eax, dword [esi]
and edx, ebx
shr eax, 1
xor eax, dword [esi - 0x38c]
pop edi
xor eax, edx
mov dword [esi], eax
pop esi
pop ebx
ret

Function at 0x13bbe8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x13bc0d
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0010ee80
add esp, 0xc
jmp 0x13bc20
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0011381e
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push str.EA06
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], 0
call fcn.001138d0
pop ecx
neg eax
pop ecx
sbb eax, eax
neg eax
pop esi
leave
ret 4
Function at 0x13bcf4
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x13bd0a
cmp eax, ecx
jne 0x13bd25
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.0011381e
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x13bd3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
inc dword [edi + 0x45c]
mov eax, 0x10000
cmp dword [edi + 0x45c], eax
jne 0x13bd84
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.00112aae
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0x13bd8a
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x13bdb2
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.00112aae
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0x13bf5a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.0013bdb4
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.0013bdf8
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x13bf9e
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0013bf2e
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x13bf88
pop edi
pop esi
leave
ret 0xc