joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4184a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556da8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0043153b
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4184e9
push 0x80004005
call fcn.004081d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004198f0
push str.Updater.exe
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push 0x5884bc
push ecx
lea edx, [ebp - 0x1c]
push str._s_s_s
push edx
call fcn.00407a80
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418547
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043153b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x418561
push 0x80004005
call fcn.004081d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x7c]
push eax
lea ecx, [ebp - 0x14]
push str.upload_list__d
push ecx
call fcn.00407a80
add esp, 0xc
mov ecx, str.Updater.exe
call fcn.00420bd0
cmp eax, ebx
je 0x4185cf
push eax
push ebx
push 0x1fffff
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [ebp - 0x18]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4185cf
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push esi
push edi
call fcn.004199b0
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41861e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
Function at 0x4198f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.0052a4d0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x586bc8
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419967
test dx, dx
je 0x419963
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419967
add eax, 4
add ecx, 4
test dx, dx
jne 0x419941
xor eax, eax
jmp 0x41996c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x419989
push str.C:Program_Files
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.005257b8
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00408310
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00524074
mov esp, ebp
pop ebp
ret
Function at 0x41cd20
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0052a4d0
add esp, 0xc
push 0x103
lea edx, [ebp - 0x20a]
push edx
mov ecx, 0x22
push 0
mov word [ebp - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41cd74
mov eax, dword [0x588738]
push 0xf003f
push 0
push 0
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41cdd4
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.SHAREBOX_LAUNCHER
push str.SHAREBOX_LAUNCHER
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x41cde6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00524074
mov esp, ebp
pop ebp
ret

Function at 0x41cea0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf01ff
mov ebx, eax
push str.SHAREBOX_LAUNCHER
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41cef3
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x41cf16
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00524074
mov esp, ebp
pop ebp
ret
Function at 0x41d210
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5b885c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x41d25d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret

Function at 0x41d2b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55606f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.0041da50
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea eax, [esi + 0x38]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x34], edi
call fcn.0041d0b0
mov ebx, eax
call fcn.00544730
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edi
je 0x41d341
lea ecx, [ebp - 0x14]
push ecx
mov ecx, str.mutex
call fcn.00401410
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
cmp eax, 0xffffffff
jb 0x41d359
or eax, 0xffffffff
push eax
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x41d390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.00544730
mov dword [ebp - 0x10], eax
cmp ebx, edi
je 0x41d390
lea edx, [ebp - 0x14]
push edx
mov ecx, str.iocp
call fcn.00401410
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 0xc
Function at 0x41d660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556700
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41d6c0
mov eax, esi
call fcn.0041d760
xor esi, esi
call fcn.00544730
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x5b898c]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x5b898c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041d7d0
test eax, eax
je 0x41d712
cmp ebx, 0xffffffff
je 0x41d706
inc ebx
push edi
mov ecx, esi
call fcn.0041d7d0
test eax, eax
jne 0x41d700
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b898c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41d732
push eax
call fcn.004308fd
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41db80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555769
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ecx
mov byte [eax], cl
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x20], 1
jb 0x41dbd3
mov ecx, dword [edx]
jmp 0x41dbdd
mov ecx, edx
jmp 0x41dbdd
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x14]
cmp edi, 0x10
jb 0x41dbe9
mov esi, dword [edx]
jmp 0x41dbeb
mov esi, edx
mov eax, dword [edx + 0x10]
add esi, eax
cmp ecx, esi
je 0x41dcc4
cmp edi, 0x10
jb 0x41dbff
mov edx, dword [edx]
sub eax, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
cmp eax, 3
mov dword [ebp - 0x18], 3
lea eax, [ebp - 0x1c]
jl 0x41dc18
lea eax, [ebp - 0x18]
mov esi, dword [eax]
xor edx, edx
lea edi, [esi + ecx]
mov dword [ebp - 0x18], esi
mov word [ebp - 0x10], dx
mov byte [ebp - 0xe], dl
cmp ecx, edi
je 0x41dc42
mov eax, edi
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0052ce20
mov dl, byte [ebp - 0xe]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0xf]
and al, 3
mov bl, cl
shl al, 4
shr bl, 4
or al, bl
and cl, 0xf
mov byte [ebp - 0x13], al
add cl, cl
mov al, dl
shr al, 6
add cl, cl
or cl, al
mov dword [ebp - 0x1c], edi
and dl, 0x3f
lea eax, [esi + 1]
xor edi, edi
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
test eax, eax
jle 0x41dca1
movzx ecx, byte [ebp + edi - 0x14]
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp + 8]
call fcn.00419cc0
mov eax, dword [ebp - 0x18]
inc edi
inc eax
cmp edi, eax
jl 0x41dc82
mov esi, dword [ebp - 0x18]
mov eax, 3
sub eax, esi
test eax, eax
jle 0x41dbd7
mov edi, eax
mov esi, dword [ebp + 8]
mov bl, 0x3d
call fcn.00419cc0
dec edi
jne 0x41dcb2
jmp 0x41dbd7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41ec40
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
push 0x3fc
mov ebx, ecx
lea ecx, [ebp - 0x400]
push edi
push ecx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x404], edi
call fcn.0052a4d0
add esp, 0xc
xor eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x41ec80
mov esi, 2
lea ecx, [ebp - 0x400]
mov dword [ebp - 0x40c], 0x40
mov edx, dword [ecx - 4]
mov dword [ebp - 0x408], edx
xor edx, edx
lea eax, [esi - 2]
div dword [ebp + 8]
movzx eax, byte [edx + ebx]
add eax, dword [ebp - 0x408]
add edi, eax
and edi, 0x800000ff
jns 0x41ecd1
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov eax, dword [ebp - 0x408]
mov dword [ecx - 4], edx
mov dword [ebp + edi*4 - 0x404], eax
xor edx, edx
lea eax, [esi - 1]
div dword [ebp + 8]
mov eax, dword [ecx]
movzx edx, byte [edx + ebx]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x41ed0a
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov dword [ecx], edx
mov dword [ebp + edi*4 - 0x404], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov eax, dword [ecx + 4]
movzx edx, byte [edx + ebx]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x41ed3c
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov dword [ecx + 4], edx
mov dword [ebp + edi*4 - 0x404], eax
xor edx, edx
lea eax, [esi + 1]
div dword [ebp + 8]
mov eax, dword [ecx + 8]
movzx edx, byte [edx + ebx]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x41ed70
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov dword [ecx + 8], edx
add esi, 4
add ecx, 0x10
dec dword [ebp - 0x40c]
mov dword [ebp + edi*4 - 0x404], eax
jne 0x41eca4
mov eax, dword [ebp + 0x14]
xor edx, edx
xor esi, esi
test eax, eax
je 0x41ee21
mov ecx, dword [ebp - 0x410]
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov dword [ebp - 0x40c], eax
inc edx
and edx, 0x800000ff
jns 0x41edc4
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x404]
add esi, eax
and esi, 0x800000ff
jns 0x41eddd
dec esi
or esi, 0xffffff00
inc esi
mov ebx, dword [ebp + esi*4 - 0x404]
mov dword [ebp + edx*4 - 0x404], ebx
mov dword [ebp + esi*4 - 0x404], eax
mov ebx, dword [ebp + edx*4 - 0x404]
add ebx, eax
and ebx, 0x800000ff
jns 0x41ee0b
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx*4 - 0x404]
xor al, byte [edi + ecx]
inc ecx
dec dword [ebp - 0x40c]
mov byte [ecx - 1], al
jne 0x41edb3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00524074
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ee40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, eax
xor eax, eax
test esi, esi
je 0x41eee5
cmp word [esi], ax
je 0x41eee5
push 0x40
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0052a4d0
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
mov ecx, 1
push 0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], cx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x41eec7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41eed8
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41eee2
push eax
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41eef0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556660
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ef40
test al, 0x10
je 0x41ef40
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push 0x5c
push eax
call fcn.00527bd8
add esp, 8
test eax, eax
jne 0x41ef56
or edi, 0xffffffff
jmp 0x41ef5c
sub eax, dword [esi]
sar eax, 1
mov edi, eax
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00407790
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x41f022
push edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0041fef0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041c640
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41efbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
push ecx
call fcn.0041eef0
add esp, 4
test eax, eax
je 0x41f00d
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x41effa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x41f039
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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

Function at 0x41f320
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 4], al
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
jae 0x41f33e
lea eax, [ebp + 8]
push esi
push edi
push 3
push eax
lea eax, [ebp - 4]
push 4
push eax
call fcn.00527e06
add esp, 0x10
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
jb 0x41f37f
mov edx, dword [ebp + 8]
push edx
call fcn.004308fd
add esp, 4
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f390
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555f68
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], esi
mov edx, dword [ebp - 0x40]
mov ecx, esi
shr edx, cl
test dl, 1
je 0x41f4a1
lea edx, [ebp - 0x18]
lea eax, [esi + 0x41]
mov ecx, 0x3a
mov dword [ebp - 0x16], ebx
push edx
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x41f411
cmp eax, 3
je 0x41f411
cmp eax, 6
jne 0x41f4a1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41f450
lea edi, [eax + eax]
mov eax, edi
call fcn.0052d480
mov esi, esp
cmp esi, ebx
je 0x41f450
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41f452
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41f464
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00406bd0
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004200a0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x41f49e
mov edx, dword [ebp - 0x34]
push edx
call fcn.004308fd
add esp, 4
mov esi, dword [ebp - 0x38]
inc esi
mov dword [ebp - 0x38], esi
cmp esi, 0x1a
jl 0x41f3d1
mov eax, 1
lea esp, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
Function at 0x4208a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x31
lea eax, [ebp - 0x37]
push 0
push eax
mov byte [ebp - 0x38], 0
call fcn.0052a4d0
add esp, 0xc
lea ecx, [ebp - 0x1c8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4208e9
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x42095f
push 0x32
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x1cc], edx
test ebx, ebx
je 0x420953
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
test edi, edi
je 0x42092f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x420933
xor eax, eax
jmp 0x420947
lea eax, [esi + esi]
call fcn.0052d480
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0041c6b0
push eax
push 0x10
push ebx
call fcn.005257b8
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1cc]
lea esp, [ebp - 0x1d4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret

Function at 0x420980
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
mov dword [ebp - 4], 4
call edi
cmp eax, 0x6f
jne 0x4209b6
mov ecx, dword [ebp - 4]
push ecx
call fcn.00525211
add esp, 4
lea edx, [ebp - 4]
mov esi, eax
push edx
push esi
call edi
test esi, esi
je 0x4209fd
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push str._0.2X_0.2X_0.2X_0.2X_0.2X_0.2X
push 0x64
push eax
call fcn.00524371
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret