joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65a4172a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x65a417d9
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [esp], eax
call fcn.65a414db
cmp dword [ebp + 0xc], eax
jne 0x65a417d5
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x65a417e4
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x65a4178e
cmp dword [ebp - 4], 0
je 0x65a417f4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
jmp 0x65a417f9
mov eax, 0
leave
ret
Function at 0x65b41c80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.65b427d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.65b427d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x65b41ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x65bf8070]
test esi, esi
jle 0x65b41e00
mov eax, dword [0x65bf8074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x65b41d14
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x65b41d97
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x65b41d00
mov dword [esp], ebx
call fcn.65b424d0
mov edi, eax
test eax, eax
je 0x65b41e27
mov eax, dword [0x65bf8074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.65b42610
mov edx, dword [0x65bf8074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x65b41e07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x65b41d90
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x65b41da0
add dword [0x65bf8070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x65bf8074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x65b41d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.65b41c80
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x65b41d1e
mov eax, dword [0x65bf8074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.65b41c80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.65b41c80
lea esi, [esi]
nop
Function at 0x65b42140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x65bf8080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x65bf8078]
sub esp, 4
test ebx, ebx
je 0x65b42195
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x65b4218e
test esi, esi
je 0x65b4218e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65b42170
mov dword [esp], 0x65bf8080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x65b424d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x65a40000], 0x5a4d
jne 0x65b424f5
mov ecx, dword [0x65a4003c]
cmp dword [ecx + 0x65a40000], 0x4550
lea edx, [ecx + 0x65a40000]
je 0x65b42500
ret
cmp word [ecx + 0x65a40018], 0x10b
jne 0x65b424f5
push esi
movzx eax, word [ecx + 0x65a40014]
push ebx
movzx esi, word [ecx + 0x65a40006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x65a40000
test si, si
je 0x65b42548
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x65b4253e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x65b4254a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x65b42530
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40aef0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6a8]
jne 0x40aefa
repz ret
jmp fcn.0041205c

Function at 0x420fad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6a8]
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.004105c8
and dword [ebp - 0x14], 0
cmp dword [0x44e164], 0
mov dword [ebp - 0x18], eax
jne 0x421060
push 0x404358
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421108
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40434c
push ebx
call edi
test eax, eax
je 0x421108
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40433c
push ebx
mov dword [0x44e164], eax
call edi
push eax
call esi
push 0x404328
push ebx
mov dword [0x44e168], eax
call edi
push eax
call esi
push 0x40430c
push ebx
mov dword [0x44e16c], eax
call edi
push eax
call esi
mov dword [0x44e174], eax
test eax, eax
je 0x421060
push 0x4042f4
push ebx
call edi
push eax
call esi
mov dword [0x44e170], eax
mov eax, dword [0x44e170]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4210b9
cmp dword [0x44e174], ecx
je 0x4210b9
push eax
call esi
push dword [0x44e174]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4210b9
test ebx, ebx
je 0x4210b9
call edi
test eax, eax
je 0x4210b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4210b0
test byte [ebp - 8], 1
jne 0x4210b9
or dword [ebp + 0x10], 0x200000
jmp 0x4210ec
mov eax, dword [0x44e168]
cmp eax, dword [ebp - 0x18]
je 0x4210ec
push eax
call esi
test eax, eax
je 0x4210ec
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4210ec
mov eax, dword [0x44e16c]
cmp eax, dword [ebp - 0x18]
je 0x4210ec
push eax
call esi
test eax, eax
je 0x4210ec
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44e164]
call esi
test eax, eax
je 0x421108
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42110a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aef0
leave
ret
Function at 0x422d00
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00421de0
cmp dword [0x7eee78], 0x37
jne 0x422dca
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4044d0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4044e8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x404544
push 0
lea ecx, [esp + 0x40c]
push ecx
push 0x404584
push 0x4045a4
push 0x4045c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push 0
lea eax, [esp + 0x808]
push eax
push 0x4045d0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x7eee7c]
mov eax, dword [0x7eb2e8]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1004
ret
Function at 0x404810
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404833
call fcn.00404ae0
test eax, eax
jne 0x404833
push 0x4a4c90
call fcn.00404910
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40486c
cmp dword [esi + 0x18], ebx
je 0x40485e
cmp dword [esi + 8], ebx
je 0x404853
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a4cd4
call fcn.00404910
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x4048a5
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x4048cc
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x4048cc
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x4048c2
cmp dword [esi + 8], ebx
je 0x4048b7
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4048e1
mov dword [esi + 4], ebx
jmp 0x4048a5
cmp dword [esi + 0x18], ebx
je 0x4048fe
cmp dword [esi + 8], ebx
je 0x4048f3
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a4cf4
call fcn.00404910
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4049e0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x4049f0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404abf
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push 0x4a4d18
push edx
call fcn.0049115d
add esp, 0xc
test eax, eax
je 0x404ab6
lea eax, [esp]
push 0x4a4d30
push eax
call fcn.00490f59
add esp, 8
test eax, eax
je 0x404ab6
lea ecx, [esp]
push 0x4a4d48
push ecx
call fcn.00490f59
add esp, 8
test eax, eax
je 0x404ab6
lea edx, [esp]
push 0x4a4d5c
push edx
call fcn.00490f59
add esp, 8
test eax, eax
je 0x404ab6
lea eax, [esp]
push 0x4a4d6c
push eax
call fcn.00490f59
add esp, 8
test eax, eax
je 0x404ab6
lea ecx, [esp]
push 0x4a4d88
push ecx
call fcn.00490f59
add esp, 8
test eax, eax
je 0x404aac
lea edx, [esp]
push 0x4a4dac
push edx
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x404ac5
test esi, esi
je 0x404ab6
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret
Function at 0x4093e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4cb688], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x409404
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4cb68c], 0
je 0x409413
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x409620
test al, al
jne 0x409456
cmp byte [ebp + 0xc], al
jne 0x409456
push 0x4ca45c
push 0
push 0
push 0x409710
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cbd88], eax
test eax, eax
je 0x4094e7
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4ca45c]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40948c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x409466
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x4094f3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40955a
cmp dword [esp + 0x2c], 0
je 0x409502
mov byte [esp + 0x1f], 1
call fcn.00409aa0
test al, al
jne 0x409502
cmp byte [ebp + 0xc], al
jne 0x4095ee
mov byte [ebp + 8], al
jmp 0x4094a1
call fcn.00409ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40953e
call fcn.00409aa0
test al, al
jne 0x40955a
cmp byte [ebp + 0xc], 0
jne 0x4095e7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4cb688], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x409592
test byte [esp + 0x1e], 1
jne 0x4095ab
push 0x4a6a3c
push 0
push 0
call esi
mov dword [0x4cbd80], eax
jmp 0x4095ab
mov ecx, dword [0x4cbd88]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x409572
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x409502
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4094a1
mov edx, dword [0x4cbd88]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4cbd88], 0
call fcn.00409ac0
jmp 0x409512
test byte [esp + 0x1e], 1
je 0x4095ab
mov eax, dword [0x4cbd80]
push eax
call edi
mov dword [0x4cbd80], 0
cmp dword [0x4cb68c], 0
je 0x4095cd
test byte [esp + 0x1e], 2
jne 0x4095e7
push 0x4a6a50
push 0
push 0
call esi
mov dword [0x4cbd84], eax
jmp 0x4095e7
test byte [esp + 0x1e], 2
je 0x4095e7
mov ecx, dword [0x4cbd84]
push ecx
call edi
mov dword [0x4cbd84], 0
cmp byte [esp + 0x1f], 0
je 0x409620
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4c795c], 0
push 0
push 0
push 0x10000
push 0x4a6a68
call fcn.0047c260
add esp, 0x18
mov dword [0x4c795c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b220
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x100c
call fcn.0049bfd0
cmp byte [0x4cd1fc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
push edi
jne 0x40b394
cmp dword [0x4cbda4], 0
jne 0x40b256
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cbda4], eax
mov ebx, 1
add dword [0x4cd200], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4cd200]
mov esi, dword [0x4c7970]
mov ecx, eax
sub ecx, dword [0x4cbda4]
mov dword [0x4cbda8], eax
cmp edx, dword [0x4c796c]
jbe 0x40b28c
cmp ecx, esi
jb 0x40b2f0
xor edx, edx
cmp ecx, esi
jbe 0x40b2a9
mov dword [0x4cd200], 0
mov dword [0x4cbda4], eax
test edx, edx
jne 0x40b394
mov esi, dword [esp + 0x1020]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4ccfde], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push 0x4a4904
push ecx
xor eax, eax
xor edx, edx
call fcn.0046f4d0
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40b362
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
push ecx
push edx
push 0x4a73b8
mov esi, 0x800
lea edi, [esp + 0x24]
call fcn.00477380
add esp, 0xc
call fcn.0040a0c0
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4cd1fc], bl
mov dword [0x4c795c], 0
call fcn.0047c260
add esp, 0x18
cmp eax, 7
jne 0x40b349
push 0
push 4
push 0x4cc518
call fcn.00418290
mov eax, dword [0x4cbda8]
mov dword [0x4c795c], ebx
mov byte [0x4cd1fc], 0
mov edx, ebx
jmp 0x40b292
cmp byte [ebp + 0x1b], 0
je 0x40b394
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40b394
movzx edx, word [esi + 4]
mov eax, dword [0x4cb558]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
Function at 0x413fb0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x413fee
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x413fee
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413fee
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop edi
pop esi
add esp, 0x34
ret

Function at 0x414000
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x284
push ebx
push ebp
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebx, eax
test ebx, ebx
je 0x4140af
xor eax, eax
jmp 0x414030
movzx ecx, word [eax + 0x4a7fa0]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x414030
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x41409d
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41409d
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, 0x4a8008
call fcn.004788c0
pop edi
pop esi
test eax, eax
je 0x41409d
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x4140af
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x4142b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebx
push edi
push 0
mov bl, al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x41439f
push ebp
push esi
push 0x100
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004998e0
mov ebp, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push edi
xor esi, esi
push esi
push 2
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push 0x6e
call ebp
cmp eax, 2
jne 0x41430a
movzx esi, word [esp + 0x14]
push edi
push 0
push 2
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
movzx eax, bl
push 0
push eax
call ebp
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x41433e
push edi
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0x6e
call ebp
test si, si
je 0x41437d
push 1
lea eax, [esp + 0x17]
push edi
push eax
call fcn.00414570
mov bl, al
add esp, 0xc
test bl, bl
je 0x41437d
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x24]
call fcn.00413b20
push edi
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
movzx eax, bl
push 0
push eax
call ebp
cmp dword [esp + 0x1c], 0
pop esi
pop ebp
je 0x414394
movzx eax, word [esp + 0xc]
pop edi
pop ebx
add esp, 0x114
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x114
ret
push edi
movzx ecx, bl
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop edi
pop ebx
add esp, 0x114
ret
Function at 0x4189a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x4a9704
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x418a4a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x418a4a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418a4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x418a4a
push 0x44
call fcn.00492108
add esp, 4
test eax, eax
je 0x418a14
mov esi, eax
call fcn.00417150
mov ecx, eax
jmp 0x418a16
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474e10
mov ecx, dword [0x4ccfe0]
inc dword [0x4cc478]
mov dword [0x4cb4e8], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push 0x4a9730
mov ecx, 0x4cc518
call fcn.00430c90
pop esi
add esp, 0x10
ret 8
Function at 0x41ecf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c7978]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.00409e50
test eax, eax
je 0x41ed79
cmp eax, ebp
jbe 0x41ed93
sub eax, 2
jmp 0x41ed93
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ed80
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41edb4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41edad
cmp eax, 9
jne 0x41edb4
sub edi, 2
cmp edi, ebp
ja 0x41eda0
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41ede5
cmp byte [esp + 0x4c], 0
je 0x41edd9
mov ecx, dword [esp + 0x40]
push ebp
push 0x4a9bd8
call fcn.00430c90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00493864
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x431200
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.0049bfd0
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x431226
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x634]
test ebx, ebx
je 0x431230
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x43123d
mov ecx, dword [eax + 0x270]
movzx eax, word [eax + 0x274]
cmp dword [ebp + 0xc], 0
je 0x431304
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4cb4e8]
push edx
movzx eax, ax
push eax
push ecx
push 0x4ac928
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00477380
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x43129c
lea eax, [esp + 0x10]
mov edx, edi
push esi
sub edx, eax
sar edx, 1
mov esi, 0x2000
push 0x4ac540
sub esi, edx
call fcn.00477380
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x4312c2
mov edx, dword [ebp + 8]
push 0x4a968c
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00430850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x431304
test ebx, ebx
jne 0x4312e3
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x4312fa
mov ecx, dword [ebp + 0x10]
push esi
push 1
push ecx
mov ecx, ebx
call fcn.004309e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push esi
push edx
call fcn.00430c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10