joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417aad
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x417ac6
or eax, 0xffffffff
jmp 0x417b27
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x417b23
push 0x3d
push esi
call fcn.00418bc7
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x417b23
cmp esi, eax
je 0x417b23
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x422984]
sete cl
cmp eax, dword [0x422988]
mov dword [ebp - 8], ecx
jne 0x417b09
mov edi, eax
call fcn.00417a4c
mov dword [0x422984], eax
cmp eax, ebx
jne 0x417b62
cmp dword [ebp + 0xc], ebx
je 0x417b2b
cmp dword [0x42298c], ebx
je 0x417b2b
call fcn.00413b87
test eax, eax
je 0x417b62
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x417b34
xor eax, eax
jmp 0x417b26
push 4
call fcn.0040b2a2
cmp eax, ebx
pop ecx
mov dword [0x422984], eax
je 0x417b23
mov dword [eax], ebx
cmp dword [0x42298c], ebx
jne 0x417b62
push 4
call fcn.0040b2a2
cmp eax, ebx
pop ecx
mov dword [0x42298c], eax
je 0x417b23
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x422984]
call fcn.004179ff
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x417bc3
cmp dword [esi], ebx
je 0x417bc3
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040b2b4
cmp dword [ebp - 8], ebx
pop ecx
jne 0x417ba6
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x417c04
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x417b9d
mov eax, edi
shl eax, 2
push eax
push dword [0x422984]
call fcn.00415dd6
cmp eax, ebx
pop ecx
pop ecx
je 0x417c04
jmp 0x417bff
cmp dword [ebp - 8], ebx
jne 0x417c6f
cmp edi, ebx
jge 0x417bd2
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x422984]
call fcn.00415dd6
cmp eax, ebx
pop ecx
pop ecx
je 0x417b23
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x422984], eax
cmp dword [ebp + 0xc], ebx
je 0x417c59
push dword [ebp - 4]
call fcn.00411130
inc eax
inc eax
push eax
call fcn.0040b2a2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x417c59
push dword [ebp - 4]
push esi
call fcn.004130b0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x417c52
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040b2b4
pop ecx
cmp dword [ebp - 8], ebx
je 0x417c67
push dword [ebp - 4]
call fcn.0040b2b4
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x417b26
push dword [ebp - 4]
call fcn.0040b2b4
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x417b30
Function at 0x417c82
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422c90], ebx
push esi
push edi
jne 0x417d02
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417d3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f6f0
push edi
call esi
test eax, eax
mov dword [0x422c90], eax
je 0x417d3d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x422c94], eax
call esi
cmp dword [0x422964], 2
mov dword [0x422c98], eax
jne 0x417d02
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422ca0], eax
je 0x417d02
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422c9c], eax
mov eax, dword [0x422c9c]
test eax, eax
je 0x417d47
call eax
test eax, eax
je 0x417d2e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422ca0]
test eax, eax
je 0x417d2e
test byte [ebp - 8], 1
jne 0x417d47
cmp dword [0x422970], 4
jb 0x417d41
or byte [ebp + 0x12], 0x20
jmp 0x417d66
xor eax, eax
jmp 0x417d76
or byte [ebp + 0x12], 4
jmp 0x417d66
mov eax, dword [0x422c94]
test eax, eax
je 0x417d66
call eax
mov ebx, eax
test ebx, ebx
je 0x417d66
mov eax, dword [0x422c98]
test eax, eax
je 0x417d66
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422c90]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417dbf
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040b8d0
mov eax, dword [0x421558]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x424328]
mov dword [ebp - 4], eax
jae 0x417f02
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x424340]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x417f02
push 1
push esi
push ebx
call fcn.00414f04
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x417f0c
push 2
push esi
push ebx
call fcn.00414f04
add esp, 0xc
cmp eax, 0xffffffff
je 0x417f0c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x417eac
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00414800
push 0x8000
push ebx
call fcn.00418c2e
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x417e6b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040f6e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x417e89
sub edi, eax
test edi, edi
jg 0x417e60
jmp 0x417e9f
cmp dword [0x42295c], 5
jne 0x417e9c
mov dword [0x422958], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00418c2e
pop ecx
pop ecx
jmp 0x417eec
jge 0x417eec
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00414f04
push ebx
call fcn.0040d4cc
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x417eec
mov dword [0x422958], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42295c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00414f04
add esp, 0xc
mov eax, esi
pop edi
jmp 0x417f0f
mov dword [0x422958], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040facd
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040fa3d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x418cf7
test byte [esp + 8], 2
je 0x418cf7
mov dword [0x422958], 0xd
mov dword [0x42295c], 5
jmp 0x418cd2
xor eax, eax
ret
Function at 0x418d69
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x41f7c0
call fcn.00413894
mov eax, dword [0x421558]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x418e76
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x418e27
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b8d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x418e14
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x418e76
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x418e76
mov al, byte [edi]
cmp al, 0x5c
je 0x418e35
cmp al, 0x2f
jne 0x418e3a
cmp al, byte [edi + 1]
je 0x418e70
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00418eac
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x418e76
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040fa3d
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x418e92
push edi
call fcn.0040b2b4
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0040facd
call fcn.004138cf
ret
Function at 0x4151e1
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41c108
call fcn.0041599a
push 1
call fcn.00415264
pop ecx
test al, al
jne 0x415098
push 7
call fcn.00415762
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041522f
mov byte [ebp - 0x24], al
mov eax, dword [0x41fc3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x415091
test eax, eax
jne 0x415102
mov dword [0x41fc3c], ecx
push 0x418358
push 0x418344
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4150e5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4151db
push 0x418340
push 0x418318
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41fc3c], 2
jmp 0x415107
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004153d1
pop ecx
call fcn.00415756
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415137
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415137
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004156eb
call esi
call fcn.0041575c
mov esi, eax
cmp dword [esi], edi
je 0x415155
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415155
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00415878
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004158ab
test al, al
jne 0x415180
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x415189
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004153ee
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4151db
call fcn.004159df
ret
call fcn.00414f1f
jmp 0x415079

Function at 0x401ac0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aff
cmp dword [ecx + 0x74], 0xe
jbe 0x401aff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4030e3
Capabilities:
Get number of processors

Disassembly:
jae 0x403159
inc ebp
js 0x40314d
arpl word [ebp + 0x74], si
and bh, byte fs:[edx]
and bh, byte [edx]
and byte [0x200a0d2c], dh

Function at 0x4031b5
Capabilities:
Get number of processors

Disassembly:
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [edx], ah
inc ebp
js 0x40322b
arpl word [ebp + 0x74], si
and dh, byte [0x22343830]
cmp ah, byte [eax]
jnp 0x403242
or ah, byte [eax]
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and al, byte [ebp + 0x78]
invalid
and byte [eax], ah
and byte [eax], ah
and al, byte [ebp + 0x78]
arpl word gs:[ebp + 0x74], si
arpl word [ebp + 0x74], si
imul ebp, dword [edi + 0x6e], 0x6e756f43
je 0x403278
cmp ah, byte [eax]
xor eax, 0x200a0d2c
and bh, byte fs:[edx]
and dh, byte [esi]
xor bh, byte [ecx]

Function at 0x403212
Capabilities:
Get number of processors

Disassembly:
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [ebp + 0x2c], bh
or eax, 0x2020200a
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [edx], ah
xor eax, 0x22343830

Function at 0x403238
Capabilities:
Get number of processors

Disassembly:
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
and byte [eax], ah
Function at 0x401910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4bd464]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x1c], 0x44
mov byte [ebp - 0x1b], 0x4d
mov byte [ebp - 0x1a], 0x45
mov byte [ebp - 0x19], 0x42
mov byte [ebp - 0x18], 0x32
mov byte [ebp - 0x17], 0x4a
mov byte [ebp - 0x10], 0x59
mov byte [ebp - 0xf], 0x4b
mov byte [ebp - 0xe], 0x5a
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], 0x44
mov byte [ebp - 0xb], 0x45
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x57
mov byte [ebp - 8], 0x4f
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x70]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x4b1cf4
mov ecx, dword [ebp - 0x20]
call 0x444f10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401986
jmp 0x40199a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x70]
push edx
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x74]
push ecx
call dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047777a
mov esp, ebp
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401c66
pop dword [ebp - 0x30]
mov eax, 0x401c66
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x6f054c7d
sub dword [ebp - 0x40], 0x20b30732
mov dword [ebp - 0x3c], 0x54f82343
add dword [ebp - 0x3c], 0xdd3b2902
mov dword [ebp - 0x38], 0xfb474628
sub dword [ebp - 0x38], 0xaefb01fa
mov dword [ebp - 0x34], 0x9bec2efd
sub dword [ebp - 0x34], 0x9bec2efd
lea eax, [ebp - 0x40]
push eax
mov eax, 0xf2d96c6b
sub eax, 0xf2993c17
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xd427530c
sub dword [ebp - 0x40], 0x5fb4e9b6
mov dword [ebp - 0x3c], 0x6b72f4f0
add dword [ebp - 0x3c], 0xd5f96c85
mov dword [ebp - 0x38], 0x27c87b69
sub dword [ebp - 0x38], 0xc4590efd
mov dword [ebp - 0x34], 0xefb8a7a
sub dword [ebp - 0x34], 0xefb8a7a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xe719a9af
sub eax, 0xe6d97983
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x38b96
push 0
call eax
mov ecx, 0x545202f0
sub ecx, 0x5451b1f7
mov esi, eax
mov edx, 0x8bd451e1
add edx, 0x746c1e1f
add edx, dword [ebp - 0x30]
mov ebx, 0xd897b326
sub ebx, 0xe4ba24ad
mov edi, dword [edx]
mov dword [ebp - 0x20], 0x33a5db38
xor edi, ebx
xor dword [ebp - 8], 0xa9b99b26
mov dword [esi], edi
add esi, 0x51c591bc
sub esi, 0x51c591b8
add edx, 0xe81bea89
add edx, 0x17e4157b
loop 0x401d83
add eax, 0xf4c5c486
sub eax, 0xf4c48dcf
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x420aeb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c6283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.00424836
pop ecx
push eax
call fcn.00424664
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x456703
lea ecx, [ebp - 0x18]
call fcn.004140cd
mov ecx, edi
call fcn.00404d37
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041402a
push dword [ebp - 0x18]
push 0x492ca8
push esi
call fcn.00424a35
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x456723
lea ecx, [ebp - 0x18]
call fcn.00411cb6
mov edi, dword [ebp - 8]
push esi
call fcn.00424bfa
pop ecx
cmp ebx, 0xffffffff
je 0x420b89
push ebx
push esi
call fcn.00424836
pop ecx
push eax
call fcn.00424664
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x420b71
push esi
mov ecx, edi
call fcn.00468b80
push eax
push 1
call fcn.00468b3d
push eax
call fcn.004249b3
add esp, 0x10
mov edi, eax
jmp 0x420b64
mov ecx, edi
call fcn.00404d37
mov eax, dword [edi + 8]
push dword [eax]
call dword [0x490244]
jmp 0x420b59
Function at 0x45fcdb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f16
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420fa0
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x45fd36
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45fd2d
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x464ebb
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 dword [ebp - 4], eax
mov byte [0x4c62b7], 0
mov ebx, edx
test edi, edi
je 0x464f0d
mov byte [0x4c62b8], 1
call dword [0x490180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x46539d
push ecx
push ecx
call fcn.00423fe1
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0x4906b8]
mov edi, eax
test esi, esi
je 0x464f38
push 0xffffffffffffffff
push esi
mov byte [0x4c62b8], 0
call dword [0x49016c]
push esi
call dword [0x490358]
cmp byte [0x4c62b7], 1
jne 0x464f46
or eax, 0xffffffff
jmp 0x464f48
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
dec dword [0x4c4190]
jne 0x468bd7
call fcn.00468cb1
mov eax, dword [0x4c7ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c7ef0], 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 0x468c0f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c4190]
jne 0x468c21
call fcn.00468cb1
mov eax, dword [0x4c7ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c7ef0], 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 0x468c64
fadd qword [0x4bae48]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bae20]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
xor esi, esi
mov dword [0x4c7530], ecx
inc esi
mov ecx, 0x4c7530
mov edx, esi
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x4c7eec
jl 0x468c85
mov dword [0x4c4190], esi
mov dword [0x4c7518], esi
pop esi
ret
Function at 0x468cb1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c7518], 0
push esi
push edi
mov esi, 0x4c7530
jne 0x468cd0
push 0
call fcn.0042535a
pop ecx
mov ecx, eax
call fcn.00468c74
mov dword [0x4c4190], 0x270
mov edi, 0xe3
mov dword [0x4c7ef0], esi
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 eax, 0x7ffffffe
and ecx, 0x9908b0df
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 0x468ce5
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 eax, 0x7ffffffe
and ecx, 0x9908b0df
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 0x468d1a
mov ecx, dword [0x4c7530]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
pop edi
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
and edx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, edx
mov dword [esi], eax
pop esi
ret

Function at 0x4691b9
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 0x4691de
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00420fa0
add esp, 0xc
jmp 0x4691f1
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00425732
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
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 0x4b9834
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.004257e0
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4692c7
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x4692dd
cmp eax, ecx
jne 0x4692f8
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.00425732
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 0x469310
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
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0x469357
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.004249b3
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x46935d
Capabilities:
Write file on windows

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

Function at 0x469531
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.00469387
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.004693cd
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x469575
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00469505
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x46955f
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47279e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x4727ad
pop ebp
jmp fcn.0047286e
pop ebp
jmp fcn.004727b3

Function at 0x472b4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x472b89
cmp byte [ebp + 8], 0
je 0x472b89
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.00471bea
push esi
push 0
push 0x472c1c
call fcn.00425e1c
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x472b91
push dword [ebp + 8]
call fcn.00471dbe
pop esi
pop ebp
ret 4