joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488e2e
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 0x488eae
cmp dword [ebp + 0xc], ecx
jne 0x488eae
cmp dword [ebx + 0x94], ecx
jne 0x488eae
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x488ea4
cmp eax, 0xffffffff
je 0x488ea4
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.0040aaaa
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x488eae
xor eax, eax
jmp 0x488fee
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x488ee9
cmp dword [ebp + 0xc], 0
jne 0x488ee9
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.0040aaaa
test eax, eax
jne 0x488e9d
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x488f0f
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x488f0f
cmp eax, 0xffffffff
je 0x488f0f
cmp dword [ebx + 0x90], ecx
jne 0x488f0f
cmp dword [ebx + 0xa8], ecx
je 0x488e9d
push dword [ebx + 0x6c]
push 0x570444
call fcn.00410dcc
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x488f48
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 0x488fae
push edi
jmp 0x488fa9
push dword [ebx + 0x6c]
push 0x570084
call fcn.00410dcc
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x488f74
cmp eax, edi
je 0x488f74
cmp dword [0x57613c], edi
jne 0x488f74
push 1
push ebx
mov ecx, eax
call fcn.00471272
jmp 0x488fa1
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x488f8c
push edi
call fcn.00420806
cmp eax, edi
je 0x488f8c
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 0x488e9d
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x488fae
push ebx
call fcn.0042341e
cmp dword [ebx + 0x6c], edi
je 0x488feb
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.00413555
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 0x49d498
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x521809
call fcn.00500eda
xor edi, edi
cmp dword [0x56ff64], edi
je 0x49d561
cmp dword [0x570c54], 0xfffffffe
jne 0x49d54e
cmp dword [ebp + 8], 0xffffffff
je 0x49d561
test byte [0x577e40], 1
mov esi, 0x577e20
jne 0x49d4f7
or dword [0x577e40], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004320dd
push 0x528185
call fcn.005007df
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.0043213a
cmp dword [0x577e1c], edi
je 0x49d50b
call fcn.00409d7b
push edi
push edi
push 0x49d440
call fcn.00505387
add esp, 0xc
mov dword [0x577e1c], eax
cmp eax, edi
jbe 0x49d53b
cmp eax, 0xffffffff
je 0x49d53b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x570c54], eax
jmp 0x49d541
mov dword [0x577e1c], edi
push 0x577e28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x49d561
mov eax, dword [ebp + 8]
mov dword [0x570c54], eax
cmp eax, 0xffffffff
jne 0x49d561
mov dword [0x577e1c], edi
call fcn.00500fb2
ret
Function at 0x4d99e8
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x523f6e
call fcn.00500f43
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004df48f
push 0x15c
call fcn.004022b4
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4d9a2c
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e0ddf
jmp 0x4d9a2e
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004df461
call fcn.004083b4
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x4d9bce
cmp dword [edi + 4], ebx
jle 0x4d9bce
lea ecx, [ebp - 0x21c]
call fcn.00402230
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4d9bb2
lea ecx, [ebp - 0x220]
call fcn.00402230
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4d9b03
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.004034cf
add esp, 0xc
jmp 0x4d9b35
jge 0x4d9b23
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.004034cf
add esp, 0x10
jmp 0x4d9b35
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00403cee
push 0x15c
call fcn.004022b4
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4d9b59
mov ecx, eax
call fcn.004b276a
mov esi, eax
jmp 0x4d9b5b
xor esi, esi
push dword [ebp - 0x220]
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.00407605
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004df461
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004021f0
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004021f0
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4d9a9c
call fcn.00500fc6
ret
Function at 0x4de5f2
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 0x4de60a
mov edi, dword [esi + 0xc]
jmp 0x4de64a
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4de623
call fcn.0041185e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4de638
call fcn.0041185e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4de64a
call fcn.0041185e
call fcn.004083b4
cmp dword [eax + 0x3c], 0
je 0x4de65f
push edi
mov ecx, ebx
call fcn.004dd4cd
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004de518
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4de67d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4de689
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 0x4e5b95
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 0x4e5bdf
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e5bdf
call fcn.004e547d
test eax, eax
je 0x4e5bdf
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0040394c
xor eax, eax
inc eax
jmp 0x4e5df7
cmp dword [ebx + 4], 0x100
push edi
jne 0x4e5dee
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4e5cdc
push 0x11
call edi
test ax, ax
jl 0x4e5cdc
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e5cdc
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e5c4f
cmp eax, 0x20
jbe 0x4e5cdc
cmp eax, 0x24
jbe 0x4e5c42
cmp eax, 0x26
je 0x4e5c42
cmp eax, 0x28
jne 0x4e5cdc
call fcn.004e547d
test eax, eax
je 0x4e5cdc
mov ecx, esi
call fcn.004103ef
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e547d
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e5c84
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0040394c
jmp 0x4e5de9
call fcn.0040e38b
test eax, eax
je 0x4e5de9
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040e3c3
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4e5cb2
xor edi, edi
jmp 0x4e5cb5
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0040e38b
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4e5de9
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4e5db8
sub eax, 0x12
je 0x4e5d90
sub eax, 0xb
je 0x4e5cfe
dec eax
dec eax
jne 0x4e5dee
push 0x12
call edi
test ax, ax
jl 0x4e5dee
push 0x11
call edi
test ax, ax
jl 0x4e5dee
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e5dee
call fcn.004e547d
test eax, eax
jne 0x4e5de9
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e53f7
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.0040ccfe
test eax, eax
je 0x4e5de9
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0040ccfe
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4e5de9
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e5da4
push 0
call fcn.004e53f7
mov ecx, esi
call fcn.0040de59
test eax, eax
je 0x4e5dee
mov ecx, esi
call fcn.0040de59
jmp 0x4e5de2
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040ccfe
test eax, eax
je 0x4e5dee
push dword [esi + 0x20]
call edi
push eax
call fcn.0040ccfe
push 0
push esi
mov ecx, eax
call fcn.00405989
mov ecx, eax
call fcn.004103ef
xor eax, eax
inc eax
jmp 0x4e5df6
push ebx
mov ecx, esi
call fcn.0040ab1e
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f31b7
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x524138
call fcn.00500eda
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4f3290
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4f3290
cmp ebx, 0x43
je 0x4f31f9
cmp ebx, 0x2d
jne 0x4f3290
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f3290
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402230
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.004034cf
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
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_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
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.004021f0
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0046fec5
call fcn.00500fb2
ret 4

Function at 0x4fb338
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_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x4fb37d
test edi, edi
jl 0x4fb37d
cmp ax, 0x20
je 0x4fb372
cmp word [ebp + 8], 0x71
jne 0x4fb37d
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x5006a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x572978]
jne 0x5006b3
repz ret
jmp fcn.00507686
Function at 0x512f79
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.00506fea
and dword [ebp - 4], 0
cmp dword [0x579c28], 0
mov ebx, eax
jne 0x51302a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5130db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5130db
push eax
call fcn.00506f78
mov dword [esp], 0x550e24
push edi
mov dword [0x579c28], eax
call esi
push eax
call fcn.00506f78
mov dword [esp], 0x550e10
push edi
mov dword [0x579c2c], eax
call esi
push eax
call fcn.00506f78
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x579c30], eax
call esi
push eax
call fcn.00506f78
pop ecx
mov dword [0x579c38], eax
test eax, eax
je 0x51302a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00506f78
pop ecx
mov dword [0x579c34], eax
mov eax, dword [0x579c34]
cmp eax, ebx
je 0x513082
cmp dword [0x579c38], ebx
je 0x513082
push eax
call fcn.00506ff3
push dword [0x579c38]
mov esi, eax
call fcn.00506ff3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x513082
test edi, edi
je 0x513082
call esi
test eax, eax
je 0x513079
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x513079
test byte [ebp - 0xc], 1
jne 0x513082
or dword [ebp + 0x10], 0x200000
jmp 0x5130bb
mov eax, dword [0x579c2c]
cmp eax, ebx
je 0x5130bb
push eax
call fcn.00506ff3
pop ecx
test eax, eax
je 0x5130bb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5130bb
mov eax, dword [0x579c30]
cmp eax, ebx
je 0x5130bb
push eax
call fcn.00506ff3
pop ecx
test eax, eax
je 0x5130bb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x579c28]
call fcn.00506ff3
pop ecx
test eax, eax
je 0x5130db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5130dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5387d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053860f

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40102b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ecx]
and dword [esp + 0x18], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
sub edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004011dd
test eax, eax
je 0x40118f
lea ecx, [esp + 0x18]
call fcn.004011dd
lea ecx, [esp + 0x18]
test eax, eax
je 0x4010fe
call fcn.004011dd
test eax, eax
je 0x4010bc
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
jmp loc.0048351e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4010f2
or ecx, ecx
je 0x40118a
push edx
pop edi
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4010e4
jmp 0x401186
sub ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x40118a
call fcn.004011bc
or edi, edi
jne 0x401133
cmp eax, 2
jne 0x40112e
lea ecx, [esp + 0x18]
call fcn.004011bc
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x40118a
push edx
pop ecx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x401123
jmp 0x401186
sub eax, 3
jmp 0x401136
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004011bc
mov ecx, eax
cmp esi, 0x7d00
jb 0x40115d
inc ecx
cmp esi, 0x500
jb 0x401166
inc ecx
cmp esi, 0x80
jae 0x401171
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x40118a
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x40117d
mov dword [esp + 0x1c], edx
sub edi, edi
inc edi
jmp 0x4011a7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
or ebx, ebx
je 0x40105e
sub edx, dword [esp + 0x14]
pop edi
pop esi
push edx
pop eax
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402c00
pop dword [ebp - 0x2c]
mov eax, 0x402c00
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x764ed06d
sub dword [ebp - 0x3c], 0x27fc8b22
mov dword [ebp - 0x38], 0xd9824
sub dword [ebp - 0x38], 0xcdda4bdf
mov dword [ebp - 0x34], 0x870731e1
add dword [ebp - 0x34], 0xc545124d
mov dword [ebp - 0x30], 0x59dd77b6
add dword [ebp - 0x30], 0xa622884a
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xae980911
add eax, 0x51a8777b
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x21109b7f
add dword [ebp - 0x3c], 0x5361cdd7
mov dword [ebp - 0x38], 0x69e8ac23
add dword [ebp - 0x38], 0xd783b552
mov dword [ebp - 0x34], 0xd3ef3e25
sub dword [ebp - 0x34], 0x707fd1b9
mov dword [ebp - 0x30], 0x27dcc5f4
add dword [ebp - 0x30], 0xd8233a0c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xfd0f7617
sub eax, 0xfccef543
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x37c42
push 0
call eax
mov ecx, 0x8ff59be9
sub ecx, 0x8ff54f9a
xor edi, edi
add edi, eax
mov ebx, 0x83a23c1c
add ebx, 0x7c9ed3e4
add ebx, dword [ebp - 0x2c]
mov edx, 0x503f64c3
add edx, 0x2605085c
add dword [ebp - 0x1c], ebx
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0xfa035762
xor esi, edx
mov dword [edi], esi
add dword [ebp - 0x20], 0x37242a30
add edi, 4
add ebx, 0x56337082
sub ebx, 0x5633707e
loop 0x402d1f
add eax, 0x14658573
add eax, 0xeb9b9e9c
xor ebx, ebx
add ebx, eax
add eax, 0xf1de5050
sub eax, 0xf1de504b
mov ecx, 0x77b5aadd
sub ecx, 0x7775aadd
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10029874
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x10029874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10029883
pop dword [ebp - 0x18]
mov eax, 0xf8607c21
add eax, 0x17a21c62
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x41a38
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x540cc0b9
sub ecx, 0x540c7308
mov ebx, eax
mov esi, 0x1004bc00
add esi, dword [ebp - 0x18]
mov edx, 0xdcd5dbf9
sub edx, 0x292a984
mov dword [ebp - 0x14], 0x9142c3c7
mov edi, dword [esi]
add dword [ebp - 4], 0xcbdcab0d
add edi, edx
xor dword [ebp - 0x10], ebx
mov dword [ebx], edi
sub dword [ebp - 0xc], ebx
add ebx, 0xdfb0ca03
add ebx, 0x204f3601
add esi, 0xb468d5d1
sub esi, 0xb468d5cd
loop 0x100298d7
add eax, 0xde8d36d0
sub eax, 0xde8c0d39
xor ebx, ebx
add ebx, eax
add eax, 0x1fb8bc9c
sub eax, 0x1fb8bc97
mov ecx, 0xd6429186
sub ecx, 0xc6429186
add ecx, dword [ebp - 0x18]
call ebx
leave
ret