joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d6a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10233b2c], 0
mov byte [0x10233b30], 0
mov dword [0x10233b28], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000d7c3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [ebp - 0x28], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10233b34], 0
mov edi, dword [ebp - 0x28]
add edi, 0xfffff6b9
mov ebx, dword [0x10233b2c]
mov esi, dword [ebp - 0x18]
movzx esi, byte [esi + ecx]
add esi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add esi, edx
mov dword [0x10233b34], esi
mov dword [0x10233b24], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x10233b2c], edx
mov dword [0x10233b20], edi
mov edi, dword [ebp - 0x18]
mov bl, byte [edi + ecx]
mov byte [0x10233b30], bl
mov dword [0x10233b24], 0xe30
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov ecx, dword [0x10233b24]
add ecx, 0xfffffd81
mov dword [0x10233b20], ecx
mov bl, byte [0x10233b30]
mov ecx, dword [0x10233b2c]
mov byte [edi + ecx], bl
mov ecx, dword [0x10233b28]
add ecx, 1
mov dword [0x10233b28], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jl 0x1000d7f5
jmp 0x1000d808
xor eax, eax
mov ecx, 0x1fdd
mov dword [0x10233b28], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1000d6e0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10233b20], 0x1fdd
mov eax, dword [0x10233b28]
add eax, 1
mov dword [0x10233b28], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000d7c3
jmp 0x1000d7a7
mov eax, dword [0x10233b20]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x1000d6e0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000e8c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10233b20], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000e96b
mov eax, dword [ebp - 0x14]
mov dword [0x10233b24], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x1000e937
jmp 0x1000e923
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000e952
xor eax, eax
mov dword [0x10233b24], 0x1864
mov dword [ebp - 0x1c], eax
jmp 0x1000e9df
mov dword [0x10233b24], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1000e9a1
jmp 0x1000e923
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1000e9df
jmp 0x1000e923
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x1000e8f6
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x1000e96b
jmp 0x1000e8f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000e923
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000e923
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1000e914
jmp 0x1000e923
mov eax, dword [ebp - 0x1c]
add esp, 0x20
pop ebp
ret
Function at 0x1000edd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10233b28], 0
mov dword [0x10233b2c], 0
mov dword [0x10233b38], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1000ee31
jmp 0x1000ee39
mov eax, dword [0x10233b28]
mov ecx, dword [0x10233b2c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jmp 0x1000ee4a
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1000ee4a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add eax, 1
mov edi, edx
add edi, 1
mov dword [0x10233b20], 0x1e8a
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10233b28], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10233b2c], edx
mov dword [0x10233b20], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10233b30], cl
mov dword [0x10233b24], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10233b30]
mov edx, dword [0x10233b2c]
mov byte [ebx + edx], cl
mov edx, dword [0x10233b28]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10233b2c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10233b38], ecx
mov dword [0x10233b20], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x10233b24], 0xbad
mov dword [0x10233b20], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x20], edi
jne 0x1000ee18
jmp 0x1000ee31
Function at 0x1000ef40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x10233b20], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1000d830
lea ecx, [0x1000d5a0]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x84], edx
mov dword [esp + 0x40], 0x132600
mov edx, dword [0x10233b0c]
mov dword [esp + 0x7c], edx
mov edx, dword [0x10233b10]
mov dword [esp + 0x34], edx
mov edx, dword [0x10233b14]
mov dword [esp + 0x58], edx
mov edx, dword [0x10233b18]
mov dword [esp + 0x2c], edx
mov edx, dword [0x10233b1c]
mov dword [esp + 0x38], edx
mov dword [0x10233b20], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1000eff4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1000f008
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1000efcd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x68], ecx
mov dword [0x10233b24], 0x1fcc
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x70], eax
call fcn.1000e8c0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1000f06f
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000e200
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10233b20], 0x1ed4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10001051
push 0x40
pop ecx
mov esi, eax
lea edi, [ebp - 0x100]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x100]
call fcn.10001060
test eax, eax
je 0x10001051
push 0
push eax
push 0xd
push 0xc
push 0xb
push 0xa
call dword [sym.imp.GDI32.dll_LineDDA]
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001044
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10001060
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0xc], ecx
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push str.AmMonitoringProvider.mof
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000109c
xor eax, eax
jmp 0x100010ff
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100010f5
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100010e6
push ecx
push dword [ebp - 0xc]
mov edx, esi
mov ecx, esi
push ebx
call fcn.1000110d
add esp, 0xc
jmp 0x100010f5
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10001227
leave
ret
Function at 0x1000110d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x104]
push ebx
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push esi
push edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x210], 0x100
mov dword [ebp - 0x214], eax
ja 0x10001168
or eax, 0xffffffff
jmp 0x10001218
mov eax, dword [ebp - 0x208]
mov ecx, 0x100
xor ebx, ebx
sub bl, cl
mov byte [eax + ebx], bl
loop 0x10001173
mov edx, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x210]
mov esi, dword [ebp - 0x214]
mov ecx, 0x100
xor ebx, ebx
cmp ebx, edi
jl 0x1000119b
xor ebx, ebx
mov ah, byte [edx + ebx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x10001195
mov edi, dword [ebp - 0x208]
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, 0x100
mov dl, byte [esi + eax]
add bl, dl
mov dl, byte [edi + eax]
add bl, dl
mov dl, byte [edi + eax]
mov dh, byte [edi + ebx]
mov byte [edi + eax], dh
mov byte [edi + ebx], dl
inc eax
loop 0x100011b9
mov esi, dword [ebp - 0x218]
mov edi, dword [ebp - 0x208]
mov edx, dword [ebp - 0x21c]
xor eax, eax
xor ebx, ebx
mov ecx, dword [ebp + 8]
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [edi + ecx]
add bl, dh
mov dl, byte [edi + ebx]
mov byte [edi + ecx], dl
mov byte [edi + ebx], dh
add dl, dh
movzx edx, dl
mov dl, byte [edi + edx]
mov cl, byte [esi + eax]
xor cl, dl
pop edx
mov byte [edx + eax], cl
inc eax
pop ecx
loop 0x100011eb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001227
leave
ret

Function at 0x100020e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10002110
mov esi, dword [ebp + 8]
test al, al
je 0x100020fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10002120
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4017a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
call fcn.00404f19
push str.WHENU
push str.INSTSCRIPT
push dword [0x40b1c0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor edi, edi
test esi, esi
je 0x4017e2
push esi
push dword [0x40b1c0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
xor eax, eax
test edi, edi
je 0x4017f5
push esi
push dword [0x40b1c0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor esi, esi
test eax, eax
je 0x401827
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401827
push esi
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.00403a7e
mov edi, dword [ebp + 8]
call fcn.00404196
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404c4b
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
leave
ret

Function at 0x401962
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
add ebx, 0x4c
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
mov dword [ebp - 0xc], ebx
je 0x401984
mov al, 1
jmp 0x401ac5
push esi
push edi
lea eax, [ebp - 0x110]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
test edi, edi
je 0x4019bb
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4019b5
test al, 0x10
jne 0x4019b7
xor edi, edi
test edi, edi
jne 0x401a09
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4019d4
xor al, al
jmp 0x401ac3
lea ecx, [ebp + eax - 0x110]
cmp byte [ecx - 1], 0x5c
je 0x4019f6
cmp eax, 0x103
jae 0x4019f6
mov byte [ecx], 0x5c
inc eax
lea ecx, [ebp + eax - 0x110]
mov byte [ecx], 0
add eax, 6
cmp eax, esi
jae 0x401a09
push str.TEMP_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x401a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a34
mov byte [ebp - 1], 0
jmp 0x401ac0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
add esi, 0x48
push esi
mov byte [ebp - 1], 1
call fcn.00404575
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.00404575
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov eax, dword [0x40b200]
mov ecx, 0x40b200
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [esi]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._s_X.WUT_
push eax
call fcn.00403d74
mov ebx, dword [ebp + 8]
add esp, 0x10
push 0
push ebx
call edi
test eax, eax
jne 0x401aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea eax, [ebx - 0x10]
jne 0x401abb
call fcn.00404c4b
jmp 0x401a61
mov edi, dword [ebp - 0xc]
lea eax, [ebp + 8]
call fcn.00404196
lea eax, [ebx - 0x10]
call fcn.00404c4b
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402e29
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
push edi
jle 0x402e97
lea edi, [esi + 0x64]
mov eax, ebx
mov ecx, edi
call fcn.00403f9f
mov eax, dword [eax]
test eax, eax
je 0x402e50
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str..dll
mov eax, ebx
mov ecx, edi
call fcn.00404059
push eax
lea eax, [esi + 0x4c]
lea edi, [ebp - 4]
call fcn.00403d87
pop ecx
lea edi, [ebp - 8]
call fcn.00403dde
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.00404c4b
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi - 0x10]
call fcn.00404c4b
inc ebx
cmp ebx, dword [esi + 0x6c]
jl 0x402e37
xor edi, edi
cmp dword [esi + 0x74], edi
jle 0x402eb8
lea ebx, [esi + 0x70]
mov eax, edi
mov ecx, ebx
call fcn.004040f1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, dword [esi + 0x74]
jl 0x402ea1
pop edi
pop ebx
leave
ret

Function at 0x402ebc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x5c], 0
mov byte [ebp - 1], 1
jle 0x402f85
push ebx
push esi
lea esi, [edi + 0x58]
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.00403fe1
mov eax, dword [eax]
sub eax, 0x10
call fcn.004045f9
mov ebx, eax
mov esi, dword [ebx + 4]
add ebx, 0x10
test esi, esi
mov dword [ebp - 0xc], ebx
jle 0x402f30
dec esi
lea edi, [ebp - 0xc]
call fcn.00403a1f
cmp al, 0x2f
je 0x402f1c
call fcn.00403a1f
cmp al, 0x5c
je 0x402f1c
test esi, esi
jg 0x402f00
jmp 0x402f2d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx - 0xc]
mov ecx, esi
call fcn.00403ab7
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
lea esi, [edi + 0x58]
mov ecx, esi
call fcn.00403fe1
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.00403fe1
mov eax, dword [eax]
push 0xa
push ebx
push dword [ebp - 0xc]
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x402f6c
mov byte [ebp - 1], 0
lea eax, [ebx - 0x10]
call fcn.00404c4b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0x5c]
jl 0x402edd
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret 4
Function at 0x40379f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
push dword [0x40b1c0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor eax, eax
cmp esi, ebx
je 0x4037cf
push esi
push dword [0x40b1c0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40383b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40383b
push edi
push esi
push dword [0x40b1c0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x40383a
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40383a
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x40383a
cmp edi, dword [ebp - 8]
jne 0x40383a
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x403841
Capabilities:
Create process on windows
Delete file
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00401962
test al, al
je 0x403a1a
push ebx
push 0x104
lea eax, [ebp - 0x360]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403a19
push edi
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x25c]
push eax
call edi
lea eax, [ebp + eax - 0x25c]
jmp 0x4038b4
mov cl, byte [eax]
cmp cl, 0x2f
je 0x4038c0
cmp cl, 0x5c
je 0x4038c0
dec eax
lea ecx, [ebp - 0x25c]
cmp eax, ecx
jne 0x4038a7
jmp 0x4038c2
mov byte [eax], bl
mov eax, dword [esi + 0x4c]
lea ecx, [ebp - 0x158]
push ecx
push ebx
push 0x4094fc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x403a18
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x158]
push eax
call edi
lea ecx, [ebp - 0x158]
sub ecx, 3
add eax, ecx
lea ecx, [ebp - 0x158]
cmp eax, ecx
jbe 0x403a18
cmp byte [eax - 1], 0x2e
jne 0x403a18
push 0x4094f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x158]
push eax
push 0x4094f4
push 0x65
call fcn.0040379f
add esp, 0xc
test al, al
je 0x403a18
push 0x104
lea eax, [ebp - 0x158]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x403a18
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x678]
push str._s___s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x44
pop edx
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x54], edx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
push ebx
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x678]
push eax
push ebx
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403a0f
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xc]
jmp 0x403a16
lea eax, [ebp - 0x158]
push eax
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x404b5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404b71
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x404b83
xor eax, eax
jmp 0x404bb4
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404ba6
cmp edi, eax
jae 0x404b7f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404b98
cmp edi, eax
jae 0x404b7f
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x404e83
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404ecf
cmp dword [ebp + 0xc], 1
je 0x404eb8
cmp dword [ebp + 0xc], 2
jne 0x404ec6
test edi, edi
mov eax, dword [ebp - 4]
je 0x404ecb
cmp byte [eax + edi - 1], 0
je 0x404ecb
push 0xd
pop eax
jmp 0x404ecf
mov dword [esi], eax
xor eax, eax
leave
ret 8