joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005c3c
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x100210e2
call fcn.1001c5c9
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x3c], ebx
mov dword [ebp - 0x3c], edi
je 0x10005d59
cmp byte [edi + 0x41], bl
je 0x10005d59
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10005c74
xor al, al
jmp 0x10005d5b
lea esi, [ebp - 0x30]
call fcn.10005949
mov dword [ebp - 4], ebx
lea eax, [edi + 0x44]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.100059c5
mov esi, eax
call fcn.10005e0b
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.100059c5
mov esi, eax
call fcn.10005e0b
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x38]
push esi
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x10005cd9
dec eax
je 0x10005cdc
dec eax
dec eax
jne 0x10005d45
mov bl, 1
jmp 0x10005d45
mov byte [edi + 0x41], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.100059c5
mov esi, eax
call fcn.10005e0b
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x10005d21
push dword [edi + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
lea esi, [ebp - 0x30]
call fcn.100059c5
mov esi, eax
call fcn.10005e0b
push eax
call fcn.1000a9bd
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x10005d43
mov ecx, dword [ebp - 0x34]
cmp byte [edi + 0x41], 0
je 0x10005cd5
test ecx, ecx
jne 0x10005c85
push ecx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.10005981
mov edi, dword [ebp - 0x3c]
jmp 0x10005c85
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10003864
mov al, bl
jmp 0x10005d5b
mov al, 1
call fcn.1001c613
ret
Function at 0x100084c1
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push edi
mov eax, esi
call fcn.10008663
cmp byte [esi + 0x38], 0
jne 0x100084e0
xor al, al
jmp 0x1000853e
lea esi, [ebp - 0x28]
mov eax, ebx
mov byte [ebp - 1], 1
call fcn.100088ff
mov edi, dword [eax + 8]
add edi, dword [eax]
push 2
mov esi, ebx
call fcn.100088b1
lea esi, [ebp - 0x28]
mov eax, ebx
call fcn.100088ff
mov esi, dword [eax + 8]
add esi, dword [eax]
sub esp, 0x18
mov eax, esp
xor ecx, ecx
mov dword [ebp - 8], esi
mov dword [eax], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
call fcn.10008859
mov eax, dword [ebx]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + ebx + 8], 1
je 0x10008548
mov esi, dword [ebp + 8]
call fcn.100087f6
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
mov esi, dword [ebp - 8]
cmp edi, esi
je 0x10008533
mov eax, dword [ebp + 8]
push dword [eax + 0x2c]
push dword [eax + 0x34]
push ebx
call fcn.1000908a
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x28]
mov eax, ebx
call fcn.100088ff
mov edi, dword [eax + 8]
add edi, dword [eax]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test byte [eax + ebx + 8], 1
jne 0x10008585
cmp edi, dword [ebp - 8]
je 0x10008585
xor eax, eax
jmp 0x10008588
xor eax, eax
inc eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x34]
push 0
push eax
push 0
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100085c3
push dword [ebp - 0xc]
push dword [esi + 0x34]
push dword [ebp + 0xc]
call fcn.10004df4
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test byte [eax + ebx + 8], 1
je 0x10008545
jmp 0x10008536
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CryptDecrypt___x_n
call fcn.1001d5ae
pop ecx
pop ecx
mov byte [ebp - 1], 0
jmp 0x10008536
Function at 0x10008663
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
jne 0x100087f3
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push dword [esi + 0xc]
lea ebx, [esi + 0x1c]
push 0
push dword [esi + 0x14]
push ebx
call edi
test eax, eax
jne 0x100086c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100086c7
push 8
push dword [esi + 0xc]
push 0
push dword [esi + 0x14]
push ebx
call edi
test eax, eax
jne 0x100086c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unknow_error__errno___x._n
call fcn.1001d5ae
pop ecx
jmp 0x100087f0
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push edi
push dword [esi + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100086ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_create_hash__errno___x._n
jmp 0x100086bc
push edi
push dword [esi + 0x18]
mov byte [ebp - 1], 0
call fcn.1000b5f6
pop ecx
add eax, eax
push eax
push dword [esi + 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1000871b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptHaseData__errno___x._n
jmp 0x10008740
lea eax, [esi + 0x20]
push eax
push dword [esi + 0x24]
push dword [ebp - 8]
push dword [esi + 4]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1000874b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptDeriveKey__errno___x_n
call fcn.1001d5ae
pop ecx
mov byte [ebp - 1], 1
pop ecx
cmp dword [ebp - 8], edi
je 0x10008779
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x10008774
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_CryptDestroyHash__errno___x_n
call fcn.1001d5ae
pop ecx
pop ecx
mov byte [ebp - 1], 1
mov dword [ebp - 8], edi
jmp 0x10008784
push str.no_need_to_destroy_hHash_n
call fcn.1001d5ae
pop ecx
cmp byte [ebp - 1], 0
je 0x100087a0
push str.have_error_in_prepare_n
call fcn.1001d5ae
pop ecx
call fcn.100087f6
mov byte [esi + 0x38], 0
jmp 0x100087f1
push 0
lea eax, [ebp - 0xc]
push eax
lea edi, [esi + 0x28]
push edi
push 8
push dword [esi + 0x20]
mov byte [esi + 0x38], 1
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
mov edi, dword [edi]
test edi, edi
jbe 0x100087d8
mov ecx, 0x3e8
mov eax, ecx
xor edx, edx
div edi
sub ecx, edx
mov dword [esi + 0x2c], ecx
jmp 0x100087df
mov dword [esi + 0x2c], 0x3e8
mov eax, dword [esi + 0x2c]
add eax, edi
push eax
mov dword [esi + 0x30], eax
call fcn.1000ee16
mov dword [esi + 0x34], eax
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10009e71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b030]
jne 0x10009e7b
repz ret
jmp fcn.1000d16f
Function at 0x10013e32
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002be88]
je 0x10013e4d
inc edi
cmp edi, 0x17
jb 0x10013e3e
cmp edi, 0x17
jae 0x10013fcd
push ebp
push 3
call fcn.1001a61d
cmp eax, 1
pop ecx
je 0x10013f99
push 3
call fcn.1001a61d
test eax, eax
pop ecx
jne 0x10013e81
cmp dword [0x1002cb98], 1
je 0x10013f99
cmp ebx, 0xfc
je 0x10013fcc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002d328
push ebp
call fcn.10011335
add esp, 0xc
test eax, eax
je 0x10013eb7
push esi
push esi
push esi
push esi
push esi
call fcn.1000bdf5
add esp, 0x14
push 0x104
mov esi, 0x1002d341
push esi
push 0
mov byte [0x1002d445], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10013efb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10011335
add esp, 0xc
test eax, eax
je 0x10013efb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000bdf5
add esp, 0x14
push esi
call fcn.1000af50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10013f40
push esi
call fcn.1000af50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002d63c
push 0x10023d00
sub ecx, eax
push ecx
push eax
call fcn.10015db6
add esp, 0x14
test eax, eax
je 0x10013f40
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000bdf5
add esp, 0x14
jmp 0x10013f42
xor esi, esi
push 0x10024288
push ebx
push ebp
call fcn.10015cf9
add esp, 0xc
test eax, eax
je 0x10013f62
push esi
push esi
push esi
push esi
push esi
call fcn.1000bdf5
add esp, 0x14
push dword [edi*8 + 0x1002be8c]
push ebx
push ebp
call fcn.10015cf9
add esp, 0xc
test eax, eax
je 0x10013f84
push esi
push esi
push esi
push esi
push esi
call fcn.1000bdf5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001a460
add esp, 0xc
jmp 0x10013fcc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10013fcc
cmp ebp, 0xffffffff
je 0x10013fcc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002be8c]
push dword [esi]
call fcn.1000af50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001a460
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000c7b2
xor ebx, ebx
cmp dword [0x1002d67c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001a536
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001a616
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001a616
push eax
call fcn.1000c744
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002d67c], eax
call esi
push eax
call fcn.1000c744
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002d680], eax
call esi
push eax
call fcn.1000c744
mov dword [0x1002d684], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000cf1c
test eax, eax
pop ecx
pop ecx
je 0x1001a504
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000bdf5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001a536
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000c744
cmp eax, ebx
pop ecx
mov dword [0x1002d68c], eax
je 0x1001a536
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c744
pop ecx
mov dword [0x1002d688], eax
mov eax, dword [0x1002d688]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001a5bb
cmp dword [0x1002d68c], ecx
je 0x1001a5bb
push eax
call fcn.1000c7bb
push dword [0x1002d68c]
mov esi, eax
call fcn.1000c7bb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001a5bb
cmp edi, ebx
je 0x1001a5bb
call esi
cmp eax, ebx
je 0x1001a588
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001a588
test byte [ebp - 0x18], 1
jne 0x1001a5bb
lea eax, [ebp - 0x10]
push eax
call fcn.1000cf53
test eax, eax
pop ecx
je 0x1001a5a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000bdf5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001a5b2
or dword [ebp + 0x10], 0x200000
jmp 0x1001a5f6
or dword [ebp + 0x10], 0x40000
jmp 0x1001a5f6
mov eax, dword [0x1002d680]
cmp eax, dword [ebp - 8]
je 0x1001a5f6
push eax
call fcn.1000c7bb
cmp eax, ebx
pop ecx
je 0x1001a5f6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001a5f6
mov eax, dword [0x1002d684]
cmp eax, dword [ebp - 8]
je 0x1001a5f6
push eax
call fcn.1000c7bb
cmp eax, ebx
pop ecx
je 0x1001a5f6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002d67c]
call fcn.1000c7bb
cmp eax, ebx
pop ecx
je 0x1001a616
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001a618
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c658
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x469644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [esi + 0x54], 0
jne 0x403ca5
mov eax, dword [ebp + 8]
push 0x40
push eax
push ecx
call fcn.00424ad2
add esp, 0xc
test eax, eax
je 0x403ca5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x4721e8]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.0040ba50
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00404a50
mov edi, eax
call fcn.00403ea0
lea ecx, [ebp + 8]
call fcn.00401240
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c848
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x403e7c
cmp byte [edi + 0x4a], bl
je 0x403e7c
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x403e70
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x403dcf
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x403de7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x403e10
dec eax
je 0x403e14
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x403e6b
jmp 0x403e77
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x403e24
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x403e4d
cmp ebx, 0x10
jae 0x403e33
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042728c
add esp, 0x10
cmp esi, eax
jne 0x403e68
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x403e74
test esi, esi
jne 0x403ddb
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00403450
jmp 0x403dd5
lea ecx, [ebp - 0x2c]
call fcn.004022b0
xor al, al
jmp 0x403e7e
lea ecx, [ebp - 0x2c]
call fcn.004022b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret
Function at 0x404120
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c6ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004249c8
push 4
mov dword [ebp - 4], 0
call fcn.00427438
mov edi, eax
add esp, 4
test edi, edi
je 0x40419c
call fcn.004247c3
mov dword [edi], eax
call fcn.00424582
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00424989
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404192
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004249b1
jmp 0x40419e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405500
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d048
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x50], edi
cmp byte [0x4722c4], 0
jne 0x4055d6
push edi
mov eax, 0x45d4fc
mov esi, 0x46b9fc
mov dword [ebp - 0x50], 0x10
call fcn.00404210
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4055cf
sub esp, 0x1c
mov esi, esp
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x30]
mov word [esi], dx
mov dword [ebp - 0x54], esp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405582
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x30]
call fcn.00404210
lea ecx, [ebp - 0x4c]
call fcn.00406810
add esp, 0x1c
mov dword [ebp - 4], edi
mov edi, eax
mov esi, 0x46b9fc
call fcn.00404be0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], 8
jb 0x4055cd
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00426e9f
add esp, 4
xor edi, edi
mov byte [0x4722c4], 1
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push edi
mov word [ebx], cx
push 0x46b9fc
or eax, 0xffffffff
mov ecx, ebx
call fcn.00403a30
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret
Function at 0x405f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], 8
jae 0x405f32
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f58
test al, 0x10
je 0x405f4c
mov dword [0x46ad7c], ebx
mov bl, 1
jmp 0x405f63
mov dword [0x46ad7c], 0xffffffff
jmp 0x405f63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x46ad7c], eax
cmp dword [ebp + 0x1c], 8
jb 0x405f75
mov eax, dword [ebp + 8]
push eax
call fcn.00426e9f
add esp, 4
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4061b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d5f2
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x28c], ebx
mov esi, 1
mov dword [ebp - 4], esi
push 0x24
mov dword [edi + 4], ebx
call fcn.00427438
add esp, 4
cmp eax, ebx
je 0x40635d
mov dword [edi], eax
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28c], esi
jae 0x406223
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x288], eax
cmp eax, 0xffffffff
je 0x406324
mov ebx, 2
cmp word [ebp - 0x258], 0x2e
jne 0x40626f
mov ax, word [ebp - 0x256]
cmp ax, 0x2e
jne 0x406266
cmp word [ebp - 0x254], 0
jmp 0x406269
test ax, ax
je 0x406301
test byte [ebp - 0x284], 0x10
jne 0x406301
xor edx, edx
lea eax, [ebp - 0x258]
mov word [ebp - 0x30], dx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4062a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x258]
lea esi, [ebp - 0x30]
call fcn.00404210
mov byte [ebp - 4], bl
mov esi, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
push ecx
push esi
call fcn.0040be90
mov ecx, dword [edi + 4]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x406353
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
jb 0x406301
mov eax, dword [ebp - 0x30]
push eax
call fcn.00426e9f
add esp, 4
mov esi, dword [ebp - 0x288]
lea ecx, [ebp - 0x284]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406245
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
jb 0x406336
mov edx, dword [ebp + 8]
push edx
call fcn.00426e9f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00424874
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x288], ebx
call fcn.004257f4
push 0x46432c
lea ecx, [ebp - 0x29c]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00428f61
int3
Function at 0x408060
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d517
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x469644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x45dc20
mov dword [edi + 0x10], 0x45dc28
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00409800
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.0040b960
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4722e8]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4