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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a4
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
and dword [ebp - 0x6a4], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push 0
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x284]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x101d7700
call fcn.10064038
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10064aca
push edi
lea eax, [ebp - 0x694]
push 0
push eax
call fcn.10054b20
push edi
xor edi, edi
lea eax, [ebp - 0x48c]
push edi
push eax
call fcn.10054b20
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], edi
push edi
push eax
mov dword [ebp - 0x6a0], edi
mov dword [ebp - 0x69c], edi
call fcn.10054b20
add esp, 0x34
lea eax, [ebp - 0x48c]
push ebx
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10044c4a
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.1002af90
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.100283d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c10c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x1017df03
call fcn.10077115
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.100539ad
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.100539e1
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x1004c14c
mov edi, 0xf003f
push edi
push esi
push 0x10183f10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004c1ac
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1004c187
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004c1ac
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.100539c0
call fcn.100770ef
ret 0xc
Function at 0x1004c634
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x1017df9e
call fcn.10077149
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x1004c72b
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x1004c6b0
lea eax, [ebp - 0x218]
push eax
call fcn.10064038
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10020030
and dword [ebp - 4], 0
push 0x101d76fc
call fcn.10064038
pop ecx
push eax
push 0x101d76fc
lea ecx, [ebp - 0x230]
call fcn.10021c90
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.1004c297
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x1004c71c
call fcn.1001ff70
mov eax, edi
jmp 0x1004c7dd
or dword [ebp - 4], 0xffffffff
call fcn.1001ff70
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x1004c7db
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x1004c772
lea eax, [ebp - 0x218]
push eax
call fcn.10064038
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.10020030
mov esi, 0x101d76fc
mov dword [ebp - 4], 1
push esi
call fcn.10064038
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.10021c90
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.1004c297
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.1001ff70
test esi, esi
je 0x1004c7db
mov eax, esi
jmp 0x1004c7dd
xor eax, eax
call fcn.10077104
ret 4
Function at 0x1004c7e5
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
test edi, edi
jne 0x1004c80d
xor eax, eax
jmp 0x1004c943
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push 0x80000001
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004c806
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10054b20
add esp, 0xc
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004c931
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004c90b
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.10054b20
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0x10183b84
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004c8ff
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.1005771b
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x1004c939
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x20c]
push 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1004c876
push dword [ebp - 0x418]
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret 4
Function at 0x1004d431
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jne 0x1004d456
xor eax, eax
jmp 0x1004d4e9
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push esi
push str.SYSTEMCurrentControlSetServices_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004d4e7
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, esi
push eax
push esi
jmp 0x1004d4c5
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10064053
pop ecx
pop ecx
test eax, eax
je 0x1004d4d7
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1004d4a4
jmp 0x1004d4da
xor esi, esi
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10031bc0
mov esp, ebp
pop ebp
ret 4
Function at 0x1004d973
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x1017e150
call fcn.10077149
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x1004d9de
lea eax, [ebp - 0x218]
push eax
call fcn.10064038
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.10020030
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.10064038
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.10021c90
xor ebx, ebx
cmp word [esi], bx
jne 0x1004da18
mov eax, ebx
jmp 0x1004da1f
push esi
call fcn.10064038
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.10021c90
mov esi, str..lnk
push esi
call fcn.10064038
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.10021c90
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x1004db2d
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.10054b20
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.10054b20
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.10064398
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.1004bff2
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.10064038
pop ecx
test eax, eax
jne 0x1004db1b
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10064398
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x1004db2d
xor esi, esi
inc esi
jmp 0x1004db2f
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.1001ff70
mov eax, esi
call fcn.10077104
ret 4
Function at 0x1004db47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x101eae30]
test al, al
jne 0x1004dbe0
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004dbd7
lea eax, [ebp - 0x20c]
push eax
call fcn.10064563
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.1005771b
pop ecx
pop ecx
test eax, eax
jne 0x1004dbcf
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.1005771b
pop ecx
pop ecx
test eax, eax
je 0x1004dbd7
mov byte [0x101eae30], bl
jmp 0x1004dbdd
mov bl, byte [0x101eae30]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031bc0
mov esp, ebp
pop ebp
ret
Function at 0x1004e733
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004e79e
lea eax, [ebp - 0x20c]
push 0x101d76fc
push eax
call fcn.10064c83
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1004dbee
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret 4

Function at 0x1004eb97
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x1017e2fe
call fcn.10077149
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x250], 0
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x24c], ebx
call fcn.10054b20
add esp, 0xc
call fcn.1003d9ea
test al, al
je 0x1004ebf5
push esp
push esi
push esi
push esp
pop esi
push ebp
pop edx
push ecx
push edx
pop esp
pop edi
push edx
pop edi
push ebp
pop eax
pop ebx
push ebp
mov ebx, dword [ebp - 0x24c]
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
jmp 0x1004ed32
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004ed24
call fcn.1003db43
test al, al
je 0x1004ec53
push esi
push edi
push esi
pop eax
push ecx
push ecx
push ebx
pop ecx
push ecx
pop edi
push edx
push edx
push eax
push esp
push eax
pop esp
pop edi
pop ebp
pop esp
pop edx
push ecx
push edi
push ebp
pop esi
pop esi
push eax
pop edx
pop ebp
pop ebx
pop ebx
mov ebx, dword [ebp - 0x24c]
call fcn.1003d7c2
test al, al
je 0x1004ec6e
push ebx
push ecx
push edx
push ebp
pop esi
pop esp
push eax
push eax
pop edi
push edx
push ecx
push eax
pop edx
push esp
push ebp
push edi
push esp
push esp
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x1004ec9e
lea eax, [ebp - 0x218]
push eax
call fcn.10064038
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10020030
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10041618
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.1001ff70
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.1003cd68
pop ecx
pop ecx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.1003cfda
mov esi, dword [ebp - 0x254]
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1004ec09
call fcn.10077104
ret
Function at 0x1004efdd
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x1004f86f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x1004f926
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x10180a1c
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x10180a1c
call ebx
push dword [ebp - 0xc]
call ebx
push 0x10180a1c
call ebx
push dword [ebp - 8]
call ebx
push 0x10180a1c
call ebx
push edi
push dword [ebp - 0x10]
call fcn.100650d0
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x1004f906
push edi
push dword [ebp - 0xc]
call fcn.100650d0
pop ecx
pop ecx
test eax, eax
je 0x1004f922
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x1004f926
mov ecx, dword [ebp - 0x10]
jmp 0x1004f8b6
mov byte [ebp - 1], 1
call fcn.1003dab9
test al, al
je 0x1004f943
pop ebp
push ebx
push ebx
pop ecx
pop edx
pop eax
push ecx
pop ebp
pop edx
pop ecx
push edx
pop edx
pop ebx
pop edi
push edi
pop ebp
pop ecx
pop eax
pop edx
push edi
call fcn.1003d84c
test al, al
je 0x1004f963
push edi
push ebx
push ebx
push edi
push ebp
pop edi
pop edi
pop ebx
pop edi
push esi
push ebx
pop ecx
pop eax
pop esp
push ecx
push eax
push esi
pop eax
push eax
pop edx
pop esi
push edi
pop esp
cmp byte [ebp - 1], 0
jne 0x1004f98a
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.100641d0
pop ecx
test eax, eax
je 0x1004f98a
mov ecx, dword [ebp - 0x18]
push esi
call fcn.1005066b
mov al, 1
jmp 0x1004f98c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005057d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x11c], ebx
xor esi, esi
mov eax, dword [ebx + 0x210]
mov dword [ebx + 0x214], eax
call fcn.1003d624
test al, al
je 0x100505d4
pop edi
pop ebx
push esp
push ecx
pop ecx
pop edi
pop eax
pop eax
pop esi
push edi
push esp
push eax
push esp
push edi
push ecx
push esp
push edi
push esi
push ebp
pop esi
push ebx
pop eax
pop edi
pop edx
push esp
push ecx
mov ebx, dword [ebp - 0x11c]
xor esi, esi
mov edi, 0x114
lea eax, [ebp - 0x118]
push edi
push esi
push eax
call fcn.10054b20
add esp, 0xc
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x1005060f
mov ecx, ebx
call fcn.1004fdf9
jmp 0x10050624
mov edi, esi
test esi, esi
jne 0x10050624
mov ecx, ebx
call fcn.1004fca3
inc edi
mov esi, eax
cmp edi, 0xa
jl 0x10050611
mov eax, dword [ebx + 0x214]
mov ecx, 0x1b0
sub eax, dword [ebx + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret
Function at 0x10053a59
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
call fcn.1003d84c
test al, al
je 0x10053a8e
pop edx
push eax
pop ecx
push ecx
pop edx
push esp
push edi
push ebx
pop edx
push esp
push edx
pop ebp
pop ebx
pop edx
pop ebx
pop edx
pop esp
pop ebx
pop ebx
call fcn.1003d59a
test al, al
je 0x10053ab5
pop ecx
push ebx
pop ebp
pop esi
push edi
push ecx
push esi
push ecx
push ebx
push ebp
pop ecx
pop ebp
pop ebx
push edx
push esp
pop esp
pop eax
pop esi
push eax
pop eax
push edi
push ebx
pop ebx
push edx
push edx
pop ecx
push edi
pop esi
pop edi
pop esp
call fcn.1003d9a5
test al, al
je 0x10053ace
pop esi
pop eax
pop esp
push edx
push esi
push edi
push eax
push edx
pop ebp
pop edi
pop edi
pop edi
pop esp
push edx
pop ebp
push edi
call fcn.1003d77d
test al, al
je 0x10053aea
push ecx
pop esi
pop ebp
pop edx
pop eax
pop esp
push ebx
push esi
pop edx
pop esp
push ebp
pop ebx
push esp
push edi
pop ebp
push ebx
push ebx
pop ebx
pop esp
call fcn.1003d5df
test al, al
je 0x10053b0a
pop esp
pop esi
pop edi
pop esi
pop ebp
push ebp
push ecx
pop ebp
push eax
push eax
push edx
pop edi
push edi
push esp
pop edx
push edi
pop ebx
pop edi
push ebx
pop eax
pop ecx
pop esp
push esi
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10053b19
xor eax, eax
jmp 0x10053bb4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10182bbc
push dword [ebx]
call esi
push 0x10184250
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
mov edi, str.Wow64RevertWow64FsRedirection
mov dword [ebx + 0x18], eax
push edi
push dword [ebx]
call esi
push str.GetSystemWow64DirectoryW
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
call fcn.1003d9ea
test al, al
je 0x10053b95
pop ecx
pop edx
push esi
pop esp
push esi
push esp
pop esi
push esp
push ebp
pop ecx
pop edi
push esp
pop edi
push eax
push esp
push edi
pop esi
pop ecx
pop esi
pop edx
push ecx
push edx
push edx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, str.Wow64RevertWow64FsRedirection
cmp dword [ebx + 4], 0
je 0x10053b12
push edi
push dword [ebx + 4]
call esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x20], eax
call esi
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006a3a9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006a069

Function at 0x1006c1d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006c057
Function at 0x100813c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x10081409
mov al, byte [esi]
push eax
call fcn.1008d560
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x100813e7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x100827e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10082801
cmp dword [esi + 0x8c], 0
je 0x10082801
push 2
push 3
push esi
call fcn.1008db30
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1008f700
add esp, 4
test esi, esi
je 0x10082824
cmp dword [esi + 0x8c], 0
je 0x10082824
push 3
push esi
call fcn.1008db70
add esp, 8
pop esi
pop ebp
ret

Function at 0x100834b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x100834c5
pop ebp
jmp fcn.10083460
mov al, 1
pop ebp
ret
Function at 0x1008a8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x1008a924
push esi
push 1
push edi
call fcn.1007db20
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.1007db20
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1008a95a
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x1018ca88
push 2
push eax
call fcn.1006486b
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1006486b
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x1008ada0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.1008b2e0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x1008ae5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x1008ae1c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031bc0
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.100b4330
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.1008a960
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret