joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401dab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401da4
test esi, esi
je 0x401da4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d80
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40201e
cmp eax, 4
jne 0x402040
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40202e
cmp edx, 4
je 0x40202e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f90
Function at 0x404e80
Capabilities:
Copy file

Disassembly:
push esi
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x404e95
cmp dword [edx + 0x24], esi
mov esi, 0x43efe0
je 0x404e95
mov esi, dword [edx + 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x404ea9
cmp dword [ecx + 0x24], eax
mov eax, 0x43efe0
je 0x404ea9
mov eax, dword [ecx + 0x1c]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop esi
ret 4
Function at 0x4190a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4376cb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x448008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x449fb0], 0x440624
mov dword [0x449fb8], 0x44094c
push 0
mov dword [ebp - 0x14], 0x449fb0
mov dword [0x449fcc], 1
mov dword [0x449fc8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x41934e
lea eax, [ecx + 0x400000]
mov dword [0x449fc4], ecx
mov dword [0x449fc0], eax
mov edx, 0x1555
mov eax, dword [0x449fc8]
mov dword [0x449fbc], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x449fc8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x449fc8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x449fc8]
add ecx, eax
sub edx, 1
jne 0x419134
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x449fd0
mov dword [ebp - 0x18], 0x449fd0
mov dword [ebp - 0x1c], 0x449fd0
mov dword [0x449fd0], 0x43ef54
mov dword [0x449fd4], edx
mov dword [0x449fd8], edx
mov byte [ebp - 4], 1
mov dword [0x449fd0], 0x43eea4
mov dword [0x449fdc], edx
mov dword [0x449fe4], edx
mov dword [0x449fe0], edx
mov dword [0x449fe8], 0x40
mov byte [ebp - 4], 2
mov dword [0x449fe8], 0x80
mov byte [ebp - 4], 5
mov dword [0x449fec], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x44a000
mov dword [ebp - 0x20], 0x44a000
call esi
mov byte [ebp - 4], 7
mov dword [0x44a018], 0
mov byte [ebp - 4], 8
push 0x44a024
mov dword [ebp - 0x24], 0x44a024
call esi
mov byte [ebp - 4], 9
mov dword [0x44a03c], 0x3e8
mov dword [ebp - 0x28], 0x44a050
mov dword [ebp - 0x2c], 0x44a050
mov dword [0x44a050], 0x43ef54
mov dword [0x44a054], 0
mov dword [0x44a058], 0
mov byte [ebp - 4], 0xa
mov dword [0x44a050], 0x43eea4
mov dword [0x44a05c], 0
mov dword [0x44a064], 0
mov dword [0x44a060], 0
mov dword [0x44a068], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x44a068], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x44a044], 0x3e80
mov dword [0x44a048], 1
mov dword [0x44a04c], 0
lea eax, [eax*2 + 2]
mov dword [0x44a040], eax
mov byte [ebp - 4], 0xe
push 0x44a06c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x44a084
call fcn.00402c10
mov byte [ebp - 4], 0x10
mov dword [0x449ff0], 0
mov dword [0x44a0ac], 0
movsd xmm0, qword [0x4409a0]
movsd qword [0x449ff8], xmm0
xorps xmm0, xmm0
mov dword [0x44a0b0], 0
mov dword [0x44a0b4], 0
mov dword [0x44a0b8], 0
mov dword [0x449ff4], 0
movq qword [0x44a01c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x449fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00424a37
int3
Function at 0x419df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x419e0f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x419ee5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x419ee5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x419edc
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x419ec0
cmp edi, 1
jne 0x419e85
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x419ed7
cmp edi, 2
jne 0x419e98
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x419ed7
cmp edi, 4
jne 0x419ea9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x419ed7
cmp edi, 8
jne 0x419ec0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x419ed7
test edi, edi
jle 0x419ed7
push edi
mov ecx, esi
call fcn.0041e830
push edi
push ebx
push eax
call fcn.00424090
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41d7f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x448008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41d963
cmp word [esi], 0
je 0x41d963
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00422af0
or dword [ebp - 0x50], 1
mov eax, 1
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x38]
push esi
call fcn.0041e8e0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41d8d0
xor esi, esi
jmp 0x41d8f3
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41d92e
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolObjectArray.virtual_12
jne 0x41d929
mov ecx, 0x449fb8
call fcn.0041f790
jmp 0x41d92e
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d980
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437b90
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41dae8
cmp word [esi], 0
je 0x41dae8
lea ecx, [ebp - 0x244]
call fcn.00404d10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x41d9f7
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x41da30
test ax, ax
je 0x41da62
cmp word [esi + 2], 0x3a
jne 0x41da62
cmp word [esi + 4], 0x5c
jne 0x41da62
push 0x5c
push esi
call fcn.00422397
add esp, 8
test eax, eax
je 0x41da62
cmp eax, esi
jbe 0x41da4e
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.00420460
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x41da7e
cmp dword [ebp - 0x220], edi
je 0x41dac9
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x41dac9
cmp word [edi], 0
je 0x41dac9
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41dac9
cmp word [edi], 0
je 0x41daa7
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x41dad2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x41dad2
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00404dd0
mov eax, esi
jmp 0x41daea
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004211de
mov esp, ebp
pop ebp
ret

Function at 0x421b35
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x421b74
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421b74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421b74
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x421b74
cmp dword [ecx + 0x74], 0xe
jbe 0x421b74
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42c360
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bfa4
push 0x43bf9c
push str.FlsAlloc
push 0x1e
call fcn.0042c29d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c394
push dword [ebp + 8]
mov ecx, esi
call dword [0x4392b8]
call esi
jmp 0x42c39a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c3de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bfb4
push 0x43bfac
push str.FlsGetValue
push 0x20
call fcn.0042c29d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c415
push dword [ebp + 8]
mov ecx, esi
call dword [0x4392b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42c898
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42c8e3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042ca37
test al, al
jne 0x42c8dd
sub edx, 2
cmp edx, edi
jne 0x42c8c3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42c905
lea eax, [edi + 2]
cmp edx, eax
je 0x42c905
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042c7e4
add esp, 0x10
jmp 0x42c9ff
push esi
lea ecx, [ebp - 0x255]
call fcn.0042ca37
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c948
push dword [ebp - 0x25c]
jmp 0x42c8f5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42c985
cmp word [ebp - 0x226], 0
je 0x42c9a6
cmp word [ebp - 0x226], ax
jne 0x42c985
cmp word [ebp - 0x224], 0
je 0x42c9a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042c7e4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42c9f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42c95f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42c9da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42c9ff
push 0x42c614
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00425af0
add esp, 0x10
jmp 0x42c9cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004211de
leave
ret
Function at 0x432ac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x432aed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432aed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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 0x403daf
Capabilities:
Check for time delay via gettickcount
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
cmp dword [0x408ebc], 0
push ebx
push esi
push edi
jne 0x403f88
mov esi, dword [ebp + 8]
test esi, esi
je 0x403f6d
cmp byte [esi], 0
je 0x403f6d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x403f6d
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call fcn.00401163
pop ecx
lea eax, [ebp - 0x10c]
push 0x408b60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403f59
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call fcn.00401163
cmp byte [ebp - 0x11c], 0
pop ecx
lea eax, [ebp - 0x11c]
jne 0x403e71
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x24c], 0x10
je 0x403f06
cmp byte [ebp - 0x11c], 0
push 0x408b5c
je 0x403eb9
lea eax, [ebp - 0x11c]
push eax
call fcn.004061b0
pop ecx
test eax, eax
pop ecx
je 0x403f41
push 0x408adc
lea eax, [ebp - 0x11c]
jmp 0x403ed6
lea eax, [ebp - 0x220]
push eax
call fcn.004061b0
pop ecx
test eax, eax
pop ecx
je 0x403f41
push 0x408adc
lea eax, [ebp - 0x220]
push eax
call fcn.004061b0
pop ecx
test eax, eax
pop ecx
je 0x403f41
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.00403daf
pop ecx
test al, al
pop ecx
jne 0x403f41
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403f41
xor bl, bl
call esi
lea edi, [eax + 0x3e8]
call esi
cmp edi, eax
jbe 0x403f30
lea eax, [ebp - 0x10c]
push eax
call fcn.00403bf6
test eax, eax
pop ecx
je 0x403f2e
call fcn.00402366
jmp 0x403f10
mov bl, 1
test bl, bl
jne 0x403f41
lea eax, [ebp - 0x10c]
push eax
call fcn.00403c17
pop ecx
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e3f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403f8a
push 0
push str.WinZip_Self_Extractor
push 0x18
call fcn.0040108f
push eax
push dword [0x409720]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42684e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x42685d
pop dword [ebp - 0x28]
mov eax, 0x42685d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x50cb9
push 0
mov eax, 0xb1138f84
sub eax, 0xb0cedcd4
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xdba5666
sub ecx, 0xdba0bae
xor edi, edi
add edi, eax
mov esi, 0x94e264b9
add esi, 0x6b662947
add esi, dword [ebp - 0x28]
mov ebx, 0x2e35bd18
xor dword [ebp - 0x20], 0x657f180
mov edx, dword [esi]
add dword [ebp - 0x1c], 0x5477b8a
sub edx, ebx
sub dword [ebp - 0xc], edx
mov dword [edi], edx
xor dword [ebp - 8], eax
add edi, 4
add esi, 4
loop 0x4268b3
add eax, 0xfc2fcc19
add eax, 0x3d1519a
mov ebx, eax
add eax, 0x1651dcd3
add eax, 0xe9ae2332
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x426a65
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.advapi32.dll_ControlService]
test eax, eax
jne 0x426ad2
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426aae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426ab5
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work138_s_src_burnenginemsuengine.cpp
call fcn.004038f5
push str.Failed_to_stop_wusa_service.
push esi
call main
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042de30
leave
ret 4

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
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 0x402da5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405537], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402dec
xor eax, eax
jmp 0x402e03
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret

Function at 0x403222
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404488
push 0x403384
push eax
mov eax, dword [0x4055b4]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4055b0]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040337a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4055ac]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d0
push 0x4040cc
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4032bd
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4032b5
cmp al, 0x22
jne 0x4032aa
cmp byte [esi], 0x22
jne 0x4032c7
inc esi
jmp 0x4032c7
cmp al, 0x20
jbe 0x4032c7
inc esi
cmp byte [esi], 0x20
ja 0x4032c1
cmp byte [esi], 0
je 0x4032d7
cmp byte [esi], 0x20
ja 0x4032d7
inc esi
cmp byte [esi], 0
jne 0x4032cc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4032f7
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x403333
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret