joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4103a0]
test esi, esi
jle 0x40d080
mov edi, dword [0x4103a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40cfa4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d025
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40cf90
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d0a7
mov eax, dword [0x4103a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4103a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d087
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40d01e
sub eax, 4
and eax, 0xfffffffb
jne 0x40d030
add dword [0x4103a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4103a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40d01e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x40cfae
mov eax, dword [0x4103a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x40d4e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4103b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4103b0]
sub esp, 4
test ebx, ebx
je 0x40d535
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40d52e
test esi, esi
je 0x40d52e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d510
mov dword [esp], 0x4103b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40dc5c
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sym._abort
nop
nop
nop
nop
nop
nop
nop
Function at 0x402150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x402346
cmp dword [esi], 0x474e5353
jne 0x402346
push ebx
mov ebx, dword [esi + 8]
push edi
mov edi, dword [esi + 0x68]
and ebx, 0xbfffffff
inc edi
mov dword [esi + 0x68], edi
lea edi, [esi + 0x58]
push edi
mov dword [esi + 8], ebx
call fcn.004038b0
test eax, eax
mov dword [esp + 0x10], eax
jne 0x402340
mov cl, byte [esi + 0x75]
cmp cl, 0x40
jb 0x4021b6
cmp cl, 0x4f
ja 0x4021b6
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
je 0x4021d1
cmp ecx, dword [esi + 0x78]
je 0x4021d1
mov ebx, dword [esi + 0x68]
push edi
inc ebx
mov dword [esi + 0x68], ebx
call fcn.004038b0
test eax, eax
je 0x40219c
pop edi
pop ebx
mov dword [esp + 8], eax
pop esi
ret 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x10], eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x7c]
mov dword [edx + 8], ecx
mov ecx, dword [esi + 0x80]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0x84]
mov dword [edx + 0x10], ecx
mov cl, byte [esi + 0x76]
mov byte [edx + 0x34], cl
mov cl, byte [esi + 0x77]
mov byte [edx + 0x35], cl
mov ecx, dword [esi + 0x88]
mov dword [edx + 0x18], ecx
mov ecx, dword [esi + 0x8c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [esi + 0x90]
mov dword [edx + 0x20], ecx
mov ecx, dword [esi + 0x94]
mov dword [edx + 0x24], ecx
mov cl, byte [esi + 0x75]
mov byte [edx + 0x36], cl
mov ecx, dword [esi + 0x9c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [esi + 0x98]
mov dword [edx + 0x30], ecx
mov dword [edx + 0x14], 0
mov ecx, dword [esi + 0x78]
cmp ecx, 0x4953564b
je 0x402267
cmp ecx, 0x4c4d4944
je 0x402267
mov ecx, dword [esi + 0x98]
and ecx, 0xffff
jmp 0x40226c
mov ecx, 1
mov dword [edx + 0x28], ecx
mov ecx, dword [esi + 0x120]
xor edi, edi
test ecx, ecx
jbe 0x402340
mov al, 6
xor ecx, ecx
mov cl, byte [esi + edi + 0x124]
inc edi
sub ecx, 0x80
cmp ecx, 4
ja case.default.0x40229a
jmp dword [ecx*4 + 0x402350]
mov ecx, dword [edx + 0x14]
or ecx, 1
jmp 0x40232d
mov ecx, dword [edx + 0x14]
or ecx, 2
mov dword [edx + 0x14], ecx
mov bl, byte [esi + edi + 0x124]
test al, bl
je 0x4022c6
or ecx, 8
mov dword [edx + 0x14], ecx
mov cl, byte [esi + edi + 0x124]
and cl, 1
inc edi
test cl, cl
je case.default.0x40229a
mov ecx, dword [edx + 0x14]
or ecx, 4
jmp 0x40232d
mov ecx, dword [edx + 0x14]
or ecx, 0x10
mov dword [edx + 0x14], ecx
mov bl, byte [esi + edi + 0x124]
and bl, 1
inc edi
test bl, bl
je case.default.0x40229a
or ecx, 0x20
jmp 0x40232d
mov ecx, dword [edx + 0x14]
mov ebx, 1
or ecx, 0x40
mov dword [edx + 0x14], ecx
mov cl, byte [esi + edi + 0x124]
and ecx, 0x1f
shl ebx, cl
inc edi
mov dword [edx + 0x3c], ebx
jmp case.default.0x40229a
mov cl, byte [esi + edi + 0x124]
inc edi
cmp cl, 0x53
jne case.default.0x40229a
mov ecx, dword [edx + 0x14]
or cl, 0x80
mov dword [edx + 0x14], ecx
cmp edi, dword [esi + 0x120]
jb 0x402281
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
ret 0xc
mov eax, 0xc
pop esi
ret 0xc
Function at 0x4048d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, 4
sub esi, ecx
lea eax, [edi + ecx]
lea edx, [esp + ebp + 0x10]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x4048f3
inc ebp
cmp ebp, 4
jl 0x4048db
cmp edi, 0xb0
jge 0x4049aa
mov ebp, 0x42b6bc
xor eax, eax
lea ecx, [esp + 0x10]
inc eax
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x40492e
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [esp + edx*4 + 0x13]
mov dl, byte [ebx + str.cw]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x40491e
mov al, byte [ebp]
mov cl, byte [esp + 0x10]
xor cl, al
add ebp, 4
mov byte [esp + 0x10], cl
mov esi, 1
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x404968
inc esi
cmp esi, 4
jl 0x40495f
xor esi, esi
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov ebx, dword [esp + 0x24]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x404988
inc esi
cmp esi, 4
jl 0x40497f
cmp edi, 0xb0
jl 0x404918
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4049c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
push esi
call fcn.00404a50
add esp, 8
lea edi, [ebp + 0x10]
mov ebx, 9
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + str.cw]
mov byte [eax + esi - 1], dl
jl 0x4049e0
push 0
push esi
call fcn.00404a80
push esi
call fcn.00404ad0
push edi
push esi
call fcn.00404a50
add esp, 0x14
add edi, 0x10
dec ebx
jne 0x4049de
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + str.cw]
mov byte [eax + esi - 1], dl
jl 0x404a15
push 0
push esi
call fcn.00404a80
add ebp, 0xa0
push ebp
push esi
call fcn.00404a50
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x404a50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x404a61
pop esi
pop ebx
ret
Function at 0x404bf0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [ebp + 0xa0]
push eax
push esi
call fcn.00404a50
add esp, 8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x42b5bc]
mov byte [eax + esi - 1], dl
jl 0x404c0e
push 0x10
push esi
call fcn.00404a80
add esp, 8
lea edi, [ebp + 0x90]
mov ebx, 9
push edi
push esi
call fcn.00404a50
push esi
call fcn.00404c80
add esp, 0xc
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x42b5bc]
mov byte [eax + esi - 1], dl
jl 0x404c4b
push 0x10
push esi
call fcn.00404a80
add esp, 8
sub edi, 0x10
dec ebx
jne 0x404c39
push ebp
push esi
call fcn.00404a50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x404c80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
xor edi, edi
lea eax, [esp + edi + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
sub eax, ecx
mov esi, 1
mov dword [esp + 0x10], eax
lea edx, [esi - 2]
and edx, 3
add edx, edi
mov al, byte [edx + ebp]
push eax
push 9
call fcn.00404ba0
lea ecx, [esi + 1]
mov bl, al
and ecx, 3
add ecx, edi
mov dl, byte [ecx + ebp]
push edx
push 0xd
call fcn.00404ba0
xor bl, al
mov eax, esi
and eax, 3
add eax, edi
mov cl, byte [eax + ebp]
push ecx
push 0xb
call fcn.00404ba0
mov edx, dword [esp + 0x28]
xor bl, al
mov eax, dword [esp + 0x40]
mov cl, byte [edx + eax]
push ecx
push 0xe
call fcn.00404ba0
add esp, 0x20
xor bl, al
mov eax, dword [esp + 0x28]
inc esi
mov byte [eax], bl
lea edx, [esi - 1]
inc eax
cmp edx, 4
mov dword [esp + 0x28], eax
jl 0x404ca6
add edi, 4
cmp edi, 0x10
jl 0x404c8d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x404d40
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [edx + 0x1c]
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
rep stosd dword es:[edi], eax
pop edi
ret 4
Function at 0x410370
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push esi
push edi
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00412a00
add esp, 4
mov dword [0x42bd00], eax
test eax, eax
jne 0x4103a3
pop edi
mov eax, 0x132
pop esi
add esp, 0x10
ret
push 0x42c1a0
push str.sntlconfig.xml
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4103d5
mov eax, dword [0x42bd00]
push eax
call fcn.00412dc0
add esp, 4
mov eax, 0x132
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push edi
call esi
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.MSVCR71.dll_fgetpos]
push 0
push 0
push edi
call esi
mov edx, dword [esp + 0x28]
inc edx
push edx
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4103bc
push ebx
push 4
push 0
push esi
call fcn.00410afe
mov ecx, dword [esp + 0x18]
push edi
push ecx
push 1
push esi
call dword [sym.imp.MSVCR71.dll_fread]
push edi
mov ebx, eax
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCR71.dll_fclose]
push 0x30c
push 0
push 0x42bd08
call fcn.00410afe
mov edx, dword [0x42bd00]
push 0x4109a0
push 0x4104e0
push edx
call fcn.00412f10
mov eax, dword [0x42bd00]
push ebx
push ebx
push esi
push eax
call fcn.00412f40
add esp, 0x48
test eax, eax
pop ebx
jne 0x410493
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov ecx, dword [0x42bd00]
push ecx
call fcn.00412dc0
add esp, 8
mov eax, 0x132
pop edi
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
push 0x30c
push 0x42bd08
push edx
call fcn.00410adb
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [0x42bd00]
push eax
call fcn.00412dc0
push str.Discard
push 0x42bd08
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 0x1c
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffece
pop esi
add eax, 0x132
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.00410e40
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x411b1f
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push eax
push 0
push ecx
call fcn.00410afe
mov edx, dword [esp + 0x10]
add esp, 0xc
lea eax, [esp + 8]
mov word [esp + 8], 6
push edx
push eax
push esi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x411b1f
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x411b1f
lea eax, [esp + 8]
push eax
call fcn.00411a00
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x411f80
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
jne 0x411fb2
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push str.macAddr.c
add eax, 0x40
push str.Cant_malloc_space_for_CRC_table_in_file__s_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
ret
push esi
push edi
xor edx, edx
mov esi, eax
mov ecx, edx
mov edi, 8
test cl, 1
je 0x411fce
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x411fd0
shr ecx, 1
dec edi
jne 0x411fbf
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0xff
jle 0x411fb8
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x411ff0
Capabilities:
Encode data using xor

Disassembly:
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 8]
push eax
call fcn.00411f80
add esp, 4
test eax, eax
je 0x41200b
or eax, 0xffffffff
pop edi
ret
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, eax
dec eax
push esi
mov esi, dword [esp + 0x18]
test ecx, ecx
je 0x412044
push ebx
lea edx, [eax + 1]
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [edi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
inc edi
shr eax, 8
mov ecx, dword [ebp + ecx*4]
xor eax, ecx
dec edx
mov dword [esi], eax
jne 0x412024
pop ebx
test ebp, ebp
je 0x412052
push ebp
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esi]
pop esi
pop ebp
pop edi
ret

Function at 0x412650
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.00411500
cmp eax, 1
jne 0x412681
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x412696
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4126da
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x4126ba
cmp eax, 0x102
jne 0x4126c7
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x4126d1
jmp 0x4126a0
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x391
pop ebx
ret
push esi
call fcn.00412750
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4126f0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.00411500
cmp eax, 1
jne 0x412709
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x412712
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x412725
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41273c
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x391
pop esi
ret
Function at 0x418f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x418f8b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x418f82
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.ServiceName
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418f90
cmp dword [esp + 0x10], 1
jne 0x418f90
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret

Function at 0x418fe0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419054
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x419052
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00418fc0
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x419140
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
xor ebx, ebx
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x4191e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4191da
lea edx, [esp + 0x14]
push str.Device_
push edx
call fcn.00410aa0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebp
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x41928a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x4192c7
lea ecx, [esp + 0x214]
push str.._
push ecx
call fcn.00410aa0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
push eax
push 3
push eax
mov ecx, edx
push 1
push eax
and ecx, 3
lea eax, [esp + 0x22c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x419294
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x419281
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41929c
mov byte [esp + 0x13], 1
jmp 0x4191e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x4192c7
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x4192c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret