joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443f04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4664d4]
cmp byte [eax + 0xc], 0
je 0x444071
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44406a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467b68], 0
jne 0x443f58
push 0x444078
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x444080
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b68], eax
cmp dword [0x465cc0], 0
jne 0x444053
push 0x444090
call sub.kernel32.dll_LoadLibraryA
mov dword [0x465cc0], eax
cmp dword [0x465cc0], 0
je 0x444053
push 0x44409c
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b6c], eax
push 0x4440ac
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b70], eax
push 0x4440c0
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b74], eax
push 0x4440d8
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b78], eax
push 0x4440f0
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b7c], eax
push 0x444104
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b80], eax
push 0x44411c
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b84], eax
push 0x444134
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b88], eax
push 0x444150
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b8c], eax
push 0x44415c
mov eax, dword [0x465cc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444071
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x447efc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404094
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x447f4b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404304
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f688
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f6d8]
test si, 4
je 0x44f69c
or bl, 1
test si, 8
je 0x44f6a6
or bl, 4
test si, 1
je 0x44f6b0
or bl, 8
test si, 2
je 0x44f6ba
or bl, 0x10
test si, 0x10
je 0x44f6c4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f6d3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44f6dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f714]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f6f5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f704
or bl, 4
test esi, 0x20000000
je 0x44f70f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x455dbc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x455dce
add esp, 0xfffffff0
call fcn.0040364c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa9c
mov eax, dword [0x466124]
mov dword [eax + 4], ebx
mov dword [eax], 0x456160
mov eax, dword [0x466134]
mov dword [eax + 4], ebx
mov dword [eax], 0x45616c
mov eax, ebx
call fcn.00456178
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x452594
push eax
push 0
push 0
mov eax, dword [0x4662a8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421508]
call fcn.00422c7c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421508]
call fcn.00422c7c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421508]
call fcn.00422c7c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00456598
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456474
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456474
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456474
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455f0b
call fcn.004036a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x456258
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456403
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4563e4
mov dl, 1
mov eax, dword [0x4180ac]
call fcn.004032f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404094
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4563d3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00444264
test al, al
je 0x4563c6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x456414
lea eax, [ebp - 0x254]
call fcn.00409108
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4563c6
xor eax, eax
push ebp
push 0x4563bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45644c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4563a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404304
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4563a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4563c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4562c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bb88
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45640a
lea eax, [ebp - 0x260]
call fcn.00404094
ret

Function at 0x456d38
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x467bb4]
cmp byte [eax + 0xa5], 0
jne 0x456da9
cmp dword [0x467bcc], 0
jne 0x456d6a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456cf4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x467bcc], eax
cmp dword [0x467bc8], 0
jne 0x456d85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x467bc8], eax
cmp dword [0x467bd0], 0
jne 0x456da9
push esp
push 0
push 0
push 0x456c98
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x467bd0], eax
pop edx
ret
Function at 0x456ea0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456eb7
add esp, 0xfffffff0
call fcn.0040364c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa9c
mov eax, dword [0x466294]
cmp word [eax + 2], 0
jne 0x456edf
mov eax, dword [0x466294]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458578
mov eax, dword [0x466358]
cmp word [eax + 2], 0
jne 0x456ef9
mov eax, dword [0x466358]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458770
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417c90]
call fcn.004032f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421fe8]
call fcn.00429418
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x457080
mov eax, dword [0x466194]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004297e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458d20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466194]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9c4
test eax, eax
je 0x456fee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408afc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9ec
test eax, eax
je 0x457002
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404304
mov eax, dword [0x46605c]
cmp byte [eax], 0
jne 0x457036
mov eax, ebx
call fcn.004571a8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00458efc
mov eax, ebx
call fcn.004598c0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457076
call fcn.004036a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457428
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x467bb4]
cmp dword [eax + 0x30], 0
je 0x4574d2
cmp dword [ebx + 0x94], 0
jne 0x4574cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4573b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4574cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457492
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4574cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419ff8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4574a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458034
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458069
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404184
jmp 0x458076
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4590d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459119
mov eax, esi
call fcn.0043f924
test al, al
je 0x459119
mov eax, dword [ebx + 0x84]
call fcn.0043f620
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459119
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f620
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45bc78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45be4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x45be35
mov eax, dword [edi + 0x30]
call fcn.00404354
test eax, eax
jne 0x45bcce
mov eax, dword [edi + 0x34]
call fcn.00404354
test eax, eax
jne 0x45bcce
mov eax, edi
call fcn.0045beec
jmp 0x45be35
cmp dword [edi + 0xa0], 0
jne 0x45bd05
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00408b58
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x467bdc]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x45bd3c
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00408b58
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x467bdc]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0045bf2c
mov ebx, eax
test bl, bl
jne 0x45bdea
mov eax, dword [edi + 0x30]
call fcn.00404354
test eax, eax
jne 0x45bd74
mov eax, dword [edi + 0xc0]
call fcn.00404354
test eax, eax
je 0x45bdea
mov eax, dword [edi + 0xc0]
call fcn.00404354
test eax, eax
je 0x45bd96
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00408b58
jmp 0x45bdc2
push dword [edi + 0x30]
push 0x45be68
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404414
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00408b58
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x45bdea
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0045bf2c
mov ebx, eax
test bl, bl
jne 0x45bdf7
mov eax, edi
call fcn.0045beec
jmp 0x45be35
mov eax, dword [edi + 0x58]
test eax, eax
je 0x45be06
mov dword [edi + 0xa8], eax
jmp 0x45be10
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.0045bfa4
test al, al
je 0x45be35
mov eax, edi
mov si, 0xffee
call fcn.00403524
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0045c0dc
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45be55
lea eax, [ebp - 0x108]
call fcn.00404094
ret

Function at 0x408928
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.0040894b
xor dword [ecx], eax
add ecx, 1
dec esi
and esi, esi
cmp ecx, ebx
jne fcn.00408928
sub esi, 0x8ad58537
ret

Function at 0x408920
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408946
push 0x9482be57
pop esi
dec edx
xor dword [ebx], eax
add edx, 0x353d5217
inc ebx
dec edx
cmp ebx, ecx
jne fcn.00408920
inc edx
and esi, edx
ret
Function at 0x46710c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x467147
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x467182
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0x46716c
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x46713f
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x4671b9
or eax, 0xffffffff
jmp 0x46713f
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x467190
cmp eax, 0xffffffff
je 0x467190
push 1
mov edx, esi
mov ecx, eax
call fcn.00466f08
pop ecx
jmp 0x46713d
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysAllocStringLen
push 0x4ba478
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x46713b
test eax, eax
je 0x46713b
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00466f08
pop ecx
mov ecx, esi
call fcn.00466ed7
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x46713d
Function at 0x48bced
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x48be07
push edi
push edi
push 3
push edi
push edi
push SysAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48bd24
xor eax, eax
jmp 0x48be36
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x48bd47
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x48bd1d
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x48bd1d
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x492cac
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48bd1d
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x48bde3
cmp dword [ecx], edi
jne 0x48bde3
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x48be0c
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x48be21
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401819
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.004755b0
mov ebp, dword [esp + 0x102c]
mov esi, dword [esp + 0x1020]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x1008], eax
cmp byte [esi], 0x2d
jne 0x401a90
mov ebx, dword [esp + 0x1024]
push str._load
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401b17
mov ebp, dword [0x497060]
test ebp, ebp
je 0x401898
lea edi, [esi + 1]
mov ebx, 0x497064
push dword [ebp + 0x44]
push edi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401b48
mov ebp, dword [ebx]
add ebx, 4
test ebp, ebp
jne 0x40187b
push 0x4a7962
push esi
call fcn.00485130
add esp, 8
xor edi, edi
test eax, eax
mov ebx, dword [esp + 0x102c]
je 0x401bd4
push 0x4ac630
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401ca5
push 0x4a7ce1
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401cf8
push str._hostkey
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401e14
push 0x4b0bb3
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401d4b
push 0x4b0774
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401d4b
push 0x4b14e7
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x401d4b
push 0x4afc1c
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x402056
push 0x4ac0da
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x4020f1
push 0x4b082f
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x40217c
push 0x4a7755
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x4021d4
push str._agent
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x4019c9
push str._pagent
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x4019c9
push str._pageant
push esi
call fcn.00485130
add esp, 8
test eax, eax
jne 0x401a00
xor edi, edi
inc edi
mov eax, dword [esp + 0x1028]
test eax, eax
js 0x402e64
test byte [0x4a14d4], 2
jne 0x402e56
test eax, eax
jne 0x401e4b
push 1
push 0x1d
push ebx
call fcn.0040374e
add esp, 0xc
xor edi, edi
inc edi
push str._noagent
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x402296
push str._nopagent
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x402296
push str._nopageant
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x402296
push str._share
push esi
call fcn.00485130
add esp, 8
test eax, eax
jne 0x4022ef
xor edi, edi
inc edi
cmp dword [esp + 0x1028], 0
js 0x402e64
test byte [0x4a14d4], 2
jne 0x402e56
cmp dword [esp + 0x1028], 0
mov ebx, dword [esp + 0x102c]
jne 0x401e4b
jmp 0x4022dc
xor edi, edi
cmp dword [esp + 0x1028], 0
js 0x402e64
mov ebx, dword [0x4a14d4]
invalid