joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x48ac04], 0
je 0x46599f
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x489c24]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x46599f
mov eax, dword [0x48ac08]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48ac04]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x46596e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x48ac04]
call fcn.00417ef0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x465966
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x465966
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x465966
mov eax, dword [ebp - 0x14]
call fcn.0046e378
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x465966
push ebp
call fcn.0046580c
pop ecx
test al, al
jne 0x465966
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x465922
mov eax, dword [ebp - 0x14]
call fcn.0046cf0c
dec eax
jle 0x465966
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0043310c
cmp byte [ebp - 1], 0
je 0x465966
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x465966
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48ac08]
call fcn.00464fd4
inc edi
dec ebx
jne 0x4658b5
mov eax, dword [0x48ac08]
cmp dword [eax + 8], 0
jle 0x465986
mov eax, dword [0x48ac08]
call fcn.00465064
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46599f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00465674
pop ecx
test al, al
jne 0x46599f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468f68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x468fb4
mov eax, esi
call fcn.00457bd8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x468fb4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x468fb4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4690f3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x468ff4
cmp eax, 0x108
ja 0x468ff4
mov eax, esi
call fcn.00457bd8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4690ea
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4690f3
jmp 0x4690ea
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4690d3
cmp eax, 0x20a
ja 0x4690d3
test byte [esi + 0x50], 0x80
jne 0x469026
sub eax, 0x203
je 0x469023
sub eax, 3
je 0x469023
sub eax, 3
jne 0x469026
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x46903a
dec eax
je 0x46904f
dec eax
je 0x46906c
dec eax
je 0x46904f
jmp 0x469073
mov ecx, ebx
mov eax, dword [0x489c24]
mov eax, dword [eax]
mov edx, esi
call fcn.00461544
jmp 0x4690ea
cmp byte [esi + 0x5d], 1
jne 0x469065
mov eax, esi
mov si, 0xffed
call fcn.0043310c
jmp 0x4690f3
or word [esi + 0x54], 1
jmp 0x4690ea
and word [esi + 0x54], 0xfffe
jmp 0x4690ea
mov eax, dword [0x48abc0]
cmp byte [eax + 0x20], 0
je 0x4690ea
mov eax, dword [0x48abc0]
cmp dword [eax + 0x1c], 0
je 0x4690ea
mov eax, dword [ebx]
mov edx, dword [0x48abc0]
cmp eax, dword [edx + 0x1c]
jne 0x4690ea
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00457b1c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0043310c
jmp 0x4690f3
cmp eax, 0xb00b
jne 0x4690ea
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00467888
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c5a8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x46c5c4
cmp dword [esi + 4], 0
je 0x46c5f1
test byte [ebx + 0x55], 1
jne 0x46c5e3
mov eax, ebx
call fcn.0046b200
test eax, eax
jne 0x46c5e3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x46c701
mov edx, esi
mov eax, ebx
call fcn.0046c0c8
jmp 0x46c701
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46c6fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046e378
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00468e9c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0046c5a8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046e378
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c701
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472c24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x489c10]
cmp byte [eax + 0xc], 0
je 0x472d91
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x472d8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48ac14], 0
jne 0x472c78
push 0x472d98
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x472da0
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac14], eax
cmp dword [0x4861e8], 0
jne 0x472d73
push 0x472db0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4861e8], eax
cmp dword [0x4861e8], 0
je 0x472d73
push 0x472dbc
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac18], eax
push 0x472dcc
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac1c], eax
push 0x472de0
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac20], eax
push 0x472df8
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac24], eax
push 0x472e10
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac28], eax
push 0x472e24
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac2c], eax
push 0x472e3c
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac30], eax
push 0x472e54
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac34], eax
push 0x472e70
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac38], eax
push 0x472e7c
mov eax, dword [0x4861e8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48ac3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472d91
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x473484
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4734f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4734ca
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00433c4c
jmp 0x4734d1
mov eax, ebx
call fcn.00433a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4734fd
cmp dword [ebp - 8], 0
je 0x4734ed
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x473504
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4735a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x473579
mov edx, ebx
mov eax, dword [0x44c284]
call fcn.004505b4
test al, al
je 0x473569
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004504c4
call fcn.00433768
jmp 0x4735ad
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x473534
mov ecx, dword [0x489db0]
mov dl, 1
mov eax, dword [0x422378]
call fcn.00425c00
call fcn.004336bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4735ad
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4735b4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x47360c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473613
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x47361c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x473671
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473678
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4736e8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x47375d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004733c0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00450588
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x473747
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473764
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x47376c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4737e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004733c0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4737cb
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4737e8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x47811c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x478138
call fcn.00478840
jmp 0x4781a7
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x478154
call fcn.00478840
jmp 0x4781a7
cmp dword [0x48b4bc], 1
je 0x4781a5
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0047c01c
pop ecx
cmp al, 0x41
jl 0x4781a5
cmp al, 0x5a
jg 0x4781a5
cmp byte [ebp - 0x107], 0x3a
jne 0x4781a5
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4781a5
call fcn.00478840
jmp 0x4781a7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4781ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4781db
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4781e5
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x4781f0
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x478256
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x478256
call fcn.00478840
jmp 0x478291
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x478266
call fcn.00478840
jmp 0x478291
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x47828c
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x47828a
cmp ebx, 1
je 0x47828a
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x478277
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47c134
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47c196
call fcn.0047c0e4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00476c9c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00476c9c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47c214
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x487ffc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x47c2ee
cmp dword [0x487ff8], 0
jne 0x47c2ee
cmp dword [0x488204], 0
je 0x47c2a8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0047bfc4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47c28e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0047bfc4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47c28e
lea ebx, [ebp - 0x84]
jmp 0x47c28f
inc ebx
call fcn.0047c1d0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x47c329
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x488000
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00476c9c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x488003
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x47c329
cmp dword [0x487ff8], 0
je 0x47c308
cmp dword [0x487ff8], 0xffffffff
je 0x47c329
push esi
call dword [0x487ff8]
pop ecx
mov eax, dword [0x487ffc]
test eax, eax
je 0x47c329
cmp dword [0x487ffc], 0xffffffff
je 0x47c329
cmp byte [eax], 0
je 0x47c329
push esi
push eax
call fcn.0047c134
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cb4c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48b4d4], 0
jne 0x47cbcd
cmp dword [0x48b4f4], 0
jne 0x47cb7c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48b4f4], eax
test eax, eax
jne 0x47cb7c
push str.GetEnvironmentStrings_failed
call fcn.0047c340
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48b4f4]
jmp 0x47cb90
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00476c9c
pop ecx
mov edi, eax
test eax, eax
jne 0x47cb88
lea edi, [ebp + 1]
push edi
call fcn.004765a0
pop ecx
mov ebx, eax
mov dword [0x48b4d8], ebx
test ebx, ebx
jne 0x47cbba
xor eax, eax
jmp 0x47cc90
push edi
mov edx, dword [0x48b4f4]
push edx
push ebx
call fcn.00476b4c
add esp, 0xc
jmp 0x47cbed
xor esi, esi
mov ebx, dword [0x48b4d4]
jmp 0x47cbe7
push eax
call fcn.00476c9c
pop ecx
test eax, eax
jne 0x47cbe3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47cbd7
lea ebx, [esi + 4]
push 4
mov dword [0x48b4dc], ebx
inc ebx
push ebx
call fcn.00476078
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x47cc10
xor eax, eax
jmp 0x47cc90
cmp dword [0x48b4d4], 0
jne 0x47cc41
xor esi, esi
mov ebx, dword [0x48b4d8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x47cc32
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00476c9c
pop ecx
mov edi, eax
test eax, eax
jne 0x47cc28
jmp 0x47cc72
xor esi, esi
mov ebx, dword [0x48b4d4]
mov eax, dword [esp]
mov edi, eax
jmp 0x47cc6c
push eax
call fcn.00476c9c
pop ecx
test eax, eax
je 0x47cc61
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x47cc65
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47cc50
mov eax, dword [0x48b4d4]
test eax, eax
je 0x47cc82
push eax
call fcn.004765b0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48b4d4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000c455
pop dword [ebp - 0x2c]
mov eax, 0xe9b2dd92
add eax, 0x264de6c3
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3a699
push 0
mov eax, 0x2d0af83a
add eax, 0xe2f6482a
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4dbf
xor esi, esi
add esi, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x2c]
mov ebx, 0xb6bce4fc
add ebx, 0x35b1fb05
xor dword [ebp - 0x24], eax
mov edx, dword [edi]
add dword [ebp - 0x18], 0xc216b1c2
xor edx, ebx
xor dword [ebp - 0x20], 0x3ae2b0fb
mov dword [esi], edx
sub dword [ebp - 0x10], 0xd6a821eb
add esi, 0xd8fe632f
sub esi, 0xd8fe632b
add edi, 4
loop 0x1000c4aa
add eax, 0x6fce243c
sub eax, 0x6fccfa6d
mov ebx, eax
add eax, 0xb7c09547
add eax, 0x483f6abe
mov ecx, 0xca7a205
sub ecx, 0xfca7a205
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret