joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x487580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
test ebx, ebx
jne 0x40fb53
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edx + 0x21c], 0
je 0x40fb76
push ecx
push eax
push ebx
push edx
call fcn.0040fee0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
push esi
lea eax, [edx + 0xc]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00452ccc
add esp, 0xc
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40fb91
push edi
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x40fbb0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40fbb0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
push 7
mov ecx, ebx
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fcd0
test esi, esi
je 0x40fcd0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40fc95
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [ebp - 0x210]
mov ebx, dword [ebp - 0x214]
push edi
push 0
push eax
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [edi], 0
jne 0x40fc42
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fcc2
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x210], eax
push ecx
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fca1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x214]
mov edi, dword [ebp - 0x210]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
test ecx, ecx
je 0x40fcba
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414600
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x487580]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414620
lea ecx, [ebp + 0xc]
sub eax, edx
push ecx
push dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00453119
mov eax, dword [0x489d24]
mov ecx, eax
inc eax
mov dword [0x489d24], eax
lea eax, [ebp - 0x404]
push eax
push ecx
lea eax, [ebp - 0xc04]
push str.__d__s
push eax
call fcn.00452b7b
add esp, 0x20
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret

Function at 0x41c570
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov di, word [ebp + 8]
and eax, 0x8000
movzx edx, di
add edx, 0xfffffffd
cmp edx, 0x17
ja case.0x41c59e.4
movzx ecx, byte [edx + 0x41c708]
jmp dword [ecx*4 + 0x41c6f0]
test dword [esi + 0x5f8], 0x800
jne 0x41c6e3
test eax, eax
jne 0x41c6e3
mov eax, dword [esi + 0x610]
cmp eax, dword [esi + 0x614]
jne 0x41c5f6
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041bbf0
mov eax, dword [esi + 0x614]
test eax, eax
je 0x41c5e1
dec eax
push eax
push dword [esi + 0x610]
mov ecx, esi
call fcn.0041bbf0
mov ecx, esi
call fcn.0041b8e0
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test byte [esi + 0x5f8], 0x20
jne 0x41c6e3
mov eax, dword [esi]
push esi
call dword [eax + 0x1b8]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0x5f8], 0x800
jne 0x41c6e3
mov eax, dword [esi]
push esi
call dword [eax + 0x1b4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x5f8]
test eax, 0x800
jne 0x41c6e3
test al, 0x20
jne 0x41c6e3
mov eax, dword [esi]
push esi
call dword [eax + 0x1c0]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0x5f8], 0x800
jne 0x41c6e3
mov ecx, esi
call fcn.0041ce50
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x5f8]
test eax, 0x2000
je 0x41c6b5
cmp di, 0x30
jb 0x41c6af
cmp di, 0x39
jbe 0x41c6b5
cmp di, 0x2d
jne 0x41c6e3
test eax, 0x800
jne 0x41c6e3
cmp di, 0x20
jb 0x41c6e3
cmp di, 0x7f
je 0x41c6e3
xor eax, eax
mov word [ebp + 8], di
push 1
mov word [ebp + 0xa], ax
mov ecx, esi
push 1
lea eax, [ebp + 8]
push eax
push 1
call fcn.0041c950
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x41c750
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [ecx + 0x610]
mov edi, dword [ecx + 0x614]
cmp eax, edi
mov ecx, edi
cmovl ecx, eax
cmovg edi, eax
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x41c7e2
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov ecx, dword [ecx + 0x5d8]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.004524c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 0x438]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41cf20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
jne 0x41d0e8
push edi
push 0x10
call esi
movzx edi, ax
push 0x11
and edi, 0x8000
call esi
mov ecx, dword [ebp + 0xc]
movzx edx, ax
add ecx, 0xffffffdd
and edx, 0x8000
cmp ecx, 0xb
ja case.0x41cf66.38
jmp dword [ecx*4 + 0x41d0f0]
mov ecx, dword [ebp + 8]
push edi
test edx, edx
je 0x41cf80
call fcn.0041c490
pop edi
pop esi
pop ebp
ret 0x10
call fcn.0041c370
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push edi
test edx, edx
je 0x41cf9e
call fcn.0041c500
pop edi
pop esi
pop ebp
ret 0x10
call fcn.0041c400
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.0041c450
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.0041c3b0
pop edi
pop esi
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
test dword [esi + 0x5f8], 0x800
jne case.0x41cf66.38
test edi, edi
je 0x41cfe8
test edx, edx
jne case.0x41cf66.38
mov eax, dword [esi + 0x610]
cmp eax, dword [esi + 0x614]
je 0x41d00d
mov eax, dword [esi]
push esi
test edi, edi
je 0x41d0a9
call dword [eax + 0x1c0]
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, esi
push 0
push 0xffffffffffffffff
test edi, edi
je 0x41d04b
call fcn.0041bbf0
mov eax, dword [esi + 0x614]
test eax, eax
je 0x41d027
dec eax
push eax
push dword [esi + 0x610]
mov ecx, esi
call fcn.0041bbf0
mov ecx, esi
call fcn.0041b8e0
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
pop esi
pop ebp
ret 0x10
test edx, edx
je 0x41d098
call fcn.0041bbf0
cmp dword [esi + 0x5dc], 0xffffffff
jne 0x41d06f
push dword [esi + 0x5d8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0x5dc], eax
push dword [esi + 0x5dc]
mov ecx, esi
push dword [esi + 0x610]
call fcn.0041bbf0
mov ecx, esi
call fcn.0041b8e0
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
pop esi
pop ebp
ret 0x10
call fcn.0041bbf0
push 1
mov ecx, esi
call fcn.0041c400
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
pop esi
pop ebp
ret 0x10
test edi, edi
je 0x41d0d7
mov ecx, dword [ebp + 8]
test dword [ecx + 0x5f8], 0x800
jne case.0x41cf66.38
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1b4]
pop edi
pop esi
pop ebp
ret 0x10
test edx, edx
je case.0x41cf66.38
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1b8]
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x41d4b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x487580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
test dword [ebx + 0x5f8], 0x800
jne 0x41d6b0
push dword [ebx + 0x438]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41d68f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408610
mov dword [ebp - 4], 0
xor edi, edi
lea esp, [esp]
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp ebx, 8
cmovae ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d542
sub ecx, edx
sar ecx, 1
cmp edi, ecx
jae 0x41d5c7
cmp ebx, 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d562
push 1
sub esi, ecx
lea ecx, [ebp - 0x28]
push 0
push 0x46ea24
sar esi, 1
call fcn.0041e700
cmp eax, esi
jae 0x41d5c4
push 1
push 0
push 0x46ea24
lea ecx, [ebp - 0x28]
call fcn.0041e700
push 1
push 0
push 0x46ea24
lea ecx, [ebp - 0x28]
lea esi, [eax + 1]
call fcn.0041e700
push 0
push 0x46ca48
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004123c0
add edi, esi
jmp 0x41d530
mov esi, dword [ebp - 0x28]
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d5d3
sub eax, edx
sar eax, 1
cmp edi, eax
jae 0x41d65b
cmp ebx, 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d5f3
push 1
sub esi, ecx
lea ecx, [ebp - 0x28]
push 0
push 0x46ea28
sar esi, 1
call fcn.0041e700
cmp eax, esi
jae 0x41d658
push 1
push 0
push 0x46ea28
lea ecx, [ebp - 0x28]
call fcn.0041e700
push 1
push 0
push 0x46ea28
lea ecx, [ebp - 0x28]
lea esi, [eax + 1]
call fcn.0041e700
push 0
push 0x46ca48
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004123c0
mov ebx, dword [ebp - 0x14]
add edi, esi
jmp 0x41d5c4
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push 1
cmp ebx, 8
push 1
cmovae eax, esi
push eax
push 1
call fcn.0041c950
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x14], 8
jb 0x41d6aa
push dword [ebp - 0x28]
call fcn.00450ad0
add esp, 4
jmp 0x41d6aa
test byte [ebx + 0x5f8], 0x20
je 0x41d6aa
push 1
push 1
push 0x46e734
push 1
mov ecx, ebx
call fcn.0041c950
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 4
Function at 0x421540
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x421628
cmp ecx, dword [edi + 0x9d4]
jge 0x421628
mov eax, dword [edi + 0x9e4]
push ebx
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x421627
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
and eax, 0x8000
push 0x11
mov dword [ebp - 4], eax
call esi
and eax, 0x8000
cmp dword [edi + 0x9cc], 0
je 0x4215e0
cmp dword [ebp - 4], 0
jne 0x4215be
test eax, eax
je 0x4215e0
cmp dword [ebx + 0xc], 0
mov ecx, ebx
je 0x421618
push 1
mov dword [ebx + 0xc], 0
call fcn.004473f0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00420ab0
cmp eax, 0xffffffff
je 0x421616
push esi
push eax
mov ecx, edi
call fcn.00421630
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
xor esi, esi
cmp dword [edi + 0x9d4], esi
jle 0x421616
lea ebx, [ebx]
mov eax, dword [edi + 0x9e4]
mov ecx, dword [eax + esi*4]
cmp dword [ecx + 0xc], 0
je 0x42160d
push 1
mov dword [ecx + 0xc], 0
call fcn.004473f0
inc esi
cmp esi, dword [edi + 0x9d4]
jl 0x4215f0
mov ecx, ebx
push 4
mov dword [ebx + 0xc], 1
call fcn.004473f0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x42dd10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00451690
mov eax, dword [0x487580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
add ebx, 0x4b0
push 1
push 0
push 0
push ebx
push str.open
push 0
call esi
cmp eax, 0x20
jg 0x42de08
cmp eax, 2
je 0x42de08
push 1
push 0
push ebx
push str.iexplore.exe
push str.open
push 0
call esi
cmp eax, 0x20
jg 0x42de08
cmp eax, 2
je 0x42de08
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.004516c0
push 0x1c
lea eax, [ebp - 0x1004]
push str.url.dll_FileProtocolHandler
push eax
call fcn.00452ccc
add esp, 0x18
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42ddb2
push edi
lea edi, [ebp - 0x1004]
sub ebx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42ddd0
mov ecx, ebx
lea eax, [ebp - 0x1004]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push eax
push str.rundll32.exe
mov ecx, ebx
and ecx, 3
push str.open
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045167e
mov esp, ebp
pop ebp
ret 4

Function at 0x436710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push 1
lea eax, [edi + 0x4b0]
push eax
push edi
call fcn.004112a0
test eax, eax
je 0x43677e
mov eax, dword [edi]
push edi
call dword [eax + 0x18c]
push 0
push 0
push 1
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x5c0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x5c4], eax
lea eax, [ebp + 8]
push eax
push 0
push edi
push 0x4364e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x5bc], eax
pop edi
pop ebp
ret 4

Function at 0x436800
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x5bc], 0
je 0x436843
push dword [esi + 0x5c4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [esi + 0x5bc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x5bc]
call edi
mov dword [esi + 0x5bc], 0
mov eax, dword [esi + 0x5c0]
test eax, eax
je 0x43685a
push eax
call edi
mov dword [esi + 0x5c0], 0
mov eax, dword [esi + 0x5c4]
test eax, eax
je 0x436871
push eax
call edi
mov dword [esi + 0x5c4], 0
push 1
push 0
push dword [esi + 0x438]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
ret 4
Function at 0x438be0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx + 0x7fc]
push edi
mov edi, dword [ecx + 0x800]
cmp eax, edi
mov dword [ebp - 4], ecx
mov ecx, edi
cmovl ecx, eax
cmovg edi, eax
mov dword [ebp - 8], ecx
cmp edi, ecx
je 0x438c74
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 8]
push edi
mov ecx, dword [ecx + 0x7cc]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.004524c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push dword [eax + 0x438]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x439570
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, ecx
test dword [esi + 0x7e4], 0x800
jne 0x4395be
push edi
push dword [esi + 0x438]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4395b6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.00439e80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x43bfe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46acf3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x487580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov dword [ebp - 4], eax
mov word [ecx], ax
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push eax
push 0x46ca48
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x40], al
mov dword [esi + 0x44], eax
call fcn.0040dd10
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43c0b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ad23
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x487580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.TiXmlElement.0
xor ecx, ecx
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x40], vtable.TiXmlAttribute.0
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], 0
mov dword [ebp - 4], eax
lea eax, [esi + 0x40]
mov word [eax + 0x10], cx
mov dword [eax + 0x3c], 7
mov dword [eax + 0x38], ecx
mov word [eax + 0x28], cx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x44], eax
mov dword [eax + 0x40], eax
mov edx, dword [ebp + 8]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov byte [ebp - 4], 1
cmp word [edx], cx
jne 0x43c172
xor eax, eax
jmp 0x43c186
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c177
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0040dd10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43c210
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ad48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x487580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov edi, dword [ebp + 8]
mov dword [esi], vtable.TiXmlText.0
mov dword [ebp - 4], eax
cmp word [edi], ax
jne 0x43c28b
xor ecx, ecx
jmp 0x43c29f
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c290
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x1c]
call fcn.0040dd10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x441780
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x487580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4417b4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4417b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x44189c
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x4417d1
cmp ax, 0x5c
jne 0x4417d3
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4417c5
cmp edi, ebx
je 0x44181f
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004524c0
add esp, 0xc
cmp edi, 0x208
jae 0x4418ac
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00441780
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x441844
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x441834
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x441846
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x441860
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x44189c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045167e
mov esp, ebp
pop ebp
ret
call fcn.00450e0b
int3

Function at 0x442040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44210d
cmp dword [esi + 4], 0xffffffff
jne 0x44210d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x442071
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4420a8
cmp eax, 0x2f
je 0x4420a8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x442095
mov eax, dword [0x475c90]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4420ce
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4420ce
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00444d00
add esp, 0x10
test eax, eax
jne 0x4420ee
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00445430
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc