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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [0x42ba08]
cmp eax, 6
jne 0x411f01
cmp dword [0x42ba0c], 2
jae 0x411f05
xor edx, edx
jmp 0x411f07
mov dl, 1
neg dl
sbb edi, edi
cmp eax, 0xa
setae al
neg al
sbb eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x134]
push eax
call sub.user32.dll_GetKeyboardState
mov al, byte [ebp - 0x124]
or al, byte [ebp - 0x123]
or al, byte [ebp - 0x122]
and al, 0x80
test al, al
jne 0x4120a2
xor ebx, ebx
push ebp
call fcn.00411e6c
pop ecx
test eax, eax
je 0x411f56
push 0x55
call sub.user32.dll_GetSystemMetrics
mov ebx, eax
test ebx, ebx
je 0x411f65
push 0x20
call sub.user32.dll_GetSystemMetrics
sub eax, ebx
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_GetWindowRect
push 1
lea eax, [ebp - 0x144]
push eax
call sub.user32.dll_MonitorFromRect
mov dword [ebp - 8], eax
mov dword [ebp - 0x34], 0x28
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetMonitorInfoA
test eax, eax
je 0x411fb4
push esi
push edi
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x154]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x411fc6
push 0
lea eax, [ebp - 0x154]
push eax
push 0
push 0x30
call sub.user32.dll_SystemParametersInfoA
mov ecx, dword [ebp - 0x13c]
sub ecx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0x140]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x411fe6
dec ebx
add dword [ebp - 0x150], ebx
test edi, edi
je 0x411ff1
inc ebx
cmp dword [ebp - 4], 0
je 0x411ffa
sub ebx, 2
add dword [ebp - 0x154], ebx
sub dword [ebp - 0x14c], ebx
sub dword [ebp - 0x148], ebx
mov eax, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x154]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x41202a
mov dword [ebp - 0x144], ebx
mov eax, dword [ebp - 0x13c]
mov ebx, dword [ebp - 0x14c]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x41204a
sub ebx, ecx
mov dword [ebp - 0x144], ebx
mov eax, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x150]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x412068
mov dword [ebp - 0x140], ebx
mov eax, dword [ebp - 0x138]
mov ebx, dword [ebp - 0x148]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x412089
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 0x140], ebx
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x144]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x140]
call fcn.00408e18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412988
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
push esp
call sub.user32.dll_GetKeyboardState
test esi, esi
je 0x4129ac
mov al, byte [esp + 0x10]
or al, byte [esp + 2]
and al, 0x80
test al, al
jne 0x4129b0
xor eax, eax
jmp 0x4129b2
mov al, 1
neg al
sbb eax, eax
cmp dword [0x42bb28], 1
sbb edx, edx
inc edx
cmp eax, 1
sbb ecx, ecx
inc ecx
cmp dl, cl
je 0x4129d6
mov dword [0x42bb28], eax
mov eax, ebx
call fcn.00415530
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x413f74
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x413f7e
mov eax, dword [esp + 0x10000]
add esp, 0xfffffe00
mov edi, edx
mov esi, eax
xor ebp, ebp
cmp dword [0x42bacc], 0
je 0x4140a4
cmp dword [0x42bad0], 0
je 0x4140a4
push 0x43bf7c
call sub.kernel32.dll_EnterCriticalSection_1
lea ebx, [esp + 0x29]
push pe_nt_image_headers32
push 0x41b790
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_RtlMoveMemory
lea eax, [ebx + 6]
push eax
lea eax, [ebx + 5]
push eax
lea eax, [ebx + 3]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 2]
push eax
push ebx
call dword [0x41b744]
push 0x10000
mov eax, dword [0x41b714]
push eax
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_RtlMoveMemory
push 0x80
mov eax, dword [0x41b724]
push eax
lea eax, [esp + 0x1010c]
push eax
call sub.kernel32.dll_RtlMoveMemory
push 0x40
mov eax, dword [0x41b718]
push eax
lea eax, [esp + 0x101cc]
push eax
call sub.kernel32.dll_RtlMoveMemory
push 0x43bf7c
call sub.kernel32.dll_LeaveCriticalSection_1
or ebx, 0xffffffff
mov edx, edi
mov eax, esi
call fcn.00410cf0
test eax, eax
je 0x414071
push edi
call sub.imagehlp.dll_MakeSureDirectoryPathExists
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push edi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414084
mov edx, 0xfb
mov eax, esi
call fcn.0041334c
jmp 0x4140a4
push 0
lea eax, [esp + 4]
push eax
push 0x10200
lea eax, [esp + 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
or ebp, 0xffffffff
mov eax, ebp
add esp, 0x10204
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f9f6f70], dl
nop
nop
nop
pushal
nop
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2cee1729
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42ffb5
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x52f41254
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40b53e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4655f8]
jne 0x40b548
repz ret
jmp fcn.0040dfbb

Function at 0x40ca73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4655f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004080fd
and dword [ebp - 0x14], 0
cmp dword [0x469718], 0
mov dword [ebp - 0x18], eax
jne 0x40cb26
push 0x4023d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cbce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023c8
push ebx
call edi
test eax, eax
je 0x40cbce
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4023b8
push ebx
mov dword [0x469718], eax
call edi
push eax
call esi
push 0x4023a4
push ebx
mov dword [0x46971c], eax
call edi
push eax
call esi
push 0x402388
push ebx
mov dword [0x469720], eax
call edi
push eax
call esi
mov dword [0x469728], eax
test eax, eax
je 0x40cb26
push 0x402370
push ebx
call edi
push eax
call esi
mov dword [0x469724], eax
mov eax, dword [0x469724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cb7f
cmp dword [0x469728], ecx
je 0x40cb7f
push eax
call esi
push dword [0x469728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cb7f
test ebx, ebx
je 0x40cb7f
call edi
test eax, eax
je 0x40cb76
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cb76
test byte [ebp - 8], 1
jne 0x40cb7f
or dword [ebp + 0x10], 0x200000
jmp 0x40cbb2
mov eax, dword [0x46971c]
cmp eax, dword [ebp - 0x18]
je 0x40cbb2
push eax
call esi
test eax, eax
je 0x40cbb2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cbb2
mov eax, dword [0x469720]
cmp eax, dword [ebp - 0x18]
je 0x40cbb2
push eax
call esi
test eax, eax
je 0x40cbb2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x469718]
call esi
test eax, eax
je 0x40cbce
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cbd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b53e
leave
ret
Function at 0x44c170
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040df90
cmp dword [0x25b8aa4], 0x37
jne 0x44c238
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403440
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x424]
push ecx
push 0x403450
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [esp + 8]
push edx
push 0x4034a8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x20]
push eax
push 0
push 0x4034b0
push 0x4034c0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403510
push 0x403570
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov ecx, dword [0x25b8aa8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x46e834]
mov byte [ecx + esi], al
add esp, 0x1020
ret

Function at 0x44c260
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x466368]
push ebx
push ebp
mov ebp, dword [0x466364]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x466360]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x46636c]
push edi
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x20
jmp 0x44c2ab
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x1c]
shl ecx, 4
add ecx, dword [esp + 0x20]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x25aea54], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x25b8aa4], 0x1be
lea edi, [ebx + esi]
jne 0x44c300
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x25aea58], 0xff6b3619
mov dword [0x25aea5c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [0x25b8aa4]
cmp eax, 0x93
je 0x44c33b
add ebx, 0x61c88647
dec dword [esp + 0x18]
jne 0x44c2a7
cmp eax, 0x8d4
jne 0x44c36e
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
Function at 0x44c3f0
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [0x25b8aa4]
shr eax, 3
push esi
mov esi, dword [0x46e834]
test eax, eax
je 0x44c434
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push edi
mov edi, eax
mov edi, edi
cmp dword [0x25b8aa4], 0x1c
jne 0x44c426
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.0044c260
add esi, 8
dec edi
jne 0x44c410
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401ff5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
call fcn.00401f2f
push 0x13
pop eax
xor esi, esi
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x23
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xf
call dword [0x40e008]
call dword [0x40e01c]
cmp eax, 0x57
je 0x402066
push esi
call dword [0x40e024]
mov ecx, esi
mov edx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
xor byte [edx + 0x414250], al
inc ecx
xor eax, eax
cmp ecx, 0xb
cmove ecx, eax
inc edx
cmp edx, 0x13000
jb 0x40206a
call fcn.00401e43
push esi
test eax, eax
jne 0x402060
call dword [0x40e018]
int3
Function at 0x4026fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.0040387d
push 0
push 0x61
mov ecx, edi
call fcn.0040663a
mov ecx, dword [ebp + 0xc]
call fcn.00418fc0
mov edx, 0xce4
lea ecx, [ebp - 0xc]
call fcn.0040275b
push dword [eax]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0xc]
call fcn.004032af
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
leave
ret 8

Function at 0x402afe
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x419cce
call fcn.004193d0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00403738
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00402b58
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402baa
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x419d19
call fcn.004193d0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040b0b8
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00402c00
push dword [esi + 0x24]
call fcn.004032af
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040252f
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402fa0
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4045e3
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40474e
Capabilities:
Create directory

Disassembly:
mov eax, 0x419f5c
call fcn.004193d0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404771
mov al, 1
jmp 0x4047b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404782
xor al, al
jmp 0x4047b7
lea ecx, [ebp - 0x44]
call fcn.00404cc7
lea ecx, [ebp - 0x1c]
call fcn.00403738
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00404f7e
test al, al
je 0x4047ac
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004032af
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404f6f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404f7d
or eax, eax
ret
Function at 0x4055bf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4055e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4055e9
xor al, al
jmp 0x405609
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00419700
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x4148a0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x3e4
push ebp
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4148ce
cmp dword [esp + 0xc], 6
jne 0x4148ce
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4148f8
push str.SetDefaultDllDirectories
push 0x41b788
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4148f8
push 0xc00
call eax
test eax, eax
jne 0x4149ae
lea ecx, [esp + 0x11c]
push 0x106
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4149ae
cmp eax, 0x104
ja 0x4149ae
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
cmp word [esp + ebp*2 + 0x11a], 0x5c
je 0x414944
mov word [esp + ebp*2 + 0x11c], 0x5c
inc ebp
mov esi, dword [str.UXTHEME]
cmp byte [esi], 0
je 0x4149ae
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov al, byte [esi]
xor cx, cx
inc esi
mov cl, al
test al, al
mov word [esp + ebp*2 + 0x124], cx
je 0x41498a
lea ecx, [esp + ebp*2 + 0x126]
mov al, byte [esi]
xor dx, dx
mov dl, al
inc esi
mov word [ecx], dx
add ecx, 2
test al, al
jne 0x414978
lea eax, [esp + 0x124]
push str..dll
push eax
call edi
lea ecx, [esp + 0x124]
push 8
push 0
push ecx
call ebx
cmp byte [esi], 0
jne 0x41495d
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3e4
ret
Function at 0x4181b2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x41821b
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x41825c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x418241
mov ecx, ebx
call fcn.00417ea0
add ebx, 0x28
dec ebp
jne 0x418235
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x418257
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00417dd0
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00418300
mov ebx, eax
cmp ebx, edi
jne 0x4182bf
lea ecx, [ebp + 0x20]
call fcn.00419060
mov ebx, eax
cmp ebx, edi
jne 0x4182bf
lea ecx, [ebp + 0x1c]
call fcn.00419060
mov ebx, eax
cmp ebx, edi
jne 0x4182bf
push ebp
call fcn.00418350
mov ebx, eax
cmp ebx, edi
je 0x4182d4
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00418330
cmp ebx, edi
jle 0x4182cf
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x4182d4
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x4182e6
cmp dword [esi + 0x40], edi
jne 0x4182e6
cmp dword [esi + 0x3c], edi
jne 0x4182e6
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x419020
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x419048
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419057
mov eax, 1
ret 4
Function at 0x4013f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x40143e
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x401444
add eax, 4
pop esi
dec esi
push esi
jne 0x401426
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

Function at 0x40287f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x402932
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]