joyce8/EMBER2024-capa huggingface dataset:
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.1000d330
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 0x1000d330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000d33f
pop dword [ebp - 0x44]
mov eax, 0xb0bbc875
add eax, 0x5f450aca
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x39b96
push 0
mov eax, 0x514c53c3
add eax, 0xbeb84e09
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x5508ec91
sub ecx, 0x5508b365
mov ebx, eax
mov edx, 0x8c5398b1
sub edx, 0x7c4d38b1
add edx, dword [ebp - 0x44]
mov edi, 0x97edb82f
sub edi, 0xc7ebae08
sub dword [ebp - 8], edx
mov esi, dword [edx]
sub dword [ebp - 0x14], 0x99bac3c3
xor esi, edi
xor dword [ebp - 0x40], 0xd501c44a
mov dword [ebx], esi
add dword [ebp - 0x38], esi
add ebx, 4
add edx, 0xe420a5d8
sub edx, 0xe420a5d4
loop 0x1000d39e
add eax, 0x151b7b6a
sub eax, 0x151aa3e7
mov ebx, eax
add eax, 5
mov ecx, 0xca71c81f
sub ecx, 0xba71c81f
add ecx, dword [ebp - 0x44]
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 0x1002e4e2
Capabilities:
Get geographical location

Disassembly:
push 0x1c
push 0x10056620
call fcn.1001096c
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x1c], eax
xor esi, esi
cmp dword [0x1005dd68], esi
jne 0x1002e530
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002e51b
mov dword [0x1005dd68], edi
jmp 0x1002e530
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002e530
mov dword [0x1005dd68], 2
mov eax, dword [0x1005dd68]
cmp eax, 2
je 0x1002e60f
cmp eax, esi
je 0x1002e60f
cmp eax, 1
jne 0x1002e578
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
cmp dword [ebp + 0x1c], esi
jne 0x1002e561
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, esi
jne 0x1002e57f
xor eax, eax
jmp 0x1002e621
mov dword [ebp - 4], esi
lea eax, [edi + edi]
call fcn.100109c0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x28], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x1002e5b2
cmp ebx, esi
jne 0x1002e5cb
lea ecx, [edi + edi]
call fcn.100158cd
mov ebx, eax
cmp ebx, esi
je 0x1002e578
mov dword [ebp - 0x24], 1
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002e5fe
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x1002e5e8
push esi
push esi
jmp 0x1002e5ee
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], esi
je 0x1002e60a
push ebx
call fcn.1000c295
pop ecx
mov eax, dword [ebp - 0x20]
jmp 0x1002e621
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
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.1000d330
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.1000d330
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.1000d330
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.1000d330
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.1000d330
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
Function at 0x1003c5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x1003c5d0
cmp dword [edi + 0x54], 0
jne 0x1003c5d0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10044c5a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003c577
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1003d41c
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x90]
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
mov dword [ebp - 0x80], eax
je 0x1003d451
test esi, esi
jne 0x1003d456
call fcn.1000d330
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ebx, eax
xor eax, eax
push 0x3f
mov byte [ebp - 0x7c], 0
pop ecx
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x100
cmp ebx, eax
ja 0x1003d49a
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x1003d49a
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
je 0x1003d4a4
push esi
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
add ebp, 0x88
leave
ret 8
Function at 0x100442a6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10048255
call fcn.1000cf04
sub esp, 0x124
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x100443b7
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1004438b
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.10003df1
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov dword [ebp - 4], 1
call fcn.100442a6
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
and dword [ebp - 4], 0
add ecx, 0xfffffff0
call fcn.1000398e
test bl, bl
jne 0x1004438b
or dword [ebp - 4], 0xffffffff
jmp 0x100442f3
cmp esi, 0x103
je 0x1004439b
cmp esi, 0x3f2
jne 0x100443ab
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 8