joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449a80
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00449bd0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x449aa0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x449a81
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00449bd0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x449aa0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x449ad0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x449b27
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x449b3d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00449b60
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x449b60
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x449bf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x449c39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44a0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00449c60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00449ce0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00449ce0
lea ecx, [esi + 0xc]
call fcn.00460c9e
lea ecx, [esi + 0x10]
call fcn.00460c9e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044c510
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044c510
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044c510
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00460d13
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00460d13
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44ad58
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f2b8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44ad68
call fcn.0044b280
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44ae4b
cmp byte [edi], 0
je 0x44ae4b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44ad8d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00449a80
test eax, eax
jne 0x44adad
push 0x494458
lea ecx, [esi + 0x38]
call fcn.00460e50
jmp 0x44ae4b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00449ad0
test eax, eax
jne 0x44addc
mov ecx, esi
call fcn.00449bd0
push edi
add esi, 0x38
push 0x494434
push esi
call fcn.0045eb17
add esp, 0xc
jmp 0x44ae4b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044bb00
test eax, eax
je 0x44ae44
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044af20
test eax, eax
jne 0x44ae60
push edi
lea eax, [esi + 0x38]
push 0x494410
push eax
call fcn.0045eb17
add esp, 0xc
mov ecx, esi
call fcn.0044b280
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44af08
mov ecx, dword [0x4946f8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045eb17
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00449b80
test eax, eax
jne 0x44aeca
push 0x4943f4
lea ecx, [esi + 0x38]
call fcn.00460e50
jmp 0x44aeda
push 0xfa
mov ecx, esi
call fcn.0044bb00
test eax, eax
jne 0x44aef7
mov ecx, esi
call fcn.0044b280
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460d13
jmp 0x44ae4b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460d13
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x44d020
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44d0c3
test eax, eax
jbe 0x44d0c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44d0c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44d06e
xor esi, esi
jmp 0x44d074
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44d09f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402420
add esi, eax
push esi
mov ebx, esi
call fcn.00402420
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44d080
pop ebp
test edi, edi
pop edi
jne 0x44d0c3
test ebx, ebx
je 0x44d0c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00451470
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x44d205
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44d31d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d31d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00462714
mov esi, eax
test esi, esi
je 0x44d31d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44d31d
mov ecx, esi
call fcn.0044d170
cmp edi, eax
jge 0x44d31d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44d2a3
mov dword [esp + 0x34], 1
jmp 0x44d2fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44d31d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044c760
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4630b7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4630ef
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046116e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461146
jmp 0x4630fb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4647ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4647ef
call fcn.0046a31c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4647ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4647e6
xor eax, eax
jmp 0x4647f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004647fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a84c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a87a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a898
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a7b2
jmp 0x46a898
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a898
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a7b2
test edi, edi
mov eax, edi
jne 0x46a882
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a4e
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
sub esp, 0x440
lea ebp, [esp - 4]
mov eax, dword [0x42f050]
xor eax, ebp
mov dword [ebp + 0x440], eax
push 0xc
mov eax, 0x42360a
call fcn.004109ec
mov eax, dword [0x4312e4]
mov esi, 0x4312e4
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x4312e4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x402ac9
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403933
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 0x200]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x402afe
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403933
push 0xf
push str._baidu_browser_
lea eax, [ebp - 0x10]
call fcn.00403c7c
push dword [ebx - 0xc]
lea eax, [ebp - 0x10]
push ebx
call fcn.00403c7c
push 0xd
pop ecx
push dword [ebp - 0x10]
mov esi, str.BaiduBrowser_MessageWindow
lea edi, [ebp + 0x408]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x408]
push eax
push 0
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0xfffffffffffffffd
call esi
test eax, eax
jne 0x402b8f
lea eax, [ebp - 0x10]
call fcn.00403954
push dword [ebp - 0x10]
lea eax, [ebp + 0x408]
push eax
push 0
push 0xfffffffffffffffd
call esi
xor esi, esi
test eax, eax
jne 0x402b8c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404c04
lea eax, [ebx - 0x10]
call fcn.00404c04
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x440]
xor ecx, ebp
call fcn.0040db28
add ebp, 0x444
leave
ret
inc esi
jmp 0x402b54
xor esi, esi
jmp 0x402b8c
Function at 0x404a42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404a59
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404a8e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404a8a
cmp edi, eax
jae 0x404a8e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404a7c
cmp edi, eax
jb 0x404a92
xor eax, eax
jmp 0x404a9c
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4051b6
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi + 8], edi
jg 0x40522b
cmp dword [esi + 0xc], edi
jne 0x40522b
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x40522b
push edi
push 0x7fffffff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
cmp eax, edi
mov dword [esi + 0x14], eax
je 0x40522b
xor eax, eax
xor ecx, ecx
push 4
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d361
cmp eax, edi
pop ecx
mov dword [esi + 0xc], eax
je 0x40522b
push edi
push edi
push esi
push 0x40533a
push edi
push edi
call fcn.0040f08f
mov ecx, dword [esi + 0xc]
add esp, 0x18
mov dword [ecx], eax
mov dword [esi + 8], 1
mov al, 1
pop edi
ret
xor al, al
pop edi
ret

Function at 0x4052ee
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0xc], 0
je 0x405338
mov eax, dword [esi + 8]
test eax, eax
je 0x405338
push edi
xor edi, edi
test eax, eax
jle 0x405337
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x405331
mov eax, dword [esi + 0xc]
push 0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc edi
cmp edi, dword [esi + 8]
jl 0x405306
pop edi
leave
ret
Function at 0x406f4f
Capabilities:
Write file on windows

Disassembly:
push 0
mov eax, 0x4237e6
call fcn.004109ec
mov esi, ecx
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0x10], eax
jl 0x406f6c
xor al, al
jmp 0x40700c
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x38]
mov edi, ebx
call fcn.004038f2
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x3c]
call fcn.004038f2
cmp dword [0x43059c], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x48], eax
je 0x40700a
mov eax, dword [0x4312e4]
and dword [ebp + 8], 0
mov ecx, 0x4312e4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
and dword [ebp - 4], 0
push dword [edi]
lea eax, [ebp + 0x10]
push dword [ebx]
push dword [esi + 0x30]
push str.CFileDownloadTask_TaskParam:sliceid_d_taskurl_s_datafile_s_n
call fcn.004044af
mov esi, dword [ebp + 0x10]
add esp, 0x10
push esi
lea eax, [ebp + 0x14]
push eax
call fcn.004036ef
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax - 0xc]
push eax
push dword [0x43059c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00404c04
lea eax, [esi - 0x10]
call fcn.00404c04
mov al, 1
call fcn.00410ac4
ret 0x14

Function at 0x407b55
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x42f050]
xor eax, ebp
mov dword [ebp + 0xa0], eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x70]
cmp eax, 6
jge 0x407b91
mov al, 1
jmp 0x407bea
lea eax, [ebp - 0x78]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
je 0x407bad
xor al, al
jmp 0x407bea
push edi
xor eax, eax
and dword [ebp - 0x80], eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
pop edi
push dword [ebp - 0x78]
je 0x407bdd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407ba9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7c], 0
setne al
mov ecx, dword [ebp + 0xa0]
xor ecx, ebp
call fcn.0040db28
add ebp, 0xa4
leave
ret
Function at 0x40af98
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x42396f
call fcn.00410a55
xor ebx, ebx
push str..redic
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.004062e6
push 0x42a0a0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.0040f5d3
add esp, 0xc
test eax, eax
jne 0x40b06a
cmp dword [ebp - 0x14], ebx
je 0x40b06a
call dword [0x42f00c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x94]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40b034
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40b034
lea edi, [eax + eax]
mov eax, edi
call fcn.00419880
mov esi, esp
cmp esi, ebx
je 0x40b034
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [esi], bl
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b036
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40b03b
push dword [ebp - 0x14]
sub ecx, esi
push 1
push ecx
push eax
call fcn.0040f782
push dword [ebp - 0x14]
call fcn.0040f876
mov eax, dword [ebp + 0xc]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00404c04
mov al, 1
jmp 0x40b077
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404c04
xor al, al
lea esp, [ebp - 0x2c]
call fcn.00410ad8
ret 8

Function at 0x40b082
Capabilities:
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x42394c
call fcn.004109ec
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call fcn.0040f9ef
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x40b155
mov eax, dword [ebp - 0x34]
inc eax
push eax
call fcn.0040d361
mov esi, eax
cmp esi, ebx
pop ecx
je 0x40b155
push str..redic
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x10], ebx
call fcn.004062e6
push 0x42a0a8
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0040f5d3
add esp, 0xc
test eax, eax
jne 0x40b155
cmp dword [ebp - 0x10], ebx
je 0x40b155
mov eax, dword [ebp - 0x34]
inc eax
push eax
push ebx
push esi
call fcn.00410b00
push dword [ebp - 0x10]
push dword [ebp - 0x34]
push 1
push esi
call fcn.0040ffc2
mov eax, esi
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40b10f
sub eax, ecx
je 0x40b136
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x40b136
mov eax, dword [ebp + 8]
push esi
add eax, 0x94
push eax
call fcn.00403eb9
mov bl, 1
push esi
call fcn.0040db23
push dword [ebp - 0x10]
call fcn.0040f876
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404c04
mov al, bl
jmp 0x40b162
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404c04
xor al, al
call fcn.00410ac4
ret 8

Function at 0x40b403
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x7c], 0
jne 0x40b425
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
imul eax, eax, 0x1f4
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x7c]
leave
ret
Function at 0x40c7b3
Capabilities:
Get disk information

Disassembly:
push 0x34
mov eax, 0x4236cb
call fcn.00410a55
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4312e4]
mov ecx, 0x4312e4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
movsx ebx, byte [ebp + 0xc]
push ebx
xor edi, edi
push str.._c:
lea eax, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.004044fa
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
pop ecx
pop ecx
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push dword [ebp - 0x34]
call esi
cmp eax, 1
jne 0x40c834
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
push str._08X
call fcn.004044fa
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404c04
xor eax, eax
inc eax
jmp 0x40c87f
push ebx
push str._c:_
lea eax, [ebp - 0x34]
call fcn.004044fa
mov ebx, dword [ebp - 0x34]
pop ecx
pop ecx
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push ebx
call esi
cmp eax, 1
jne 0x40c875
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
push str._08X
call fcn.004044fa
pop ecx
xor edi, edi
pop ecx
inc edi
lea eax, [ebx - 0x10]
call fcn.00404c04
mov eax, edi
call fcn.00410ad8
ret
Function at 0x40c94d
Capabilities:
Get storage device properties

Disassembly:
push 0x48
mov eax, 0x423662
call fcn.00410a8b
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x25], bl
call fcn.0040bcca
push dword [ebp - 0x30]
push esi
call fcn.00403933
mov eax, dword [esi]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
jne 0x40c996
xor al, al
jmp 0x40cb0e
xor eax, eax
mov dword [ebp - 0x54], ebx
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0x18
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x40cb02
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x14], eax
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0xa000
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.0040d361
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push ebx
push eax
mov dword [ebp - 0x2c], eax
call fcn.00410b00
add esp, 0xc
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x9fff
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x34]
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40caae
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x9fff], bl
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp - 0x30], ecx
je 0x40ca53
cmp eax, edi
jae 0x40ca53
add eax, ecx
push eax
lea eax, [esi + 8]
push eax
call fcn.00403eb9
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x40ca70
cmp eax, edi
jae 0x40ca70
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
lea eax, [esi + 4]
push eax
call fcn.00403eb9
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ca8d
cmp eax, edi
jae 0x40ca8d
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00403eb9
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x40caaa
cmp eax, edi
jae 0x40caaa
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00403eb9
mov byte [ebp - 0x25], 1
push edi
push ebx
push dword [ebp - 0x2c]
call fcn.00410b00
add esp, 0xc
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x9fff
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40caf9
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x9fff], bl
lea eax, [ebp - 0x1c]
push eax
add esi, 4
push esi
call fcn.00403eb9
mov byte [ebp - 0x25], 1
push dword [ebp - 0x2c]
call fcn.0040e404
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x25]
call fcn.00410ae7
ret