joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b6a0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x49b720
cmp dword [ebp + 0xc], ecx
jne 0x49b720
cmp dword [ebx + 0x94], ecx
jne 0x49b720
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x49b716
cmp eax, 0xffffffff
je 0x49b716
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.00416a1e
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x49b720
xor eax, eax
jmp 0x49b860
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x49b75b
cmp dword [ebp + 0xc], 0
jne 0x49b75b
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.00416a1e
test eax, eax
jne 0x49b70f
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x49b781
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x49b781
cmp eax, 0xffffffff
je 0x49b781
cmp dword [ebx + 0x90], ecx
jne 0x49b781
cmp dword [ebx + 0xa8], ecx
je 0x49b70f
push dword [ebx + 0x6c]
push 0x58264c
call fcn.004253fa
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x49b7ba
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x49b820
push edi
jmp 0x49b81b
push dword [ebx + 0x6c]
push 0x582204
call fcn.004253fa
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x49b7e6
cmp eax, edi
je 0x49b7e6
cmp dword [0x58a5a4], edi
jne 0x49b7e6
push 1
push ebx
mov ecx, eax
call fcn.00480bc3
jmp 0x49b813
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49b7fe
push edi
call fcn.004359e2
cmp eax, edi
je 0x49b7fe
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x49b70f
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49b820
push ebx
call fcn.0043862b
cmp dword [ebx + 0x6c], edi
je 0x49b85d
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00428bbc
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4afbe8
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x533463
call fcn.00513eeb
xor edi, edi
cmp dword [0x582100], edi
je 0x4afcb1
cmp dword [0x582de8], 0xfffffffe
jne 0x4afc9e
cmp dword [ebp + 8], 0xffffffff
je 0x4afcb1
test byte [0x58c050], 1
mov esi, 0x58c030
jne 0x4afc47
or dword [0x58c050], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004473b9
push 0x539d82
call fcn.00511763
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00447410
cmp dword [0x58c02c], edi
je 0x4afc5b
call fcn.00414104
push edi
push edi
push 0x4afb90
call fcn.00517cf9
add esp, 0xc
mov dword [0x58c02c], eax
cmp eax, edi
jbe 0x4afc8b
cmp eax, 0xffffffff
je 0x4afc8b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x582de8], eax
jmp 0x4afc91
mov dword [0x58c02c], edi
push 0x58c038
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4afcb1
mov eax, dword [ebp + 8]
mov dword [0x582de8], eax
cmp eax, 0xffffffff
jne 0x4afcb1
mov dword [0x58c02c], edi
call fcn.00513fc3
ret
Function at 0x4ea7ed
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x535afd
call fcn.00513f54
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004f0433
push 0x15c
call fcn.00413146
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4ea831
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004f191d
jmp 0x4ea833
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004f0405
call fcn.0042185a
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4ea9cd
cmp dword [edi + 4], ebx
jle 0x4ea9cd
lea ecx, [ebp - 0x118]
call fcn.0040f5f0
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4ea9b1
lea ecx, [ebp - 0x11c]
call fcn.0040f5f0
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4ea902
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x557568
push eax
call fcn.00410150
add esp, 0xc
jmp 0x4ea934
jge 0x4ea922
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.00410150
add esp, 0x10
jmp 0x4ea934
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040fd50
push 0x15c
call fcn.00413146
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4ea958
mov ecx, eax
call fcn.004c3817
mov esi, eax
jmp 0x4ea95a
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.004206a6
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004f0405
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401390
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401390
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4ea89b
call fcn.00513fd7
ret
Function at 0x4ef38e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ef3a6
mov edi, dword [esi + 0xc]
jmp 0x4ef3e6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ef3bf
call fcn.004236d7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ef3d4
call fcn.004236d7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ef3e6
call fcn.004236d7
call fcn.0042185a
cmp dword [eax + 0x3c], 0
je 0x4ef3fb
push edi
mov ecx, ebx
call fcn.004ee1ed
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ef2b4
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4ef419
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ef425
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4f672f
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4f6779
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f6779
call fcn.004f5fea
test eax, eax
je 0x4f6779
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00410b90
xor eax, eax
inc eax
jmp 0x4f6991
cmp dword [ebx + 4], 0x100
push edi
jne 0x4f6988
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4f6876
push 0x11
call edi
test ax, ax
jl 0x4f6876
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f6876
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4f67e9
cmp eax, 0x20
jbe 0x4f6876
cmp eax, 0x24
jbe 0x4f67dc
cmp eax, 0x26
je 0x4f67dc
cmp eax, 0x28
jne 0x4f6876
call fcn.004f5fea
test eax, eax
je 0x4f6876
mov ecx, esi
call fcn.0041c9e8
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004f5fea
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4f681e
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00410b90
jmp 0x4f6983
call fcn.0041a002
test eax, eax
je 0x4f6983
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0041a03a
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4f684c
xor edi, edi
jmp 0x4f684f
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0041a002
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4f6983
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4f6952
sub eax, 0x12
je 0x4f692a
sub eax, 0xb
je 0x4f6898
dec eax
dec eax
jne 0x4f6988
push 0x12
call edi
test ax, ax
jl 0x4f6988
push 0x11
call edi
test ax, ax
jl 0x4f6988
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f6988
call fcn.004f5fea
test eax, eax
jne 0x4f6983
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004f5f64
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00418c3f
test eax, eax
je 0x4f6983
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00418c3f
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4f6983
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f693e
push 0
call fcn.004f5f64
mov ecx, esi
call fcn.00419785
test eax, eax
je 0x4f6988
mov ecx, esi
call fcn.00419785
jmp 0x4f697c
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00418c3f
test eax, eax
je 0x4f6988
push dword [esi + 0x20]
call edi
push eax
call fcn.00418c3f
push 0
push esi
mov ecx, eax
call fcn.00414a3b
mov ecx, eax
call fcn.0041c9e8
xor eax, eax
inc eax
jmp 0x4f6990
push ebx
mov ecx, esi
call fcn.00416a81
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x503c98
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x5323ed
call fcn.00513eeb
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x503d6e
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x503d6e
cmp ebx, 0x43
je 0x503cda
cmp ebx, 0x2d
jne 0x503d6e
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x503d6e
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0040f5f0
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00410150
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401390
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0047f8f6
call fcn.00513fc3
ret 4

Function at 0x50be7a
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x50beba
test edi, edi
jl 0x50beba
cmp al, 0x20
je 0x50beaf
cmp word [ebp + 8], 0x71
jne 0x50beba
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x511b60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58482c]
jne 0x511b6a
repz ret
jmp fcn.0051be4c
Function at 0x525838
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0051aa3a
and dword [ebp - 4], 0
cmp dword [0x58dd48], 0
mov ebx, eax
jne 0x5258e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x52599a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x562c00
push edi
call esi
test eax, eax
je 0x52599a
push eax
call fcn.0051a9c8
mov dword [esp], 0x562bf0
push edi
mov dword [0x58dd48], eax
call esi
push eax
call fcn.0051a9c8
mov dword [esp], 0x562bdc
push edi
mov dword [0x58dd4c], eax
call esi
push eax
call fcn.0051a9c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58dd50], eax
call esi
push eax
call fcn.0051a9c8
pop ecx
mov dword [0x58dd58], eax
test eax, eax
je 0x5258e9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0051a9c8
pop ecx
mov dword [0x58dd54], eax
mov eax, dword [0x58dd54]
cmp eax, ebx
je 0x525941
cmp dword [0x58dd58], ebx
je 0x525941
push eax
call fcn.0051aa43
push dword [0x58dd58]
mov esi, eax
call fcn.0051aa43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x525941
test edi, edi
je 0x525941
call esi
test eax, eax
je 0x525938
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x525938
test byte [ebp - 0xc], 1
jne 0x525941
or dword [ebp + 0x10], 0x200000
jmp 0x52597a
mov eax, dword [0x58dd4c]
cmp eax, ebx
je 0x52597a
push eax
call fcn.0051aa43
pop ecx
test eax, eax
je 0x52597a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x52597a
mov eax, dword [0x58dd50]
cmp eax, ebx
je 0x52597a
push eax
call fcn.0051aa43
pop ecx
test eax, eax
je 0x52597a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58dd48]
call fcn.0051aa43
pop ecx
test eax, eax
je 0x52599a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x52599c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401023
Capabilities:
Create process on windows
Get common file path

Disassembly:
jmp 0x401530
sub esp, 0x800
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x401595
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [ebx]
call fcn.0040101e
xor byte [esi + ebx], al
cmp edi, 0x679
jne 0x40158f
lea eax, [esp + 0x10]
push eax
push 0
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
inc esi
cmp esi, edi
jl 0x401550
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x800
ret
Function at 0x409fec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d220]
jne 0x409ff6
repz ret
jmp fcn.00410f27

Function at 0x40b03c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d220]
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.00406df3
and dword [ebp - 0x14], 0
cmp dword [0x4713c0], 0
mov dword [ebp - 0x18], eax
jne 0x40b0ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b197
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b197
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4713c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4713c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4713c8], eax
call edi
push eax
call esi
mov dword [0x4713d0], eax
test eax, eax
je 0x40b0ef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4713cc], eax
mov eax, dword [0x4713cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b148
cmp dword [0x4713d0], ecx
je 0x40b148
push eax
call esi
push dword [0x4713d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b148
test ebx, ebx
je 0x40b148
call edi
test eax, eax
je 0x40b13f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b13f
test byte [ebp - 8], 1
jne 0x40b148
or dword [ebp + 0x10], 0x200000
jmp 0x40b17b
mov eax, dword [0x4713c4]
cmp eax, dword [ebp - 0x18]
je 0x40b17b
push eax
call esi
test eax, eax
je 0x40b17b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b17b
mov eax, dword [0x4713c8]
cmp eax, dword [ebp - 0x18]
je 0x40b17b
push eax
call esi
test eax, eax
je 0x40b17b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4713c0]
call esi
test eax, eax
je 0x40b197
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b199
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fec
leave
ret
Function at 0x5f4f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f4f1b
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ba140]
pop edx
test eax, eax
je 0x5f4fed
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f4fdc
test dword [ebp - 0x2a8], 1
jne 0x5f4fdc
and dword [ebp - 0x2a8], 0x100
jne 0x5f4fdc
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2d4a]
pop edx
pop esi
test eax, eax
je 0x5f4f7f
jmp 0x5f4fdc
cmp word [esi], 0x5a4d
jne 0x5f4fdc
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f4fdc
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2e9e]
pop edx
test eax, eax
je 0x5f4fdc
lea eax, [ebp - 0x28c]
push eax
call fcn.005f4e5c
test eax, eax
jne 0x5f4fd5
jmp 0x5f4fdc
mov eax, esi
jmp 0x5f4fed
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f4f1b
pop esi
leave
ret 4
Function at 0x402d44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404644
test esi, esi
jne 0x402d7b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404734
jmp 0x402d9c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402be0
mov dword [esp], eax
test esi, esi
je 0x402d9c
cmp dword [ebx], 0
je 0x402d9c
dec esi
jmp 0x402d83
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4037d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x418020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40386c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40384c
xor eax, eax
push ebp
push 0x403845
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403888
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40384c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x418020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x418020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x419044], 0
je 0x404521
cmp word [0x419218], 0xd7b2
jne 0x4044e9
cmp dword [0x419220], 0
jbe 0x4044e9
mov eax, 0x419214
call dword [0x419230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x418070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404548
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x418030], 0
jne 0x40453d
push 0
push 0x418068
push 0x418070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406152
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004048b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403260
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40613c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406159
lea eax, [ebp - 0x10]
call fcn.00404644
ret

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

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

Function at 0x40a9bc
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 0x40a9f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404734
jmp 0x40a9fe
mov eax, ebx
mov edx, esi
call fcn.00404698
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa08
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 0x40aa29
mov al, byte [esp]
jmp 0x40aa2b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b0c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af28
mov eax, dword [0x418604]
cmp byte [eax], 0
je 0x40b13c
mov eax, dword [0x418508]
call fcn.00403160
call fcn.00402b0c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004080ec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b184
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b172
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4184e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x419660]
call fcn.00405594
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