joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026e2c
Capabilities:
Check os version

Disassembly:
jmp 0x1019ab05
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1019ab47
cmp dword [ebp - 0x7c], 6
jb 0x1019ab47
jne 0x1019ab43
cmp dword [ebp - 0x78], 2
jb 0x1019ab47
xor al, al
jmp 0x1019ab49
mov al, 1
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.10010069
add ebp, 0x98
leave
ret
Function at 0x1002789a
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
jmp 0x10117ac0
sub esp, 0x130
mov eax, dword [0x107b3de0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov ecx, dword [esp + 0x134]
mov eax, ecx
push esi
mov esi, dword [esp + 0x13c]
or eax, 1
bsr edx, esi
mov dword [esp + 0xb0], 0x10001
mov dword [esp + 0xb4], 0x20001
mov dword [esp + 0xb8], 0x20002
mov dword [esp + 0xbc], 0x30003
mov dword [esp + 0xc0], 0x40003
mov dword [esp + 0xc4], 0x40004
mov dword [esp + 0xc8], 0x50004
mov dword [esp + 0xcc], 0x50005
mov dword [esp + 0xd0], 0x60006
mov dword [esp + 0xd4], 0x70006
mov dword [esp + 0xd8], 0x70007
mov dword [esp + 0xdc], 0x80007
mov dword [esp + 0xe0], 0x80008
mov dword [esp + 0xe4], 0x90009
mov dword [esp + 0xe8], 0xa0009
mov dword [esp + 0xec], 0xa000a
mov dword [esp + 0xf0], 0xb000a
mov dword [esp + 0xf4], 0xb000b
mov dword [esp + 0xf8], 0xc000c
mov dword [esp + 0xfc], 0xd000c
mov dword [esp + 0x100], 0xd000d
mov dword [esp + 0x104], 0xe000d
mov dword [esp + 0x108], 0xe000e
mov dword [esp + 0x10c], 0xf000f
mov dword [esp + 0x110], 0x10000f
mov dword [esp + 0x114], 0x100010
mov dword [esp + 0x118], 0x110010
mov dword [esp + 0x11c], 0x110011
mov dword [esp + 0x120], 0x120012
mov dword [esp + 0x124], 0x130012
mov dword [esp + 0x128], 0x130013
mov dword [esp + 0x12c], 0x140013
mov dword [esp + 4], 0
je 0x10117c5a
lea eax, [edx + 0x20]
jmp 0x10117c5d
bsr eax, eax
xor eax, 0x3f
mov dword [esp + 0x18], 0xa
xor eax, 0x3f
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x64
movlpd qword [esp + 8], xmm0
movlpd qword [esp + 0x10], xmm0
movzx eax, word [esp + eax*2 + 0xb0]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x2710
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x186a0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xf4240
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x989680
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x5f5e100
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x3b9aca00
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x540be400
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], 0x4876e800
mov dword [esp + 0x6c], 0x17
mov dword [esp + 0x70], 0xd4a51000
mov dword [esp + 0x74], 0xe8
mov dword [esp + 0x78], 0x4e72a000
mov dword [esp + 0x7c], 0x918
mov dword [esp + 0x80], 0x107a4000
mov dword [esp + 0x84], 0x5af3
mov dword [esp + 0x88], 0xa4c68000
mov dword [esp + 0x8c], 0x38d7e
mov dword [esp + 0x90], 0x6fc10000
mov dword [esp + 0x94], 0x2386f2
mov dword [esp + 0x98], 0x5d8a0000
mov dword [esp + 0x9c], 0x1634578
mov dword [esp + 0xa0], 0xa7640000
mov dword [esp + 0xa4], 0xde0b6b3
mov dword [esp + 0xa8], 0x89e80000
mov dword [esp + 0xac], 0x8ac72304
cmp esi, dword [esp + eax*8 + 0xc]
pop esi
ja 0x10117df9
jb 0x10117ddd
cmp ecx, dword [esp + eax*8 + 4]
jae 0x10117df9
mov ecx, 1
sub eax, ecx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.10010069
add esp, 0x130
ret
xor ecx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.10010069
add esp, 0x130
ret
Function at 0x1002860a
Capabilities:
Get geographical location

Disassembly:
jmp 0x100d3600
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], esi
call sym.WsidClient.dll_public:_struct_clmdep_msgpack::v2::object___thiscall_clmdep_msgpack::v1::object::implicit_type::operator_struct_clmdep_msgpack::v2::object_struct_clmdep_msgpack::v2::object__void_
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], str.login_type
mov dword [esp + 0x20], str.nickname
mov dword [esp + 0x28], str.mobile
lea eax, [edx + 0xd8]
mov dword [esp + 0x30], str.avatar_md5
mov dword [esp + 0x14], eax
lea ecx, [edx + 0x18]
lea eax, [edx + 0xc0]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
lea eax, [edx + 0xa8]
mov dword [esp + 0x38], str.country
mov dword [esp + 0x24], eax
lea eax, [edx + 0x90]
mov dword [esp + 0x2c], eax
lea eax, [edx + 0x78]
mov dword [esp + 0x34], eax
lea eax, [edx + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [edx + 0x48]
mov dword [esp + 0x44], eax
lea eax, [edx + 0x30]
mov dword [esp + 0x4c], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x44], str.lastname
mov dword [esp + 0x4c], str.firstname
mov dword [esp + 0x54], str.avatar
mov dword [esp + 0x5c], str.email
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x1058db18
call sym.WsidClient.dll__msgpack_unpack___define_map___BY03__CBDV__basic_string_DU__char_traits_D_std__V__allocator_D_2__std____BY05__C
mov eax, esi
pop esi
add esp, 0x60
ret 8

Function at 0x1002a1e9
Capabilities:
Query environment variable

Disassembly:
jmp 0x101756ed
push 0x60
mov eax, 0x1054c5d4
call fcn.1002087e
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], esi
and dword [ebp - 0x58], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.1000b61d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x101757bf
push edi
lea ecx, [ebp - 0x68]
call fcn.10028853
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push esi
lea eax, [edi - 1]
mov dword [ebp - 0x58], 1
push eax
push dword [ebp - 0x60]
call fcn.1000aab0
add esp, 0xc
cmp byte [ebp - 0x5c], 0
je 0x1017579d
push dword [ebp - 0x60]
call fcn.1001a334
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x101757b7
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x28]
call sym.WsidClient.dll_void___cdecl_std::_Deallocate_8__0__void___unsigned_int_
pop ecx
pop ecx
mov eax, esi
call fcn.1002a0c2
ret
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.10025162
push 0x1067bce0
lea eax, [ebp - 0x54]
push eax
call fcn.10029a3c
int3
Function at 0x1002a3f1
Capabilities:
Check if file exists

Disassembly:
jmp 0x10273eb0
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.1001eb96
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.10008355
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10273f55
push 0x45
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100050ab
push 0x105b6fe8
push esi
push 0x105b6fec
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.10007dc9
add esp, 0x2c
call fcn.10014736
cmp dword [eax], 2
je 0x10273f32
call fcn.10014736
cmp dword [eax], 6
je 0x10273f32
lea eax, [edi + 2]
lea ecx, [edi + 0x4e]
jmp 0x10273f3c
mov eax, 0x80
mov ecx, 0x4c
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.100050ab
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x105b6f80
call fcn.1001b9b4
mov esi, eax
add esp, 4
test esi, esi
jne 0x10273f77
push edi
call fcn.1000d1e3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.1001dc5a
push edi
push ebx
push 0x6a
push esi
call fcn.100173a5
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1003ae10
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x1003ae43
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x1003ae2b
neg eax
shr eax, 0x1f
pop edi
pop esi
ret

Function at 0x101540b2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x10154106
test byte [esi + 0x48], 1
je 0x10154106
test byte [esi + 0x48], 2
je 0x101540d5
mov eax, dword [esi]
call dword [eax + 0x34]
mov eax, dword [esi + 0x68]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101540fa
lea eax, [esi + 0x50]
push eax
call fcn.1001de94
pop ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
jmp 0x10154109
or eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x10154440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x101544d0
test byte [esi + 0x48], 2
je 0x101544d0
push edi
xor edi, edi
test byte [esi + 0x48], 8
je 0x101544a1
push 2
lea ecx, [ebp - 8]
xorps xmm0, xmm0
push ecx
push edi
push eax
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x10154495
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10154492
lea eax, [esi + 0x50]
push eax
call fcn.1001de94
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101544c4
lea eax, [esi + 0x50]
push eax
call fcn.1001de94
pop ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], edi
pop edi
jmp 0x101544d3
or eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x1019c731
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x1019c76f
push 1
push 1
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1019c761
call fcn.10024474
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010069
leave
ret 4
push 0
lea ecx, [ebp - 0x30]
call fcn.1000c4ff
push 0x10685aa4
lea eax, [ebp - 0x30]
push eax
call fcn.10029a3c
int3

Function at 0x1019c978
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x1019c9bc
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1019c9ae
call fcn.10024474
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010069
leave
ret 0x10
push 0
lea ecx, [ebp - 0x30]
call fcn.1000c4ff
push 0x10685aa4
lea eax, [ebp - 0x30]
push eax
call fcn.10029a3c
int3

Function at 0x101a5e29
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 8]
push 0x20
push 0
push eax
mov dword [ebp - 4], edi
call fcn.1001069a
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x24], eax
mov eax, esi
jb 0x101a5e5a
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x101a5e88
push dword [ebp - 4]
mov ecx, edi
call fcn.100044cb
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
pop edi
pop esi
leave
ret
push esi
push eax
call fcn.10021fe4
int3
Function at 0x10244920
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1056ef5a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x107b3de0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 2
push ebx
mov dword [ebp - 0x14], ebx
call fcn.10017378
mov dword [ebp - 4], 1
lea eax, [ebx + 0x30]
push eax
call fcn.10002c02
mov byte [ebp - 4], 2
lea eax, [ebx + 0x58]
push eax
call fcn.10002c02
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x80]
mov dword [ebp - 0x18], ecx
lea ebx, [ecx + 0x10]
mov edi, dword [ebp + 8]
add edi, 1
mov dword [ecx + 4], 0
mov dword [ecx], edi
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
je 0x10244a83
cmp edi, 0xbe82fa
ja 0x10244aa1
imul esi, edi, 0x158
cmp esi, 0x1000
jb 0x102449e4
push esi
call sym.WsidClient.dll_void____cdecl_std::_Allocate_manually_vector_aligned_struct_std::_Default_allocate_traits__unsigned_int_
add esp, 4
jmp 0x102449f5
test esi, esi
je 0x102449f3
push esi
call fcn.1000abe1
add esp, 4
jmp 0x102449f5
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
add eax, esi
mov dword [ebx + 8], eax
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 4
mov esi, dword [ebx]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 5
test edi, edi
je 0x10244a6e
nop dword [eax]
push 0x158
push 0
push esi
mov dword [ebp - 0x14], esi
call fcn.1001069a
add esp, 0xc
mov ecx, esi
call fcn.100042e1
mov byte [ebp - 4], 6
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
mov byte [ebp - 4], 5
add esi, 0x158
mov dword [ebp - 0x20], esi
sub edi, 1
jne 0x10244a20
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 4
mov dword [ebx + 4], esi
mov dword [ebp + 8], 0
mov byte [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
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
call fcn.100093e0
int3
Function at 0x10456076
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007996
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10025bcb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x104560b8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10456214
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002661b
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x107c8f40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001102c
mov ecx, dword [esi*4 + 0x107c8f40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1045620d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1045620d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1045620d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001102c
add esp, 0x14
test edx, edx
jl 0x1045620d
jg 0x10456183
test eax, eax
jb 0x1045620d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1045620d
jl 0x1045619d
cmp dword [ebp - 0x1008], eax
ja 0x1045620d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x104561bb
test ebx, ebx
je 0x104561f4
cmp ecx, edi
jae 0x104561f4
mov al, byte [ecx]
cmp al, 0xd
jne 0x104561d5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x104561e1
cmp byte [ecx + 1], 0xa
jne 0x104561e1
inc ecx
jmp 0x104561e1
movzx eax, al
movsx eax, byte [eax + 0x107b43d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x104561bb
cmp edx, ebx
jne 0x104561bb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10456212
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10010069
leave
ret

Function at 0x104575c7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1062dd18
push esi
call fcn.1001417d
pop ecx
pop ecx
test eax, eax
jne 0x10459ccc
xor al, al
jmp 0x10459d49
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1045981a
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10459d06
push dword [ebp - 0x210]
call fcn.10017cba
xor al, al
jmp 0x10459d47
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10459d0c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10459d2c
push edx
call fcn.10459ba4
pop ecx
test al, al
je 0x10459cf7
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10459d3a
mov bl, 1
push dword [ebp - 0x210]
call fcn.10017cba
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10010069
leave
ret

Function at 0x104611da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1062f0e8
push 0x1062f0e0
push str.FlsAlloc
push 0x1f
call fcn.10460ddf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1046120e
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10461214
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1046d8f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x107c8f40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1046d938
cmp byte [ebx], 0xa
jne 0x1046d938
or byte [edi + eax + 0x28], 4
jmp 0x1046d93d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1046da3c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1046da1f
inc eax
cmp dl, 0xd
je 0x1046d969
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1046d98f
cmp eax, ecx
jae 0x1046d99d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1046d951
jmp 0x1046da3c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1046da1a
cmp dword [ebp - 0x10], 0
je 0x1046da1a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x107c8f40]
test byte [eax + edi + 0x28], 0x48
je 0x1046d9f4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1046d9df
mov byte [esi], dl
jmp 0x1046d9f0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x107c8f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1046da3c
cmp byte [ebp - 1], 0xa
jne 0x1046da03
cmp esi, ebx
jne 0x1046da03
mov byte [esi], 0xa
jmp 0x1046da3b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100057e5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1046da3c
mov byte [esi], 0xd
jmp 0x1046da3b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x107c8f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1046da39
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1046da3c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1046da98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x107c8f40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1046dade
cmp word [ebx], dx
jne 0x1046dade
or byte [eax + edi + 0x28], 4
jmp 0x1046dae3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1046dc46
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1046dc26
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1046db24
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1046db5a
cmp eax, edx
jae 0x1046db68
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1046daff
jmp 0x1046dc46
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1046dc21
cmp dword [ebp - 0x18], 0
je 0x1046dc21
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x107c8f40]
test byte [eax + edi + 0x28], 0x48
je 0x1046dbf7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1046dbbb
mov word [esi], cx
jmp 0x1046dbf2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x107c8f40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x107c8f40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x107c8f40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1046dc46
pop eax
cmp word [ebp - 4], ax
jne 0x1046dc07
cmp esi, ebx
jne 0x1046dc07
mov word [esi], ax
jmp 0x1046dc43
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100057e5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1046dc46
push 0xd
pop eax
jmp 0x1046dc02
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x107c8f40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1046dc40
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1046dc46
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret