joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bef
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x49029c
call fcn.00427df1
mov edi, ecx
push 0x800
xor esi, esi
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00429200
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x840], esi
push 7
pop ebx
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x830], esi
push eax
mov dword [ebp - 0x82c], ebx
call fcn.00402048
mov dword [ebp - 4], esi
mov ecx, ebx
xor eax, eax
mov dword [ebp - 0x828], esi
mov dword [ebp - 0x814], ecx
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 1
mov ebx, SysReAllocString
cmp ecx, 8
mov dword [ebp - 0x818], esi
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
lea edx, [ebp - 0x828]
xor ecx, ecx
push 0xa
mov word [eax], cx
pop ecx
call fcn.0040a604
mov eax, ebx
sub eax, dword [ebp - 0x830]
cmp eax, dword [ebp - 0x818]
jb 0x408e7e
cmp dword [ebp - 0x82c], 8
lea ecx, [ebp - 0x840]
push dword [ebp - 0x818]
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push eax
push dword [ebp - 0x830]
push ecx
push ecx
push dword [ebp - 0x85c]
lea ecx, [ebp - 0x858]
call fcn.00401c6e
cmp dword [ebp - 0x844], 8
lea eax, [ebp - 0x858]
push esi
cmovae eax, dword [ebp - 0x858]
push eax
call fcn.00438a05
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.0040172c
test esi, esi
jne 0x408d3a
mov ecx, dword [ebp - 0x814]
jmp 0x408c7c
sub ebx, dword [ebp - 0x830]
cmp ebx, dword [ebp - 0x818]
jb 0x408e7e
push 8
pop ebx
cmp dword [ebp - 0x82c], ebx
lea ecx, [ebp - 0x840]
push dword [ebp - 0x818]
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], ebx
cmovae eax, dword [ebp - 0x828]
push eax
push dword [ebp - 0x830]
push ecx
push ecx
push dword [ebp - 0x85c]
lea ecx, [ebp - 0x858]
call fcn.00401c6e
lea eax, [ebp - 0x858]
mov ecx, edi
push eax
call fcn.00401a02
lea ecx, [ebp - 0x858]
call fcn.0040172c
cmp dword [edi + 0x14], ebx
jb 0x408db5
mov edi, dword [edi]
mov eax, dword [ebp - 0x814]
mov esi, 0x1000
cmp eax, ebx
jb 0x408e0b
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], ecx
cmp eax, esi
jb 0x408e02
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x85c]
push eax
call fcn.004016dc
mov eax, dword [ebp - 0x860]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x85c]
push eax
push ecx
call fcn.004272b3
pop ecx
pop ecx
and dword [ebp - 0x818], 0
xor eax, eax
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, ebx
jb 0x408e76
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, esi
jb 0x408e6d
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.004016dc
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.004272b3
pop ecx
pop ecx
mov eax, edi
call fcn.00427da0
ret
call fcn.0040206f
int3
Function at 0x408e84
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x49030a
call fcn.00427df1
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.00405c50
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040c77e
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040a4ef
cmp dword [eax + 0x14], 8
jb 0x408ed1
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x828]
call fcn.0040172c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00405c7c
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00429200
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x408fdb
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x850]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408fcf
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402048
push ebx
push dword [0x4e8cf4]
mov ecx, esi
call fcn.00407905
mov edi, eax
cmp edi, 0xffffffff
je 0x408fcf
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408fcf
push dword [0x4e8cf4]
call fcn.0043b4f4
pop ecx
lea edx, [ebp - 0x810]
mov ecx, eax
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x84c]
jne 0x408fab
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.004093d0
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00427da0
ret
Function at 0x40a567
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
xor bl, bl
push 0xb1
mov ecx, esi
call fcn.0040ac8b
jmp 0x40a5f2
call fcn.00433697
cdq
push 0x24
pop ecx
idiv ecx
push 9
pop eax
cmp eax, edx
sbb al, al
add dl, 0x30
and al, 0x27
add al, dl
lea edx, [eax - 0x30]
test edi, edi
jne 0x40a5a9
cmp dl, 9
jbe 0x40a5f2
test edi, edi
je 0x40a5b9
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40a5b3
mov ecx, dword [esi]
cmp byte [edi + ecx - 1], al
je 0x40a5f2
mov byte [ebp - 4], al
test bl, bl
jne 0x40a5e6
mov byte [ebp - 4], al
cmp dl, 9
ja 0x40a5cc
inc bl
jmp 0x40a5e6
cmp dword [esi + 0x10], 0xb0
jne 0x40a5e6
call fcn.00433697
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [ebp - 4], dl
push dword [ebp - 4]
mov ecx, esi
push 1
call fcn.0040acec
mov edi, dword [esi + 0x10]
cmp edi, 0xb1
jb 0x40a580
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c33a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40c34e
mov eax, dword [eax]
push esi
push 0x4aca08
push eax
call fcn.004398c1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c3cd
push ebx
push edi
mov ecx, esi
call fcn.00408a3a
mov ebx, eax
push ebx
call fcn.0042756a
push ebx
mov edi, eax
push 0
push edi
call fcn.00429200
push esi
push 1
push ebx
push edi
call fcn.00439fda
push esi
call fcn.00438fdb
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp dword [ecx + 0x2c], 0
je 0x40c3b5
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x40c3a5
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0040cbff
pop ecx
pop ecx
jmp 0x40c3c1
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.00407017
push edi
call fcn.00427565
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x411573
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491353
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00428570
mov eax, dword [0x4be034]
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.004111cc
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00429200
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x810]
push eax
call fcn.00429200
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.0040c77e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
mov edx, eax
call fcn.0040a4ef
lea ecx, [ebp - 0x1040]
call fcn.00405c7c
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x810]
mov edx, 0x400
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
lea ecx, [ebp - 0x1048]
push ecx
lea ecx, [ebp - 0x104c]
push ecx
lea ecx, [ebp - 0x1044]
push ecx
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1044]
mov edx, esi
push edi
call fcn.004114d3
pop ecx
lea ecx, [ebp - 0x1028]
call fcn.0040172c
mov al, 1
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.004272a5
leave
ret

Function at 0x41168e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491398
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00428570
mov eax, dword [0x4be034]
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 ebx, ecx
call fcn.004111cc
mov edi, 0x800
mov esi, eax
push edi
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.00429200
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x105c], eax
mov dword [ebp - 0x1058], eax
push edi
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.00429200
add esp, 0xc
lea ecx, [ebp - 0x1050]
mov edx, str.3eoB
call fcn.0040c77e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1038]
mov edx, eax
call fcn.0040a4ef
lea ecx, [ebp - 0x1050]
mov byte [ebp - 4], 2
call fcn.00405c7c
cmp dword [ebp - 0x1024], 8
lea ecx, [ebp - 0x820]
mov edx, 0x400
lea eax, [ebp - 0x1038]
cmovae eax, dword [ebp - 0x1038]
push edx
push ecx
lea ecx, [ebp - 0x1058]
push ecx
lea ecx, [ebp - 0x105c]
push ecx
lea ecx, [ebp - 0x1054]
push ecx
push edx
lea ecx, [ebp - 0x1020]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1054]
lea edi, [ebp - 0x1c]
xor eax, eax
mov edx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004114d3
pop ecx
push ebx
push 0xc
pop edx
lea ecx, [ebp - 0x1c]
call fcn.0040cf45
pop ecx
lea ecx, [ebp - 0x1038]
call fcn.0040172c
mov al, 1
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.004272a5
leave
ret
Function at 0x420020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x10], ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x6c]
add eax, ebx
sub esi, ecx
mov dword [ebp - 0xc], esi
cmp dword [edi + 0x6c], eax
jb 0x4200cb
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00428c80
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 8], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 8], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x420079
mov edi, dword [ebp - 4]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 8]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x4200a6
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x420185
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, esi
mov dword [ebp - 0xc], edx
cmovbe esi, eax
test esi, esi
je 0x42013e
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x42010c
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push esi
call fcn.004209cc
jmp 0x420124
cmp eax, 2
jne 0x420128
mov edx, dword [ebx]
test edx, edx
jne 0x42011b
xor eax, eax
jmp 0x420125
mov ecx, dword [ebx + 0x30]
push esi
call fcn.0041db8d
pop ecx
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push dword [ebp - 0xc]
call fcn.00428c80
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov dword [edi + 0x74], ecx
cmp ecx, 3
jb 0x42016d
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp ecx, 0x106
jae 0x420185
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x420185
mov ebx, dword [ebp - 0x10]
jmp 0x420037
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423f3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
call fcn.00408a3a
push 0x14
pop esi
cmp eax, esi
jb 0x423fab
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043a9f1
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x10], si
inc eax
mov byte [ebp - 0xc], bl
push eax
mov word [ebp - 0xe], ax
mov edi, 0x58453144
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00439fda
add esp, 0x1c
pop ebx
test eax, eax
je 0x423fab
cmp dword [ebp - 0x14], edi
jne 0x423fab
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x423fa7
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x423fad
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x4245ee
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4be034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
test edi, edi
je 0x42465e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x424614
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x42465e
add eax, eax
call fcn.00427d60
mov esi, esp
test esi, esi
je 0x42465b
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
mov byte [esi], bl
lea eax, [ecx + ecx]
push eax
push esi
push 0xffffffffffffffff
push edi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb ebx, ebx
and ebx, esi
mov esi, dword [ebp - 0x18]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push 0x7b
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x42469e
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4246c5
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004272a5
leave
ret 8
xor eax, eax
jmp 0x4246b1
Function at 0x4246c9
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4be034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push esi
push edi
mov edi, 0x3e8
mov esi, dword [ebp + 8]
div edi
xor edi, edi
mov dword [ebp - 0x110], eax
inc edi
mov eax, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], edx
push eax
push ecx
mov dword [ebp - 0x108], edi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x42472c
xor eax, eax
jmp 0x424737
xor ecx, ecx
test eax, eax
mov eax, edi
setne cl
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004272a5
leave
ret 8
Function at 0x4249d8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4928fa
call fcn.00427e27
mov ebx, edx
push 0x801
call fcn.0042756a
xor esi, esi
mov edi, eax
mov dword [ebp - 4], esi
mov dword [esp], 0x801
push esi
push edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x800
call fcn.00429200
add esp, 0xc
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], esi
je 0x424a62
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x18], 1
jne 0x424a59
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00405b67
inc esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00427565
pop ecx
mov eax, esi
call fcn.00427d8c
ret

Function at 0x43b0a7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4be034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x49aba0
push esi
call fcn.0043be1a
pop ecx
pop ecx
test eax, eax
jne 0x43b0d5
xor al, al
jmp 0x43b152
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0043adea
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x43b10f
push dword [ebp - 0x210]
call fcn.0043361d
xor al, al
jmp 0x43b150
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43b115
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x43b135
push edx
call fcn.0043afdd
pop ecx
test al, al
je 0x43b100
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43b143
mov bl, 1
push dword [ebp - 0x210]
call fcn.0043361d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004272a5
leave
ret

Function at 0x441285
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49cd28
push 0x49cd20
push str.FlsAlloc
push 0x1e
call fcn.004410b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4412b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x49846c]
call esi
jmp 0x4412bf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x441303
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49cd38
push 0x49cd30
push str.FlsGetValue
push 0x20
call fcn.004410b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44133a
push dword [ebp + 8]
mov ecx, esi
call dword [0x49846c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4447ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c5be8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44482c
cmp byte [ebx], 0xa
jne 0x44482c
or byte [eax + edi + 0x28], 4
jmp 0x444831
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44492f
mov al, byte [edx]
cmp al, 0x1a
je 0x444911
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x444860
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x444885
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44488f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x444842
jmp 0x44492f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44490c
cmp dword [ebp - 0xc], 0
je 0x44490c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c5be8]
test byte [eax + edi + 0x28], 0x48
je 0x4448e6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4448d1
mov byte [esi], dl
jmp 0x4448e2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c5be8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44492f
cmp byte [ebp - 1], 0xa
jne 0x4448f5
cmp esi, ebx
jne 0x4448f5
mov byte [esi], 0xa
jmp 0x44492e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004456a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44492f
mov byte [esi], 0xd
jmp 0x44492e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c5be8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44492b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44492f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444938
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4c5be8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44497b
cmp word [esi], dx
jne 0x44497b
or byte [edi + eax + 0x28], 4
jmp 0x444980
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x444ad3
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x444ab3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4449c2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4449f8
cmp eax, edx
jae 0x444a04
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x44499a
jmp 0x444ad3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444aaf
cmp dword [ebp - 0x14], 0
je 0x444aaf
mov eax, dword [ebx*4 + 0x4c5be8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x444a87
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x444a50
mov word [esi], cx
jmp 0x444a83
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c5be8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4c5be8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c5be8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x444ad3
pop ebx
cmp word [ebp - 4], bx
jne 0x444a98
cmp esi, dword [ebp + 0xc]
jne 0x444a98
mov word [esi], bx
jmp 0x444ad0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004456a1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x444ad3
push 0xd
jmp 0x444acc
mov ecx, dword [ebx*4 + 0x4c5be8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x444aca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x444ad3
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret