joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404438
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404438
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x404438
mov edx, edi
pop edi
mov ecx, eax
pop esi
pop ebp
jmp fcn.00404265
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x405e45
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x405e59
xor eax, eax
jmp 0x405eb7
mov eax, dword [ebp + 8]
push edi
mov dword [esi + 0xc], eax
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
lea eax, [esi + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0x405ed5
push ebx
push ebx
mov dword [ebp - 8], esi
call fcn.0043463b
add esp, 0x18
xor edi, edi
mov dword [esi + 4], eax
cmp eax, ebx
je 0x405ea3
cmp dword [ebp - 4], ebx
je 0x405ea0
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
inc edi
cmp dword [ebp - 4], ebx
je 0x405eb4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405f1c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
test eax, eax
je 0x405f4f
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405f42
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
pop ebp
ret 4

Function at 0x4060ec
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x4794d0], esi
jne 0x406155
push edi
mov edi, 0x4794d4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4794d0], esi
jne 0x40614d
push ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x4794d0
push esi
mov ebx, eax
push ebx
push 0x405fb2
push esi
push esi
call fcn.0043463b
add esp, 0x18
cmp eax, esi
jne 0x40613c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40614c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
cmp dword [0x4794d0], esi
pop esi
setne al
ret
Function at 0x406162
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x430]
mov edi, ecx
push 4
push eax
mov dword [ebp - 0x438], edi
call fcn.004085e9
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x406198
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x46bc48
push eax
call fcn.00406519
add esp, 0xc
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x430]
call fcn.0040318e
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.txt
push eax
call fcn.00406519
add esp, 0x10
push esi
mov ebx, 0x80
push ebx
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0x40000000
jmp 0x40622e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x438]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.txt
push eax
call fcn.00406519
add esp, 0x10
push 0
push ebx
push 4
push 0
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x434], eax
cmp eax, 0xffffffff
je 0x4061fe
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x434]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret
Function at 0x4127ba
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x475668]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x64], edi
jle 0x4128fe
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040a772
xor ebx, ebx
and dword [esp + 0x20], ebx
and dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x412802
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
jmp 0x412804
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jge 0x4128fe
mov eax, esi
call fcn.0040a079
mov ecx, eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x14], ecx
call fcn.0040aa4c
cmp dword [esp + 0xc], 0
jne 0x412849
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x20], ebx
jmp 0x412865
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0x78]
sub eax, dword [esp + 0x34]
add eax, dword [esp + 0x3c]
add eax, edi
cmp eax, dword [esi + 0x64]
jle 0x412868
mov ebx, dword [esp + 0x20]
mov edi, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
lea ecx, [eax + edi]
add ecx, dword [esi + 0x78]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x7c]
add ecx, dword [esp + 0x28]
add ecx, ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x80]
sub ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esi + 0x84]
sub eax, dword [esp + 0x38]
add ecx, edi
add eax, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
call fcn.0040b388
mov eax, dword [esi + 0x88]
sub eax, dword [esp + 0x34]
add eax, dword [esi + 0x80]
add eax, dword [esp + 0x3c]
add eax, dword [esi + 0x78]
add edi, eax
mov eax, dword [esi + 0x84]
sub eax, dword [esp + 0x38]
add eax, dword [esi + 0x7c]
add eax, dword [esp + 0x40]
add eax, ebx
cmp dword [esp + 0x20], eax
jg 0x4128f5
mov dword [esp + 0x20], eax
inc dword [esp + 0xc]
jmp 0x4127f1
mov ecx, dword [esp + 0x54]
pop edi
pop ebx
xor ecx, esp
call fcn.004319f9
mov esp, ebp
pop ebp
ret

Function at 0x417dcf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x476b10]
cmp eax, 0xffffffff
jne 0x417e3a
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004320e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417e33
cmp dword [ebp - 0x114], 6
jb 0x417e33
push str.dwmapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x417e35
xor eax, eax
mov dword [0x476b10], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004319f9
leave
ret
Function at 0x4182a9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp eax, 0x84
jne 0x4182bb
or dword [esi], 0xffffffff
xor eax, eax
inc eax
jmp 0x41832a
cmp eax, 0x21
jne 0x4182c8
mov dword [esi], 3
jmp 0x4182b6
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x4182db
mov eax, edi
call fcn.00418336
mov dword [esi], eax
jmp 0x418323
cmp eax, 0x113
jne 0x41830e
cmp dword [ebp + 8], 0x20
jne 0x418300
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x20
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x418302
xor ebx, ebx
and dword [esi], 0
test ebx, ebx
je 0x418327
xor eax, eax
inc eax
jmp 0x418329
cmp eax, 0x400
jne 0x418327
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi], 0
mov eax, ebx
jmp 0x418329
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x41ce7b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x45f557
call fcn.00431a71
mov eax, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x830]
push ecx
push 1
xor esi, esi
push esi
push eax
mov edi, edx
push 0x80000001
mov dword [ebp - 0x840], ebx
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x830], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
cmp dword [ebp - 0x830], esi
jne 0x41cedf
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
mov eax, ebx
jmp 0x41d004
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
mov dword [ebp - 0x838], esi
call fcn.004320e0
add esp, 0xc
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x83c]
push eax
push esi
lea eax, [ebp - 0x834]
push eax
push esi
mov dword [ebp - 4], esi
push edi
push dword [ebp - 0x830]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x83c], esi
call edi
test eax, eax
jne 0x41cfb7
cmp dword [ebp - 0x834], 1
je 0x41cf65
cmp dword [ebp - 0x834], 2
je 0x41cf65
cmp dword [ebp - 0x834], ebx
jne 0x41cfb7
cmp dword [ebp - 0x83c], 0x800
jae 0x41cf79
lea ebx, [ebp - 0x810]
jmp 0x41cf87
push dword [ebp - 0x83c]
call fcn.00430a14
pop ecx
mov ebx, eax
lea eax, [ebp - 0x83c]
push eax
push ebx
lea eax, [ebp - 0x834]
push eax
push esi
push dword [ebp - 0x844]
push dword [ebp - 0x830]
call edi
test eax, eax
jne 0x41cfbd
push ebx
lea ecx, [ebp - 0x82c]
call fcn.00402e3b
jmp 0x41cfbd
mov ebx, dword [ebp - 0x838]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x41cfde
lea eax, [ebp - 0x810]
cmp ebx, eax
je 0x41cfde
push ebx
call fcn.00430a1f
pop ecx
mov ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x82c]
push eax
call fcn.00402f21
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040318e
mov eax, dword [ebp - 0x840]
call fcn.00431af4
ret
Function at 0x41d00a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], edi
jne 0x41d034
xor eax, eax
jmp 0x41d08d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x41d080
push 4
pop eax
cmp dword [ebp - 8], eax
je 0x41d068
cmp dword [ebp - 8], 5
jne 0x41d080
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop esi
pop edi
leave
ret

Function at 0x41d0ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], ebx
jne 0x41d0d6
xor al, al
jmp 0x41d134
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
mov byte [ebp - 1], bl
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x41d127
push dword [ebp - 0xc]
call fcn.00430a14
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [eax], ecx
push dword [edi]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x41d127
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x41d543
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x41d575
push dword [ebp + 0xc]
lea esi, [ebp - 4]
push dword [ebp + 8]
call fcn.0041d6f6
pop ecx
pop ecx
cmp dword [ebp - 4], 0
jne 0x41d57f
xor al, al
jmp 0x41d5a8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x41d911
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x41d957
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
xor al, al
leave
ret

Function at 0x421f6f
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jbe 0x421f9f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x421fa3
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jne 0x421f7d
xor eax, eax
leave
ret
or eax, 0xffffffff
leave
ret

Function at 0x42206b
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x414
push 0x4708c0
call fcn.0045e460
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0x10
jb 0x42208d
mov eax, dword [esi]
jmp 0x42208f
mov eax, esi
mov byte [eax], bl
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x41c], bl
mov dword [ebp - 0x420], ebx
push 0x400
push ebx
lea eax, [ebp - 0x41c]
push eax
call fcn.004320e0
add esp, 0xc
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x420]
push eax
push 0x3ff
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x424], eax
cmp eax, ebx
je 0x4220fa
cmp dword [ebp - 0x420], ebx
je 0x42210b
lea eax, [ebp - 0x41c]
push eax
push esi
call fcn.004226a0
cmp dword [ebp - 0x420], ebx
jne 0x4220a6
jmp 0x42210b
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x424]
call fcn.0045e4a8
ret
Function at 0x42211e
Capabilities:
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fef3
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.00432530
mov eax, dword [0x475668]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x466a08
mov dword [ebp - 0x1034], esi
mov edi, edx
mov dword [ebp - 0x103c], ebx
call fcn.00409607
mov dword [ebp - 4], ebx
mov dword [ebp - 0x103c], 1
call fcn.00421fa8
mov dword [ebp - 0x1030], eax
cmp eax, ebx
je 0x4222f2
mov esi, 0x7ff
push esi
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.004320e0
push esi
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.004320e0
push 0x38
lea eax, [ebp - 0x1074]
push ebx
push eax
call fcn.004320e0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1068], eax
lea eax, [esi + 1]
add esp, 0x24
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x1078]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x810]
push edi
mov dword [ebp - 0x1078], 0x3c
mov dword [ebp - 0x104c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push dword [ebp - 0x1068]
push dword [ebp - 0x1030]
call fcn.00421fe3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
pop ecx
mov dword [ebp - 0x1038], eax
cmp eax, ebx
je 0x4222ea
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x104c]
push 0x46c618
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x4222e2
xor eax, eax
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x102c]
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], ax
call fcn.00402e3b
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1018], 8
mov eax, dword [ebp - 0x102c]
jae 0x42229c
lea eax, [ebp - 0x102c]
push 0x20000000
push dword [ebp - 0x101c]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edx, dword [ebp - 0x1034]
mov ecx, edi
call fcn.0042206b
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push edi
call esi
push ebx
push 1
lea ecx, [ebp - 0x102c]
call fcn.0040318e
push dword [ebp - 0x1038]
call esi
push dword [ebp - 0x1030]
call esi
mov eax, dword [ebp - 0x1034]
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.004319f9
leave
ret
Function at 0x422312
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.00432530
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x102c], eax
call fcn.00421fa8
xor ebx, ebx
mov dword [ebp - 0x1024], eax
cmp eax, ebx
je 0x4224da
push edi
mov edi, 0x7ff
push edi
lea eax, [ebp - 0x1003]
push ebx
push eax
mov byte [ebp - 0x1004], bl
call fcn.004320e0
push edi
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.004320e0
push 0x38
lea eax, [ebp - 0x1064]
push ebx
push eax
call fcn.004320e0
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1058], eax
lea eax, [edi + 1]
add esp, 0x24
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1038], eax
lea eax, [ebp - 0x1068]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x804]
push esi
mov dword [ebp - 0x1068], 0x3c
mov dword [ebp - 0x103c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push dword [ebp - 0x1058]
push dword [ebp - 0x1024]
call fcn.00421fe3
pop ecx
pop ecx
mov dword [ebp - 0x1028], eax
cmp eax, ebx
je 0x4224cd
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x103c]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x4224c1
xor eax, eax
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x1020]
mov dword [ebp - 0x100c], 7
mov dword [ebp - 0x1010], ebx
mov word [ebp - 0x1020], ax
call fcn.00402e3b
cmp dword [ebp - 0x100c], 8
mov eax, dword [ebp - 0x1020]
jae 0x42244c
lea eax, [ebp - 0x1020]
push 0x20000000
push dword [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x108c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1090]
push eax
push esi
mov dword [ebp - 0x1090], 0x28
mov dword [ebp - 0x1074], edi
call fcn.0042202c
pop ecx
pop ecx
test eax, eax
je 0x4224a2
push edi
push dword [ebp - 0x102c]
push esi
call fcn.00421f6f
add esp, 0xc
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x1020]
call fcn.0040318e
push dword [ebp - 0x1028]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1024]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret
Function at 0x423d5a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x50c], eax
mov byte [ebp - 0x4f9], bl
mov dword [ebp - 0x500], ebx
mov esi, 0x2710
cmp byte [ebp - 0x4f9], bl
jne 0x423f54
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.004320e0
push 0x3e7
lea eax, [ebp - 0x4eb]
push ebx
push eax
mov byte [ebp - 0x4ec], bl
call fcn.004320e0
push dword [ebp - 0x500]
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x504], eax
cmp eax, 0xffffffff
je 0x423f41
push esi
push 8
mov dword [ebp - 0x508], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x423f35
push 0xc
lea eax, [ebp - 0x4f8]
push ebx
push eax
call fcn.004320e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x508]
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x4f8]
push eax
push 0x2d1400
push dword [ebp - 0x504]
mov dword [ebp - 0x4f8], ebx
mov dword [ebp - 0x4f4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x423ea8
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x423ea8
lea ecx, [ebp - 0x4ec]
push ecx
add eax, edi
push eax
call fcn.00424897
lea eax, [ebp - 0x4ec]
push eax
call fcn.004249fe
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x423f08
push esi
push ebx
push edi
call fcn.004320e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x508]
push eax
push esi
push edi
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x423f26
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x4ec]
push eax
call fcn.004249fe
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x423f26
push 0x31
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp - 0x50c]
call fcn.00430da0
mov byte [ebp - 0x4f9], 1
add esp, 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x500]
cmp dword [ebp - 0x500], 0x10
jl 0x423d8c
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x4f9]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret