joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00468cbf
add esp, 0x18
test eax, eax
je 0x43a002
cmp eax, 0xffffffff
jne 0x43a004
xor eax, eax
pop ebp
ret

Function at 0x43ac50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x158]
mov ebx, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x1c], eax
or edi, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43aca8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.00430040
add esp, 8
cmp edi, 0xffffffff
jne 0x43acdd
push str.Error_accept__ing_server_connect
push ebx
call fcn.0042fb20
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.0042fbc0
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.00441ca0
mov dword [esi + 0x168], 1
mov eax, dword [ebx + 0x1b0]
add esp, 0x10
test eax, eax
je 0x43ad49
push 1
push edi
push dword [ebx + 0x1b4]
call eax
add esp, 0xc
test eax, eax
je 0x43ad49
push edi
push esi
call fcn.00430040
add esp, 8
mov dword [esi + 0x158], 0xffffffff
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00464acc
mov esp, ebp
pop ebp
ret

Function at 0x43d070
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
push esi
mov eax, edx
shr eax, 0x1f
push edi
mov edi, dword [ebp + 8]
add eax, edx
mov ebx, dword [edi]
xor esi, esi
cmp eax, 2
je 0x43d0ac
push str.Couldnt_set_desired_mode
push ebx
call fcn.0042fb20
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x43d0c3
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.0042fbc0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x43d0db
push edi
call fcn.0043ce20
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x43d0f0
push edi
call fcn.0043bf60
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x43d105
push edi
call fcn.0043ce00
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x43d115
push edi
call fcn.0043cf60
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x43ed10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00468f70
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x43ed74
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x43ed74
lea eax, [ebp - 0x108]
push eax
call dword [0x4a71d8]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00464acc
mov esp, ebp
pop ebp
ret

Function at 0x43ed90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ed10
Function at 0x4426f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x44271c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x44270d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x442750
cmp dword [esi + 8], 0
jne 0x442740
push 0x498c38
push dword [eax + 8]
call fcn.00463f9b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x442740
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004661bc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x442772
mov eax, dword [esi + 8]
test eax, eax
je 0x44276c
push eax
call fcn.00463c74
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x444510
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x444542
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x45c350
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x487f10
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x7c]
mov dword [esi + 4], eax
push 0x491380
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.0040a6f0
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x78], 1
call fcn.00445382
movq xmm0, qword [eax]
movq qword [esi + 8], xmm0
movq xmm0, qword [eax + 8]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [esi + 0x20], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esi + 0x30], eax
call fcn.0040b770
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret 4
Function at 0x45d210
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x488168
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a7f70]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0040f4b0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
cmovae ecx, dword [esp + 0xc]
mov dword [esp + 0x30], 0
lea eax, [ecx + eax*2]
lea ecx, [esp + 0xc]
cmovae ecx, dword [esp + 0xc]
cmp ecx, eax
je 0x45d2b0
mov edx, 0x2f
mov edi, edi
cmp word [ecx], 0x5c
jne 0x45d2a9
mov word [ecx], dx
add ecx, 2
cmp ecx, eax
jne 0x45d2a0
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push eax
mov word [edi], ax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0040f4b0
cmp dword [esp + 0x20], 8
jb 0x45d2e5
push dword [esp + 0xc]
call fcn.00463690
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00464acc
add esp, 0x2c
ret 4
Function at 0x45d3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4881b0
mov eax, dword fs:[0]
push eax
push ebx
push ebp
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea ebx, [ebx]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x54]
jne 0x45d441
cmp ecx, eax
je 0x45d4bc
cmp ebx, dword [esp + 0x94]
jne 0x45d450
cmp dword [esp + 0x78], edx
je 0x45d4bc
cmp dword [esp + 0x70], 8
push dword [esp + 0x6c]
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x28]
push 0
call fcn.0045c800
test eax, eax
js 0x45d50b
cmp dword [esp + 0x30], 8
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push dword [esp + 0x74]
lea ecx, [esp + 0x68]
push 0
call fcn.0045c800
test eax, eax
js 0x45d504
lea eax, [esp + 0x1c]
push eax
call fcn.0045d6b0
lea eax, [esp + 0x60]
push eax
call fcn.0045d6b0
add esp, 8
jmp 0x45d420
cmp ebp, dword [esp + 0x54]
jne 0x45d4f2
cmp ecx, eax
jne 0x45d4f2
cmp ebx, dword [esp + 0x94]
jne 0x45d4d9
cmp dword [esp + 0x78], edx
jne 0x45d4d9
xor ebx, ebx
jmp 0x45d50e
cmp ecx, eax
jne 0x45d4f2
xor ebx, ebx
mov eax, 1
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x45d50e
xor ebx, ebx
xor eax, eax
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x45d50e
mov ebx, 1
jmp 0x45d50e
or ebx, 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x45d521
push dword [esp + 0x1c]
call fcn.00463690
add esp, 4
xor eax, eax
cmp dword [esp + 0x50], 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x45d54b
push dword [esp + 0x3c]
call fcn.00463690
add esp, 4
xor eax, eax
cmp dword [esp + 0x70], 8
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x45d575
push dword [esp + 0x5c]
call fcn.00463690
add esp, 4
xor eax, eax
cmp dword [esp + 0x90], 8
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x45d5a2
push dword [esp + 0x7c]
call fcn.00463690
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x45e820
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4883c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a7f70]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
push 0x1c
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0040f3b0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x34], 0
jb 0x45e894
mov ecx, dword [esi]
jmp 0x45e896
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x45e8a0
mov edx, dword [edi]
jmp 0x45e8a2
mov edx, edi
lea eax, [esp + 0x10]
push eax
xor eax, eax
cmp dword [esp + 0x48], eax
push ebx
sete al
push esi
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete al
movzx eax, al
push eax
call fcn.0045f740
add esp, 0x14
cmp dword [esp + 0x24], 0x10
jb 0x45e8e0
push dword [esp + 0x10]
call fcn.00463690
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00464acc
add esp, 0x28
ret

Function at 0x45ea80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x488438
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4a7f70]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
cmp dword [edi + 0x14], 8
jb 0x45eac9
mov eax, dword [edi]
jmp 0x45eacb
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45eaf1
test esi, esi
je 0x45eaea
mov dword [esi], 0
call fcn.00461ce0
mov dword [esi + 4], eax
mov al, 1
jmp 0x45eb8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x10], 0
call fcn.00461ce0
mov dword [esp + 0x14], eax
cmp ebx, 0xb7
jne 0x45eb44
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00460420
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp ecx, 3
jne 0x45eb44
test esi, esi
je 0x45eb89
mov dword [esi], 0
call fcn.00461ce0
jmp 0x45eb86
test esi, esi
jne 0x45eb7f
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x24]
call fcn.00408f00
mov dword [esp + 0x78], esi
call fcn.00461ce0
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045e5e0
push 0x4a2228
lea eax, [esp + 0x3c]
push eax
call fcn.00464adb
call fcn.00461ce0
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00464acc
add esp, 0x6c
ret
Function at 0x45ebe0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x488476
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4a7f70]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x2b4]
mov esi, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2c4]
mov dword [esp + 0x18], ecx
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2bc]
push ecx
mov word [esp + 0x24], cx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
call fcn.0040f4b0
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x2a8], 0
test ebp, ebp
je 0x45ecc9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
cmp ecx, 8
lea eax, [esp + 0x1c]
cmovae eax, edx
cmp word [eax + ebp*2 - 2], 0x5c
je 0x45ecc2
cmp ecx, 8
lea eax, [esp + 0x1c]
cmovae eax, edx
cmp word [eax + ebp*2 - 2], 0x2f
je 0x45ecc2
cmp ecx, 8
lea eax, [esp + 0x1c]
cmovae eax, edx
cmp word [eax + ebp*2 - 2], 0x3a
jne 0x45ecc9
mov edx, 0x492f08
jmp 0x45ecce
mov edx, 0x492f00
mov ecx, edx
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ecd3
sub ecx, ebp
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0040f000
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x45ed4a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], 0
call edi
cmp eax, 2
je 0x45ed3c
call edi
cmp eax, 0x12
je 0x45ed3c
call edi
mov edi, eax
call fcn.00461ce0
mov dword [esi], edi
jmp 0x45ee0b
xor edi, edi
call fcn.00461ce0
mov dword [esi], edi
jmp 0x45ee0b
cmp word [esp + 0x78], 0
jne 0x45ed56
xor ecx, ecx
jmp 0x45ed6f
lea ecx, [esp + 0x78]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ed60
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push eax
call fcn.0040f5d0
mov eax, dword [esp + 0x4c]
test eax, 0x400
je 0x45ed97
mov dword [edi], 0
mov dword [ebx], 0
jmp 0x45ee00
test al, 0x10
je 0x45eda9
mov dword [edi], 3
mov dword [ebx], 3
jmp 0x45edb5
mov dword [edi], 2
mov dword [ebx], 2
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x38]
call fcn.0045c410
push dword [esp + 0x4c]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x2b0], 1
call fcn.0045f970
add esp, 8
cmp dword [esp + 0x48], 8
mov dword [edi + 4], eax
mov byte [esp + 0x2a8], 0
jb 0x45edfa
push dword [esp + 0x34]
call fcn.00463690
add esp, 4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [esi], 0
call fcn.00461ce0
cmp dword [esp + 0x30], 8
mov dword [esi + 4], eax
jb 0x45ee21
push dword [esp + 0x1c]
call fcn.00463690
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.00464acc
add esp, 0x298
ret
Function at 0x45fe30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x45fe43
mov eax, dword [esi]
jmp 0x45fe45
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45fe6d
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0045fd20
mov eax, dword [eax]
add esp, 0xc
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x45fe84
mov dword [edi], 0
call fcn.00461ce0
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x45febb
push esi
call fcn.0045f890
add esp, 4
test al, al
je 0x45feb0
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
add esp, 8
ret
pop esi
mov eax, 9
pop ebx
add esp, 8
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x460260
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x488800
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a7f70]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
cmp eax, 1
jne 0x4602bb
test edi, edi
je 0x4602b4
mov dword [edi], 0
call fcn.00461ce0
mov dword [edi + 4], eax
xor al, al
jmp 0x4603a4
cmp eax, 3
je 0x460328
cmp eax, 0xb
je 0x460328
push str.boost::filesystem::remove
lea ecx, [esp + 0x2c]
call fcn.00408f00
cmp dword [esi + 0x14], 8
mov dword [esp + 0x4c], 1
jb 0x4602e5
mov eax, dword [esi]
jmp 0x4602e7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x28]
push ecx
sete al
push edi
movzx eax, al
push esi
push eax
call fcn.0045f7f0
add esp, 0x10
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x460320
push dword [esp + 0x28]
call fcn.00463690
add esp, 4
test bl, bl
je 0x4603a2
xor al, al
jmp 0x4603a4
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0040f3b0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x4c], 0
jb 0x46035f
mov eax, dword [esi]
jmp 0x460361
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete al
push edi
movzx eax, al
push esi
push eax
call fcn.0045f7f0
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x46039a
push dword [esp + 0x10]
call fcn.00463690
add esp, 4
test bl, bl
jne 0x4602b4
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00464acc
add esp, 0x40
ret
Function at 0x460420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x488840
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a7f70]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7f70]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
cmp dword [edi + 0x14], 8
mov ebp, dword [esp + 0x54]
jb 0x460468
mov eax, dword [edi]
jmp 0x46046a
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x46048a
push ebp
push edi
push ebx
call fcn.0045fd20
add esp, 0xc
jmp 0x4605a0
test eax, 0x400
je 0x460559
cmp dword [edi + 0x14], 8
jb 0x46049f
mov eax, dword [edi]
jmp 0x4604a1
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.0045c410
cmp dword [esp + 0x34], 8
push 0
push 0x2000000
push 3
push 0
push 7
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push 0
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x44], 2
jb 0x4604f5
push dword [esp + 0x20]
call fcn.00463690
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp esi, 0xffffffff
je 0x46047a
push edi
call fcn.0045f890
add esp, 4
test al, al
jne 0x46054a
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0045f970
add esp, 8
mov dword [ebx], 9
push esi
mov dword [ebx + 4], eax
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4605a0
push esi
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x46056c
mov dword [ebp], 0
call fcn.00461ce0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x1c], 3
test al, 0x10
jne 0x460586
mov dword [esp + 0x1c], 2
call fcn.0045f970
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
add esp, 8
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00464acc
add esp, 0x34
ret
Function at 0x4608f0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push edi
xor esi, esi
push esi
push 1
push esi
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46093a
call edi
mov esi, eax
cmp esi, 0x80090016
jne 0x460936
push 8
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x460975
call edi
mov esi, eax
test esi, esi
jne 0x460964
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x460954
call edi
mov esi, eax
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x460971
push dword [esp + 0x18]
push esi
call fcn.00460860
add esp, 8
pop edi
pop esi
pop ecx
ret
xor esi, esi
jmp 0x46093a