joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8220
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4dcac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00483d89
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea edx, [ebp + 8]
push edx
call fcn.0040e320
mov dword [ebp - 0x40], eax
call fcn.004079d0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0044df20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x407b67
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00484257
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040e3c0
jmp 0x407c37
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x30]
call fcn.0040e300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040e300
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040e110
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e3e0
mov dword [ebp - 0x14], 1
jmp 0x407bb9
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
jg 0x407c04
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040e110
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x4bf824
lea edx, [ebp - 0x10]
push edx
call fcn.0040ef80
add esp, 0x10
push 0
lea ecx, [ebp - 0x10]
call fcn.0040e440
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e3e0
jmp 0x407bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040e3c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0040e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00484257
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040e3c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f130
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b86ca
mov eax, dword fs:[0]
push eax
mov eax, 0x6830
call fcn.004a4b90
mov eax, dword [0x4dcac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x683c], ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0x683c]
call fcn.00485efc
push 0
call fcn.00489305
add esp, 4
push 0x4bf85c
mov ecx, dword [ebp - 0x683c]
call fcn.0048872d
lea eax, [ebp - 0x6834]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x6834]
push ecx
mov ecx, dword [ebp - 0x683c]
add ecx, 0xa4
call fcn.0040e400
mov edx, dword [ebp - 0x683c]
mov eax, dword [edx + 0xa4]
push eax
push str._s_tycs
mov ecx, dword [ebp - 0x683c]
add ecx, 0xa8
push ecx
call fcn.0040ef80
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x683c]
add ecx, 0xa8
call fcn.0040e440
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x3c
push 0
lea edx, [ebp - 0x6728]
push edx
call fcn.004a47d0
add esp, 0xc
mov dword [ebp - 0x6728], 0xc
push 0x4bf884
lea eax, [ebp - 0x670c]
push eax
call fcn.004a4a10
add esp, 8
mov dword [ebp - 0x6728], 0xc
lea ecx, [ebp - 0x6728]
push ecx
mov ecx, dword [ebp - 0x683c]
add ecx, 0xac
call fcn.0040fab0
mov dword [ebp - 0xac], 0x94
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 2
jne 0x40f27d
mov eax, dword [ebp - 0x683c]
mov byte [eax + 0xb4], 1
jmp 0x40f28a
mov ecx, dword [ebp - 0x683c]
mov byte [ecx + 0xb4], 0
push 0
lea ecx, [ebp - 0x66ec]
call fcn.0041ce90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x66ec]
call fcn.00488481
mov dword [ebp - 0x6838], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66ec]
call fcn.0040f590
mov eax, dword [ebp - 0x6838]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a47ba
mov esp, ebp
pop ebp
ret
Function at 0x4221d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9270
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4dcac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x566c
call fcn.0040ea30
call fcn.0044daf0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x566c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.0040e3e0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x5674
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d520
movzx edx, al
test edx, edx
jne 0x422352
lea ecx, [ebp - 0x18]
call fcn.0040e300
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea edx, [ebp - 0x14]
push edx
call fcn.0040e320
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401560
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040e3e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040e3c0
lea ecx, [ebp - 0x14]
call fcn.0040d520
movzx eax, al
test eax, eax
jne 0x422346
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp - 0x14]
push edx
call fcn.0040e320
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004023d0
add esp, 8
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040e3e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040e3c0
lea ecx, [ebp - 0x14]
call fcn.0040d520
movzx eax, al
test eax, eax
jne 0x422346
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x5670]
push eax
push 0x4c01c0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x566c
push ecx
call fcn.0040ef80
add esp, 0x10
mov edx, dword [ebp - 0x2c]
add edx, 0x566c
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.0040e3e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040e3c0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x566c
call fcn.0040d520
movzx eax, al
test eax, eax
je 0x42239f
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x5670]
push edx
push str._s_save
mov eax, dword [ebp - 0x2c]
add eax, 0x566c
push eax
call fcn.0040ef80
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, 0x566c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.0040e3e0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.0040e440
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e3c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46ed00
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00488182
mov ecx, dword [ebp - 0x10]
call fcn.0046f420
test eax, eax
je 0x46eda1
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0040e470
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0040d4e0
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.004a4a10
add esp, 8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0040e490
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 4]
push edx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4719b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbfbc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4dcac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.0044df20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x4719ff
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jg 0x471a26
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.0040e110
mov ecx, eax
call fcn.0040e440
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4719f6
mov ecx, dword [ebp - 0x1c]
call fcn.0046a640
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.0040e090
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x70], 0
je 0x471a8e
lea ecx, [ebp - 0x18]
call fcn.0040e300
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
call fcn.0040e240
push eax
push 0x4c519c
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040ef80
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040e440
push eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x70]
call fcn.0048a7ef
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e3c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47e840
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcdc2
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x4dcac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x370], ecx
lea eax, [ebp - 0x36c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
push 0
push 0
push str.Data_Files__.txt_.txtAll_Files__._.
push 6
push 0
push 0x4c6584
push 0
lea ecx, [ebp - 0x1f4]
call fcn.00491ac3
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f8], 0x58
call fcn.0044daf0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
movzx edx, byte [ecx + 0xb4]
test edx, edx
jne 0x47e8db
mov dword [ebp - 0x1f8], 0x4c
lea ecx, [ebp - 0x1f4]
call fcn.0049119d
mov ecx, dword [ebp - 0x1f8]
mov dword [eax], ecx
lea ecx, [ebp - 0x1f4]
call fcn.004922ab
cmp eax, 2
jne 0x47e922
lea edx, [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004918cb
jmp 0x47ea54
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00492594
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.00482709
mov byte [ebp - 4], 2
push 0
push 0x1001
lea ecx, [ebp - 0x25c]
call fcn.0040e440
push eax
lea ecx, [ebp - 0x208]
call fcn.00482cd6
test eax, eax
jne 0x47e9ab
lea ecx, [ebp - 0x36c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.0048288b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0040e3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004918cb
jmp 0x47ea54
lea edx, [ebp - 0x208]
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x24c], 0x47de80
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x370]
call fcn.004908ae
mov dword [ebp - 0x20c], eax
lea ecx, [ebp - 0x254]
push ecx
push 1
mov ecx, dword [ebp - 0x370]
call fcn.0046eaf0
mov byte [ebp - 0x230], 0x86
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x370]
call fcn.0049088b
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x208]
call fcn.004825f4
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.0048288b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0040e3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004918cb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a47ba
mov esp, ebp
pop ebp
ret
Function at 0x4886b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4886dd
cmp dword [edi + 0x54], 0
jne 0x4886dd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00493817
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0048867a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x488da1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x488de9
call fcn.00493817
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x488de9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x488e2c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x488e15
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x488e15
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x488e29
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x48ae6b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4bdba7
call fcn.004a5ffc
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x48ae90
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x48aed6
lea ecx, [ebp - 0x10]
call fcn.0040e300
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00482116
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040e7b0
mov eax, esi
call fcn.004a60d4
ret 8
Function at 0x49078a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4907d1
call fcn.00493817
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4907d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4907ed
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00490304
mov esi, eax
test edi, edi
je 0x4907eb
test ebx, ebx
je 0x4907eb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a47ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dcac0]
jne 0x4a47c4
repz ret
jmp fcn.004ab99c

Function at 0x4b4def
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.004ab2e1
and dword [ebp - 4], 0
cmp dword [0x4e0844], 0
mov ebx, eax
jne 0x4b4ea0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b4f51
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cbf78
push edi
call esi
test eax, eax
je 0x4b4f51
push eax
call fcn.004ab26f
mov dword [esp], 0x4cbf68
push edi
mov dword [0x4e0844], eax
call esi
push eax
call fcn.004ab26f
mov dword [esp], 0x4cbf54
push edi
mov dword [0x4e0848], eax
call esi
push eax
call fcn.004ab26f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e084c], eax
call esi
push eax
call fcn.004ab26f
pop ecx
mov dword [0x4e0854], eax
test eax, eax
je 0x4b4ea0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ab26f
pop ecx
mov dword [0x4e0850], eax
mov eax, dword [0x4e0850]
cmp eax, ebx
je 0x4b4ef8
cmp dword [0x4e0854], ebx
je 0x4b4ef8
push eax
call fcn.004ab2ea
push dword [0x4e0854]
mov esi, eax
call fcn.004ab2ea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b4ef8
test edi, edi
je 0x4b4ef8
call esi
test eax, eax
je 0x4b4eef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b4eef
test byte [ebp - 0xc], 1
jne 0x4b4ef8
or dword [ebp + 0x10], 0x200000
jmp 0x4b4f31
mov eax, dword [0x4e0848]
cmp eax, ebx
je 0x4b4f31
push eax
call fcn.004ab2ea
pop ecx
test eax, eax
je 0x4b4f31
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b4f31
mov eax, dword [0x4e084c]
cmp eax, ebx
je 0x4b4f31
push eax
call fcn.004ab2ea
pop ecx
test eax, eax
je 0x4b4f31
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e0844]
call fcn.004ab2ea
pop ecx
test eax, eax
je 0x4b4f51
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b4f53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f20
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5941
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
xor edi, edi
lea eax, [ebp - 0x18]
push eax
push edi
push 1
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x1c], edi
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x18]
mov ecx, 1
mov dword [ebp - 0x1c], ecx
cmp eax, edi
je 0x40502c
lea edx, [ebp - 0x34]
push edx
mov edi, eax
mov dword [ebp - 4], ecx
call fcn.00404bf0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
jne 0x404fb6
call fcn.00490387
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
push ecx
push edx
push 1
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub eax, edx
jne 0x404fda
call fcn.00490387
mov edx, dword [ebp - 0x28]
xor ebx, ebx
cmp edx, ebx
jne 0x404fe4
xor eax, eax
jmp 0x404ff9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ff0
sub eax, esi
mov edi, eax
mov eax, dword [ebp + 8]
push edx
call fcn.004052e0
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x405014
push eax
call fcn.00490210
add esp, 4
mov ecx, dword [ebp - 0x34]
push ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00490210
add esp, 4
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
push 0x4c478a
push 0x4c478c
push edx
call fcn.00404cb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405597
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4055c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4055c4
cmp esi, eax
jae 0x4055c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4055b4
cmp esi, eax
jb 0x4055ce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x405f40
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5130
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0xc], eax
jbe 0x405f7f
call fcn.00490387
mov ebx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
cmp ebx, dword [esi + 0x10]
jbe 0x405f91
call fcn.00490387
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
push ecx
push edx
push ebx
push eax
lea ebx, [ebp - 0x1c]
call fcn.00405dd0
test edi, edi
je 0x405ffc
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 1
push 0
push edi
mov dword [ebp - 0x14], 0
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405ffc
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00405ea0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
jne 0x405fe9
call fcn.00490387
mov eax, dword [esi + 0xc]
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push 1
push 0
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4060b0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4afa08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x3c], ebx
call fcn.004061b0
add esp, 4
test eax, eax
je 0x406176
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406176
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
jae 0x40613a
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0x10
jb 0x40616f
mov eax, dword [esp + 0x14]
push eax
call fcn.00490210
add esp, 4
mov eax, 1
jmp 0x40618c
cmp dword [esp + 0x28], 0x10
jb 0x40618a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00490210
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049021b
add esp, 0x30
ret