joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40608a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a74], 0
push esi
jne 0x4060c1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40609b
mov dword [ecx*4 + 0x422a70], eax
inc ecx
cmp ecx, 0x100
jl 0x406096
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060f2
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a70]
xor eax, esi
inc ecx
dec edx
jne 0x4060d4
pop edi
not eax
pop esi
ret 0xc

Function at 0x80a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0080a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x80a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a06a
add dl, dl
jne 0x80a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a0dc
xor eax, eax
add dl, dl
jne 0x80a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a17d
add dl, dl
jne 0x80a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x80a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x80a075
mov eax, 1
add dl, dl
jne 0x80a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a0e1
sub eax, ebx
mov ebx, 1
jne 0x80a128
mov ecx, 1
add dl, dl
jne 0x80a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x80a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x80a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x80a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a136
cmp eax, 0x7d00
jae 0x80a16d
cmp eax, 0x500
jb 0x80a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
cmp eax, 0x7f
ja 0x80a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x80a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x80a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x411172
Capabilities:
Parse pe header

Disassembly:
jmp 0x4121f3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412233
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412233
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412233
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412233
cmp dword [ecx + 0x74], 0xe
jbe 0x412233
cmp dword [ecx + 0xe8], 0
je 0x412233
mov al, 1
ret
xor al, al
ret

Function at 0x41126c
Capabilities:
Terminate process

Disassembly:
jmp 0x4119f4
push 0x14
push 0x4152c8
call fcn.004110f5
push 1
call fcn.004110f0
pop ecx
test al, al
je 0x41190c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00411299
mov byte [ebp - 0x24], al
mov eax, dword [0x416130]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41190c
test eax, eax
jne 0x41182a
mov dword [0x416130], ecx
push 0x414618
push 0x41430c
call fcn.0041105f
pop ecx
pop ecx
test eax, eax
je 0x41180d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4118fc
push 0x414208
push section..rdata
call fcn.00411168
pop ecx
pop ecx
mov dword [0x416130], 2
jmp 0x41182f
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041107d
pop ecx
call fcn.00411140
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x411860
push esi
call fcn.0041115e
pop ecx
test al, al
je 0x411860
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.004111bd
mov esi, eax
cmp dword [esi], edi
je 0x41187e
push esi
call fcn.0041115e
pop ecx
test al, al
je 0x41187e
push dword [esi]
call fcn.00411091
pop ecx
call fcn.00411221
mov edi, dword [eax]
call fcn.0041111d
mov esi, eax
call fcn.00411280
push eax
push edi
push dword [esi]
call fcn.00411203
add esp, 0xc
mov esi, eax
call fcn.00411172
test al, al
je 0x411913
test bl, bl
jne 0x4118b1
call fcn.00411023
push 0
push 1
call fcn.004111c2
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4118fc
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00411226
push esi
call fcn.004111cc
push dword [ebp - 0x20]
call fcn.00411118
int3
call fcn.00411217
jmp 0x4117a0
Function at 0x40106c
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x443d73
call fcn.00420850
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
cmp byte [esi + 0x20], 0
mov dword [ebp - 4], 1
jne 0x4011bb
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
cmp edi, eax
mov ebx, 0x4494d8
je 0x401118
mov ecx, edi
call fcn.00401d5e
push eax
push str.File_s
push str.DeleterDeleteFile
push str.ISSetupDLLOp
call fcn.0041846b
add esp, 0x10
and dword [ebp - 0x14], 0
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0
push edi
mov dword [ecx], 0x4494d0
mov dword [ecx + 0x20], ebx
call fcn.00401974
call fcn.00414960
add esp, 0x28
test al, al
je 0x401110
mov ecx, edi
call fcn.00401d5e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401110
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
cmp eax, 0x64
jge 0x401110
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4010c4
add edi, 0x28
cmp edi, dword [esi + 8]
jne 0x4010a1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x14]
je 0x4011ad
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x28]
call fcn.00401d5e
push eax
push str.Folder_s
push str.DeleterDeleteFolder
push str.ISSetupDLLOp
call fcn.0041846b
add esp, 0x10
xor edi, edi
lea ecx, [ebp - 0x10]
call fcn.004018f9
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], 0x4494d0
mov dword [ecx + 0x20], ebx
call fcn.00401974
call fcn.00414960
add esp, 0x28
test al, al
je 0x4011a1
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x28]
call fcn.00401d5e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4011a1
mov eax, edi
inc edi
cmp eax, 0x64
jge 0x4011a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40114c
sub dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x10]
jmp 0x40111e
cmp byte [esi + 0x21], 0
je 0x4011bb
push 1
call fcn.004011e1
pop ecx
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.004018c6
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004018c6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x403571
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4440c6
call fcn.00420850
sub esp, 0x224
push ebx
push esi
lea eax, [ebp - 0x230]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4035b5
lea ecx, [ebp - 0x58]
call fcn.00403755
lea eax, [ebp - 0x58]
push 0x44b998
push eax
call fcn.00421735
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 0x449500
mov esi, 0x4494f8
je 0x4036f4
cmp dword [ebp - 0x11c], 1
jne 0x4036f4
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00404613
push str.123.tmp
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.00403b38
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.004049fb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4036d3
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004038d7
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00403a14
push dword [0x4494e0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.004021ed
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.004014d4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004014d4
push 0x453328
lea ecx, [ebp - 0x3c]
call fcn.00403b38
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401974
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
jmp 0x40373e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3c]
call fcn.004049fb
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004014d4
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00404613
push 0x453324
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 4
call fcn.00403b38
mov ecx, dword [ebp + 8]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401974
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
call fcn.004014d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4038d7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x444133
call fcn.00420850
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x403982
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403982
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x453344], eax
je 0x403982
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x403982
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x449500
mov esi, 0x4494f8
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00404613
push 0x453324
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00403b38
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401974
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x4039fd
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4039aa
lea ecx, [ebp - 0x30]
call fcn.00403755
lea eax, [ebp - 0x30]
push 0x44b998
push eax
call fcn.00421735
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x449500
mov esi, 0x4494f8
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00404613
push 0x453324
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00403b38
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401974
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.004014d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ce87
Capabilities:
Get disk information

Disassembly:
mov eax, 0x44561c
call fcn.00420850
sub esp, 0x50
push esi
mov esi, ecx
lea eax, [ebp - 0x5c]
push edi
mov ecx, dword [esi + 0x154]
push eax
call fcn.00403154
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0
push ecx
mov ecx, eax
call fcn.00401bdc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401d5e
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004014d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004014d4
cmp edi, 2
je 0x40cf13
cmp edi, 5
je 0x40cf13
cmp edi, 3
je 0x40cf0f
cmp edi, 4
je 0x40cf0f
cmp edi, 6
je 0x40cf0f
mov ecx, esi
call fcn.0040c991
dec ax
neg ax
sbb eax, eax
neg eax
jmp 0x40cf15
xor al, al
jmp 0x40cf15
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e088
Capabilities:
Create directory

Disassembly:
mov eax, 0x4458fc
call fcn.00420850
sub esp, 0x3c
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00410119
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040e77d
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x40e0bf
xor esi, esi
jmp 0x40e0c8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0040ee1e
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0041029e
cmp dword [0x449d98], eax
je 0x40e13a
lea esi, [eax + 1]
push ebx
push esi
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x449d80
mov dword [ebp - 0x18], 0x449d78
call fcn.0040eb6a
mov dword [ebp - 0x2c], vtable.zpath.0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041051e
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040ee1e
mov dword [ebp - 0x10], edi
jmp 0x40e0d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041019e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40e461
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x40e4a6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e47b
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e502
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e502
cmp dword [ebp + 8], 0
jne 0x40e4db
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e502
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0040cbc1
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x411270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x411284
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4112b8
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0041db68
test al, al
jne 0x4112eb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4112eb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x4112f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x411307
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41133b
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0041db68
test al, al
jne 0x41136e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41136e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4133b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44615c
call fcn.00420850
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [esi], 0
movzx eax, word [ebp + 8]
and dword [ebp - 4], 0
push 5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp dword [esi], edi
je 0x413410
mov ecx, esi
call fcn.00411d79
mov dword [esi], edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi + 8]
call fcn.00420870
mov eax, dword [esi + 8]
add esp, 0xc
cmp word [eax + 2], 0xffff
jne 0x413448
or dword [eax + 0xc], 0x48
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41346f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x446178
call fcn.00420850
sub esp, 0x18
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [esi + 8]
call fcn.004133b6
push dword [ebp - 0x1c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004027f5
mov ecx, dword [esi + 0xc]
mov byte [ebp - 4], 1
add ecx, 4
call fcn.00401d5e
mov ecx, dword [esi + 0xc]
mov cx, word [ecx + 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004029b2
mov eax, dword [esi + 0xc]
push esi
push 0x41350e
mov ecx, dword [eax]
mov eax, dword [eax + 0x30]
push ecx
mov eax, dword [eax + 0x154]
push dword [ebp - 0x18]
mov edi, dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402896
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041345a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4136c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4136db
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4138e8
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x446194
call fcn.00420850
sub esp, 0x8c
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x154]
cmp word [eax + 0x40], 8
jne 0x413a9c
push ebx
push esi
push edi
push 1
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x4494d0
mov dword [ebp - 0x40], 0x4494d8
call fcn.004018ff
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push 0x32
push eax
lea ecx, [ebp - 0x60]
call fcn.004015f7
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 1
call fcn.00401d5e
push 0x32
push eax
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0040184c
push ebx
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x14], eax
call fcn.00401d5e
mov esi, eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401d5e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPointA]
push eax
push esi
push dword [ebp - 0x14]
call edi
movzx esi, word [ebp - 0x20]
movzx eax, word [ebp - 0x24]
shl esi, 0x10
or esi, eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x45459c
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, si
and byte [ebp - 0xd], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
shr esi, 0x10
push eax
push ebx
mov dword [ebp - 0x28], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x38]
sub esi, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x14]
jge 0x413a13
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
sub eax, edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
cmp esi, eax
jge 0x413a21
lea esi, [eax + 4]
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], 0
je 0x413a8d
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x2c
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x7c]
push 1
push esi
push edi
lea eax, [eax + eax*2]
push dword [ebp - 0x78]
sub ecx, eax
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
call ebx
mov eax, dword [ebp - 0x18]
push 9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x18], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x7c]
push 1
sub eax, dword [ebp - 0x1c]
push esi
push edi
push dword [ebp - 0x78]
push eax
push dword [ebp - 0x18]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004014d4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret