joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c70b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4348c8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c751
cmp word [ebx], dx
jne 0x41c751
or byte [eax + edi + 0x28], 4
jmp 0x41c756
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41c8b9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41c899
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41c797
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c7cd
cmp eax, edx
jae 0x41c7db
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41c772
jmp 0x41c8b9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c894
cmp dword [ebp - 0x18], 0
je 0x41c894
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4348c8]
test byte [eax + edi + 0x28], 0x48
je 0x41c86a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41c82e
mov word [esi], cx
jmp 0x41c865
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4348c8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4348c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4348c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41c8b9
pop eax
cmp word [ebp - 4], ax
jne 0x41c87a
cmp esi, ebx
jne 0x41c87a
mov word [esi], ax
jmp 0x41c8b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d00d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c8b9
push 0xd
pop eax
jmp 0x41c875
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4348c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41c8b3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41c8b9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e41e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c260
push 0x42c258
push str.FlsAlloc
push 0x1f
call fcn.0041e2ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e452
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281cc]
call esi
jmp 0x41e458
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e49c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c270
push 0x42c268
push str.FlsGetValue
push 0x21
call fcn.0041e2ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e4d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41e4db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c278
push 0x42c270
push str.FlsSetValue
push 0x22
call fcn.0041e2ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e515
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f7b4
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 0x41f851
push ebx
push esi
call fcn.0041f77d
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.0041e101
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f7fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f850
push edi
push eax
call fcn.0041a5d3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f81e
call fcn.0041a599
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f84f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e101
add esp, 0x20
test eax, eax
jne 0x41f83d
push edi
call fcn.0041a599
jmp 0x41f845
push ebx
call fcn.0041a599
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 0x424835
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004247b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4249a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4249a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424959
jg 0x424891
test eax, eax
je 0x42494f
push 1
push 0x1000
call fcn.0041e7d6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4248b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424946
push 0x8000
push ebx
call fcn.00417cb3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4248dd
jg 0x4248d8
cmp ecx, 0x1000
jb 0x4248dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041d955
add esp, 0x10
cmp eax, 0xffffffff
je 0x424922
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4248d8
jl 0x424909
test ecx, ecx
jne 0x4248ca
push dword [ebp - 0xc]
push ebx
call fcn.00417cb3
push esi
call fcn.0041a599
add esp, 0xc
xor ebx, ebx
jmp 0x4249b2
cmp byte [edi + 0x24], 0
je 0x424939
cmp dword [edi + 0x20], 5
jne 0x424939
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424944
mov ebx, dword [edi + 0x18]
jmp 0x424946
xor ebx, ebx
push esi
call fcn.0041a599
pop ecx
jmp 0x4249b2
test ecx, ecx
jg 0x42491b
jl 0x424959
test eax, eax
jae 0x42491b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d00d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424979
cmp byte [edi + 0x1c], 0
je 0x42491b
jmp 0x4249aa
push ebx
call fcn.0041fce3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42491b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4249b2
cmp byte [edi + 0x1c], 0
je 0x4249af
mov ebx, dword [edi + 0x18]
jmp 0x4249b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d00d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425dbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425dbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100148b
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
push 0x28
push 0x1004be0
push 0x64
push dword [0x1004168]
call esi
push 0x28
mov ebx, 0x1004b80
push ebx
push 0x3ef
push dword [0x1004168]
call esi
push 0xd
mov edi, 0x1004c40
push edi
push 0x3e9
push dword [0x1004168]
call esi
push 0x16
push 0x1004e80
push 0x3ea
push dword [0x1004168]
call esi
push 0xd
push 0x1004b60
push 0x3f1
push dword [0x1004168]
call esi
push 0xff
push 0x1004c80
push 0x3f0
push dword [0x1004168]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 5
push 0x1004018
push ebx
call esi
cmp ax, 0xa
mov word [0x10041b6], ax
jbe 0x100148e
mov word [0x10041b6], 5
push edi
push 0x19
push 0x100402c
push ebx
call esi
cmp ax, 0xc8
pop edi
pop esi
mov word [0x10041b8], ax
pop ebx
jbe 0x10014b2
mov ax, 0xc8
mov word [0x10041b8], ax
cmp ax, 0xa
jae 0x10014c1
mov word [0x10041b8], 0xa
ret
Function at 0x43cde0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0x7d61f
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x52d9
mov dword [esp + 0x80], 0x261f
mov dword [esp + 0x78], 0x1a9e
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x80]
xor eax, 0x2611
mov ecx, esp
mov dword [ecx + 8], eax
lea eax, [esp + 0x54]
mov dword [ecx], eax
mov dword [ecx + 4], 0x4012c4
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
call fcn.0043c900
sub esp, 0xc
mov eax, esp
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
call fcn.0043d2c0
sub esp, 4
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
xor esi, esi
mov edi, 0x538b
sub edi, ecx
sbb esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
movzx ecx, word [esp + 0x86]
add ecx, 0xffffd46e
mov bx, cx
mov ecx, dword [esp + 0x78]
mov word [esp + 0x86], bx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x80]
mov edx, dword [esp + 0x80]
add edx, 0xffffda21
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov dword [eax + 8], 0x1000
mov dword [eax], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
call ebx
sub esp, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call fcn.0043cfb0
sub esp, 8
mov eax, 0x4e51
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jb 0x43cf87
jmp 0x43cf2e
call fcn.0043dec0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
add eax, 0xffc00000
add ecx, 0xe05
adc edx, 0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
mov word [esp + 0x86], 0x8d14
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
add eax, 0x54
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
sub ecx, eax
mov esi, dword [esp + 0x1c]
sbb edx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jb 0x43cf1f
jmp 0x43cf87
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
mov dword [ecx], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x3c]
add eax, 0x2860
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x43dec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x38
lea eax, [fcn.0043dec0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x298e
mov dword [esp + 0x1c], 0x2def
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x79ce
mov dword [esp + 0x18], eax
jmp 0x43df89
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, 0x3def
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, eax
and ecx, 0xfffff000
mov dword [esp + 0x18], ecx
jmp 0x43df5c
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
xor edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor ecx, esi
xor edx, 0x3107
or edx, ecx
mov dword [esp + 4], edx
je 0x43df64
jmp 0x43df0b
mov dword [esp + 0x10], 0
jmp 0x43df01
mov al, 1
test al, 1
jne 0x43df89
jmp 0x43df52
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax]
mov ecx, dword [esp + 0x20]
add ecx, 0x5e36
mov dword [esp + 0x20], ecx
cmp eax, 0x4550
je 0x43df99
jmp 0x43df26
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x43df64
jmp 0x43df26
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x43df01

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4019c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push 0x4a7158
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019ff
mov ecx, dword [esp + 0xc]
push 0x10
push 0x493a84
push str.Error_opening_input_file_
call fcn.00407a30
xor eax, eax
pop esi
pop ecx
ret 4
push ebx
push ebp
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 5
mov ebx, eax
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push ebx
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov edi, eax
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [edi], 0x5a4d
jne 0x401a59
mov ecx, dword [edi + 0x3c]
cmp dword [edi + ecx], 0x4550
je 0x401a61
mov dword [esp + 0x18], 0
push edi
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x401a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x406473
cmp dword [edi + 0x54], 0
jne 0x406473
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040c0ba
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.0040641a
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 0x4029c1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4a15f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x402a01
push 0x47fa28
push 4
push eax
call fcn.0042117f
push eax
call fcn.00401b70
add esp, 0x10
jmp 0x402a13
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x402a81
push edi
call fcn.00421437
mov edi, dword [eax]
call fcn.00421437
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004213dd
add esp, 0x18
mov ebx, eax
call fcn.00421437
cmp dword [eax], 0
je 0x402a61
call fcn.00421437
push dword [eax]
call fcn.0040280c
pop ecx
jmp 0x402a68
call fcn.00421437
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x402a81
cmp ebx, esi
jae 0x402a81
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x402a83
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f73c
leave
ret
Function at 0x40508b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4050d1
call fcn.0040c0ba
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4050d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x405114
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4050fd
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4050fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x405111
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406224
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x47b24e
call fcn.00420aaf
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040c0ba
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40626f
call fcn.0040c0ba
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 0x406280
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40628d
or eax, 0xffffffff
jmp 0x4063e9
mov ecx, esi
call fcn.00405d54
mov dword [ebp - 0x14], eax
call fcn.00408bf2
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40630b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40630b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40630b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004028e7
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40630b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40630b
mov ecx, ebx
call fcn.0040dedb
test eax, eax
je 0x40630b
push 0
mov ecx, ebx
call fcn.0040def6
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040a63e
push dword [ebp - 0x14]
call fcn.00408b4a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040602c
xor edi, edi
cmp eax, edi
je 0x406368
test byte [esi + 0x3c], 0x10
je 0x406352
push 4
pop edi
mov ecx, esi
call fcn.0040dd98
test ax, 0x100
je 0x406348
push 5
pop edi
push edi
mov ecx, esi
call fcn.004086e0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x406368
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040e0a0
or dword [ebp - 4], 0xffffffff
jmp 0x406393
cmp dword [ebp - 0x28], edi
je 0x4063a1
push 1
mov ecx, ebx
call fcn.0040def6
cmp dword [ebp - 0x2c], edi
je 0x4063b1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4063ca
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4063ca
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.00405d8e
cmp dword [esi + 0x58], edi
je 0x4063e6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00420b54
ret
Function at 0x409c09
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x409c42
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.00409ba4
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403cb1
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40b27e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x47faa9
mov ecx, edi
call fcn.0040328d
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x40b2d1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40b2e4
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00409ba4
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403cb1
jmp 0x40b2e4
mov ecx, esi
call fcn.0040dd1d
test eax, eax
je 0x40b2e4
push edi
mov ecx, eax
call fcn.00409c09
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x40b7cb
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 0x40b80e
call fcn.0040c0ba
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b80e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b829
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b382
test ebx, ebx
mov esi, eax
je 0x40b827
test edi, edi
je 0x40b827
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40e3af
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47b12d
call fcn.00420a7c
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40e3d4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40e420
call fcn.0040d836
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b40
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c247
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401ab0
mov eax, esi
call fcn.00420b54
ret 8