joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed85
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x103
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00456e2a
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00455031
add esp, 0x10
test eax, eax
je 0x40edcd
lea eax, [ebp + eax*2 - 0x20e]
cmp word [eax], 0x5c
jne 0x40edcd
xor ecx, ecx
mov word [eax], cx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ee5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 2
jne 0x40ee05
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x40ee0a
mov al, 1
jmp 0x40ee65
cmp eax, 3
jne 0x40ee63
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f89b
mov esi, eax
push 0x5c
push esi
call fcn.00457cfa
add esp, 0xc
test eax, eax
jne 0x40ee30
push esi
call fcn.0045504c
pop ecx
jmp 0x40ee63
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0040ed85
push esi
mov bl, al
call fcn.0045504c
pop ecx
pop ecx
test bl, bl
je 0x40ee5a
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40ee65
test al, 0x10
jne 0x40ee01
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40ee69
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040e6a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040e6a4
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40eee2
cmp byte [ebp + 0x10], al
je 0x40eede
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
je 0x40eeda
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40eefb
test al, 0x10
jne 0x40ef02
xor al, al
jmp 0x40efc2
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ef1c
test al, 0x10
je 0x40ef1c
cmp byte [ebp + 0x10], bl
jmp 0x40ef3d
lea eax, [ebp - 0x22c]
push eax
call fcn.0040ed85
pop ecx
test al, al
je 0x40ef3f
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ef3f
test al, 0x10
jne 0x40ef43
xor al, al
jmp 0x40efc1
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.004553a6
lea eax, [ebp - 0x438]
push eax
call fcn.00455031
xor ecx, ecx
mov word [ebp + eax*2 - 0x436], cx
lea eax, [ebp - 0x22c]
push eax
call fcn.00455031
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40efc5
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x440]
call fcn.0040e6a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.0040e6a4
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x40f005
test al, 0x10
jne 0x40f00c
xor al, al
jmp 0x40f1c2
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40f0ef
test al, 0x10
je 0x40f0ef
cmp byte [ebp + 0x10], bl
je 0x40f151
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f085
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
je 0x40f07e
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40f136
mov al, 1
jmp 0x40f1c1
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0045787e
lea eax, [ebp - 0x234]
push 0x46e4c0
push eax
call fcn.004553a6
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004553a6
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x40f0ef
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004553a6
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e799
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x234]
je 0x40f13e
push 1
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040ee69
add esp, 0xc
test al, al
je 0x40f151
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0040f1c5
pop ecx
pop ecx
test al, al
setne al
jmp 0x40f1c1
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x40f155
xor al, al
jmp 0x40f1c1
lea eax, [ebp - 0x440]
push eax
call fcn.00455031
xor ecx, ecx
mov word [ebp + eax*2 - 0x43e], cx
lea eax, [ebp - 0x234]
push eax
call fcn.00455031
pop ecx
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x232], cx
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40f1c5
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040e6a4
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f1f3
test al, 0x10
jne 0x40f1f7
xor al, al
leave
ret
push ebx
xor ebx, ebx
lea eax, [ebp - 0x22c]
push eax
cmp byte [ebp + 0xc], bl
jne 0x40f213
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40f25b
call fcn.00455031
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
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 0x40f332
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x40f3f7
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40f3f7
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40f38f
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40f386
cmp esi, edx
jle 0x40f3a4
push str.0.0.0.0
push dword [ebp + 8]
call fcn.004553d7
pop ecx
pop ecx
jmp 0x40f3ef
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00454cd0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004574c0
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.004100f1
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.004553d7
push esi
call fcn.0045504c
add esp, 0x18
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x40f406
push 0x46df98
push dword [ebp + 8]
call fcn.004553d7
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x40f510
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f52f
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f56f
xor eax, eax
jmp 0x40f5b8
cmp ebx, 0x20
je 0x40f5a8
cmp ebx, 0x40
je 0x40f5a8
test bl, 0xb
jne 0x40f588
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f5b8
xor ecx, ecx
test bl, 0x14
je 0x40f590
inc ecx
xor eax, eax
test bl, 2
je 0x40f598
inc eax
push dword [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x40f5b8
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
test edi, edi
js 0x40f896
jne 0x40f82c
push 0
jmp 0x40f890
cmp edi, 0xf
jae 0x40f88f
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f88f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x475bf8]
call fcn.00469d16
cmp eax, edi
jb 0x40f84d
jmp 0x40f896
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40face
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
mov bl, byte [0x480387]
push esi
push 0x8000
push dword [ebp + 8]
call fcn.00457fa9
pop ecx
push eax
call fcn.00457ebe
cmp dword [edi + 8], 0xb
pop ecx
pop ecx
mov dword [esp + 8], eax
jne 0x40fb24
push dword [ebp + 8]
mov ecx, edi
call fcn.00412b26
push eax
push 1
push ecx
mov eax, edi
call fcn.00412bbd
pop ecx
push eax
call fcn.00458126
add esp, 0x10
mov dword [esp + 0xc], eax
jmp 0x40fb6f
lea esi, [esp + 0x10]
call fcn.00407c62
mov eax, edi
call fcn.00412b88
mov ecx, esi
push ecx
call fcn.0040d250
push dword [esp + 0x10]
push 0x470a84
push dword [ebp + 8]
call fcn.004581a0
add esp, 0xc
mov dword [esp + 0xc], eax
test bl, bl
je 0x40fb66
mov eax, edi
call fcn.00412b6d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [esp + 0x10]
call fcn.00407c81
push dword [ebp + 8]
call fcn.00458436
cmp dword [esp + 0xc], 0xffffffff
pop ecx
jne 0x40fb86
push 0x4000
jmp 0x40fb8a
push dword [esp + 8]
push dword [ebp + 8]
call fcn.00457fa9
pop ecx
push eax
call fcn.00457ebe
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411cc5
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x411d02
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411d62
push 1
push eax
mov eax, esi
call fcn.00411c2b
pop ecx
pop ecx
jmp 0x411d7e
test dword [ebp + 8], eax
je 0x411d25
mov eax, dword [esi]
cmp eax, edi
jne 0x411d80
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411d66
or eax, 0xffffffff
jmp 0x411d80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, edi
je 0x411d39
cmp eax, 0xffffffff
jne 0x411cf4
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x470d04
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411d62
cmp eax, edi
jne 0x411d66
mov dword [esi], edi
jmp 0x411d7e
push 1
push dword [esi]
lea eax, [ebp + 0xc]
call fcn.00411c2b
pop ecx
pop ecx
call fcn.00411c1a
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0xc
Function at 0x411d86
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x411dc2
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411e20
push 1
push eax
mov eax, esi
call fcn.00411c2b
pop ecx
pop ecx
jmp 0x411e3c
test al, 1
je 0x411de4
mov eax, dword [esi]
cmp eax, edi
jne 0x411e3e
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411e24
or eax, 0xffffffff
jmp 0x411e3e
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, edi
je 0x411df7
cmp eax, 0xffffffff
jne 0x411db4
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push accept
push 0x470d04
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411e20
cmp eax, edi
jne 0x411e24
mov dword [esi], edi
jmp 0x411e3c
push 1
push dword [esi]
lea eax, [ebp + 8]
call fcn.00411c2b
pop ecx
pop ecx
call fcn.00411c1a
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x411f6f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x411f90
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x412198
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
leave
ret

Function at 0x411f92
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + 0x30]
cmp dword [esi], 0
je 0x411ffa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add eax, 0x34
push edi
push dword [eax]
mov dword [ebp - 4], eax
push eax
call ebx
mov edi, 0x1f6
cmp eax, edi
je 0x411ff8
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00411c1a
push edi
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4121b2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004664c0
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.00455447
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x41229e
cmp dword [ebp - 4], 0
jbe 0x4122b9
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x412275
push dword [esi + 0xc]
call fcn.00455447
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.00454cd0
push dword [esi + 8]
call fcn.0045504c
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0x412245
fadd qword [0x475bd0]
fmul qword [0x475c08]
call fcn.00469d16
push eax
mov dword [esi + 0x10], eax
call fcn.00455447
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.00454cd0
push dword [ebp - 8]
call fcn.0045504c
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.00454cd0
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x4121f3
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x4903e0], eax
push edi
mov edx, esi
mov eax, 0x4903e0
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x490d9c
jl 0x414a30
pop edi
mov dword [0x47b04c], esi
mov dword [0x490db0], esi
pop esi
ret
Function at 0x414a5e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x490db0], 0
push ebx
push esi
push edi
mov esi, 0x4903e0
jne 0x414a80
push 0
call fcn.00458723
pop ecx
call fcn.00414a1f
mov dword [0x47b04c], 0x270
mov dword [0x4903dc], esi
mov dword [ebp - 4], 0xe3
mov ecx, accept
mov eax, 0x9908b0df
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi + 0x634]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414aa1
mov dword [ebp - 4], 0x18c
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414ad3
mov edi, dword [esi]
mov edx, dword [0x4903e0]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, eax
xor edi, ecx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
dec dword [0x47b04c]
jne 0x414b36
call fcn.00414a5e
mov eax, dword [0x4903dc]
mov ecx, dword [eax]
add dword [0x4903dc], 4
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 0x414b6d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x47b04c]
jne 0x414b7e
call fcn.00414a5e
mov eax, dword [0x4903dc]
mov eax, dword [eax]
add dword [0x4903dc], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jns 0x414bc2
fadd qword [0x475bd0]
fmul qword [0x475be0]
leave
ret
Function at 0x414ec2
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x414f79
cmp eax, dword [esi + 0x43c]
jae 0x414f45
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov ebx, dword [esi + 0x460]
mov edx, dword [esi + 0x458]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x460]
cmp dword [esi + 0x460], edi
jne 0x414f2d
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.00458126
add esp, 0x10
and dword [esi + 0x460], 0
inc dword [esi + 0x444]
inc dword [esi + 8]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x414ee1
pop ebx
and dword [esi + 0x440], 0
pop edi
ret
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x444]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x414f4e
jmp 0x414f45

Function at 0x414f83
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
push edi
mov dword [ebp - 8], eax
cmp dword [esi + 0x43c], eax
jae 0x4150eb
mov ebx, 0xff
push 1
mov eax, esi
call fcn.0041511c
cmp eax, 1
mov eax, esi
jne 0x414fe1
push 8
call fcn.0041511c
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x438]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
jmp 0x415087
push 0xf
call fcn.0041511c
mov dword [ebp - 4], eax
push 2
mov eax, esi
xor edi, edi
call fcn.0041511c
cmp eax, 3
jne 0x415041
push eax
pop edi
push eax
mov eax, esi
call fcn.0041511c
cmp eax, 7
jne 0x415041
push 0xa
pop edi
push 5
mov eax, esi
call fcn.0041511c
cmp eax, 0x1f
jne 0x415041
push 0x29
pop edi
push 8
mov eax, esi
call fcn.0041511c
cmp eax, ebx
jne 0x415041
mov edi, 0x128
jmp 0x415034
add edi, ebx
push 8
mov eax, esi
call fcn.0041511c
cmp eax, ebx
je 0x415032
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, dword [ebp - 4]
test edi, edi
je 0x415087
mov ebx, dword [esi + 0x43c]
mov ecx, dword [esi + 0x438]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
inc eax
mov byte [ebx + ecx], dl
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
dec edi
jne 0x415052
mov ebx, 0xff
call fcn.00414ec2
cmp dword [0x4923d0], 0x1000
jbe 0x4150cd
mov edi, dword [esi + 0x454]
and dword [0x4923d0], 0
test edi, edi
je 0x4150d3
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x4150d3
mov byte [esi + 0x448], 1
jmp 0x4150d3
inc dword [0x4923d0]
cmp byte [esi + 0x448], 0
jne 0x415117
mov eax, dword [ebp - 8]
cmp dword [esi + 0x43c], eax
jb 0x414fa4
mov eax, dword [esi + 0x460]
test eax, eax
je 0x415110
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.00458126
add esp, 0x10
and dword [esi + 0x460], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 4
pop eax
jmp 0x415112
Function at 0x4151b1
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00456db0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x415d8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.004159fa
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00415b35
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x415dd3
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00415b05
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x415db9
pop edi
pop esi
leave
ret 0xc