joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2784
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a4
mov eax, dword [ebp - 8]
call fcn.004056a4
mov ebx, 0x4d3e70
xor eax, eax
push ebp
push 0x4c2988
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
call fcn.0040a044
add eax, dword [0x4d3ef4]
lea edx, [ebp - 0x1c]
call fcn.00409f08
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00405278
xor edx, edx
push ebp
push 0x4c2950
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x419f50]
call fcn.0041ecac
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0040a408
test al, al
je 0x4c2816
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_DeleteFileA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419f50]
call fcn.0041ecac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c293f
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041ea24
mov eax, dword [ebx]
call fcn.0040a044
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 8
add edx, eax
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebx]
call fcn.0040a044
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041ea94
mov eax, dword [ebx]
call fcn.0040a044
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
add edx, eax
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041ea24
mov eax, dword [ebx]
call fcn.0040a044
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
add edx, eax
add edx, dword [ebp - 0x18]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041ea94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2946
mov eax, dword [ebp - 0x10]
call fcn.00404324
mov eax, dword [ebp - 0xc]
call fcn.00404324
ret
Function at 0x4c3054
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c3125
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040ab14
lea ecx, [ebp - 0x108]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004374b0
mov eax, dword [ebp - 0x108]
mov edx, 0x4c313c
call fcn.0040564c
je 0x4c30f5
lea ecx, [ebp - 0x10c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004374b0
mov eax, dword [ebp - 0x10c]
mov edx, 0x4c3148
call fcn.0040564c
je 0x4c30f5
lea eax, [ebp - 4]
mov edx, 0x4c3148
call fcn.004054f0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c312c
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00405248
lea eax, [ebp - 4]
call fcn.00405224
ret

Function at 0x4c352c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a4
mov eax, dword [ebp - 8]
call fcn.004056a4
xor eax, eax
push ebp
push 0x4c366d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x4d3ef8]
add ebx, 0x64
xor edx, edx
push ebp
push 0x4c363d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x419f50]
call fcn.0041ecac
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0040a408
test al, al
je 0x4c359e
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_DeleteFileA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004056b4
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419f50]
call fcn.0041ecac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c362c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041ea94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3633
mov eax, dword [ebp - 0x10]
call fcn.00404324
mov eax, dword [ebp - 0xc]
call fcn.00404324
ret
Function at 0x4c82f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a4
xor eax, eax
push ebp
push 0x4c8433
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c8403
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004056b4
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a408
test al, al
jne 0x4c8373
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004036b0
lea eax, [ebp - 0x1d0]
call fcn.0040344c
call fcn.00403088
push dword [0x4d3e50]
push 0x4c844c
push dword [0x4d3e54]
push 0x4c844c
push dword [0x4d3e58]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004055b8
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004c2534
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.004059d4
call fcn.00403d6c
call fcn.00403088
lea eax, [ebp - 0x1d0]
call fcn.00403778
call fcn.00403088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c840d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c843a
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405248
lea eax, [ebp - 4]
call fcn.00405224
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x2c0e1fd0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x216455d7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x421f5b
Capabilities:
Terminate process

Disassembly:
call fcn.00422a2b
push 0x69
pop ecx
call fcn.00423041
push eax
push 1
call fcn.0042405d
test byte [0x44e700], 0x80
pop ecx
pop ecx
jne 0x439d01
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push ecx
push ecx
mov ecx, 0x406df8
call fcn.0044257e
pop ecx
pop ecx
jmp 0x421f7f

Function at 0x4221e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
mov eax, dword [0x449054]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
and dword [ebp - 8], esi
push edi
mov edi, 0xc7
cmp eax, edi
jg 0x422205
mov edi, eax
mov ecx, dword [ecx + 0x20]
push 0x5c
pop ebx
movzx edx, word [ecx + 2]
lea eax, [ecx + 4]
cmp edx, 0x3a
jne 0x43a564
cmp word [eax], bx
jne 0x43a564
mov esi, eax
test esi, esi
je 0x42227d
add esi, 2
xor eax, eax
movzx ebx, word [esi]
mov word [esi], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42226b
imul eax, edi, 0x2dc6c0
cmp dword [ebp - 0x10], 0
ja 0x42226b
jb 0x43a59b
cmp dword [ebp - 0x14], eax
jb 0x43a59b
mov dword [0x449054], edi
test esi, esi
je 0x422278
mov word [esi], bx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp 0x42223b
cmp word [ecx], bx
jne 0x42227d
cmp dx, bx
jne 0x42227d
push ebx
mov ebx, dword [sym.imp.VCRUNTIME140.dll_wcschr]
push eax
call ebx
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42227d
lea eax, [esi + 2]
push 0x5c
push eax
call ebx
pop ecx
pop ecx
jmp 0x422224
push 0
push 0x2dc6c0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0042fd70
mov edi, eax
jmp 0x42226b

Function at 0x4222be
Capabilities:
Terminate process

Disassembly:
test byte [0x44e700], 0x80
push ebx
push esi
push edi
mov edi, ecx
jne 0x43a5b4
mov ebx, 0x44c93c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
call fcn.004276f0
mov esi, 0x449060
cmp word [esi + 8], 0x32
je 0x42232b
cmp dword [esi + 0x10], 0
jne 0x422320
add esi, 0x24
cmp esi, 0x4492e8
jl 0x4222e8
mov eax, dword [0x44b0e8]
test eax, eax
je 0x422312
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4222f5
mov edx, dword [esi]
mov ecx, esi
push 0
call fcn.00422339
pop ecx
jmp 0x4222ef
push ecx
push ecx
mov ecx, 0x406df8
call fcn.0044257e
pop ecx
pop ecx
jmp 0x4222d0
Function at 0x423041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x44c968]
test ecx, ecx
je 0x423094
mov eax, esi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4230c1
push eax
push dword [0x44c968]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4230c1
and esi, 0xf
je 0x423089
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub esi, 1
jne 0x42307b
cmp word [eax], 0
je 0x4230c1
add eax, 2
pop esi
ret
cmp dword [0x44b0e4], 0
jne 0x43aadf
xor eax, eax
push ecx
mov word [0x44b908], ax
call fcn.00422b30
pop ecx
mov ecx, eax
mov dword [0x44c968], ecx
test ecx, ecx
jne 0x42304e
jmp 0x43ab32
mov eax, 0x401404
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43ab05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___doserrno]
mov eax, dword [eax]
test eax, eax
jne 0x43ab05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
test eax, eax
je 0x4230a1
jle 0x43ab0f
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x8007000e
je 0x43ab21
cmp eax, 0x80070008
jne 0x4230a1
push 0x1c
mov edx, 0x401f54
push 2
pop ecx
call fcn.00425db2
jmp 0x43ab3f
push 0x406eb0
push 1
call fcn.0042405d
pop ecx
pop ecx
push 4
pop ecx
call fcn.004222be
int3
Function at 0x42361a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
xor edx, edx
push edi
mov dword [eax], edx
lea eax, [ebp - 8]
push eax
push ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebx], edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x42369a
push esi
mov ecx, edi
call fcn.00426940
mov esi, eax
push esi
push edi
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42368d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x40131c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42368d
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test esi, esi
je 0x423699
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x425db2
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
cmp eax, 2
jne 0x425e82
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
mov ecx, eax
call fcn.004274c7
test eax, eax
jne 0x43b7c4
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push edi
push 0x4013a4
call esi
test eax, eax
jne 0x43b7d0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0x88], eax
call edi
mov esi, eax
mov ecx, esi
call fcn.00426940
mov ebx, eax
xor eax, eax
push eax
push eax
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x90]
push eax
push dword [ebp - 0x88]
call edi
cmp eax, 1
jl 0x425e93
dec eax
push eax
push ebx
push dword [ebp - 0x8c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
test ebx, ebx
je 0x425e73
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e434
leave
ret
cmp eax, 1
je 0x425de3
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x425e17
push 0
call fcn.00422658
pop ecx
push ebx
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__cputws]
jmp 0x425e72
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4013a4
call esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edx, eax
mov eax, ebx
pop ecx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43b7f5
sub eax, esi
lea ecx, [ebp - 0x8c]
push edi
sar eax, 1
push ecx
add eax, eax
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x425e73
Function at 0x42777a
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x401448
push 0x400
lea eax, [ebp - 0x804]
xor esi, esi
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], esi
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
add esp, 0x10
test eax, eax
jne 0x43c184
cmp dword [ebp - 0x808], esi
jbe 0x43c184
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4277d4
sub ecx, edx
sar ecx, 1
push 0x5c
pop edx
movzx eax, word [ebp + ecx*2 - 0x806]
cmp ax, dx
je 0x42781e
cmp eax, 0x3a
je 0x42781e
cmp eax, 0x2f
je 0x42781e
mov word [ebp + ecx*2 - 0x804], dx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x800
jae 0x42783d
xor eax, eax
mov word [ebp + ecx - 0x804], ax
lea ecx, [ebp - 0x804]
call fcn.00427735
mov ecx, eax
call 0x427842
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e434
leave
ret
call fcn.0042e569
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov esi, edi
cmp word [edi], ax
je 0x42785d
add esi, 2
cmp word [esi], ax
jne 0x427855
sub esi, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
push dword [0x44b0e8]
lea ebx, [esi - 2]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43c193
mov edx, ebx
xor ebx, ebx
movzx ecx, byte [ebp + ebx - 8]
mov eax, ecx
shr ecx, 4
and eax, 0xf
inc ebx
mov ax, word [eax*2 + 0x41f300]
mov word [edx], ax
lea edx, [edx - 4]
mov ax, word [ecx*2 + 0x41f300]
mov word [edx + 2], ax
cmp ebx, 4
jl 0x427884
push 0x401480
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401478
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401470
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401468
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401460
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401458
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401450
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
mov word [esi], ax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov ecx, 0x401428
call fcn.004279f3
jmp 0x427829
push 0x1f65
call fcn.00422658
pop ecx
jmp 0x427880
mov ebx, dword [ebp - 4]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x64
jl 0x427863
push 0x1f65
call fcn.00422658
pop ecx
xor eax, eax
jmp 0x427957
Function at 0x427842
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x401448
push 0x400
lea eax, [ebp - 0x804]
xor esi, esi
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], esi
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
add esp, 0x10
test eax, eax
jne 0x43c184
cmp dword [ebp - 0x808], esi
jbe 0x43c184
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4277d4
sub ecx, edx
sar ecx, 1
push 0x5c
pop edx
movzx eax, word [ebp + ecx*2 - 0x806]
cmp ax, dx
je 0x42781e
cmp eax, 0x3a
je 0x42781e
cmp eax, 0x2f
je 0x42781e
mov word [ebp + ecx*2 - 0x804], dx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x800
jae 0x42783d
xor eax, eax
mov word [ebp + ecx - 0x804], ax
lea ecx, [ebp - 0x804]
call fcn.00427735
mov ecx, eax
call 0x427842
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e434
leave
ret
call fcn.0042e569
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov esi, edi
cmp word [edi], ax
je 0x42785d
add esi, 2
cmp word [esi], ax
jne 0x427855
sub esi, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
push dword [0x44b0e8]
lea ebx, [esi - 2]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43c193
mov edx, ebx
xor ebx, ebx
movzx ecx, byte [ebp + ebx - 8]
mov eax, ecx
shr ecx, 4
and eax, 0xf
inc ebx
mov ax, word [eax*2 + 0x41f300]
mov word [edx], ax
lea edx, [edx - 4]
mov ax, word [ecx*2 + 0x41f300]
mov word [edx + 2], ax
cmp ebx, 4
jl 0x427884
push 0x401480
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401478
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401470
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401468
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401460
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401458
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
push 0x401450
mov edx, esi
mov ecx, edi
call fcn.0042795c
pop ecx
test eax, eax
jne 0x43c1a3
mov word [esi], ax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov ecx, 0x401428
call fcn.004279f3
jmp 0x427829
push 0x1f65
call fcn.00422658
pop ecx
jmp 0x427880
mov ebx, dword [ebp - 4]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x64
jl 0x427863
push 0x1f65
call fcn.00422658
pop ecx
xor eax, eax
jmp 0x427957
Function at 0x427a11
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x401488
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x427a7a
mov ecx, 0x4014b0
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427a7e
test dx, dx
je 0x427a60
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427a7e
add eax, 4
add ecx, 4
test dx, dx
jne 0x427a3e
xor ecx, ecx
xor eax, eax
test ecx, ecx
sete al
mov dword [0x44d1a0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e434
leave
ret
xor eax, eax
jmp 0x427a6e
sbb ecx, ecx
or ecx, 1
jmp 0x427a62
Function at 0x429b20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x18], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x43d382
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
mov dword [ebp - 8], ecx
lea eax, [edi + edi]
push eax
call fcn.004299b3
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
lea ecx, [ecx]
cmp eax, esi
je 0x429c43
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ebx, dword [ebx + 0x18]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
mov ecx, dword [ecx]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
and ebx, edx
mov edx, dword [ebp - 8]
mov edi, dword [edx]
cmp dword [edi + ebx*8], esi
jne 0x429bdb
mov dword [edi + ebx*8], eax
mov dword [edi + ebx*8 + 4], eax
mov ebx, dword [ebp - 0x18]
mov eax, ecx
jmp 0x429b80
mov edx, dword [edi + ebx*8 + 4]
mov esi, dword [eax + 8]
cmp esi, dword [edx + 8]
mov esi, dword [ebp + 8]
je 0x43d38d
mov edi, edi
lea esi, [edx + 4]
mov dword [ebp - 4], esi
cmp dword [edi + ebx*8], edx
jne 0x429c31
mov esi, dword [eax + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], ecx
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], edx
mov edx, dword [ebp - 4]
mov esi, dword [edx]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov dword [esi], eax
mov esi, dword [ebp - 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + ebx*8], eax
mov esi, dword [ebp + 8]
jmp 0x429bd4
mov edx, dword [ebp - 4]
mov esi, dword [eax + 8]
mov edx, dword [edx]
cmp esi, dword [edx + 8]
jne 0x429bf0
jmp 0x43d3d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x40f758
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x43d3c9
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov dword [edx], esi
mov edx, dword [esi + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [edx], eax
mov edx, dword [ebp - 4]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [edi + ebx*8 + 4], eax
jmp 0x429bd4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0x14], edx
mov esi, dword [ebp - 0x14]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x429c2c