joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54fcd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esi + 8]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5965b8
push str._sprofiles_trailingstops.ini
lea eax, [esp + 0x24]
push 0xff
push eax
mov dword [esi + 0x37f0], ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x2c]
push 0x581660
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x54fec2
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov edi, eax
add esp, 4
shr edi, 4
cmp edi, ebx
jle 0x54fe02
mov eax, dword [esi + 0x37ec]
cmp eax, ebx
je 0x54fd70
cmp edi, dword [esi + 0x37f4]
jle 0x54fdcc
cmp eax, ebx
je 0x54fd70
push eax
call fcn.004c2eb0
add esp, 4
lea eax, [edi + 0x12]
shl eax, 4
push eax
call fcn.004c2e90
add esp, 4
cmp eax, ebx
mov dword [esi + 0x37ec], eax
jne 0x54fdc3
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x37f4], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.TradeBase:_not_enough_memory_for_trailing_stops
push 1
push 0x596558
call fcn.004aa400
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
lea edx, [edi + 0x10]
mov dword [esi + 0x37f4], edx
mov ecx, dword [esi + 0x37ec]
mov eax, edi
push ebp
push 1
shl eax, 4
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x54fdf8
mov dword [esi + 0x37f0], edi
mov dword [esi + 0x37f8], ebx
jmp 0x54fe02
mov dword [esi + 0x37f8], 1
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x37ec]
add esp, 4
cmp eax, ebx
je 0x54fec2
mov eax, dword [esi + 0x37f0]
xor ebp, ebp
cmp eax, ebx
jle 0x54fec2
xor edi, edi
mov dword [esp + 0x10], 1
mov ecx, dword [esi + 0x37ec]
add ecx, edi
cmp dword [ecx], 1
jl 0x54fe56
cmp dword [ecx + 8], 5
jl 0x54fe56
mov edx, dword [esp + 0x18]
sub edx, dword [ecx + 0xc]
cmp edx, 0x76a700
jle 0x54fea1
cmp dword [esp + 0x10], eax
jge 0x54fe77
add eax, ebx
shl eax, 4
push eax
mov eax, dword [esi + 0x37ec]
lea edx, [edi + eax + 0x10]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov ecx, dword [esi + 0x37f0]
sub ebx, 0xfffffff
dec ecx
dec ebp
mov dword [esi + 0x37f0], ecx
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esi + 0x37f8], 1
mov dword [esp + 0x10], ecx
sub edi, 0x10
mov eax, dword [esp + 0x10]
inc ebp
add ebx, 0xfffffff
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x37f0]
add edi, 0x10
cmp ebp, eax
jl 0x54fe34
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x550240
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push edi
call ebx
push edi
mov dword [esi + 0x37f0], 0
mov dword [esi + 0x37f8], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
cmp dword [esi + 0x37f8], 1
jne 0x5502f4
mov eax, dword [esi + 0x37c0]
test eax, eax
jne 0x5502f4
push 0x5965b8
push str._sprofiles_trailingstops.ini
lea eax, [esp + 0x14]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x1c]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x5502ea
mov ecx, dword [esi + 0x37ec]
test ecx, ecx
je 0x5502e0
mov eax, dword [esi + 0x37f0]
test eax, eax
jle 0x5502e0
push ebx
push 1
shl eax, 4
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x37f8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x55024d
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push edi
call ebx
push edi
mov dword [esi + 0x37f0], 0
mov dword [esi + 0x37f8], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
cmp dword [esi + 0x37f8], 1
jne 0x5502f4
mov eax, dword [esi + 0x37c0]
test eax, eax
jne 0x5502f4
push 0x5965b8
push str._sprofiles_trailingstops.ini
lea eax, [esp + 0x14]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x1c]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x5502ea
mov ecx, dword [esi + 0x37ec]
test ecx, ecx
je 0x5502e0
mov eax, dword [esi + 0x37f0]
test eax, eax
jle 0x5502e0
push ebx
push 1
shl eax, 4
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x37f8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x555130
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov dword [esi + 0x1f8], 1
lea ecx, [esi + 0x18]
call fcn.00508240
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x55519d
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x555186
push str.TradeContext:_deadlock_error
push 4
push 0x596558
call fcn.004aa400
mov eax, dword [esi + 0x1f4]
add esp, 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x1f8], 0
mov ecx, 0x18
xor eax, eax
lea edi, [esi + 0x210]
rep stosd dword es:[edi], eax
mov ecx, 0x38
lea edi, [esi + 0x28c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x370]
xor edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x280]
test eax, eax
je 0x5551e9
push eax
call edi
mov eax, dword [esi + 0x284]
test eax, eax
je 0x5551f6
push eax
call edi
add esi, 0x208
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
ret

Function at 0x555340
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ebx, ecx
jne 0x55535c
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 8
lea ebp, [ebx + 0x208]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x55538b
push 0
push 0x92
push esi
mov ecx, ebx
call fcn.005566f0
pop edi
pop esi
pop ebp
mov eax, 0x92
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
lea edi, [ebx + 0x210]
mov ecx, 0x18
push 1
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebp
mov dword [ebx + 0x27c], eax
call esi
mov eax, dword [ebx + 0x1f4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x5553ed
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x1c], 0x103
je 0x5553ed
mov edx, dword [ebx + 0x1f4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1f4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebx + 0x380]
push eax
call esi
cmp dword [ebx + 0x1f4], edi
jne 0x55545b
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push 0x555ce0
push 0x3e800
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
xor edx, edx
cmp eax, edi
mov dword [ebx + 0x1f4], eax
setne dl
mov eax, edx
cmp eax, 1
je 0x55545b
push edi
push ebp
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
push edi
push 2
push eax
mov ecx, ebx
call fcn.005566f0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x561b70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
je 0x561d3d
push 0x581660
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x561bbe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x561d3d
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov edi, dword [esp + 0x20]
add esp, 4
cmp eax, 1
mov dword [edi], eax
jl 0x561d21
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
add eax, 0xa
push eax
call ebp
mov esi, eax
add esp, 4
test esi, esi
je 0x561d21
mov ecx, dword [edi]
push ebx
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x561c1d
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
jmp 0x561ce3
cmp dword [edi], 0x933a
jne 0x561c43
cmp dword [esi + 0x9336], 0xd66556
jne 0x561c43
cmp dword [esi + 0x9271], 0x1ce63fa6
jne 0x561c43
mov dword [edi], 0x9279
mov edx, dword [edi]
mov ecx, 0x595808
push edx
push esi
call fcn.00434600
test eax, eax
je 0x561c08
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [edi]
add esp, 4
add edx, 0xfffffff8
mov ecx, esi
mov dword [edi], edx
call fcn.004339d0
mov eax, dword [edi]
cmp dword [eax + esi - 4], 0xfaacc2
jne 0x561c98
add eax, 0xfffffffc
mov dword [edi], eax
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x200]
push eax
mov dword [esp + 0x1c], eax
call ebp
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x561cc0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x561d3d
push eax
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push esi
lea ecx, [esp + 0x20]
call fcn.0042c520
test eax, eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
jne 0x561cfe
call esi
push ebx
call esi
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x561d3d
push eax
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call esi
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [edi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x561d17
push eax
call esi
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x561d3d
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x561eb0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push 1
mov esi, ecx
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
push esi
call ebx
test eax, eax
jne 0x561efa
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x80090016
jne 0x561efc
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
push esi
call ebx
test eax, eax
jne 0x561efa
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x561f40
Capabilities:
Encrypt data using des via winapi

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
push edi
mov edi, ecx
je 0x5620ae
mov dl, byte [eax + 1]
mov cl, byte [eax]
push ebx
mov bl, dl
mov byte [esp + 8], cl
push esi
shr bl, 1
shl cl, 7
or bl, cl
mov cl, byte [eax + 2]
mov byte [esp + 0xd], bl
mov bl, cl
shr bl, 2
shl dl, 6
or bl, dl
mov dl, byte [eax + 3]
mov byte [esp + 0xe], bl
mov bl, dl
shr bl, 3
shl cl, 5
or bl, cl
mov cl, byte [eax + 4]
mov byte [esp + 0xf], bl
mov bl, cl
shr bl, 4
shl dl, 4
or bl, dl
mov dl, byte [eax + 5]
mov al, byte [eax + 6]
mov byte [esp + 0x10], bl
mov bl, dl
shr bl, 5
shl cl, 3
or bl, cl
mov cl, al
shr cl, 6
shl dl, 2
or cl, dl
mov byte [esp + 0x11], bl
shl al, 1
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], al
xor esi, esi
mov ebx, 8
mov al, byte [esp + esi + 0xc]
mov dl, al
mov cl, al
shr dl, 1
and dl, 0x40
and cl, 0x40
xor dl, cl
mov cl, al
shr dl, 1
and cl, 0x20
xor dl, cl
mov cl, al
shr dl, 1
and cl, 0x10
xor dl, cl
mov cl, al
shr dl, 1
and cl, bl
xor dl, cl
mov cl, al
shr dl, 1
and cl, 4
xor dl, cl
mov cl, al
not cl
shr dl, 1
and cl, 2
xor dl, cl
je 0x562012
or al, 1
jmp 0x562014
and al, 0xfe
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, ebx
jl 0x561fcc
cmp dword [edi], 0
je 0x5620a0
lea edx, [esp + 0xc]
test edx, edx
je 0x5620a0
mov eax, dword [edi + 4]
lea esi, [edi + 4]
test eax, eax
je 0x562041
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [esi], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push esi
push 1
mov dword [esp + 0x28], eax
mov eax, dword [edi]
push 0
lea edx, [esp + 0x20]
push 0x14
push edx
push eax
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 2
mov word [esp + 0x2e], 0
mov dword [esp + 0x30], 0x6601
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x562095
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
pop edi
add esp, 0x1c
ret 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret 4
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x1c
ret 4
mov eax, 1
pop edi
add esp, 0x1c
ret 4
Function at 0x5620c0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 8
mov eax, dword [ecx]
push ebx
push ebp
xor edx, edx
push esi
push edi
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x56219d
mov eax, dword [ecx + 4]
test eax, eax
je 0x56219d
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x56219d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x56219d
mov eax, dword [ecx]
mov edi, dword [esp + 0x20]
mov esi, eax
and esi, 7
add esi, 8
cmp edi, esi
jb 0x56219d
xor esi, esi
test eax, eax
jbe 0x56217f
mov edi, 8
sub edi, ebx
lea ecx, [esi + ebx]
xor edx, edx
mov dword [esp + 0x1c], 8
lea ebp, [edi + ecx]
cmp ebp, eax
jb 0x562140
sub eax, esi
mov edx, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edx
push 0
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x56218d
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x24]
add esi, 8
mov dword [esp + 0x10], edx
mov eax, dword [ecx]
cmp esi, eax
jb 0x562121
pop edi
pop esi
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
add esp, 8
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc

Function at 0x5621b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
mov ecx, dword [ecx]
push esi
test ecx, ecx
push edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x10
je 0x56228d
mov edi, dword [esp + 0x14]
test edi, edi
je 0x56228d
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x56228d
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x56220e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
push 0
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x562242
mov eax, dword [esp + 8]
test eax, eax
je 0x562234
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 8
ret 0xc
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
mov eax, dword [esp + 8]
jne 0x562278
test eax, eax
je 0x56226a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 8
ret 0xc
test eax, eax
je 0x562283
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0xc
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0xc
Function at 0x5623ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x562403
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5937a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5623f6
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x562405
xor eax, eax
pop esi
leave
ret 4
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.h129xxms]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.h129xxms]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.h129xxms]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.h129xxms]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.h129xxms]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.h129xxms]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4098d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040c7e0
add esp, 0xc
push ebx
call fcn.0040a3bb
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40993e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0040a50c
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040afa5
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40b370
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42ff58
call fcn.0040ae10
push 1
call fcn.0040a8d1
pop ecx
test al, al
je 0x40b34e
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040a882
mov byte [ebp - 0x24], al
mov eax, dword [0x431b8c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40b34e
test eax, eax
jne 0x40b26c
mov dword [0x431b8c], ecx
push 0x42eb80
push 0x42eb5c
call fcn.00410f94
pop ecx
pop ecx
test eax, eax
je 0x40b24f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40b33e
push 0x42eb58
push 0x42eb50
call fcn.00410f4f
pop ecx
pop ecx
mov dword [0x431b8c], 2
jmp 0x40b271
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040a8b4
pop ecx
call fcn.0040b483
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40b2a2
push esi
call fcn.0040a7ee
pop ecx
test al, al
je 0x40b2a2
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.0040b489
mov esi, eax
cmp dword [esi], edi
je 0x40b2c0
push esi
call fcn.0040a7ee
pop ecx
test al, al
je 0x40b2c0
push dword [esi]
call fcn.0040ff22
pop ecx
call fcn.00410a8a
mov edi, eax
call fcn.0040cf32
mov esi, dword [eax]
call fcn.0040cf2c
push edi
push esi
push dword [eax]
call main
add esp, 0xc
mov esi, eax
call fcn.0040aa48
test al, al
je 0x40b355
test bl, bl
jne 0x40b2f3
call fcn.0040ff04
push 0
push 1
call fcn.0040a90a
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40b33e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0040aaa4
push esi
call fcn.0040fed8
push dword [ebp - 0x20]
call fcn.0040feee
int3
call fcn.004c6000
jmp 0x40b1e2

Function at 0x4198a6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419aef

Function at 0x41d44f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d45a