joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b30
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov bl, dl
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x405b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.004036d0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x405ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.004036d0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
movzx eax, bl
add eax, 2
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x405beb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig_failed___d__n
call fcn.004036d0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Service_disabled_successfully._n
call fcn.004036d0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405de0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x5c2f60]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TraverseProcessID_CreateToolhelp32Snapshot_GetLastError___d
call fcn.00403530
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00540fa1
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x405e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TraverseProcessID_Process32First_GetLastError___d
call fcn.00403530
add esp, 8
test esi, esi
je 0x405e79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00540fa1
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax + eax]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call fcn.00547848
add esp, 8
test eax, eax
jne 0x405ee2
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x405ed2
cmp dword [esp + 0x10], edi
je 0x405f18
call ebx
push eax
push str.TraverseProcessID_ProcessIdToSessionId_GetLastError___d
call fcn.00403530
add esp, 8
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405ea0
xor ebx, ebx
test esi, esi
je 0x405eff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00540fa1
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x20]
jmp 0x405ef4
Function at 0x406ca0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x5c2f60]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00406bd0
test eax, eax
je 0x406ce2
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00540fa1
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x218]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x406cf0
lea ecx, [esp + 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d10
sub ecx, edx
mov edx, 0x2f2f
sar ecx, 1
movzx eax, word [esp + ecx*2 + 0x216]
cmp ax, dx
je 0x406d36
cmp eax, 0x2f
jne 0x406d43
mov eax, 0x2f30
mov word [esp + ecx*2 + 0x216], ax
lea ebx, [esp + 0x218]
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x406d50
push 0x100
lea eax, [esp + 0x1c]
sub ebx, ecx
push 0
push eax
sar ebx, 1
call fcn.005436e0
xor esi, esi
add esp, 0xc
mov dword [esp + 0x14], esi
test ebx, ebx
jle 0x406e5f
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov word [esp + 0x12], ax
nop dword [eax]
nop dword [eax + eax]
movzx eax, word [esp + esi*2 + 0x218]
mov esi, 0x2f2f
cmp ax, si
je 0x406db9
mov word [esp + 0x10], ax
jmp 0x406ddd
push 0
lea eax, [esp + 0x1c]
push eax
call edx
test eax, eax
je 0x406dd2
push 0x80
lea eax, [esp + 0x1c]
push eax
call edi
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esp + 0x10], si
lea eax, [esp + 0x10]
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406de3
lea edi, [esp + 0x18]
sub eax, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406e00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx - 1]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
cmp esi, eax
jne 0x406e46
push 0
lea eax, [esp + 0x1c]
push eax
call edx
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x406e4c
push 0x80
lea eax, [esp + 0x1c]
push eax
call edi
jmp 0x406e4c
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc esi
mov dword [esp + 0x14], esi
cmp esi, ebx
jl 0x406da0
lea ecx, [esp + 0x18]
call fcn.00406bd0
mov ecx, dword [esp + 0x424]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.00540fa1
mov esp, ebp
pop ebp
ret
Function at 0x408584
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xffffffffffffffff
push esi
call fcn.0040c00c
test eax, eax
je 0x4085db
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00547575
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x4085d0
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x4085be
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00408199
int3

Function at 0x40adc7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x565ae6
call fcn.00541874
mov esi, ecx
mov dword [ebp - 0x14], esi
lea edi, [esi + 0x1c]
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x40aecf
cmp ebx, dword [esi + 0xc]
jge 0x40aecf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x40ae1e
cmp ebx, dword [edi + 8]
jl 0x40aeb8
cmp dword [ebp + 0xc], 0
je 0x40aeb8
xor ebx, ebx
jmp 0x40ae55
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.0040a9f4
mov edi, eax
test edi, edi
je 0x40ae38
mov dword [edi], vtable.CThreadData.0
jmp 0x40ae3a
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.0040acf3
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0xc]
push 4
push dword [eax + 0xc]
call fcn.0040855c
pop ecx
pop ecx
test esi, esi
jne 0x40ae75
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40ae81
push 2
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x40aede
mov esi, dword [ebp - 0x14]
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.005436e0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x40aeca
cmp ebx, dword [edi + 8]
jge 0x40aeca
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
jmp 0x40aed0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005417d2
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004081b3
mov eax, dword [ebp - 0x14]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
push ebx
push ebx
call fcn.0054383a
int3
Function at 0x40d08f
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x565c79
call fcn.0054183d
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x40d29d
test edi, edi
je 0x40d29d
lea ecx, [ebp - 0x268]
mov esi, 0x104
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x40d11e
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 0x264]
call fcn.0054b353
add esp, 0x10
test eax, eax
je 0x40d110
cmp eax, 0xc
je 0x40d2a2
cmp eax, 0x16
je 0x40d29d
cmp eax, 0x22
je 0x40d29d
cmp eax, 0x50
jne 0x40d29d
push edi
push ebx
call fcn.0040d04d
xor eax, eax
jmp 0x40d268
cmp eax, esi
jb 0x40d148
test ebx, ebx
je 0x40d117
mov dword [ebx + 8], 3
test edi, edi
jne 0x40d135
xor eax, eax
jmp 0x40d13c
push edi
call fcn.00547575
pop ecx
push eax
push edi
lea ecx, [ebx + 0x10]
call fcn.00407bce
jmp 0x40d117
call fcn.0040879c
push eax
lea ecx, [ebp - 0x26c]
call fcn.00407235
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call fcn.0040c9a8
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x40d25d
push eax
push eax
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x274]
push ecx
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x40d1b7
push edi
push ebx
call fcn.0040d04d
lea ecx, [esi - 0x10]
call fcn.004034f0
jmp 0x40d117
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x40d1d3
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x40d25d
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40d25d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x40d1a3
cmp eax, dword [ebp - 0x264]
jbe 0x40d1a3
lea eax, [ebp - 0x234]
push eax
call fcn.00547575
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x40d270
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.0054b222
add esp, 0xc
test eax, eax
je 0x40d25d
cmp eax, 0xc
je 0x40d2a2
cmp eax, 0x16
je 0x40d29d
cmp eax, 0x22
je 0x40d29d
cmp eax, 0x50
jne 0x40d29d
lea ecx, [esi - 0x10]
call fcn.004034f0
xor eax, eax
inc eax
call fcn.005417e7
ret 0xc
test ebx, ebx
je 0x40d1aa
mov dword [ebx + 8], 3
test edi, edi
jne 0x40d287
xor eax, eax
jmp 0x40d28e
push edi
call fcn.00547575
pop ecx
push eax
push edi
lea ecx, [ebx + 0x10]
call fcn.00407bce
jmp 0x40d1aa
call fcn.00408199
call fcn.004081b3
int3
Function at 0x411144
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0041164f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.0041137f
cmp esi, 3
je 0x411182
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4111d8
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [ebp + 0x10]
mov ebx, eax
mov ecx, edi
test ebx, ebx
jle 0x4111b3
push ebx
call fcn.00407acd
push ebx
mov ecx, edi
mov esi, eax
call fcn.00407ba3
lea ecx, [ebx + 1]
push ecx
push esi
jmp 0x4111c3
push 0xff
call fcn.00407acd
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004090de
pop ebx
jmp 0x4111fc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4111fc
push dword [esi]
push dword [ebp - 4]
call fcn.00410671
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4112c5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0041137f
cmp dword [esi], 0
mov ebx, eax
mov dword [esi + 0xc], 1
je 0x41131c
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [ebp + 0x10]
mov edi, eax
push edi
call fcn.00407acd
mov ecx, dword [ebp + 0x10]
mov esi, eax
push edi
call fcn.00407ba3
lea edx, [edi + 1]
push edx
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004090de
pop edi
jmp 0x411327
mov eax, dword [ebp + 0x10]
push dword [eax]
push ebx
call fcn.00410671
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x411705
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x565b09
call fcn.00541809
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x41172b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41179c
call fcn.0040879c
push eax
lea ecx, [ebp - 0x10]
call fcn.00407235
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0054b353
add esp, 0x10
test eax, eax
je 0x411782
cmp eax, 0xc
je 0x4117a9
cmp eax, 0x16
je 0x4117a4
cmp eax, 0x22
je 0x4117a4
cmp eax, 0x50
jne 0x4117a4
test esi, esi
je 0x41178f
push esi
call fcn.00547575
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034f0
mov eax, ebx
call fcn.005417d2
ret 8
call fcn.00408199
call fcn.004081b3
int3
Function at 0x414d21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x414d66
call fcn.0040a092
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414d66
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x414d82
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041e11d
mov ebx, eax
test edi, edi
je 0x414d80
test esi, esi
je 0x414d80
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41583e
cmp dword [esi + 0x20], 0
je 0x41583e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41583e
cmp dword [ebp + 8], 0
je 0x41583e
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0040a092
push 0x577fa8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41580f
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41583e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0041ec56
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x41582f
test edi, edi
je 0x41582f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x41583a
mov ecx, esi
call fcn.00415523
mov eax, ebx
jmp 0x415840
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41af33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov ecx, dword [ebx + 0x88]
mov edi, dword [ebx + 0x8c]
mov dword [ebp - 4], ecx
je 0x41af78
call fcn.0040a092
push 5
push dword [ebx + 0x84]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x41af88
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov edi, eax
xor esi, esi
inc esi
test edi, edi
je 0x41afd4
mov edx, dword [edi]
mov eax, edx
shr eax, 0x10
mov dword [ebp - 4], 0xffff
cmp ax, word [ebp - 4]
jne 0x41afb3
movzx eax, word [edi + 0x12]
mov edx, dword [edi + 0xc]
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x14]
jmp 0x41afbe
movzx eax, word [edi + 0xa]
mov dword [ebp - 4], eax
movzx eax, word [edi + 0xc]
test edx, 0x1801
jne 0x41afd2
cmp word [ebp - 4], 0
jne 0x41afd2
test ax, ax
je 0x41afd4
xor esi, esi
cmp dword [ebx + 0x84], 0
je 0x41afe4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41afed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x41b018
cmp dword [ebx + 0x80], 0
jne 0x41b018
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0040a092
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0041b2ab
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41b052
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040a092
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b089
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041b0aa
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b3a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x566225
call fcn.00541874
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
call fcn.0040a092
xor ebx, ebx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x84], ebx
je 0x41b404
call fcn.0040a092
push 5
push dword [edi + 0x84]
mov esi, dword [eax + 0xc]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x41b414
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
jmp 0x41b417
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41b423
or eax, 0xffffffff
jmp 0x41b5a7
mov ecx, edi
call fcn.0041b9f9
mov esi, eax
mov dword [ebp - 0x28], esi
call fcn.00413a48
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
test esi, esi
je 0x41b4cb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x41b4cb
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41b4cb
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x30], 1
call fcn.004109f8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b48d
mov ecx, dword [eax]
mov esi, dword [ecx + 0x74]
mov ecx, esi
call fcn.005417cc
mov ecx, dword [ebp - 0x14]
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x41b492
mov esi, ebx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x41b4cb
mov eax, dword [esi]
mov esi, dword [eax + 0x150]
mov ecx, esi
call fcn.005417cc
mov ecx, dword [ebp - 0x14]
call esi
test eax, eax
je 0x41b4cb
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.004117ef
test eax, eax
je 0x41b4cb
push ebx
mov ecx, esi
call fcn.004115aa
mov dword [ebp - 0x2c], 1
push edi
mov dword [ebp - 4], ebx
call fcn.004136e9
mov esi, dword [ebp - 0x28]
push esi
call fcn.00414da9
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0041b348
test eax, eax
jne 0x41b516
cmp dword [edi + 0x9c], ebx
jne 0x41b516
call fcn.0040a092
push esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.00414da9
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0041b348
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x9c], ebx
jmp 0x41b547
cmp dword [ebp - 0x2c], 0
je 0x41b557
mov ecx, dword [ebp - 0x14]
push 1
call fcn.004115aa
cmp dword [ebp - 0x30], 0
je 0x41b566
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x41b57c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x41b57c
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
mov ecx, edi
call fcn.0041b9b0
cmp dword [edi + 0x84], ebx
je 0x41b5a4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [edi + 0x68]
call fcn.005417d2
ret
Function at 0x4207b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x420809
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4207e2
call fcn.0040e62d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4207f7
call fcn.0040e62d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x420809
call fcn.0040e62d
call fcn.0040a092
cmp dword [eax + 0x3c], 0
je 0x42081e
push edi
mov ecx, ebx
call fcn.0041feec
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00420a0f
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x420847
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x420853
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8