joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425683
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x438818]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041b790
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041b790
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4256fa
cmp word [ecx], dx
je 0x4256fa
mov eax, dword [0x430a2c]
push edi
dec eax
push eax
push 0x430918
call fcn.00425622
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42576d
cmp word [eax], dx
je 0x42576d
mov eax, dword [edi]
test eax, eax
je 0x42571e
cmp word [eax], dx
je 0x42571e
lea eax, [ebp - 0x10]
push eax
call fcn.00425005
jmp 0x425727
lea eax, [ebp - 0x10]
push eax
call fcn.004250a0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x425797
mov eax, dword [0x430914]
push dword [ebp - 0x14]
dec eax
push eax
push 0x430608
call fcn.00425622
add esp, 0xc
test al, al
je 0x425797
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x425762
cmp word [eax], di
je 0x425762
lea eax, [ebp - 0x10]
push eax
call fcn.00425005
pop ecx
jmp 0x425799
lea eax, [ebp - 0x10]
push eax
call fcn.004250a0
jmp 0x42575f
mov eax, dword [edi]
test eax, eax
je 0x425784
cmp word [eax], dx
je 0x425784
lea eax, [ebp - 0x10]
push eax
call fcn.00424fba
pop ecx
jmp 0x425797
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x425862
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004254a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x425862
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x425862
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x425862
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4257ef
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041cbe3
test ebx, ebx
je 0x42585d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041cbe3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425862
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425862
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042951d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x425864
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ebb3
leave
ret
Function at 0x429c95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00429c11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x429e04
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x429e04
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x429db9
jg 0x429cf1
test eax, eax
je 0x429daf
push 1
push 0x1000
call fcn.0041bb75
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429d14
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x429da6
push 0x8000
push ebx
call fcn.00418fa5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x429d3d
jg 0x429d38
cmp ecx, 0x1000
jb 0x429d3d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ddb3
add esp, 0x10
cmp eax, 0xffffffff
je 0x429d82
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x429d38
jl 0x429d69
test ecx, ecx
jne 0x429d2a
push dword [ebp - 0xc]
push ebx
call fcn.00418fa5
push esi
call fcn.0041bbd2
add esp, 0xc
xor ebx, ebx
jmp 0x429e12
cmp byte [edi + 0x24], 0
je 0x429d99
cmp dword [edi + 0x20], 5
jne 0x429d99
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429da4
mov ebx, dword [edi + 0x18]
jmp 0x429da6
xor ebx, ebx
push esi
call fcn.0041bbd2
pop ecx
jmp 0x429e12
test ecx, ecx
jg 0x429d7b
jl 0x429db9
test eax, eax
jae 0x429d7b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f932
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x429dd9
cmp byte [edi + 0x1c], 0
je 0x429d7b
jmp 0x429e0a
push ebx
call fcn.0042357e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x429d7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x429e12
cmp byte [edi + 0x1c], 0
je 0x429e0f
mov ebx, dword [edi + 0x18]
jmp 0x429e12
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041f932
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ae40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ae6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ae6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48f5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x493c58], 1
mov dword [ebp - 0x214], edi
jne 0x40104c
mov eax, dword [0x492934]
or dword [0x493c58], 1
mov ecx, 0x492934
call dword [eax + 0xc]
add eax, 0x10
push 0x46fce0
mov dword [0x493c54], eax
call fcn.0044a306
pop ecx
mov eax, dword [0x493c54]
cmp dword [eax - 0xc], edi
jne 0x401095
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0044a540
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x493c54
call fcn.004015be
mov eax, dword [0x493c54]
add eax, 0xfffffff0
call fcn.00401651
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0044a0e3
leave
ret

Function at 0x4010b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48f5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x493c50], 1
mov dword [ebp - 0x214], edi
jne 0x401102
mov eax, dword [0x492934]
or dword [0x493c50], 1
mov ecx, 0x492934
call dword [eax + 0xc]
add eax, 0x10
push 0x46fced
mov dword [0x493c4c], eax
call fcn.0044a306
pop ecx
mov eax, dword [0x493c4c]
cmp dword [eax - 0xc], edi
jne 0x40114b
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0044a540
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x493c4c
call fcn.004015be
mov eax, dword [0x493c4c]
add eax, 0xfffffff0
call fcn.00401651
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0044a0e3
leave
ret
Function at 0x40116c
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x46d52f
call fcn.00452680
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x401327
mov eax, dword [0x492934]
mov esi, 0x492934
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x492934]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x4012ef
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.00401391
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4011e3
mov esi, edi
call fcn.004019b0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4012ef
lea esi, [ebp - 0x18]
call fcn.004019b0
lea esi, [ebp - 0x1c]
call section..text
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00401391
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401980
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40126b
mov esi, edi
call fcn.0041b8bd
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401459
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00401391
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401980
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40126b
mov esi, edi
call fcn.004019b0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4012ef
lea esi, [ebp - 0x18]
call fcn.004019b0
lea esi, [ebp - 0x1c]
call fcn.004010b6
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00401391
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401980
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4012eb
mov esi, edi
call fcn.0041b8bd
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401459
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401391
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401980
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4012eb
mov esi, edi
call fcn.004019b0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x40130b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40130b
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401314
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.00401980
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401980
mov eax, edi
call fcn.00452703
ret
Function at 0x401754
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 0x40176b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4017a0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40179c
cmp edi, eax
jae 0x4017a0
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40178e
cmp edi, eax
jb 0x4017a4
xor eax, eax
jmp 0x4017ae
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401eb4
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x48f5fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b0], eax
mov eax, 0x5a0
cmp dword [ebp + 0xc], eax
push esi
push edi
jbe 0x401edf
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x1ac], eax
je 0x401f81
push 0x47bcc0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x401f75
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x26b0
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x401f4c
mov edx, eax
add edx, 4
inc ecx
cmp dword [edx], 0
je 0x401f43
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x401f75
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a0e3
leave
ret
Function at 0x402315
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x48f5fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x78], 0
push ebx
push esi
lea edx, [ebp - 0x78]
push edx
push 0x40
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x10]
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ecx
call ecx
cmp dword [ebp - 0x78], 0x40
jne 0x40240e
cmp word [ebp - 0x74], 0x5a4d
jne 0x40240e
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x78], 0
lea ebx, [edi + eax]
lea eax, [ebp - 0x78]
push eax
mov esi, 0xf8
push esi
lea eax, [ebp - 0x184]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], esi
jne 0x40240e
cmp dword [ebp - 0x184], 0x4550
jne 0x40240e
cmp word [ebp - 0x180], 0x14c
jne 0x40240e
cmp word [ebp - 0x16c], 0x10b
jne 0x40240e
and dword [ebp - 0x7c], 0
add ebx, esi
cmp word [ebp - 0x17e], 0
jbe 0x40240e
mov esi, 0x20000020
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], 0x28
jne 0x40240e
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40240e
mov ecx, dword [ebp - 0xc]
and ecx, esi
cmp ecx, esi
je 0x40241e
movzx eax, word [ebp - 0x17e]
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], eax
jb 0x4023d1
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a0e3
leave
ret
mov ecx, dword [ebp - 0x88]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x402410

Function at 0x403ae7
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.0044a540
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x404551
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x404573
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x404594
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4045e7
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x404609
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x40462d
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x404f4b
Capabilities:
Get disk information

Disassembly:
push 0xb0
mov eax, 0x46ded2
call fcn.00452680
mov eax, dword [ebp + 8]
push 9
pop ecx
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x41], bl
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
mov word [ebp - 0x12], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
or edi, 0xffffffff
cmp byte [ebp - 0x41], bl
jne 0x40516c
mov edx, dword [ebp - 0x64]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x40515c
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404fe2
cmp eax, 6
jne 0x40515c
mov eax, dword [ebp - 0x50]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x50]
push 7
mov word [ebp - 0x1e], ax
push 0xc0000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x40515c
push 0x18
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.0044a540
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0x18
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405153
push 0x221
call fcn.0044ba55
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x405153
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x221
push esi
push 0x21
push esi
push 0x7c088
push dword [ebp - 0x48]
mov byte [esi + 0xa], 0xec
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40514c
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
add esi, 0x10
cmp esi, ebx
je 0x405149
cmp eax, 0x2e
jbe 0x405149
push 0x13
push esi
push 0xa
pop ecx
lea edx, [ebp - 0x88]
call fcn.00404ac3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040981f
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.0040974d
push 0x2e
push esi
push 0x1b
pop ecx
lea edx, [ebp - 0x88]
call fcn.00404ac3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040981f
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.0040974d
push 0x1a
push esi
push 0x17
pop ecx
lea edx, [ebp - 0xbc]
call fcn.00404ac3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.0040981f
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], edi
call fcn.0040974d
mov byte [ebp - 0x41], 1
mov esi, dword [ebp - 0x4c]
push esi
call fcn.0044bb18
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x54], ecx
jl 0x404faa
mov al, byte [ebp - 0x41]
call fcn.00452703
ret
Function at 0x405c94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x48f5fc]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x47c820
push 0x80000002
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x405e07
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push 0x47c870
push 0x103
push eax
call fcn.00408ae6
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x405dfe
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x47c880
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x405df5
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.0044a540
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x47c890
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x405df5
cmp dword [ebp - 0x70], edi
jne 0x405de5
mov esi, 0x47c8a0
push esi
call fcn.0044a4b0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0044de2f
add esp, 0x10
test eax, eax
jne 0x405dbf
mov dword [ebp - 0x6c], ebx
jmp 0x405df5
cmp dword [ebp - 0x70], edi
jne 0x405de5
push esi
call fcn.0044a4b0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0044de2f
add esp, 0x10
test eax, eax
je 0x405de5
mov dword [ebp - 0x6c], 2
jmp 0x405df5
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a0e3
add ebp, 0xa4
leave
ret