joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1033cdf0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1036565b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x10], eax
mov byte [eax], 0
lea eax, [esp + 0x14]
push 0x11c
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0x11c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1033ce7f
cmp dword [esp + 0x18], 6
mov eax, dword [esp + 0x10]
setae cl
mov byte [eax], cl
mov dword [esp + 0x140], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x14]
call fcn.10150140
test al, al
je 0x1033ceb2
lea ecx, [esp + 0x10]
call fcn.1014f370
test al, al
jne 0x1033ceb2
xor bl, bl
jmp 0x1033cf50
lea esi, [edi + 4]
xor ecx, ecx
mov edx, esi
call fcn.1014dcc0
test al, al
jne 0x1033ced6
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1033ced1
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x1c]
mov ecx, 0x1a
mov edx, esi
call fcn.1014dcc0
test al, al
jne 0x1033cefd
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1033cef8
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x34]
mov ecx, 2
mov edx, esi
call fcn.1014dcc0
test al, al
jne 0x1033cf24
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1033cf1f
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x4c]
mov ecx, 0xb
mov edx, esi
call fcn.1014dcc0
test al, al
jne 0x1033cf4b
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1033cf46
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [edi], 1
mov bl, 1
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.1014eaf0
mov al, bl
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.1033d458
add esp, 0x134
ret
Function at 0x4016f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x404f28
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40170c
Capabilities:
Delete file
Move file

Disassembly:
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x4015a0
Capabilities:
Create thread
Enumerate threads
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
xorps xmm0, xmm0
mov dword [esp + 8], 0
push edi
push eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x14], 0x401170
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], str.Ran_Online
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Ran_Online
push str.Ran_Online
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xdac
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
push 0x4014c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x50]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x40168f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
nop
lea eax, [esp + 0x50]
push eax
call esi
lea eax, [esp + 0x50]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call ebx
test eax, eax
jne 0x401670
cmp dword [0x405440], 0
je 0x40171b
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x401713
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x401710
nop dword [eax + eax]
push dword [0x405440]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
cmp dword [esp + 0x40], eax
jne 0x401700
push dword [esp + 0x3c]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x401700
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4016d0
push edi
call ebx
push dword [0x405440]
call ebx
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004019f9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4022c5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402304
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402304
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402304
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402304
cmp dword [ecx + 0x74], 0xe
jbe 0x402304
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41bbf2
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call 0x3b7710
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x41bc1c
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call 0x3b7880
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x41bc06
pop esi
pop edi
ret 0xc

Function at 0x41bf02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.00421221
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.0041bbf2
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push 0x49c018
push eax
call fcn.004213e0
pop ecx
test eax, eax
pop ecx
jne 0x41c033
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00421221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.00421221
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0041bbf2
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00421221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.00421221
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.0041bbf2
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004213e0
pop ecx
test eax, eax
pop ecx
je 0x41c04a
push ebx
push ebx
push dword [esi]
call fcn.004212c8
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.00421221
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.004212c8
push ebx
push 0x10
push dword [esi]
call fcn.004212c8
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.004212c8
add esp, 0x40
jmp 0x41c037
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x41bf16
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x41c043

Function at 0x41c08e
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x41c0b7
add edx, edx
xor edx, 0x4c11db7
jmp 0x41c0b9
shl edx, 1
dec ecx
jne 0x41c0a5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x41c09d
pop edi
pop esi
ret
Function at 0x41c241
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x41c266
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00421470
add esp, 0xc
jmp 0x41c279
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00421221
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push 0x49c020
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.004213e0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4
Function at 0x45f710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x49f988], eax
mov edx, 1
mov eax, 0x49f988
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a0344
jl 0x45f724
mov dword [0x49d318], 1
mov dword [0x4a2504], 1
pop edi
ret

Function at 0x45f760
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4a2504], 0
push esi
mov esi, 0x49f988
jne 0x45f77e
call dword [0x48d2e4]
push eax
call fcn.0045f710
add esp, 4
mov dword [0x49d318], 0x270
mov dword [0x49f984], esi
mov ecx, 0xe3
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x45f793
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x45f7c8
mov ecx, dword [esi]
mov eax, dword [0x49f988]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret
Function at 0x468640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov al, byte [0x49d350]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], al
mov dword [esp + 0xe], 0x3e3c0928
mov dword [esp + 0x12], 0x2d2b3d3a
mov dword [esp + 0x16], 0x7e212f2a
mov dword [esp + 0x1a], 0x5b5e7c26
mov word [esp + 0x1e], 0x3f2e
mov byte [esp + 0x20], 0
mov edi, ebp
test ebp, ebp
je 0x4686ab
mov dl, byte [ebp]
test dl, dl
je 0x4686ab
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x4686fe
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x468697
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x468691
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4686b0
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x4686d0
mov al, byte [edi]
cmp al, 0x20
je 0x4686cb
cmp al, 9
jne 0x4686d0
dec edi
cmp edi, ebp
ja 0x4686c1
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x468705
cmp byte [esp + 0x30], 0
je 0x4686f3
mov ecx, dword [esp + 0x28]
push ebp
push 0x492298
call fcn.00477900
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x4686d0
dec edi
jmp 0x4686bd
push esi
push ebp
push ebx
call 0x4c88e0
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x17d22f66
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x28267f7b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x409340
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x4093c0
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x409380
mov eax, dword [0x47b404]
test eax, eax
je 0x4093b0
test ebx, ebx
je 0x409376
or byte [ebx + 0x2b], 1
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
test ebx, ebx
je 0x4093a0
and byte [ebx + 0x2b], 0xfe
call fcn.00409240
test eax, eax
je 0x4093a9
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
call fcn.00409240
test eax, eax
jne 0x409376
xor eax, eax
jmp 0x409376
mov eax, dword [0x47b40c]
mov eax, dword [eax]
jmp 0x40936b
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x409362
jmp 0x409352
Function at 0x471dc0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x471e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x471edb
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x471e61
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x471e49
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x471e59
cmp ecx, 0x40
je 0x471e59
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00471dc0
lea esi, [esi]
lea edi, [edi]
Function at 0x472910
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [sym.imp.msvcrt.dll__osver]
mov ebx, dword [ebp + 0x14]
mov eax, dword [eax]
test ah, 0x80
je 0x472931
mov eax, dword [0x4b4780]
test eax, eax
jne 0x472956
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [0x4b4780], 0
call sub.msvcrt.dll_fflush
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x472ab0
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x472b30
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x20]
jbe 0x472ae5
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub esp, 0x10
sub edx, dword [ebp - 0x28]
sbb ecx, dword [ebp - 0x24]
cmp ecx, 0
jl 0x472a94
jle 0x472ac7
cmp ecx, 0
mov esi, edx
jl 0x472a3d
jle 0x472ad1
mov esi, 0x200
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4b4580
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x14
test eax, eax
je 0x472b00
mov eax, dword [ebp - 0x2c]
cmp esi, eax
ja 0x472b00
xor edi, edi
sub edx, eax
sbb ecx, edi
cmp ecx, 0
jge 0x472a25
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
sub esp, 4
jmp 0x472931
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x47299f
mov eax, 0xffffffff
jmp 0x47294e
cmp edx, 0
jbe 0x472a94
jmp 0x472a2b
cmp edx, 0x200
jbe 0x472a3d
lea esi, [esi]
jmp 0x472a38
jb 0x472931
cmp eax, dword [ebp - 0x28]
nop
ja 0x4729e6
jmp 0x472931
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
jmp 0x472abd
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x472abd
jmp 0x4729d7
Function at 0x473e30
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea esi, [edi + eax - 6]
cmp edi, esi
ja 0x473ec7
lea esi, [esi]
movzx eax, byte [esi]
test al, al
je 0x473ec7
cmp al, 0x58
je 0x473e82
jmp 0x473ee0
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.ADVAPI32.DLL_CryptGenRandom
sub esp, 0xc
test eax, eax
je 0x473ee0
movzx eax, byte [esi]
cmp al, 0xfb
jbe 0x473ef0
mov ebx, dword [0x4b47a4]
test ebx, ebx
jne 0x473e60
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4b47a4
call sub.ADVAPI32.DLL_CryptAcquireContextA
sub esp, 0x14
test eax, eax
je 0x473ed1
mov ebx, dword [0x4b47a4]
jmp 0x473e60
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4b47a4], 0
jmp 0x473e60
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, al
lea ecx, [edx*8]
sub ecx, edx
lea edx, [edx + ecx*8]
shr dx, 0xb
lea edx, [edx + edx*8]
shl edx, 2
sub eax, edx
mov edx, eax
lea eax, [edx + 0x30]
cmp al, 0x39
jbe 0x473f21
add edx, 0x57
mov byte [esi], dl
add esi, 1
jmp 0x473e50
mov byte [esi], al
jmp 0x473f19
Function at 0x10051890
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x100518b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x100d7590
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax

Function at 0x100e1ab0
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov eax, dword [0x101d0fc8]
xor eax, ebp
Function at 0x101b5480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101b54ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101b54ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101b58d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c3b40
push 0x101c3b38
push str.FlsAlloc
push 0x1e
call fcn.101b5bb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b5908
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x101b590e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101b5952
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c3b50
push 0x101c3b48
push str.FlsGetValue
push 0x20
call fcn.101b5bb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b5989
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x101b9558
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101b95f5
push ebx
push esi
call fcn.101b95f8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101b94a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101b95a2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101b95f4
push edi
push eax
call fcn.101b775d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101b95c2
call fcn.101b6e0a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101b95f3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101b94a1
add esp, 0x20
test eax, eax
jne 0x101b95e1
push edi
call fcn.101b6e0a
jmp 0x101b95e9
push ebx
call fcn.101b6e0a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x101be544
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101be54f