joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a84
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ff9
test al, 0x10
jne 0x408ffd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40beac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bee5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046c4
jmp 0x40beee
mov eax, ebx
mov edx, esi
call fcn.00404628
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bef8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bf19
mov al, byte [esp]
jmp 0x40bf1b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c5a0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c418
mov eax, dword [0x4aaf9c]
cmp byte [eax], 0
je 0x40c60d
mov eax, dword [0x4aad68]
call fcn.00402e74
call fcn.00402894
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409328
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c654
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c643
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4aad0c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ac714]
call fcn.00405d5c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d3dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d440
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040483c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c9c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d447
lea eax, [ebp - 0xc]
call fcn.004045d4
ret
Function at 0x43f3bc
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x43f308
call sub.user32.dll_EnumWindows
ret

Function at 0x43f4e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x43f55d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043ef2c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x43f505
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043eb84
cmp dword [ebp - 4], 0
je 0x43f547
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a84
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f564
lea eax, [ebp - 4]
call fcn.004045d4
ret

Function at 0x4428ec
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 [0x4acbb8], 0
je 0x442a3b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4aaf34]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x442a3b
mov eax, dword [0x4acbbc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4acbb8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x442a0a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4acbb8]
call fcn.0041af14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x442a02
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x442a02
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x442a02
mov eax, dword [ebp - 0x14]
call fcn.0044b454
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x442a02
push ebp
call fcn.004428a8
pop ecx
test al, al
jne 0x442a02
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4429be
mov eax, dword [ebp - 0x14]
call fcn.00449fe8
dec eax
jle 0x442a02
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.00403a64
cmp byte [ebp - 1], 0
je 0x442a02
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x442a02
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4acbbc]
call fcn.00442070
inc edi
dec ebx
jne 0x442951
mov eax, dword [0x4acbbc]
cmp dword [eax + 8], 0
jle 0x442a22
mov eax, dword [0x4acbbc]
call fcn.00442100
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x442a3b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00442710
pop ecx
test al, al
jne 0x442a3b
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 0x446044
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 0x446090
mov eax, esi
call fcn.0045c158
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x446090
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x446090
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 0x4461cf
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4460d0
cmp eax, 0x108
ja 0x4460d0
mov eax, esi
call fcn.0045c158
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4461c6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4461cf
jmp 0x4461c6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4461af
cmp eax, 0x20a
ja 0x4461af
test byte [esi + 0x50], 0x80
jne 0x446102
sub eax, 0x203
je 0x4460ff
sub eax, 3
je 0x4460ff
sub eax, 3
jne 0x446102
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x446116
dec eax
je 0x44612b
dec eax
je 0x446148
dec eax
je 0x44612b
jmp 0x44614f
mov ecx, ebx
mov eax, dword [0x4aaf34]
mov eax, dword [eax]
mov edx, esi
call fcn.0046582c
jmp 0x4461c6
cmp byte [esi + 0x5d], 1
jne 0x446141
mov eax, esi
mov si, 0xffed
call fcn.00403a64
jmp 0x4461cf
or word [esi + 0x54], 1
jmp 0x4461c6
and word [esi + 0x54], 0xfffe
jmp 0x4461c6
mov eax, dword [0x4acb74]
cmp byte [eax + 0x20], 0
je 0x4461c6
mov eax, dword [0x4acb74]
cmp dword [eax + 0x1c], 0
je 0x4461c6
mov eax, dword [ebx]
mov edx, dword [0x4acb74]
cmp eax, dword [edx + 0x1c]
jne 0x4461c6
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.0045c09c
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.00403a64
jmp 0x4461cf
cmp eax, 0xb00b
jne 0x4461c6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044494c
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 0x44fd00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ab0e8]
cmp byte [eax + 0xc], 0
je 0x44fe6d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44fe66
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4acbc8], 0
jne 0x44fd54
push 0x44fe74
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44fe7c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbc8], eax
cmp dword [0x4a9c7c], 0
jne 0x44fe4f
push 0x44fe8c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a9c7c], eax
cmp dword [0x4a9c7c], 0
je 0x44fe4f
push 0x44fe98
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbcc], eax
push 0x44fea8
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbd0], eax
push 0x44febc
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbd4], eax
push 0x44fed4
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbd8], eax
push 0x44feec
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbdc], eax
push 0x44ff00
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe0], eax
push 0x44ff18
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe4], eax
push 0x44ff30
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe8], eax
push 0x44ff4c
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbec], eax
push 0x44ff58
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbf0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fe6d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x454130
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.004045d4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45417f
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.0040483c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45c00c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c05c]
test si, 4
je 0x45c020
or bl, 1
test si, 8
je 0x45c02a
or bl, 4
test si, 1
je 0x45c034
or bl, 8
test si, 2
je 0x45c03e
or bl, 0x10
test si, 0x10
je 0x45c048
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c057
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45c060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c098]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c079
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c088
or bl, 4
test esi, 0x20000000
je 0x45c093
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4626b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4626c6
add esp, 0xfffffff0
call fcn.00403bcc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422d50
mov eax, dword [0x4aad18]
mov dword [eax + 4], ebx
mov dword [eax], 0x462a58
mov eax, dword [0x4aad24]
mov dword [eax + 4], ebx
mov dword [eax], 0x462a64
mov eax, ebx
call fcn.00462a70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
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, 0x45ef38
push eax
push 0
push 0
mov eax, dword [0x4aae9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4247a8]
call fcn.00425ebc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4247a8]
call fcn.00425ebc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4247a8]
call fcn.00425ebc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00462ed8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462db4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462db4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462db4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462803
call fcn.00403c24
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x463810
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463827
add esp, 0xfffffff0
call fcn.00403bcc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422d50
mov eax, dword [0x4aae88]
cmp word [eax + 2], 0
jne 0x46384f
mov eax, dword [0x4aae88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464e44
mov eax, dword [0x4aaf4c]
cmp word [eax + 2], 0
jne 0x463869
mov eax, dword [0x4aaf4c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046503c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4186e4]
call fcn.00403838
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], Ordinal_27
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 [0x425228]
call fcn.0042cdc8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4639f0
mov eax, dword [0x4aad90]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d198
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4655bc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4aad90]
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.0040d374
test eax, eax
je 0x46395e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409364
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d39c
test eax, eax
je 0x463972
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.0040483c
mov eax, dword [0x4aac34]
cmp byte [eax], 0
jne 0x4639a6
mov eax, ebx
call fcn.00463b18
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.00465798
mov eax, ebx
call fcn.00466148
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4639e6
call fcn.00403c24
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4708c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4709a8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00408fd0
test al, al
je 0x470992
push 5
mov eax, dword [ebp - 4]
call fcn.00404a84
mov ebx, eax
push ebx
call sub.kernel32.dll_WinExec
mov ebx, 1
jmp 0x470992
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4709af
lea eax, [ebp - 4]
call fcn.004045d4
ret

Function at 0x4709b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x470a4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.0040272c
mov ebx, eax
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00409520
mov eax, ebx
call fcn.0040274c
mov eax, dword [ebp - 4]
call fcn.0040488c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x470a15
lea eax, [ebp - 4]
mov edx, 0x470a60
call fcn.00404894
lea eax, [ebp - 8]
mov ecx, 0x470a6c
mov edx, dword [ebp - 4]
call fcn.004048d8
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004708c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470a51
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045f8
ret

Function at 0x47403c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47406a
mov eax, ebx
call fcn.00474af4
cmp dword [ebx + 0x3c], 0
je 0x474063
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4740db
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4740cd
cmp dword [ebx + 8], 0
je 0x47408c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47409e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4740cd
cmp dword [ebx + 8], 0
je 0x47407f
cmp eax, 3
je 0x4740b1
dec eax
jne 0x47407f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47407f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47407f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4740f9
cmp dword [ebx + 0x10], 0xcc
je 0x4740f9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00474104
pop ebx
ret
Function at 0x4923c4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49249c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ad1d4], 0
jne 0x492480
lea eax, [ebp - 4]
mov edx, 0x4924b4
call fcn.0040466c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a84
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x492480
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x492479
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x492463
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4924c4
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x492463
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4ad1d4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492480
mov eax, dword [ebp - 0xc]
call fcn.0040274c
ret
mov ebx, dword [0x4ad1d4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4924a3
lea eax, [ebp - 4]
call fcn.004045d4
ret

Function at 0x49ca80
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4ad1f8], 0
jne 0x49caa3
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x49c9f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ad1f8], eax
ret
Function at 0x40236b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4023d1
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00432460
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023d1
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401337
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043223b
leave
ret
Function at 0x402f7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push 0x442dd8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x403016
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call edi
push str.RegQueryValueW
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.RegSetValueW
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.RegQueryValueExW
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.RegSetValueExW
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.RegCloseKey
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x14], eax
pop edi
je 0x403016
cmp dword [esi + 4], ebx
je 0x403016
cmp dword [esi + 8], ebx
je 0x403016
cmp dword [esi + 0xc], ebx
je 0x403016
cmp dword [esi + 0x10], ebx
je 0x403016
cmp eax, ebx
je 0x403016
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x40411d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00432460
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432460
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404163
mov esi, dword [esi + 4]
jmp 0x404166
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x404174
mov eax, dword [eax + 4]
jmp 0x404177
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4041a3
cmp dword [ebp - 0x14], ebx
je 0x40419f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041a5
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404feb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
jb 0x405014
mov eax, dword [eax + 4]
jmp 0x405017
add eax, 4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x40502c
xor al, al
jmp 0x405074
cmp dword [ebp - 0x24], edi
jle 0x405060
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x40504e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011dc
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405031
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011a7
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret 4