joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f10
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
jmp 0x408f28
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [0x4365d4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jge 0x408fa3
mov eax, dword [0x4365d0]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.0041bb70
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408a70
add esp, 4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [0x4365d0]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0042eaf0
add esp, 4
jmp 0x408f1f
mov esp, ebp
pop ebp
ret

Function at 0x408fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push 0x432484
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x43654c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040d6d0
push 3
call fcn.00405320
add esp, 4
mov dword [0x43651c], eax
push 2
call fcn.00405320
add esp, 4
mov dword [0x436518], eax
push 5
call fcn.00405320
add esp, 4
mov dword [0x436524], eax
push 0x15
call fcn.00405320
add esp, 4
mov dword [0x436528], eax
push 0x16
call fcn.00405320
add esp, 4
mov dword [0x43652c], eax
push 0x17
call fcn.00405320
add esp, 4
mov dword [0x436534], eax
mov dword [0x436530], 0
mov eax, dword [0x436530]
mov dword [0x436520], eax
mov dword [ebp - 4], 0
jmp 0x409084
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x40
jge 0x40911c
push 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x270]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409117
mov ecx, dword [ebp - 4]
push ecx
push str.SfxFolder_02d
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00406e60
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4090e4
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 5
jae 0x409117
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x432350]
cmp ecx, dword [ebp - 4]
jne 0x409115
push 0
lea edx, [ebp - 0x270]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x432354]
push ecx
call fcn.00406e60
add esp, 0xc
jmp 0x4090db
jmp 0x40907b
mov esp, ebp
pop ebp
ret
Function at 0x40bf80
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x1c]
push eax
push 0x4b6
mov ecx, dword [ebp - 4]
call fcn.0040b580
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
add ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], ecx
push 1
push 0x4b6
mov ecx, dword [ebp - 4]
call fcn.0040d380
push 1
push 0x4b7
mov ecx, dword [ebp - 4]
call fcn.0040d380
push 0x2b4
push 0
lea eax, [ebp - 0x2d0]
push eax
call fcn.0042be30
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x4dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea edx, [ebp - 0x2d0]
push edx
push 0
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2d0]
mov dword [ecx + 0x50], edx
push 0x4b7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], eax
push 0x40abf0
push 0xfffffffffffffffc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 4]
call fcn.0040b8b0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
call fcn.0040ccd0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40d6d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x40d6e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40d73b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40d709
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40d72c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x40d700
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x436d20], eax
jmp 0x40d6df
jmp 0x40d746
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x40d77e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x436920]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x436d20]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x436d20], edx
jmp 0x40d73d
mov dword [0x436d00], 0x42fc80
mov dword [0x436cf8], 0x42fc80
mov dword [0x436cfc], 0x42fba0
call fcn.00418e80
test eax, eax
jne 0x40d7af
mov dword [0x436cf8], 0x42fba0
mov esp, ebp
pop ebp
ret
Function at 0x419460
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x419490
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x419490
xor al, al
jmp 0x4194ad
xor edx, edx
mov eax, dword [ebp - 0xc]
mov cl, 0x20
call fcn.0042ee80
xor ecx, ecx
add eax, dword [ebp - 4]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4195d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41960c
mov dword [ebp - 8], 1
jmp 0x419613
mov dword [ebp - 8], 0
mov dl, byte [ebp - 8]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4197c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4197e7
mov dword [ebp - 4], 1
jmp 0x4197ee
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x436324]
jbe 0x41994d
mov ecx, dword [0x436324]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x419980
mov dword [ebp - 8], 1
jmp 0x419987
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41dd90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041dbb0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x406090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x443b08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x457670]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CBrush.0
mov dword [esp + 0x30], 0
cmp dword [0x45b824], 7
jne 0x406103
call fcn.00406630
test eax, eax
jne 0x406103
push 0xf
jmp 0x406105
push 4
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
call edi
cmp dword [esp + 0x38], 0
jne 0x40612a
fld qword [0x44bfd0]
sub esp, 8
mov ecx, eax
fstp qword [esp]
call fcn.00402ca0
add esp, 8
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0040f527
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.0040f57a
cmp dword [0x45b824], 2
jl 0x406174
mov edx, dword [esi + 4]
push 0xf
push 2
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
push 7
call edi
cmp dword [esp + 0x3c], 0
jne 0x406193
mov edi, dword [ebx + 4]
mov edx, dword [ebx]
add edi, 4
add edx, 4
mov ecx, eax
call fcn.00405710
jmp 0x4061a8
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
add ecx, 4
push ecx
add ebx, 5
mov ecx, eax
mov edx, esi
call fcn.00405600
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.0040f57a
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x406630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x457670]
xor eax, esp
mov dword [esp + 0x134], eax
cmp dword [0x45b8fc], 0
jne 0x406739
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocString
mov dword [0x45b8fc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406739
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40672f
mov edx, dword [str.Windows_Classic.theme]
mov eax, dword [0x44b148]
mov ecx, dword [0x44b14c]
mov dword [esp + 0xc], edx
mov edx, dword [0x44b150]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [0x44b154]
mov dword [esp + 0x1c], ecx
mov cx, word [0x44b158]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40672d
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40672d
mov dword [0x45b8f8], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x134]
mov eax, dword [0x45b8f8]
xor ecx, esp
call fcn.0042baa3
add esp, 0x138
ret

Function at 0x4076f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x407709
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x407744
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407740
lea ebx, [ebx]
cmp esi, eax
jae 0x407744
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407730
cmp esi, eax
jb 0x40774a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4436d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x457670]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.0041305c
push eax
lea ecx, [esp + 0x30]
call fcn.0040f2f3
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.0041305c
mov ecx, eax
call fcn.0040efe2
cmp dword [esi + 0x1a4], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x408f71
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x1a0]
call fcn.0040f260
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x1b0]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0040f527
test edi, edi
je 0x408f2b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x1a4]
push edi
push eax
call fcn.0040f5ac
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x1b8], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x1a4]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x1a0]
test edx, edx
je 0x408f8e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0040f347
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x40af40
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x457670]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push 0x7f
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.0042efc0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
xor esi, esi
push esi
mov dword [esp + 0xc], 4
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40af9f
mov edx, dword [esp + 4]
push edx
call fcn.0042bc70
mov esi, eax
add esp, 4
lea eax, [esp + 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._0.2X:_0.2X:_0.2X:_0.2X:_0.2X:_0.2X
push ecx
call fcn.0042d14e
add esp, 0x20
lea eax, [esp + 8]
lea edx, [eax + 1]
pop esi
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aff0
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.00407d30
mov ecx, dword [esp + 0x84]
xor ecx, esp
mov eax, 1
call fcn.0042baa3
add esp, 0x88
ret
Function at 0x40b8e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x444040
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457670]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x58], ebx
call fcn.0042d204
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
add esp, 4
mov ebp, 0x63
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x30], 0x16
mov dword [esp + 0x34], 0x13
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], 0xffffffff
call fcn.0042d4f3
mov esi, eax
mov edi, edx
mov ecx, esi
and ecx, edi
add esp, 4
cmp ecx, 0xffffffff
jne 0x40b977
push 0x80070057
call fcn.004072c0
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x30], 0x16
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], 0xffffffff
call fcn.0042d4f3
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
jne 0x40b9c7
push 0x80070057
call fcn.004072c0
sub eax, esi
sbb edx, edi
add dword [esp + 0x1c], eax
lea esi, [esp + 0x14]
adc dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
call fcn.0040ce70
mov eax, esi
mov byte [esp + 0x54], 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.0040bec0
mov ebp, dword [esp + 0x5c]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x40baa7
cmp esi, 0xffffffff
je 0x40baa7
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 8]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x40ba43
push ebx
lea ecx, [esp + 0x18]
call fcn.00407310
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40baf1
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bacb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x40bb10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44432b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x457670]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
mov eax, dword [0x457670]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x42c]
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x40bc40
cmp esi, 0xffffffff
je 0x40bc40
push 0x400
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0042efc0
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x13
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x40bc39
cmp dword [esp + 0x10], ebx
je 0x40bc6b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0040cd10
add esp, 0xc
push eax
mov ecx, edi
mov dword [esp + 0x428], ebx
call fcn.00407cb0
mov dword [esp + 0x424], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0042efc0
add esp, 0xc
push ebx
lea edx, [esp + 0x14]
push edx
push 0x13
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x40bbb3
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0042baa3
add esp, 0x418
ret 4
push edi
call fcn.0040b5a0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [edi]
xor eax, eax
cmp dword [ecx - 0xc], 0x13
sete al
jmp 0x40bc42
Function at 0x40bc90
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x443ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x457670]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebp
push esi
push edi
mov eax, dword [0x457670]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov esi, ecx
push 0x44b286
lea ecx, [esp + 0x14]
call fcn.004074b0
push 0x3ff
lea eax, [esp + 0x21]
push 0
mov dword [esp + 0x430], 0
push eax
mov byte [esp + 0x28], 0
call fcn.0042efc0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edi, [esp + 0x1c]
or ebp, 0xffffffff
add edi, ebp
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40bd17
mov eax, dword [esi]
mov dx, word [0x44b694]
push 0x2f
push eax
mov word [edi], dx
call fcn.0042c626
add esp, 8
test eax, eax
je 0x40bd42
sub eax, dword [esi]
cmp eax, ebp
jne 0x40bd6d
mov dword [esp + 0x428], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40bd66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40be93
add eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00406900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 1
call fcn.00407cb0
mov byte [esp + 0x428], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bdb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004074b0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x434], 2
call fcn.0040cc50
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 3
call fcn.00407cb0
mov byte [esp + 0x428], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x428], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
push 0
push 0
push ecx
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 0x2bc
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov dword [esp + 0x428], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40be8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0042baa3
add esp, 0x41c
ret