joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6fa46950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x6fa46b18
mov edi, dword [0x6fa4d0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x6fa46a38
test byte [0x6fa48088], 8
jne 0x6fa46ac0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x6fa48098], 8
jne 0x6fa46a88
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6fa469da
cmp esi, 3
jbe 0x6fa46a40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x6fa469eb
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6fa4a8a8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x6fa469da
mov dword [esp], 0x6fa48098
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x6fa469b1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x6fa469b1
mov dword [esp], 0x6fa48088
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x6fa4699e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x6fa469a4
mov eax, 0xffffffff
jmp 0x6fa46a38
Function at 0x4027c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x549308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.004025b0
mov eax, esi
mov dword [esp + 0x34], ebx
lea edx, [eax + 2]
jmp 0x402820
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402820
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x18]
call fcn.004028b0
push 0xffffffffffffffff
push ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov word [edi + 4], bx
call fcn.004025b0
cmp dword [esp + 0x28], 8
jb 0x402867
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004e946d
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x402b40
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x14], 0
call fcn.00516c20
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x402b9d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0050fe87
add esp, 0x230
ret
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402c01
lea edx, [esp + 0x2c]
push str.explorer.exe
push edx
call fcn.00510027
add esp, 8
test eax, eax
je 0x402bde
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402bb4
lea edi, [eax + 1]
jmp 0x402c03
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
jmp 0x402c03
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0050fe87
add esp, 0x230
ret
Function at 0x4052d0
Capabilities:
Link many functions at runtime

Disassembly:
push eax
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x405426
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetInit
push eax
call edi
mov ecx, dword [esi]
push str.NetRelease
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.DownToFile
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.DownToBuffer
push eax
call edi
mov ecx, dword [esi]
push str.SimpleHttpPostData
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi]
push str.MakePostData
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi]
push str.HttpPostData
push eax
call edi
mov ecx, dword [esi]
push str.SetProxy
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi]
push str.SetTimeOut
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi]
push str.ReleaseBuffer
push eax
call edi
mov ecx, dword [esi]
push str.ReleasePostData
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi]
push str.EnableHttpGzip
push edx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
push str.GetHttpRetCode
push eax
call edi
mov ecx, dword [esi]
push str.AppendHttpHeader
push ecx
mov dword [esi + 0x40], eax
call edi
mov edx, dword [esi]
push str.ResetHttpHeaderData
push edx
mov dword [esi + 0x44], eax
call edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
mov dword [esi + 0x48], eax
pop edi
je 0x405426
cmp dword [esi + 0x14], 0
je 0x405426
cmp dword [esi + 0x18], 0
je 0x405426
cmp dword [esi + 0x1c], 0
je 0x405426
cmp dword [esi + 0x20], 0
je 0x405426
cmp dword [esi + 0x24], 0
je 0x405426
cmp dword [esi + 0x28], 0
je 0x405426
cmp dword [esi + 0x2c], 0
je 0x405426
cmp dword [esi + 0x30], 0
je 0x405426
cmp dword [esi + 0x34], 0
je 0x405426
cmp dword [esi + 0x38], 0
je 0x405426
cmp dword [esi + 0x3c], 0
je 0x405426
cmp dword [esi + 0x40], 0
je 0x405426
cmp dword [esi + 0x44], 0
je 0x405426
test eax, eax
je 0x405426
call ecx
test eax, eax
mov dword [esi + 4], eax
je 0x405426
push 1
push eax
mov eax, dword [esi + 0x3c]
call eax
mov eax, esi
ret

Function at 0x405eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405ebf
xor eax, eax
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
ret
Function at 0x406c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x557239
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], 3
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 0x3c]
lea ebp, [edi + 0x34]
lea eax, [ecx + edi + 0x34]
and dl, 6
neg dl
sbb edx, edx
not edx
test eax, edx
je 0x406d12
cmp dword [edi + 0x84], 0
je 0x406d12
lea esi, [ebp + 4]
call fcn.004090c0
test eax, eax
jne 0x406cf2
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebp + 8]
add ecx, ebp
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x406cea
or eax, 4
push 0
push eax
call fcn.00409650
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi + 0x5c]
lea ecx, [edx + edi + 0x34]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.00409650
lea esi, [ebp + 0x54]
mov ecx, esi
mov byte [esp + 0x18], 2
call fcn.0040a230
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.005334e9
add esp, 4
cmp dword [edi + 0x30], 8
jb 0x406d42
mov eax, dword [edi + 0x1c]
push eax
call fcn.004e946d
add esp, 4
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], 0
lea eax, [edi + 0xc]
mov word [edi + 0x1c], 0
mov byte [esp + 0x18], 0
call fcn.00407360
mov eax, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.004071b0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x40a0d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5480f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0053329e
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x40a121
mov eax, dword [esi + 0x1c]
push eax
call fcn.004e946d
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40c510
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x54e2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
push 0x40
lea eax, [esp + 0x18]
push ebx
push eax
mov edi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], vtable.CBL::CMD5Checksum.0
call fcn.00516c20
add esp, 0xc
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
mov eax, dword [esp + 0x80]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], ebx
call fcn.0040c470
lea ecx, [esp + 0x10]
call fcn.0040c2e0
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050fe87
add esp, 0x70
ret

Function at 0x40c5d0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x54e288
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5b2920]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x40
lea eax, [ebp + 4]
mov edi, ecx
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], edi
mov esi, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp], vtable.CBL::CMD5Checksum.0
call fcn.00516c20
add esp, 0xc
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], 0x67452301
mov dword [ebp + 0x50], 0xefcdab89
mov dword [ebp + 0x54], 0x98badcfe
mov dword [ebp + 0x58], 0x10325476
mov byte [ebp - 4], 1
push esi
push 0x400
lea ecx, [ebp + 0x5c]
push 1
push ecx
call fcn.00512719
add esp, 0x10
cmp eax, ebx
lea ecx, [ebp]
jle 0x40c67d
lea edx, [ebp + 0x5c]
push edx
call fcn.0040c470
jmp 0x40c657
call fcn.0040c2e0
mov eax, edi
jmp 0x40c69c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.0050fe87
add ebp, 0x460
mov esp, ebp
pop ebp
ret
Function at 0x40c6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x551cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
cmp dword [eax + 0x18], 8
mov dword [esp + 0xc], ebx
jb 0x40c715
mov eax, dword [eax + 4]
jmp 0x40c718
add eax, 4
push 0x56841c
push eax
call fcn.0051290e
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x40c748
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x56615b
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004032a0
jmp 0x40c790
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.0040c5d0
push edi
mov dword [esp + 0x3c], ebx
call fcn.00511f6a
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402ec0
cmp dword [esp + 0x28], 0x10
jb 0x40c790
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004e946d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0050fe87
add esp, 0x30
ret

Function at 0x40d540
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
jne 0x40d54e
add esp, 8
ret
cmp dword [ecx + 0x18], 0x10
mov dword [esp + 4], 4
mov dword [esp], 0
jb 0x40d568
mov ecx, dword [ecx + 4]
jmp 0x40d56b
add ecx, 4
lea edx, [esp + 4]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
not eax
and eax, dword [esp]
add esp, 8
ret

Function at 0x40d590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x40c]
push ebp
mov ebp, dword [esp + 0x414]
xor ecx, ecx
push edi
mov dword [esp + 8], ecx
mov edi, dword [eax + 4]
cmp edi, ecx
jne 0x40d5db
push 0xffffffffffffffff
mov dword [esi + 0x14], ecx
push ecx
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], cl
push ebx
mov ecx, esi
call fcn.00402ec0
jmp 0x40d64c
push 0x3ff
push ecx
lea eax, [esp + 0x15]
push eax
mov dword [esp + 0x14], 0x400
mov byte [esp + 0x18], cl
call fcn.00516c20
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
jb 0x40d605
mov ebp, dword [ebp + 4]
jmp 0x40d608
add ebp, 4
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ecx, esi
je 0x40d642
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push ebx
mov byte [esi + 4], 0
call fcn.00402ec0
jmp 0x40d64c
lea eax, [esp + 0xc]
push eax
call fcn.00405650
mov ecx, dword [esp + 0x40c]
pop edi
pop ebp
xor ecx, esp
mov eax, esi
call fcn.0050fe87
add esp, 0x408
ret 8
Function at 0x40d670
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54b76b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
cmp dword [eax + 0x18], 8
jb 0x40d6ad
mov esi, dword [eax + 4]
jmp 0x40d6b0
lea esi, [eax + 4]
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], eax
call dword [0x5b4800]
push eax
push esi
lea eax, [esp + 0x34]
call fcn.0040dd20
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov edx, dword [esp + 0x2c]
mov eax, edx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea esi, [eax + 1]
jmp 0x40d6f0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40d6f0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004032a0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx + 4]
cmp eax, ebx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0xc], ecx
mov esi, 0x10
je 0x40d744
cmp dword [esp + 0x28], esi
mov ecx, dword [esp + 0x14]
jae 0x40d732
lea ecx, [esp + 0x14]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x28], esi
jb 0x40d757
mov eax, dword [esp + 0x14]
push eax
call fcn.004e946d
add esp, 4
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
je 0x40d77c
push eax
call fcn.00510b6d
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xb0
ret 0xc
Function at 0x40d8a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54b701
mov eax, dword fs:[0]
push eax
sub esp, 0x140
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x168]
mov edi, ecx
mov ebp, 8
cmp dword [eax + 0x18], ebp
jb 0x40d8e5
mov esi, dword [eax + 4]
jmp 0x40d8e8
lea esi, [eax + 4]
lea eax, [esp + 0xd4]
mov dword [esp + 0xd0], eax
call dword [0x5b4800]
push eax
push esi
lea eax, [esp + 0xd8]
call fcn.0040dd20
xor ebx, ebx
mov dword [esp + 0x15c], ebx
mov edx, dword [esp + 0xd0]
mov eax, edx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40d930
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004032a0
mov byte [esp + 0x15c], 1
cmp dword [edi + 0x18], ebp
jb 0x40d958
mov esi, dword [edi + 4]
jmp 0x40d95b
lea esi, [edi + 4]
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ecx
call dword [0x5b4800]
push eax
push esi
lea eax, [esp + 0x54]
call fcn.0040dd20
mov byte [esp + 0x15c], 2
mov edx, dword [esp + 0x4c]
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40d996
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.004032a0
mov edx, dword [esp + 0x164]
mov eax, dword [edx + 4]
cmp eax, ebx
mov esi, 0x10
je 0x40d9ec
cmp dword [esp + 0x2c], esi
mov edx, dword [esp + 0x18]
jae 0x40d9cd
lea edx, [esp + 0x18]
cmp dword [esp + 0x48], esi
mov ecx, dword [esp + 0x34]
jae 0x40d9db
lea ecx, [esp + 0x34]
mov ebp, dword [esp + 0x28]
push ebp
push edx
push 1
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x48], esi
jb 0x40d9ff
mov eax, dword [esp + 0x34]
push eax
call fcn.004e946d
add esp, 4
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
je 0x40da20
push eax
call fcn.00510b6d
add esp, 4
cmp dword [esp + 0x2c], esi
jb 0x40da33
mov edx, dword [esp + 0x18]
push edx
call fcn.004e946d
add esp, 4
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0xd4]
cmp eax, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
je 0x40da5a
push eax
call fcn.00510b6d
add esp, 4
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret 8
Function at 0x40e530
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call fcn.00516c20
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov edx, 0x5660e8
je 0x40e581
lea edx, [esp + 0xc]
mov eax, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e594
sub eax, ebx
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x214]
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0050fe87
add esp, 0x210
ret
Function at 0x40e980
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0050fe87
add esp, 0x118
ret

Function at 0x40e9d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x40ea1f
jne 0x40ea08
cmp dword [esp + 8], 1
jae 0x40ea1f
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050fe87
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0050fe87
add esp, 0x118
ret

Function at 0x40ea40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x40ea8e
cmp dword [esp + 8], 0
jne 0x40ea8e
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050fe87
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0050fe87
add esp, 0x118
ret

Function at 0x40eab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x40eafe
cmp dword [esp + 8], 0
je 0x40eafe
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050fe87
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0050fe87
add esp, 0x118
ret

Function at 0x410d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], 0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.0040edd0
push 0x1c
push str.datajd_offline_no_found.htm
lea esi, [esp + 0x10]
call fcn.004028b0
mov eax, dword [esp + 0xc]
mov esi, 8
cmp dword [esp + 0x20], esi
jae 0x410d8a
lea eax, [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push eax
mov ecx, edi
call fcn.004f25ae
cmp dword [esp + 0x20], esi
jb 0x410daf
mov eax, dword [esp + 0xc]
push eax
call fcn.004e946d
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0050fe87
add esp, 0x2c
ret
Function at 0x4110a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
test eax, eax
push esi
push edi
mov edi, ecx
je 0x411140
push 0x569a5c
push eax
call fcn.0051290e
mov esi, eax
add esp, 8
test esi, esi
je 0x411140
push esi
push 2
push 1
push 0x568288
call fcn.0051183c
add esp, 0x10
push edi
lea ecx, [esp + 0xc]
call fcn.00411de0
mov eax, dword [esp + 0xc]
mov edi, 8
cmp dword [esp + 0x20], edi
jae 0x411101
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push 2
push eax
call fcn.0051183c
push esi
call fcn.00511f6a
add esp, 0x14
cmp dword [esp + 0x20], edi
jb 0x41112b
mov edx, dword [esp + 0xc]
push edx
call fcn.004e946d
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0050fe87
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.0050fe87
add esp, 0x20
ret 4