joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5e92
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5cce74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.0054edf0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005572c1
push eax
call fcn.00404aa3
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x58f3d4]
je 0x4c5ff0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4c6004
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4c6004
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4c5f4e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4c5f42
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004c5c43
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4c5f49
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c5f50
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004c6142
test eax, eax
je 0x4c5f77
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c5aca
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c5f7b
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c6142
test eax, eax
je 0x4c5fa2
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c5aca
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c5fa6
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004c6142
test eax, eax
je 0x4c5fce
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c5aca
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4c5fd0
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4c5fe2
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4c5ff0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cb2c
leave
ret 4
xor eax, eax
jmp 0x4c5ff3
Function at 0x4d365d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d368a
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4d369f
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d369f
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0041e336
jmp 0x4d3770
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0041e336
cmp eax, edi
jne 0x4d377a
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4d370c
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4d3750
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4d377a
cmp eax, 0x205
je 0x4d377a
cmp eax, 0x201
je 0x4d377a
cmp eax, 0x204
je 0x4d377a
cmp eax, 0x100
jne 0x4d3738
cmp dword [ebp - 0x18], 0x1b
je 0x4d377a
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4d3770
ja 0x4d3769
cmp eax, dword [0x6e5044]
jbe 0x4d3770
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4d36c1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d4773
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4d47a9
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.004042eb
test eax, eax
je 0x4d4791
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x50eb1b
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x570b2c
call fcn.0054d41b
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x50ec01
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x50ec01
cmp esi, 0x43
je 0x50eb5d
cmp esi, 0x2d
jne 0x50ec01
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50ec01
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00401e60
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00402770
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x50ebef
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x50ebef
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.004023b0
push ebx
mov ecx, edi
call fcn.0041b36d
call fcn.0054d3e9
ret 4
Function at 0x51283e
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x578e2f
call fcn.0054d44e
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x5129cf
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x5129a1
sub eax, 1
je 0x5128bd
sub eax, 1
je 0x512895
sub eax, 1
je 0x5128bd
push 0x57de11
mov ecx, edi
call fcn.0040441c
mov eax, edi
call fcn.0054d3fd
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x51287f
lea eax, [ebp - 0x28c]
push eax
jmp 0x512884
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x51287f
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.004c6008
test eax, eax
je 0x51287f
lea ecx, [ebp - 0x3a0]
call fcn.00401e60
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x512957
test byte [ebp - 0x21c], 0x18
jne 0x512979
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x57d9c8]
mov ecx, ebx
call esi
jmp 0x512979
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x57d9c8]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.00404d42
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004023b0
jmp 0x51288b
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x51287f
lea eax, [ebp - 0x390]
jmp 0x5128ba
call fcn.00417191
int3

Function at 0x512b47
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005483c5
call fcn.0041b7af
cmp dword [eax + 0x14], 0
jne 0x512b62
mov ecx, esi
pop esi
jmp fcn.00511e60
pop esi
ret
Function at 0x512c5d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00423380
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x512c99
call fcn.00512e7a
mov dword [esi + 0xc], 1
jmp 0x512c9e
call fcn.00512e7a
cmp dword [esi], 0
je 0x512ce9
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x512cc4
push edi
call fcn.004179e9
lea ecx, [edi + 1]
push ecx
jmp 0x512cd3
push 0xff
call fcn.00402530
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004135f1
pop edi
jmp 0x512d0d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x512d0d
push dword [esi]
push dword [ebp - 4]
call fcn.004260d7
pop esi
leave
ret 0xc

Function at 0x512dd1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00512e7a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x512e19
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004179e9
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004135f1
jmp 0x512e24
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004260d7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51336b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055e753
pop ecx
test eax, eax
jne 0x5133ad
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00413855
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x513373
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x523437
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x52357d
mov ecx, 0x5ccaec
call fcn.00424b7d
mov esi, eax
test esi, esi
je 0x523572
xor eax, eax
cmp word [esi + 8], ax
jne 0x52353c
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x5234f8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x5234be
push str.MS_UI_Gothic
call fcn.005235bb
pop ecx
test eax, eax
je 0x5234be
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x5234d9
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5234f8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x5234fe
push ebx
push edi
push eax
call fcn.0049e87d
add esp, 0xc
jmp 0x5234fe
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.004174f2
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x523577
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.004254d1
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x52353f
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x52354d
push edi
call fcn.005565a0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402140
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00417191
call fcn.004171ab
int3

Function at 0x54594c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x5cce74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x5459b6
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x54599b
lea eax, [ebp - 0x158]
push eax
jmp 0x5459a0
push 0x5a6058
call fcn.0040441c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054cb2c
leave
ret 8
call fcn.00417191
int3

Function at 0x545e9b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401d40
call fcn.0041b7af
cmp dword [eax + 0x14], 0
jne 0x545eb6
mov ecx, esi
pop esi
jmp fcn.005456f6
pop esi
ret
Function at 0x54ddd5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x54de14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54de14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54de14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x54de14
cmp dword [ecx + 0x74], 0xe
jbe 0x54de14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x562d35
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ab458
push 0x5ab450
push str.FlsAlloc
push 0x1f
call fcn.00562bb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x562d69
push dword [ebp + 8]
mov ecx, esi
call dword [0x57d9c8]
call esi
jmp 0x562d6f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x562db3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ab468
push 0x5ab460
push str.FlsGetValue
push 0x21
call fcn.00562bb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x562dea
push dword [ebp + 8]
mov ecx, esi
call dword [0x57d9c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x562df2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ab470
push 0x5ab468
push str.FlsSetValue
push 0x22
call fcn.00562bb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x562e2c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57d9c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5675cb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x567668
push ebx
push esi
call fcn.00567594
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00564ee1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x567615
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x567667
push edi
push eax
call fcn.0056069c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x567635
call fcn.00560662
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x567666
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00564ee1
add esp, 0x20
test eax, eax
jne 0x567654
push edi
call fcn.00560662
jmp 0x56765c
push ebx
call fcn.00560662
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x56766b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x56767c
pop esi
ret
push ebx
push edi
push esi
call fcn.00567594
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0056069c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5676a4
push ebx
push esi
push edi
call fcn.0054e870
add esp, 0xc
push 0
call fcn.00560662
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x567a74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005676b9

Function at 0x56ce50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56ce7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56ce7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b190
cmp edx, dword [eax]
je 0x40778b
add eax, 8
inc ecx
cmp eax, 0x40b220
jl 0x40777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b190]
jne 0x4078b9
mov eax, dword [0x40bbb0]
cmp eax, 1
je 0x407893
test eax, eax
jne 0x4077bc
cmp dword [0x40b0e4], 1
je 0x407893
cmp edx, 0xfc
je 0x4078b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4077f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a45c
push edi
call fcn.00408f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408680
lea eax, [ebp - 0xa0]
push 0x40a43c
push eax
call fcn.00408680
push dword [esi + 0x40b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408e75
add esp, 0x2c
pop edi
jmp 0x4078b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40b194]
push 0
push eax
push dword [esi]
call fcn.00408490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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 0x41069b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x41400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x470]
push edi
xor ebx, ebx
push 0x24c
push ebx
push eax
mov dword [ebp - 0x474], ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4106dd
mov eax, dword [esi]
jmp 0x4106df
mov eax, esi
lea ecx, [ebp - 0x474]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4107aa
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x410720
mov eax, dword [esi]
jmp 0x410722
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040cade
test eax, eax
js 0x410788
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f5d5
test eax, eax
js 0x410788
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00409302
lea eax, [ebp - 0x224]
push eax
call fcn.00410678
push ebx
push 1
lea ecx, [ebp - 0x224]
call fcn.004090d5
lea eax, [ebp - 0x474]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
cmp al, 1
je 0x4106f8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408439
mov esp, ebp
pop ebp
ret 4

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 0x404e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x404e8f
pop dword [ebp - 0x38]
mov eax, 0xecd9797a
sub eax, 0xec992aeb
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3a9d3
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x958287b1
add ecx, 0x6a7db8d3
mov edx, eax
mov ebx, 0x432e00
add ebx, dword [ebp - 0x38]
mov edi, 0x608cd05
sub edi, 0x5e54f2e
xor dword [ebp - 0x2c], eax
mov esi, dword [ebx]
mov dword [ebp - 0x28], 0x341f187a
sub esi, edi
sub dword [ebp - 4], eax
mov dword [edx], esi
mov dword [ebp - 0xc], 0xb09e547b
add edx, 0xd51a7163
add edx, 0x2ae58ea1
add ebx, 4
loop 0x404ee3
add eax, 0x59c3569e
sub eax, 0x59c261bb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10021980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x10]
movzx edx, byte [esi + 0x24]
push edi
lea edx, [edx*4 + 0x14]
call fcn.10022f10
mov edx, dword [esp + 0x18]
mov ebp, eax
mov dword [ebp + 8], edx
xor ecx, ecx
lea eax, [esi + 0x40]
mov dword [ebp + 0x10], eax
mov word [ebp + 5], 8
mov byte [ebp + 7], cl
movzx eax, byte [esi + 0x25]
add eax, 0x20
mov edx, eax
shr edx, 3
and dl, 0x20
sub al, dl
mov byte [esi + 0x25], al
movzx eax, byte [esi + 0x24]
xor edi, edi
mov dword [esp + 0x14], eax
cmp eax, ecx
jbe 0x10021a2a
push ebx
lea ebx, [ebp + 0x14]
jmp 0x100219e0
mov ecx, dword [esp + 0x14]
mov edx, 0x18
call fcn.10022f10
lea ecx, [eax + 8]
mov dword [eax + 0x10], ecx
mov word [eax + 5], 0x105
mov dword [eax + 0xc], 0xffffffff
mov edx, dword [esi + 0x14]
movzx ecx, word [edx + edi*2]
shl ecx, 0x18
xor ecx, esi
mov dword [eax + 0x14], ecx
mov dword [ebx], eax
inc edi
add ebx, 4
cmp edi, dword [esp + 0x18]
jb 0x100219e0
mov dl, byte [esp + 0x18]
pop ebx
pop edi
pop esi
mov byte [ebp + 7], dl
mov eax, ebp
pop ebp
ret
pop edi
mov byte [ebp + 7], al
pop esi
mov eax, ebp
pop ebp
ret