joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c5530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x5c5624
cmp byte [edx], 0
je 0x5c5617
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.005c54b0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.005c54b0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005c5420
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x5c55e1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.005c5460
fmul qword [0xcddbc0]
push ecx
fstp qword [esp]
call fcn.005eca98
fadd qword [0xcddbb8]
add esp, 8
call fcn.005ecb68
mov byte [ebx], al
inc ebx
dec edi
jne 0x5c55b4
lea ecx, [esp + 0x20]
push ecx
call fcn.005c5460
fmul qword [0xcddbc0]
push ecx
fstp qword [esp]
call fcn.005eca98
add esp, 8
call fcn.005ecb68
cmp esi, ebx
je 0x5c560d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x5c5606
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c59f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x5c5a20
mov byte [edi + esi], 2
jmp 0x5c5a57
test al, 4
je 0x5c5a2a
mov byte [edi + esi], 0xd
jmp 0x5c5a57
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x5c5a43
mov byte [edi + esi], 2
jmp 0x5c5a57
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x5c5a53
mov byte [edi + esi], 0x19
jmp 0x5c5a57
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x5c5a07
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x5c5acb
cmp dl, 0xd
je 0x5c5acb
xor edx, edx
jmp 0x5c5ad0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x5c5abb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x5c5af0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.005c43b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5c5b11
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.005c7140
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x5c5b36
push esi
call fcn.005c4440
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.005f93fc
push ebx
push edi
mov ebp, eax
call fcn.005c71b0
push 0x5c5b70
push ebp
push esi
call fcn.005c84e0
push esi
call fcn.005c4440
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x5c6e70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0xef5c00
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xef5b20]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5c6eeb
push 0x4c
push 1
call fcn.005ef265
mov esi, eax
add esp, 8
test esi, esi
jne 0x5c6eb3
push 0xef5c00
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0xef5b20]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0xee7414]
inc eax
lea edx, [esi + 0xc]
mov dword [0xee7414], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.005ca9b0
add esp, 8
mov byte [esi + 0x3c], 1
push 0xef5c00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x5c7370
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005eee3d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.005f93fc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5c746a
call fcn.005eee3d
cmp dword [eax], 0
je 0x5c73b7
call fcn.005eee3d
mov ebp, dword [eax]
jmp 0x5c73ba
or ebp, 0xffffffff
call fcn.005c6f00
test esi, esi
mov dword [eax], ebp
jne 0x5c73cf
call fcn.005eee3d
cmp dword [eax], 4
je 0x5c741f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x5c7402
cmp esi, 0xffffffff
je 0x5c7444
test al, 6
je 0x5c7402
call fcn.005c6f00
mov ecx, dword [eax]
push ecx
push ebx
call fcn.005ca9e0
add esp, 4
push eax
push 0x24
push 9
call fcn.005c7750
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x5c7462
test al, 6
je 0x5c7410
test ah, 2
je 0x5c7462
test esi, esi
jbe 0x5c746e
test ah, 2
je 0x5c746e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005eee3d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.005f93fc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5c746a
jmp 0x5c73a4
call fcn.005c6f00
mov eax, dword [eax]
push eax
push ebx
call fcn.005ca9e0
add esp, 4
push eax
push 0x24
push 2
call fcn.005c7750
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x5c747b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x5c7484
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5f1a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005eedca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5f1a57
test byte [esp + 8], 2
je 0x5f1a57
call fcn.005eee3d
mov dword [eax], 0xd
call fcn.005eee46
mov dword [eax], 5
jmp 0x5f1a30
xor eax, eax
ret
Function at 0x604ea6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x604ede
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.00602e7e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00602e56
jmp 0x604eea
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6066a1
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 0x6066e3
call fcn.0060cb06
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6066e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6066da
xor eax, eax
jmp 0x6066eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006066f1
pop edi
pop esi
pop ebx
ret 4

Function at 0x60d036
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 0x60d064
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x60d082
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0060cf9c
jmp 0x60d082
mov eax, dword [esi + 0x14]
test eax, eax
je 0x60d082
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0060cf9c
test edi, edi
mov eax, edi
jne 0x60d06c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001e6b
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
xor ebx, ebx
cmp byte [0x100a300], bl
je 0x1001f63
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001f63
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
mov esi, 0x100a300
push ebx
push esi
mov dword [ebp - 8], 0x238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001f59
mov al, byte [0x10012c4]
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001f14
lea eax, [ebp - 0x10c]
push 0x10012c4
push eax
call fcn.01005a24
lea eax, [ebp - 0x10c]
push 0x100ae84
push eax
lea eax, [ebp - 0x344]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x1001f66
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100208f
cmp byte [ebx], 0
je 0x100208f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push 0x1001320
push eax
call esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100208f
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test byte [ebp - 0x244], 0x10
je 0x1002038
lea eax, [ebp - 0x218]
push 0x100131c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002067
lea eax, [ebp - 0x218]
push 0x1001318
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002067
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x10012c4
push eax
call fcn.01005a24
lea eax, [ebp - 0x104]
push eax
call fcn.01001f66
jmp 0x1002067
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001fca
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10020cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1002129
lea eax, [ebp - 0x104]
push 0x1001324
push eax
call fcn.01005a24
lea eax, [ebp - 0x104]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002129
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x100212f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002178
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100216f
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x1002180
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021cd
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10021c4
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1002222
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100223f
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1002242
and eax, 0x10
ret 4

Function at 0x1002374
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
and byte [edi], 0
cmp byte [esi], 0x23
jne 0x1002440
movsx eax, byte [esi + 1]
inc esi
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov esi, dword [sym.imp.USER32.dll_CharNextA]
mov bl, al
call esi
push eax
call esi
cmp bl, 0x53
mov esi, eax
je 0x1002440
cmp bl, 0x57
je 0x1002434
lea eax, [ebp - 0x108]
push 0x1001334
push eax
mov dword [ebp + 8], 0x104
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.01005a24
lea eax, [ebp + 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x108]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100244a
lea eax, [ebp + 8]
push eax
push edi
push 0
push 0
push 0x10012c4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002429
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100244a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x100244a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 4], 0
jne 0x1002457
push esi
push edi
call fcn.01005a24
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10027ff
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x100b6dc], eax
mov ecx, 0x23f
xor eax, eax
mov edi, 0x100ade0
rep stosd dword es:[edi], eax
mov ecx, 0xca
mov edi, 0x100aaa0
rep stosd dword es:[edi], eax
push 0x41
mov edi, 0x100b720
pop ecx
mov esi, 0x100adf4
rep stosd dword es:[edi], eax
push 1
xor ebx, ebx
pop edi
mov dword [ebp - 4], ebx
push 0x7f
push esi
push 0x10013a4
mov dword [0x100b08c], edi
call fcn.01003d76
cmp eax, ebx
je 0x1002a1e
cmp eax, 0x80
ja 0x1002a1e
push ebx
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100aa7c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100b6d4
push 0x1001398
call fcn.01003d76
test eax, eax
je 0x10028bc
test byte [0x100b6d4], 0xc0
je 0x100294c
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x1001388
call fcn.01003d76
test eax, eax
jne 0x10028db
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003c23
mov dword [0x100b704], 0x80070714
jmp 0x1002a2e
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100aa80], eax
je 0x100294c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100294c
test byte [0x100b6d4], 0x80
je 0x100291b
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003c23
jmp 0x1002931
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003c23
cmp eax, 6
je 0x100294c
push dword [0x100aa80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b704], 0x800700b7
jmp 0x1002a2e
push dword [ebp + 0xc]
mov dword [0x100b824], ebx
call fcn.010051e5
test eax, eax
jne 0x100296d
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1002a28
cmp byte [0x100aaba], bl
je 0x1002984
push 0x100aaba
call fcn.01001f66
jmp 0x1002a2e
push 0xa
push 0x100137c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10029a5
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [0x100a2f8], ebx
je 0x10029b3
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100aaa4], ebx
jne 0x1002a1a
push dword [ebp - 4]
call fcn.0100310e
test eax, eax
je 0x1002a2e
mov ax, word [0x100bc04]
cmp ax, di
je 0x10029d8
cmp ax, 2
jne 0x1002a1a
test byte [0x100b6d5], 1
je 0x1002a1a
test byte [0x100aab8], 1
jne 0x1002a1a
call fcn.01001600
test eax, eax
jne 0x1002a1a
push 0x83e
push 0x547
push 0x100170a
push ebx
push 0x7d6
push dword [0x100b6dc]
call fcn.01005920
cmp eax, 0x83d
jne 0x1002a2e
mov eax, edi
jmp 0x1002a30
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003c23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002b22
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
jmp 0x1004905
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [0x100ae80]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, esi
je 0x1004958
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100aaa4], ebp
jne 0x1004948
cmp dword [0x100b6d0], ebp
jne 0x1004948
push pe_nt_image_headers32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1004923
cmp dword [0x100aaa0], ebp
je 0x10049a8
cmp dword [0x100aaa4], ebp
jne 0x10049a8
cmp dword [0x100b6d0], ebp
jne 0x10049a8
lea eax, [esp + 0x10]
push 0x100ae84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b6d4], 0x20
je 0x1004993
lea eax, [esp + 0x10]
push eax
call fcn.01005a63
push 0x1001318
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
call fcn.01001f66
cmp word [0x100bc04], 1
je 0x10049bf
cmp dword [0x100aaa0], ebp
je 0x10049bf
call fcn.01001c31
pop edi
mov dword [0x100aaa0], ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x10038dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x100397d
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1003973
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x100aaa8], esi
mov ecx, dword [ebp + 8]
jne 0x1003958
mov al, byte [0x100b6cc]
test al, 1
je 0x1003958
test al, 2
jne 0x1003958
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1003958
mov dword [0x100b6cc], ecx
push ecx
call fcn.010056b4
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push 1
pop eax
jmp 0x100397f
call fcn.010056f3
mov dword [0x100b704], eax
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x1003a23
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1003b3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003b2a
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1003b2a
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1003b2a
cmp byte [0x100b720], bl
mov esi, 0x100b720
jne 0x1003ac7
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x1003ac7
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x1003ac7
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1003a02
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003b18
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100b720], bl
je 0x1003b12
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x1003b51
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1003b47
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003c23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1003d76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
xor edi, edi
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1003ddf
cmp dword [ebp + 0xc], edi
je 0x1003ddf
cmp ebx, edi
je 0x1003dbf
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1003dc3
xor eax, eax
jmp 0x1003de1
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc