joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fb37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [esp + 0xc], 0
mov ebx, 1
push 0x452e38
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
call fcn.00432a0c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push 0x100
push 0
push 4
push 0
push ecx
mov byte [esp + 0x30], 2
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
jne 0x409d01
push str.ReceiveFail
lea ecx, [esp + 0xc]
call fcn.00432b27
mov esi, dword [esp + 0x20]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00432713
mov dword [esp + 0xc], ebx
jmp 0x409d53
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x409d2e
push str.ReceiveFail
lea ecx, [esp + 0xc]
call fcn.00432b27
lea eax, [esp + 8]
push eax
jmp 0x409d44
push esi
lea ecx, [esp + 0xc]
call fcn.00432b27
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 8]
push ecx
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00432713
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call fcn.0043299e
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.0043299e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x409d90
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43fb80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x450e6c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x140]
lea ecx, [esp + 0x28]
mov ebx, 1
push ecx
push ebp
mov dword [esp + 0x13c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x409ed3
push edi
call fcn.00436ba0
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x409e3f
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x409e3f
push esi
call fcn.00436bc9
mov esi, dword [esp + 0x140]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00432713
mov dword [esp + 0x14], ebx
jmp 0x409eea
mov eax, dword [esp + 0x20]
xor edx, edx
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
push ecx
lea edx, [esp + 0x34]
push str.StringFileInfo_04x_04xFileVersion
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x409e8c
push esi
call fcn.00436bc9
add esp, 4
lea eax, [esp + 0x10]
push eax
jmp 0x409ed8
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409eca
push edx
lea ecx, [esp + 0x20]
call fcn.00432a0c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 2
call fcn.00432ad7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], bl
call fcn.0043299e
push esi
call fcn.00436bc9
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov esi, dword [esp + 0x140]
mov ecx, esi
call fcn.00432713
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.0043299e
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x40a7e0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43fcfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
mov ecx, dword [esp + 0x1a0]
lea eax, [esp + 0x78]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x1a0], ebx
call fcn.00436de1
test eax, eax
je 0x40a971
lea edx, [esp + 0x1a0]
lea eax, [esp + 0x10]
push edx
push str.cmd__r_rmdir__s__q__
push eax
call fcn.00432ca7
push 0x44f8f0
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x1a4], 1
call fcn.00432c33
push eax
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x19c], 2
call fcn.00432ad7
lea ecx, [esp + 0xc]
mov byte [esp + 0x198], 1
call fcn.0043299e
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], bl
call fcn.0043299e
push 0x104
lea ecx, [esp + 0x1a4]
call fcn.00432dce
push 0xffffffffffffffff
lea ecx, [esp + 0x1a4]
mov esi, eax
call fcn.00432e1d
lea edx, [esp + 0x14]
push ebx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40a8f2
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x198], 0xffffffff
call fcn.0043299e
xor eax, eax
jmp 0x40a98d
lea edx, [esp + 0x34]
mov dword [esp + 0x34], 0x44
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x24]
mov word [esp + 0x64], bx
push eax
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push esi
push ebx
mov dword [esp + 0x88], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40a959
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x198], 0xffffffff
call fcn.0043299e
xor eax, eax
jmp 0x40a98d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x198], 0xffffffff
call fcn.0043299e
mov eax, 1
mov ecx, dword [esp + 0x190]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x194
ret 4
Function at 0x40a9b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x348
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x35c]
lea ecx, [esp + 0x254]
push eax
push str._s.
push ecx
xor edi, edi
call fcn.00422d20
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x254]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40aa19
pop edi
pop esi
xor eax, eax
pop ebp
xor edx, edx
pop ebx
add esp, 0x348
ret 4
mov edx, dword [esp + 0x35c]
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x158]
push str._s_s
push eax
call fcn.00422d20
mov al, byte [esp + 0x20]
add esp, 0x10
test al, 0x10
je 0x40aa84
lea ecx, [esp + 0x3c]
push 0x44f8ec
push ecx
call fcn.00422b95
add esp, 8
test eax, eax
je 0x40aa8b
lea edx, [esp + 0x3c]
push 0x44f90c
push edx
call fcn.00422b95
add esp, 8
test eax, eax
je 0x40aa8b
lea eax, [esp + 0x150]
mov ecx, ebx
push eax
call fcn.0040a9b0
add esi, eax
adc edi, edx
jmp 0x40aa8b
add esi, dword [esp + 0x30]
adc edi, 0
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40aa19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40aa19
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret 4
Function at 0x40bbc0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret 4

Function at 0x40bd80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x43fdb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x2c]
push str.SinoTest.html
lea ecx, [esp + 0x14]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x30], ebx
call fcn.00432c33
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x24], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call edi
mov ecx, dword [esp + 0x10]
mov ebp, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
lea ecx, [esi + 0x538]
call fcn.00402a80
call edi
sub eax, ebp
mov esi, eax
cmp esi, 1
jae 0x40be19
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.0043299e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043299e
mov eax, 1
jmp 0x40be5e
cmp esi, 0x989680
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
jbe 0x40be46
call fcn.0043299e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043299e
mov eax, 0x989680
jmp 0x40be5e
call fcn.0043299e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043299e
mov eax, esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4138e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xd40
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x413900
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov esi, dword [esp + 0xd50]
test esi, esi
jne 0x41390e
lea esi, [edi + 8]
push esi
call fcn.00413ae0
add esp, 4
test al, al
jne 0x413927
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
lea eax, [esp + 0x218]
mov ecx, edi
push eax
call fcn.004137d0
mov al, byte [esp + 0x448]
test al, al
je 0x413974
lea ecx, [esp + 0x218]
push 0
add edi, 8
push ecx
push edi
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.00423277
lea eax, [esp + 0x24]
push eax
call fcn.00413ae0
add esp, 0x18
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
mov al, byte [esp + 0xd54]
test al, al
je 0x4139be
lea ecx, [esp + 0x44c]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
lea eax, [esp + 0x224]
push 0
push eax
call fcn.00423308
lea ecx, [esp + 0x460]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
lea eax, [esp + 0x238]
push 0
push eax
call fcn.00423277
add esp, 0x28
lea ecx, [esp + 0x218]
push 0
push ecx
push esi
lea edx, [esp + 0x120]
push 0
push edx
call fcn.00423277
lea eax, [esp + 0x128]
push eax
call fcn.00413b60
add esp, 0x18
test al, al
jne 0x4139f8
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x128]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x413a2d
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov edx, dword [edi + 4]
push edx
call fcn.004150b0
test eax, eax
je 0x413a48
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x550]
push 0x800
push eax
push ecx
call fcn.00414a20
mov esi, eax
test esi, esi
jle 0x413a93
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x558]
push esi
push eax
push ebp
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x413a90
cmp dword [esp + 0x10], esi
je 0x413a4f
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 4]
push ecx
call fcn.00414c20
test esi, esi
pop ebx
jne 0x413ac0
mov edx, dword [esp + 0x430]
lea eax, [esp + 0x114]
push edx
push eax
call fcn.00413ba0
add esp, 8
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
add esp, 0xd40
ret 8
Function at 0x413ae0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x413b40
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x413b40
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413b10
and eax, 0x10
xor ecx, ecx
cmp al, 0x10
pop edi
sete cl
mov al, cl
pop esi
ret
push edi
call fcn.00423477
mov esi, eax
push 0x5c
push esi
call fcn.00423450
add esp, 0xc
test eax, eax
je 0x413b5a
push esi
mov byte [eax], 0
call fcn.00413ae0
add esp, 4
test al, al
push esi
jne 0x413b45
call fcn.00422cd0
add esp, 4
pop edi
xor al, al
pop esi
ret
call fcn.00422cd0
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x413b40
pop edi
mov al, 1
pop esi
ret

Function at 0x413ba0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x413bcb
xor al, al
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x413c40
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x413c40
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x413c40
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x28
ret
Function at 0x415220
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41522f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x44fcac]
test eax, eax
je 0x41523d
call fcn.004150d0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x415331
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x453020]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x453020]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x453020]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x453020]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x453020]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x453020]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x453020]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x453020]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x415257
pop edi
pop ebx
test edx, edx
je 0x415351
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x453020]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x415335
not eax
pop esi
ret 0xc
Function at 0x42abfb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x452898
cmp edx, dword [eax]
je 0x42ac1d
add eax, 8
inc ecx
cmp eax, 0x452928
jl 0x42ac0e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x452898]
jne 0x42ad4b
mov eax, dword [0x4554a8]
cmp eax, 1
je 0x42ad25
test eax, eax
jne 0x42ac4e
cmp dword [0x451ce4], 1
je 0x42ad25
cmp edx, 0xfc
je 0x42ad4b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ac85
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004276c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42acc8
lea eax, [ebp - 0x1a4]
push eax
call fcn.004276c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x446ac8
push edi
call fcn.00429830
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429940
lea eax, [ebp - 0xa0]
push 0x446aa8
push eax
call fcn.00429940
push dword [esi + 0x45289c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042c757
add esp, 0x2c
pop edi
jmp 0x42ad4b
lea eax, [ebp + 8]
lea esi, [esi + 0x45289c]
push 0
push eax
push dword [esi]
call fcn.004276c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430cf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00422ad0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x430dbb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x430dbb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x430d6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x430d79
or bh, 8
and edi, 0x8000000
je 0x430d94
mov eax, dword [0x456c5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x430dbb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4311bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4311df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4311fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4346b6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4346ee
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00432e45
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00432e1d
jmp 0x4346fa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x435c39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x435c7b
call fcn.0043bd5b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x435c7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x435c72
xor eax, eax
jmp 0x435c83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00435c89
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x436f76
push edi
call ebx
push eax
call fcn.00438f5d
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x436fa0
test byte [ebp - 4], 1
je 0x436fa0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x436fa0
push edi
call ebx
push eax
call fcn.00438f5d
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x437046
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00436e93
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x436fd2
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00436e93
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x436fe8
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00436e93
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437012
push 0
call ebx
push eax
call fcn.00438f5d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x437030
push eax
call ebx
push eax
call fcn.00438f5d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x437044
push eax
call ebx
push eax
call fcn.00438f5d
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x43706d
test byte [ebp - 4], 1
jne 0x43706d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43706d
push edi
call ebx
push eax
call fcn.00438f5d
pop edi
pop ebx
leave
ret 8