joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421880
push esi
call fcn.004059dd
push esi
call fcn.00405564
mov edi, eax
test edi, edi
jne 0x4055d2
xor eax, eax
jmp 0x405624
push edi
call fcn.00405c3f
test byte [0x423e98], 0x80
je 0x4055eb
mov al, byte [edi]
test al, al
je 0x4055ce
cmp al, 0x5c
je 0x4055ce
sub edi, esi
jmp 0x405603
call fcn.00405cd8
test eax, eax
je 0x4055fd
test byte [eax], 0x10
je 0x4055ce
push esi
call fcn.00405517
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055ef
call fcn.004054d0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405695
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056b1
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056b4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405727
test edi, edi
jne 0x4056ee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405721
Function at 0x40572b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405cff
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40574f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405888
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422608], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422608
je 0x405793
push 1
push 0
push esi
call fcn.004056b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
mov esi, 0x422080
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
push esi
push ebp
push str._s_s_r_n
push 0x421c80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004059ff
push 4
push 0xc0000000
push esi
call fcn.004056b4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405888
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405881
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405881
cmp edi, dword [esp + 0x18]
jne 0x405881
push str._Rename__r_n
push esi
call fcn.00405629
test eax, eax
jne 0x405895
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059dd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c80
push eax
call fcn.00405675
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405629
test eax, eax
je 0x40584c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058bc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058b1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40584e
Function at 0x4058c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405935
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405924
cmp dword [ebp + 0x14], 1
je 0x405926
cmp dword [ebp + 0x14], 2
je 0x405926
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
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 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
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 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x40258c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
test al, 0x50
call fcn.004022f3
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004022a8
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4025d1
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a

Function at 0x4031c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid

Function at 0x404490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xchg ebp, eax
sbb esp, dword [ecx + 0x30]
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
jo 0x4044ba
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4044a7
xchg esi, eax
lodsd eax, dword [esi]
invalid
Function at 0x407c70
Capabilities:
Get file system object information

Disassembly:
push edi
sub esp, 0x2e8
call fcn.0042d6e0
mov eax, dword [esp + 0x2f0]
mov dword [esp + 4], eax
lea eax, [esp + 0x2f0]
mov dword [esp], eax
call fcn.0042d910
sub esp, 8
lea edi, [esp + 0x2c]
mov ecx, 0xad
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x110
mov dword [esp + 0xc], 0x2b4
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2f0]
mov dword [esp], eax
call sub.SHELL32.dll_SHGetFileInfoW
sub esp, 0x14
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x2f0]
mov dword [esp], eax
call fcn.0042db00
sub esp, 4
mov eax, edi
add esp, 0x2e8
pop edi
ret 4
Function at 0x408030
Capabilities:
Get disk size

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0042d660
sub esp, 4
call fcn.0042d6e0
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.0042d910
sub esp, 8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
call fcn.0042d6e0
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
lea esi, [esp + 0x14]
mov dword [esp], esi
call fcn.0042d910
sub esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.0042d740
call fcn.0042d740
call fcn.0042d790
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4e3b90
mov dword [esp + 4], 0x4e3de8
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042b770
sub esp, 0x10
call fcn.0042d790
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0042da10
sub esp, 8
call fcn.0042d740
call fcn.0042d740
call fcn.0042d740
call fcn.0042d740
call fcn.0042d790
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042bf70
sub esp, 0xc
call fcn.0042d890
mov ebx, eax
call fcn.0042d790
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0042bef0
sub esp, 0xc
call fcn.0042dc60
call fcn.0042d840
mov dword [esp + 4], eax
mov dword [esp], 0x4e2108
call fcn.0042db30
test eax, eax
jne 0x4081f0
lea eax, [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
sub esp, 0x10
test eax, eax
je 0x408238
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042db00
sub esp, 4
mov edx, esi
not edx
mov eax, edi
not eax
or eax, edx
je 0x408250
call fcn.0042d740
call fcn.0042d740
call fcn.0042d790
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00407e30
sub esp, 0xc
call fcn.0042d890
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0042db00
sub esp, 4
mov eax, ebx
add esp, 0x20
pop ebx
pop esi
pop edi
ret 8
call fcn.0042d740
call fcn.0042d740
call fcn.0042d790
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042bf70
sub esp, 0xc
call fcn.0042d790
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0042da10
sub esp, 8
jmp 0x408154
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042db00
sub esp, 4
lea esi, [esi]
nop
call fcn.0042d740
mov dword [esp], 0x4e3978
call fcn.0042daa0
sub esp, 4
call fcn.0042d890
mov ebx, eax
jmp 0x4081d3
Function at 0x408270
Capabilities:
Get common file path

Disassembly:
push edi
push esi
push ebx
sub esp, 0x450
mov eax, dword [esp + 0x468]
mov dword [esp], eax
call fcn.0042d660
sub esp, 4
call fcn.0042d6e0
mov eax, dword [esp + 0x460]
mov dword [esp + 4], eax
lea eax, [esp + 0x460]
mov dword [esp], eax
call fcn.0042d910
sub esp, 8
lea ebx, [esp + 0x40]
mov ecx, 0x82
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor edx, edx
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x20
jb 0x4082be
lea edi, [esp + 0x248]
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0
call sub.USER32.dll_GetActiveWindow
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x464]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x248]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x41
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.SHELL32.dll_SHBrowseForFolderW
sub esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.ole32.dll_CoTaskMemFree
sub esp, 4
test esi, esi
je 0x4083b0
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.SHELL32.dll_SHGetPathFromIDListW
sub esp, 8
test eax, eax
je 0x4083f0
mov dword [esp], esi
call sub.ole32.dll_CoTaskMemFree
sub esp, 4
call fcn.0042d740
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call fcn.0042dbe0
sub esp, 8
call fcn.0042d890
mov ebx, eax
jmp 0x4083cb
call fcn.0042d740
mov dword [esp], 0x4ef2d4
call fcn.0042daa0
sub esp, 4
call fcn.0042d890
mov ebx, eax
mov eax, dword [esp + 0x460]
mov dword [esp], eax
call fcn.0042db00
sub esp, 4
mov eax, ebx
add esp, 0x450
pop ebx
pop esi
pop edi
ret 0xc
mov dword [esp + 8], 0x4ef2d4
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call fcn.0042dbb0
sub esp, 0xc
jmp 0x408382
Function at 0x408460
Capabilities:
Get file system object information

Disassembly:
push edi
push esi
push ebx
sub esp, 0x2f0
call fcn.0042d6e0
mov eax, dword [esp + 0x300]
mov dword [esp + 4], eax
lea eax, [esp + 0x300]
mov dword [esp], eax
call fcn.0042d910
sub esp, 8
mov dword [esp + 0x2c], 0
lea ebx, [esp + 0x3c]
mov ecx, 0xad
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call fcn.00422ad1
sub esp, 4
test edx, edx
js 0x408550
mov dword [esp + 0x10], 0x4000
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call sub.SHELL32.dll_SHGetFileInfoW
sub esp, 0x14
mov dword [esp + 4], str.shell32.dll
mov dword [esp], 0xffffffff
call fcn.0041ace5
push edx
push edx
mov ebx, eax
test eax, eax
jne 0x408572
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
mov ecx, dword [esp + 0x40]
lea ebx, [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4085af
lea esi, [esi]
xor ebx, ebx
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call fcn.0042db00
sub esp, 4
mov eax, ebx
add esp, 0x2f0
pop ebx
pop esi
pop edi
ret 0xc
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4e4280
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 4], str.SHGetImageList
mov dword [esp], ebx
call fcn.0041ae66
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call fcn.0041ad9b
push eax
test edi, edi
jne 0x408550
jmp 0x40851c
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x20
mov dword [esp], 0xffffffff
call fcn.00426ac5
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x408550
mov dword [esp], eax
call fcn.00426c6d
push ecx
mov dword [esp], eax
call fcn.0042689b
push esi
test eax, eax
je 0x408552
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 0xc
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jg 0x408635
mov eax, dword [esp + 0x2c]
cmp eax, 0x20
jle 0x408675
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x20
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00426900
sub esp, 0x14
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.USER32.dll_DestroyIcon
push eax
call fcn.0042696a
jmp 0x408552
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov esi, 2
cdq
idiv esi
neg eax
add eax, 0x10
mov dword [esp + 8], eax
mov eax, ecx
cdq
idiv esi
neg eax
add eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004269b2
sub esp, 0xc
jmp 0x40865e
Function at 0x416d5a
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x416df2
push edi
push 0x4f0564
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4ef2f0]
test edi, edi
je 0x416dc6
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416dbf
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4ef2f0
call fcn.0042d138
pop ecx
pop ecx
jmp 0x416dc1
mov edi, dword [edi]
test edi, edi
jne 0x416d96
pop ebx
mov eax, dword [0x4ebaa4]
mov esi, eax
inc eax
push 0x10
push 0x4ef2f0
mov dword [0x4ebaa4], eax
call fcn.0042d178
pop ecx
pop ecx
push 0x4f0564
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x417192
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417272
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x41722a
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.00417aac
mov esi, eax
test esi, esi
je 0x41726a
push dword [esp + 0x18]
push dword [0x4ef2f4]
call fcn.0042c9bb
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.00417ba6
push eax
push esi
call fcn.00417b8c
push eax
call fcn.0041769c
mov dword [ebp], eax
test eax, eax
je 0x417222
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x41726a
push esi
call fcn.00417b7f
jmp 0x41726a
push ebp
push esi
push dword [0x4ef29c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41726a
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.00416dfa
push esi
push 0
push dword [0x4ef29c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x417302
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4ef2f4]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042c97c
mov esi, eax
test esi, esi
je 0x417497
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x4173ac
push ebx
call fcn.004177a9
jmp 0x417344
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41733c
push dword [esi + 0x14]
call fcn.00417bb3
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041728d
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x4174b1
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x417389
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41739a
push dword [esp + 0x20]
push ebx
call fcn.0041787d
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41744c
test byte [esp + 0x1c], 1
je 0x4173bb
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x417456
push esi
call fcn.00417129
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042d178
pop ecx
pop ecx
mov ecx, dword [0x4ef308]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x417497
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x417437
push edi
push dword [esp + 0x24]
push ebx
call fcn.004177dd
jmp 0x417444
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x417497
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x417478
push dword [esp + 0x20]
push ebx
call fcn.0041787d
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x417497
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x417ea1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x417ef6
push dword [esp + 0x10]
push 0x417e20
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4ef340]
test esi, esi
je 0x417f4f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x417eee
cmp byte [esi + 0x10], 0
je 0x417eee
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x417eca
jmp 0x417f4f
mov esi, dword [0x4ef340]
test esi, esi
je 0x417f4f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x417f48
cmp byte [esi + 0x11], 0
je 0x417f24
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x417f3b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x4ef340
call fcn.0042d138
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x417f03
pop ebp
pop edi
pop esi
pop ebx
ret 4