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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
xor ebp, ebp
mov esi, ecx
push ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.004072f0
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00407910
test eax, eax
je 0x4079c7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push ebp
push ebp
mov ecx, dword [edx + eax*8]
mov dword [esp + 0x28], ecx
mov edi, dword [edx + eax*8 + 4]
mov edx, dword [esi + 0x28]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4079f7
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x30]
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407a1f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jbe 0x407a38
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [esi + 0x28]
push ebp
push ebp
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407a56
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x28
ret 0x10
lea eax, [ebx + 0xf]
mov ecx, dword [esp + 0x28]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
inc eax
shl eax, 4
cmp eax, ecx
jbe 0x407a7b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x40]
push ebp
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x28]
push eax
lea ecx, [esp + 0x30]
push 0x10
push ecx
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 1
mov dword [esp + 0x54], ebp
call edi
test eax, eax
je 0x407b4f
cmp dword [esp + 0x40], 0x10
jne 0x407b4f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x40]
push ebp
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x54], ebp
call edi
test eax, eax
je 0x407b4f
cmp dword [esp + 0x40], ebx
jne 0x407b4f
mov eax, dword [esp + 0x28]
sub eax, ebx
sub eax, 0x10
je 0x407b0a
cmp eax, ebp
jbe 0x407b0a
mov ebx, eax
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x40]
push ebp
push eax
push 1
push 0x43729c
push ecx
mov dword [esp + 0x54], ebp
call edi
dec ebx
jne 0x407af0
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
lea edx, [edx + eax*4]
lea eax, [edx + 4]
cmp eax, ecx
je 0x407b2c
sub edx, eax
mov edi, dword [eax]
mov dword [edx + eax], edi
add eax, 4
cmp eax, ecx
jne 0x407b20
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
add eax, 0xfffffffc
mov dword [esi + 0x18], eax
pop edi
pop esi
mov dword [esp + 0x38], eax
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 0xfffffff9
pop ebx
add esp, 0x28
ret 0x10
Function at 0x407e70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407590
test eax, eax
jne 0x407e8d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x407ea1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x407eb8
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x24]
sub ecx, eax
sar ecx, 3
cmp ecx, edi
ja 0x407ec4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esi + 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x28]
push 0
push 0
mov eax, dword [eax + edi*8 + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407ef6
pop edi
pop esi
or eax, eax
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x18]
push 0x10
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407f20
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esp + 0x14]
pop edi
mov dword [ebx], edx
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret 8

Function at 0x407f40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00407590
test eax, eax
jne 0x407f61
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x407f7a
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 3
cmp ecx, ebx
ja 0x407f89
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x14
ret 0xc
mov ebp, dword [esp + 0x2c]
cmp ebp, edi
je 0x408049
cmp dword [esp + 0x30], edi
jle 0x408049
xor edx, edx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edx
mov eax, dword [eax + ebx*8 + 4]
push edi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edx
lea eax, [esp + 0x1c]
push 0x10
push eax
push ecx
call edi
test eax, eax
jne 0x407ff2
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + ebx*8]
cmp eax, ecx
je 0x40800d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jae 0x408026
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push ebp
push edx
call edi
neg eax
sbb eax, eax
pop edi
and eax, 6
pop esi
pop ebp
add eax, 0xfffffffa
pop ebx
add esp, 0x14
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40d770
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebx, [eax + 0x20]
push ebx
call fcn.00428481
push ebx
mov esi, eax
call fcn.00428481
add esp, 8
mov edi, eax
test esi, esi
je 0x40d82a
test edi, edi
je 0x40d815
mov eax, dword [esp + 0x3c]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x40]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
lea eax, [esp + 0x20]
push 0x4373a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push esi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00428418
push edi
call fcn.00428418
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push esi
call fcn.00428418
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
test edi, edi
je 0x40d837
push edi
call fcn.00428418
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc

Function at 0x40d850
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 0x20]
lea edi, [ebp + ebp]
push edi
call fcn.00428481
push edi
mov esi, eax
call fcn.00428481
add esp, 8
mov edi, eax
test esi, esi
je 0x40d90e
test edi, edi
je 0x40d8f9
mov eax, dword [esp + 0x5c]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x60]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
lea eax, [esp + 0x20]
push str._d._d._4d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebp
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00428418
push edi
call fcn.00428418
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc
push esi
call fcn.00428418
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc
test edi, edi
je 0x40d91b
push edi
call fcn.00428418
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 0xc
Function at 0x40f290
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x168], 3
je 0x40f2a2
xor eax, eax
pop esi
ret 0x10
push edi
push 0xe
call fcn.0041d350
push eax
mov eax, dword [esi + 0x140]
push eax
call fcn.00423460
mov ecx, dword [esi + 0x140]
add esp, 0xc
push 1
push ecx
mov ecx, esi
call fcn.0040ebb0
mov edx, dword [esi + 0x140]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x14c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov ecx, dword [esi + 0x158]
push 5
push ecx
call edi
mov edx, dword [esi + 0x144]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edx
call edi
mov ecx, dword [esi + 0x164]
mov edx, dword [esi + 0x148]
xor eax, eax
cmp eax, ecx
sbb ecx, ecx
neg ecx
push ecx
push edx
call edi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x40f8c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x15c], 3
je 0x40f8d2
xor eax, eax
pop esi
ret 0x10
push edi
push 0xe
call fcn.0041d350
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 4
push eax
mov eax, dword [esi + 0x13c]
push eax
call edi
push 0x93
call fcn.0041d350
mov ecx, dword [esi + 0x154]
add esp, 4
push eax
push ecx
call edi
mov edx, dword [esi + 0x13c]
push 1
push edx
mov ecx, esi
call fcn.0040ebb0
mov eax, dword [esi + 0x13c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x148]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov edx, dword [esi + 0x154]
push 5
push edx
call edi
mov eax, dword [esi + 0x140]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call edi
mov ecx, dword [esi + 0x144]
push 1
push ecx
call edi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x410240
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x140], 3
je 0x410252
xor eax, eax
pop esi
ret 0x10
push ebx
push edi
push 0xe
call fcn.0041d350
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 4
push eax
mov eax, dword [esi + 0x144]
push eax
call edi
mov ecx, dword [esi + 0x144]
push 1
push ecx
mov ecx, esi
call fcn.0040ebb0
mov edx, dword [esi + 0x144]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x150]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x15c]
push 5
push ecx
call ebx
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x4102c5
push 0x5d
call fcn.0041d350
mov edx, dword [esi + 0x15c]
add esp, 4
push eax
push edx
jmp 0x4102d7
push 0x5c
call fcn.0041d350
add esp, 4
push eax
mov eax, dword [esi + 0x15c]
push eax
call edi
mov ecx, dword [esi + 0x148]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ecx
call edi
mov eax, dword [esi + 0x184]
xor edx, edx
test eax, eax
mov eax, dword [esi + 0x14c]
setg dl
push edx
push eax
call edi
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10
Function at 0x4110d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x160], 3
je 0x4110e2
xor eax, eax
pop esi
ret 0x10
push ebx
push edi
push 0xe
call fcn.0041d350
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 4
push eax
mov eax, dword [esi + 0x140]
push eax
call edi
mov ecx, dword [esi + 0x140]
push 1
push ecx
mov ecx, esi
call fcn.0040ebb0
mov edx, dword [esi + 0x140]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x14c]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x158]
push 5
push ecx
call ebx
push 0x91
call fcn.0041d350
mov edx, dword [esi + 0x158]
add esp, 4
push eax
push edx
call edi
mov eax, dword [esi + 0x144]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10

Function at 0x415d50
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
xor edi, edi
test ebx, ebx
jne 0x415d61
pop edi
xor eax, eax
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x105
push eax
call fcn.0042829e
mov esi, eax
add esp, 4
test esi, esi
je 0x415db8
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x415daf
cmp eax, 0x104
jae 0x415daf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4374dc
push esi
call edi
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push esi
call fcn.00427e82
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x419af0
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x104
call fcn.00428481
mov esi, eax
add esp, 4
test esi, esi
je 0x419b39
mov eax, dword [edi]
mov cx, word [edi + 4]
push eax
push ecx
call fcn.00419cb0
add esp, 8
push eax
push str.hh.exe__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call fcn.00428418
add esp, 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x41a210
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
push esi
push 0x108
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41a231
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
push esi
push 0
push 0x4372ac
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x41a24d
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
push 0x437968
push esi
call fcn.004286f9
add esp, 8
mov dword [edi + 4], eax
test eax, eax
jne 0x41a26d
mov byte [esi], al
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
push eax
push 1
lea eax, [esp + 0x10]
push 2
push eax
mov dword [esp + 0x18], 0xfeff
call fcn.004285cf
add esp, 0x10
mov dword [edi + 8], 1
xor eax, eax
pop edi
pop esi
pop ecx
ret 4
Function at 0x41a2a0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x41a2bb
push eax
call fcn.0042870c
add esp, 4
mov dword [esi + 4], 0
mov al, byte [esi + 0xc]
lea edi, [esi + 0xc]
test al, al
je 0x41a2cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [edi], 0
mov dword [esi + 8], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x41a900
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 4
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x478
call fcn.0042829e
mov esi, eax
add esp, 4
test esi, esi
je 0x41a933
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.0041d510
mov esi, eax
jmp 0x41a935
xor esi, esi
mov ecx, esi
call fcn.0041d690
test esi, esi
je 0x41a948
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
xor eax, eax
pop esi
ret 0x10

Function at 0x41ae30
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x10000080
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x41ae73
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
cmp edi, 0xffffffff
jne 0x41ae78
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41aff0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jne 0x41b004
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [esp + 0x10]
mov word [edi], 0
push eax
or ebp, 0xffffffff
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41b022
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call ebx
test eax, eax
je 0x41b057
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x41b09d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push edi
call fcn.004278f0
add esp, 0xc
jmp 0x41b08b
push 1
call ebx
test eax, eax
je 0x41b08b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x41b09d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41b09d
mov edx, dword [esp + 0x1c]
push edx
push edi
push 0xffffffffffffffff
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.0041b0b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebp, ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x41b0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x41b0f9
or eax, 0xffffffff
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41b10a
or eax, 0xffffffff
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x41b11a
or eax, 0xffffffff
pop esi
ret
mov dx, word [eax + 6]
lea ecx, [eax + 6]
add ecx, 2
test dx, dx
je 0x41b13f
xor edx, edx
mov dx, word [eax]
add edx, eax
cmp ecx, edx
jae 0x41b14e
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x41b130
sub ecx, eax
add ecx, 3
shr ecx, 2
lea eax, [eax + ecx*4]
test eax, eax
jne 0x41b153
or eax, 0xffffffff
pop esi
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [eax + 8]
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x41d100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [0x443ad0]
push ebp
push edi
mov edi, dword [0x443acc]
test edi, edi
jne 0x41d117
pop edi
xor eax, eax
pop ebp
ret
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x41d124
pop edi
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, eax
shr eax, 4
xor ebx, ebx
and esi, 0xf
inc eax
push ecx
and eax, 0xffff
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x41d1a0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41d1a0
test esi, esi
jbe 0x41d16c
xor ecx, ecx
dec esi
mov cx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x41d160
mov edx, dword [esp + 0x1c]
xor ebx, ebx
mov bx, word [eax]
dec edx
cmp ebx, edx
mov ecx, ebx
jl 0x41d17e
mov ecx, edx
add ecx, ecx
lea esi, [eax + 2]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, edx
rep movsb byte es:[edi], byte [esi]
jge 0x41d199
mov edx, ebx
mov word [ebp + edx*2], 0
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x41d270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
mov edi, dword [0x443acc]
test edi, edi
jne 0x41d281
pop edi
xor eax, eax
pop ebp
ret
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x41d28e
pop edi
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, eax
xor ebx, ebx
shr eax, 4
and esi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x41d310
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41d310
test esi, esi
jbe 0x41d2da
xor edx, edx
dec esi
mov dx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x41d2ce
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov bx, word [eax]
lea edx, [ecx - 1]
mov ecx, ebx
cmp ebx, edx
jl 0x41d2ee
mov ecx, edx
add ecx, ecx
lea esi, [eax + 2]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, edx
rep movsb byte es:[edi], byte [esi]
jge 0x41d309
mov edx, ebx
mov word [ebp + edx*2], 0
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x41d380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x443ad0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [0x443acc]
and esi, 0xffff
push eax
push esi
push 5
push edi
call ebx
test eax, eax
jne 0x41d3b8
push eax
push esi
push 5
push edi
call ebx
test eax, eax
jne 0x41d3b8
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41d3c8
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebx
ret

Function at 0x41d4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
push ebp
push edi
push 4
push esi
call ebx
test eax, eax
jne 0x41d4e8
test bp, bp
je 0x41d4e1
push eax
push edi
push 4
push esi
call ebx
test eax, eax
jne 0x41d4e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41d4f9
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41d510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4323a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ebp, dword [esp + 0x24]
push 0x208
push ebp
mov dword [esp + 0x24], ebx
mov dword [esi], 0x43397c
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.004235e0
push 8
mov dword [esi + 0x28], eax
call fcn.0042829e
add esp, 0xc
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x41d58f
mov ecx, eax
call fcn.004169d0
jmp 0x41d591
xor eax, eax
mov dword [esi + 0x14], eax
mov ecx, 0x88
xor eax, eax
lea edi, [esi + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 0x88
lea edi, [esi + 0x258]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
push ebp
mov byte [esp + 0x24], bl
call fcn.0041d7f0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8