joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 0x14], 8
jb 0x415d70
mov edx, dword [edi]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov eax, dword [ebp + 0x10]
or eax, 1
push eax
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x415db4
cmp dword [ebp + 0x18], ebx
je 0x415dad
push edi
lea ecx, [esp + 0x1c]
call fcn.00404232
mov eax, ecx
mov ecx, dword [ebp + 0x18]
push eax
push esi
push str.RegOpenKeyEx
call fcn.004176f4
xor al, al
jmp 0x415e9c
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x415dc1
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x415e1a
cmp dword [ebp + 0x18], 0
je 0x415e0e
push esi
lea ecx, [esp + 0x1c]
call fcn.00404232
push edi
lea ecx, [esp + 0x24]
call fcn.00404232
lea eax, [esp + 0x18]
push eax
mov eax, ecx
mov ecx, dword [ebp + 0x18]
push eax
push ebx
push str.RegQueryValueEx
call fcn.00417741
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415dad
cmp dword [esp + 0x10], 1
je 0x415e57
cmp dword [ebp + 0x18], 0
je 0x415e0e
push esi
lea ecx, [esp + 0x24]
call fcn.00404232
push edi
lea ecx, [esp + 0x1c]
call fcn.00404232
lea eax, [esp + 0x20]
push eax
mov eax, ecx
push eax
push dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x18]
push str._CheckQueryValueType
call fcn.00417656
jmp 0x415e0e
mov edi, dword [ebp + 0x14]
push ecx
push dword [esp + 0x18]
mov ecx, edi
call fcn.00401f13
cmp dword [edi + 0x14], 0x10
jb 0x415e6e
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x415e76
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415f47
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
push edi
cmp dword [esi + 0x14], 8
jb 0x415f5a
mov edx, dword [esi]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
push ebx
or eax, 2
push eax
push ebx
push ebx
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x415fa0
cmp dword [ebp + 0x1c], ebx
je 0x415f9c
push esi
lea ecx, [ebp - 0x10]
call fcn.00404232
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
push eax
push edi
push str.RegCreateKeyEx
call fcn.004176f4
xor al, al
jmp 0x415ff2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x415fab
mov eax, dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x415fe4
cmp dword [ebp + 0x1c], ebx
je 0x415fe4
push esi
lea ecx, [ebp - 0x10]
call fcn.00404232
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
push eax
push edi
push str.RegSetValueEx
call fcn.004176f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4163ed
Capabilities:
Create process on windows

Disassembly:
push 0x6c
mov eax, 0x439c2d
call fcn.004368bd
mov esi, edx
mov ebx, ecx
mov al, byte [ebp + 8]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 0x29], al
mov eax, dword [ebp + 0xc]
push 0x38
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x74]
push 0
push eax
mov dword [ebp - 0x78], 0x3c
call fcn.0041be00
mov eax, 0x400
add esp, 0xc
test edi, edi
lea ecx, [eax + 0x40]
cmovne eax, ecx
xor ecx, ecx
cmp byte [ebp - 0x29], cl
mov dword [ebp - 0x74], eax
mov eax, str.runas
cmove eax, ecx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x6c], eax
mov eax, ebx
jb 0x41644d
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x68], eax
cmp dword [esi + 0x10], ecx
jne 0x41645b
mov eax, ecx
jmp 0x416465
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416465
mov eax, dword [esi]
mov dword [ebp - 0x64], eax
mov eax, dword [0x44dde0]
mov dword [ebp - 0x5c], 1
test eax, eax
je 0x416480
push ecx
push ecx
push 0x11
push 0xfffffffffffffffe
call eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4164e7
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4164e3
push esi
lea ecx, [ebp - 0x28]
call fcn.00408028
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push eax
call fcn.00404232
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00404232
lea eax, [ebp - 0x34]
push eax
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x29], 0
mov ecx, str.ShellExecuteEx___
push eax
mov eax, str.ShellExecuteEx_runas_
cmove eax, ecx
mov ecx, edi
push eax
call fcn.00417741
lea ecx, [ebp - 0x28]
call fcn.00404129
xor al, al
jmp 0x4164f2
test edi, edi
je 0x4164f0
mov ecx, dword [ebp - 0x40]
mov dword [edi], ecx
mov al, 1
call fcn.00436878
ret
Function at 0x416627
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
push 0x20a
push 0
push eax
mov ebx, edx
mov edi, ecx
call fcn.0041be00
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41668a
test esi, esi
je 0x4166b1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetSpecialFolderPath
mov ecx, esi
call fcn.004175e8
jmp 0x4166b1
cmp word [ebp - 0x210], 0
jne 0x4166b5
test esi, esi
je 0x4166b1
mov eax, dword [esi]
push edi
push 0x444f48
push 0x3039
push str._CheckSpecialFolderPath
push esi
call dword [eax + 8]
add esp, 0x14
xor al, al
jmp 0x4166c5
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.004011c3
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a4f0
leave
ret

Function at 0x416eb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x416f1b
test byte [esi + 0x44], 2
je 0x416ee1
push 0x440ef8
push 0x3039
push 0x4457b8
push esi
call fcn.004170f1
add esp, 0x10
xor al, al
jmp 0x416f16
push edi
mov edi, dword [ebp + 0x10]
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416f0a
push 0x4457b8
mov ecx, esi
call fcn.004170ce
xor al, al
jmp 0x416f15
mov eax, dword [edi]
add dword [esi + 0x38], eax
mov al, 1
adc dword [esi + 0x3c], 0
pop edi
pop esi
pop ebp
ret 0xc
call fcn.00428d1b
int3

Function at 0x416f4a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x416fda
test byte [esi + 0x44], 4
je 0x416f7c
push 0x440ef8
push 0x3039
push 0x4457ac
push esi
call fcn.004170f1
add esp, 0x10
xor al, al
jmp 0x416fd5
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x416fb3
push dword [ebp + 0xc]
push 0x444f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4457ac
push esi
call fcn.004170f1
add esp, 0x14
jmp 0x416f78
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x416fcc
push dword [ebp + 0xc]
push 0x444f48
push 0xffffffffffffffff
push str.CheckFileWrite
jmp 0x416fa8
add dword [esi + 0x38], eax
mov al, 1
adc dword [esi + 0x3c], 0
pop esi
leave
ret 8
call fcn.00428d1b
int3
Function at 0x41739b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
xor bl, bl
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4173b0
xor al, al
jmp 0x417414
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41740b
cmp dword [esi + 0x14], 8
jb 0x4173d8
mov esi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub eax, esi
movzx ecx, word [esi]
mov word [eax + esi], cx
lea esi, [esi + 2]
test cx, cx
jne 0x4173e1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4193b6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 4
push ebx
je 0x419453
cmp dword [ecx], 3
jne 0x41944f
mov eax, dword [0x446140]
and dword [ebp - 0x18], 0
cmp dword [ecx + 0xc], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x446144]
mov dword [ebp - 0x10], eax
mov eax, dword [0x446138]
mov dword [ebp - 0xc], eax
mov ax, word [0x44613c]
mov word [ebp - 8], ax
je 0x419462
mov ecx, dword [ecx + 8]
mov ax, word [ecx]
mov word [ebp - 0x14], ax
mov ax, word [ecx]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x419453
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x41944f
call fcn.0041797f
mov eax, dword [0x44de54]
test eax, eax
je 0x419449
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
call eax
cmp eax, 0xea
je 0x41944b
xor bl, bl
mov al, bl
jmp 0x419455
xor al, al
jmp 0x419455
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041a4f0
leave
ret
call fcn.00428d1b
int3

Function at 0x419a4a
Capabilities:
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4399f9
call fcn.004368bd
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea edx, [ebp - 0x28]
call fcn.00419d1c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00404129
mov eax, esi
call fcn.00436878
ret

Function at 0x419a8b
Capabilities:
Set file attributes

Disassembly:
push 0x1c
mov eax, 0x4399f9
call fcn.004368bd
mov esi, edx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea edx, [ebp - 0x28]
call fcn.00419d1c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00404129
mov eax, esi
call fcn.00436878
ret

Function at 0x419c6e
Capabilities:
Delete file
Move file

Disassembly:
push 0x38
mov eax, 0x43a20f
call fcn.004368bd
mov edi, edx
and dword [ebp - 0x34], 0
xor eax, eax
push 7
pop ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x44], ax
and dword [ebp - 4], eax
lea edx, [ebp - 0x44]
call fcn.00419d1c
and dword [ebp - 0x1c], 0
mov esi, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00419d1c
push dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00404129
lea ecx, [ebp - 0x44]
call fcn.00404129
mov eax, esi
call fcn.00436878
ret 4

Function at 0x42bb9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ba1b
Function at 0x402115
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x402145
xor al, al
jmp 0x4021df
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4021d4
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x4021ca
cmp word [edi], 0x5a4d
push esi
mov byte [ebp + 0xb], bl
jne 0x4021bf
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4021bf
cmp dword [esi], 0x4550
jne 0x4021bf
cmp dword [esi + 0x74], 4
jbe 0x4021bf
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x98]
lea eax, [esi + 0x98]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [edx], eax
cmp dword [ecx], ebx
je 0x4021bf
cmp eax, ebx
je 0x4021bf
mov byte [ebp + 0xb], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, byte [ebp + 0xb]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret

Function at 0x4021e2
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push dword [esp + 0x24]
call fcn.00408de8
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x40221a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40221c
xor eax, eax
pop edi
pop esi
ret
Function at 0x4023b6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x24]
mov dword [ebp + 8], eax
jmp 0x4023cb
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub ecx, edx
sub ecx, esi
mov dword [ebp - 4], ecx
jne 0x4023e9
test edx, edx
jne 0x4023f3
test esi, esi
jne 0x4023f3
mov ecx, eax
jmp 0x402464
cmp ecx, 0xffffffff
jne 0x4023f3
push 0xfffffffffffffffe
pop ecx
jmp 0x402464
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp edx, esi
jb 0x402464
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov edx, ecx
lea esi, [edi + eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x3c]
sub dword [ebx + 0x68], eax
sub dword [ebx + 0x64], eax
sub dword [ebx + 0x54], eax
lea ecx, [ecx + edx*2]
dec ecx
dec ecx
movzx esi, word [ecx]
mov edi, esi
sub edi, eax
cmp esi, eax
sbb esi, esi
not esi
and esi, edi
dec edx
mov word [ecx], si
jne 0x402429
mov ecx, dword [ebx + 0x38]
mov esi, eax
lea ecx, [ecx + eax*2]
dec ecx
dec ecx
movzx edx, word [ecx]
mov edi, edx
sub edi, eax
cmp edx, eax
sbb edx, edx
not edx
and edx, edi
dec esi
mov word [ecx], dx
jne 0x402448
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4024bf
push ecx
mov ecx, dword [ebx + 0x6c]
add ecx, dword [ebx + 0x64]
add ecx, dword [ebx + 0x30]
push ecx
push eax
call fcn.004024c4
add dword [ebx + 0x6c], eax
mov esi, dword [ebx + 0x6c]
add esp, 0xc
cmp esi, 3
jb 0x4024ab
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [ebx + 0x50]
movzx eax, byte [edx]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp esi, 0x106
jae 0x4024bf
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4023c8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406341
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], 0xe
cmp byte [esi + 0x198], bl
lea eax, [esi + 0x198]
je 0x40648a
mov byte [eax], bl
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x194]
mov dword [ebp - 4], 1
push ebx
call sub.urlmon.dll_FindMimeFromData
test eax, eax
jne 0x40648a
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4063a2
push dword [ebp - 8]
mov ecx, dword [eax]
push 0x16
push eax
call dword [ecx + 0x10]
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x89]
sub eax, dword [esi + 0xc]
push ebx
push edi
push 0x4013d0
push eax
push dword [esi + 0x190]
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryA]
test eax, eax
je 0x40648a
push ebx
push ebx
push 2
push ebx
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x40648a
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x2c]
push ebx
push ecx
mov ecx, dword [esi + 0x14]
sub ecx, eax
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call edi
inc word [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call edi
push ebx
push 0x4013d0
push ebx
push ebx
push 1
lea edi, [esi + 0x89]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
push dword [esi + 0x190]
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryA]
cmp dword [esi + 0x20], ebx
je 0x40648a
lea eax, [ebp - 0x274]
push 0x124
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x274]
push edx
push 0xe
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x4064a2
mov eax, dword [esi + 0x14]
mov edx, dword [ecx]
sub eax, dword [esi + 0xc]
push eax
push eax
push dword [ebp - 4]
push ecx
call dword [edx + 0x14]
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x4064b2
mov eax, dword [esi]
push ebx
push ebx
push ebx
push esi
call dword [eax + 0x18]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x406b96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push esi
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push eax
push dword [0x40cac0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x406c52
push ebx
push edi
push esi
push dword [0x40cac0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [0x40cac0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [edi + 8]
push eax
call fcn.00406ce9
mov ecx, edi
mov ebx, eax
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
add eax, 0x400
push eax
call fcn.00406d49
mov edi, eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 0xc], edi
lea eax, [edi + 0x10]
push eax
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004043ef
mov esi, ebx
mov eax, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], ecx
mov byte [eax + 8], 1
call fcn.00406d3e
add esp, 0x1c
mov al, 1
pop edi
pop ebx
jmp 0x406c54
xor al, al
pop esi
leave
ret 8
Function at 0x406d54
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..bss]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x406d79
push esi
add eax, 0xfffffffc
push esi
push eax
jmp 0x406d7e
push 2
push esi
push 0xfffffffffffffffc
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x406e63
cmp dword [ebp - 0xc], 0x41544458
jne 0x406e1d
push 2
push esi
push 0xfffffffffffffff8
push dword [ebp + 8]
call ebx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x406e63
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
cmp ecx, esi
je 0x406de1
mov dword [ecx], eax
push 0xfffffffffffffff8
pop edi
sub edi, eax
push 2
push esi
push edi
push dword [ebp + 8]
call ebx
cmp dword [ebp + 0xc], esi
je 0x406e14
push dword [ebp - 4]
call fcn.00406ce9
pop ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ecx], eax
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 2
push esi
push edi
push dword [ebp + 8]
call ebx
push 1
push esi
push esi
push dword [ebp + 8]
call ebx
mov esi, 0x4013d4
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
push 1
push esi
push 0xfffffe00
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call ebx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x224]
push 0x200
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e67
xor al, al
jmp 0x406ea2
mov edi, 0x1f0
lea eax, [ebp + edi - 0x224]
push 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004020a1
add esp, 0xc
test eax, eax
je 0x406e8e
dec edi
jns 0x406e6c
mov eax, dword [ebp + 0xc]
jmp 0x406e98
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi - 0x200]
push esi
push esi
push eax
push dword [ebp + 8]
call ebx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ea7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406d54
add esp, 0xc
test al, al
jne 0x406ed5
xor eax, eax
jmp 0x406fad
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push 1
push edi
push 0xfffffffffffffff8
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406f04
mov dword [ebp - 8], edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406f1b
mov dword [ebp - 4], edi
push 1
push edi
push 0xfffffffffffffff8
pop eax
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 8]
call ebx
push dword [ebp - 8]
call fcn.00406ce9
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.00406ce9
pop ecx
mov dword [ebp + 0x10], eax
pop ecx
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 4]
cmp dword [ebp - 8], ecx
je 0x406f74
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
call fcn.00404349
add esp, 0x10
mov byte [0x401288], 1
jmp 0x406f91
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [0x401288], 0
xor edi, edi
push dword [ebp + 0x10]
call fcn.00406d2b
mov eax, dword [ebp - 4]
pop ecx
push 1
push edi
neg eax
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop edi
leave
ret