joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sym._fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40de90
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40df86
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40df00
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40ded5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sym._memcpy
cmp byte [esp + 0x1f], 0
je 0x40dee5
cmp byte [esp + 0x1e], 0
je 0x40dee5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x40dee5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
nop

Function at 0x40e220
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4a4050
call sym._EnterCriticalSection_4
mov ebx, dword [0x4a4068]
sub esp, 4
test ebx, ebx
je 0x40e26b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40e264
test esi, esi
je 0x40e264
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40e240
mov dword [esp], 0x4a4050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x410eb0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4a4084], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreA_16
sub esp, 0x10
mov dword [0x4a4088], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x410f10
mov dword [0x4a4090], eax
mov dword [esp + 4], sym._emutls_destroy
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne 0x410f17
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x410f08
call sym._abort
Function at 0x410f1c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4a4048]
test ecx, ecx
jne 0x410f44
mov eax, dword [esi + 8]
test eax, eax
je 0x411054
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x410fd4
mov ebx, dword [0x4a4090]
call sym._GetLastError_0
mov edi, eax
mov dword [esp], ebx
call sym._TlsGetValue_4
push ecx
mov ebx, eax
mov dword [esp], edi
call sym._SetLastError_4
push edi
test ebx, ebx
je 0x410f94
mov edi, dword [ebx]
cmp ebp, edi
ja 0x411063
dec ebp
mov eax, dword [ebx + ebp*4 + 4]
test eax, eax
jne 0x410f3c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx + ebp*4 + 4], eax
jmp 0x410f3c
lea edi, [ebp + 0x20]
mov dword [esp + 4], 4
lea eax, [ebp + 0x21]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je 0x411129
mov dword [eax], edi
mov dword [esp + 4], ebx
mov eax, dword [0x4a4090]
mov dword [esp], eax
call sym._TlsSetValue_8
push edx
push edx
test eax, eax
jne 0x410f7e
call sym._GetLastError_0
jmp 0x410f7e
cmp dword [0x46e014], 0
je 0x4110ac
mov dword [esp], 0x4a4084
call sym._InterlockedIncrement_4
push edx
test eax, eax
jne 0x4110f8
mov ebp, dword [esi + 8]
test ebp, ebp
jne 0x41100d
mov ebp, dword [0x4a408c]
inc ebp
mov dword [0x4a408c], ebp
mov dword [esi + 8], ebp
cmp dword [0x4a4048], 0
je 0x410f4f
mov dword [esp], 0x4a4084
call sym._InterlockedDecrement_4
push edx
test eax, eax
js 0x410f4f
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x4a4088]
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x410f4f
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x410f3c
lea edx, [edi + edi]
cmp ebp, edx
jbe 0x41106d
lea edx, [ebp + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._realloc
mov ebx, eax
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x411129
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4 + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x410fb6
mov dword [esp], 0x46e018
call sym._InterlockedIncrement_4
push ebp
test eax, eax
jne 0x4110cc
jmp 0x4110e7
mov dword [esp], 0
call sym._Sleep_4
push edi
cmp dword [0x46e014], 0
je 0x4110bf
cmp dword [0x4a4048], 0
je 0x410ff6
jmp 0x410fe1
call sym._emutls_init
mov dword [0x46e014], 1
jmp 0x4110d5
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x4a4088]
mov dword [esp], eax
call sym._WaitForSingleObject_8
push ebx
push ebx
test eax, eax
je 0x410ff6
mov dword [esp], 0x4a4084
call sym._InterlockedDecrement_4
push ecx
jmp 0x410ff6
call sym._abort
nop
Function at 0x41d558
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4742fc], 0
jne 0x41d62c
mov byte [0x4742fc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d678
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
sete al
add ebx, eax
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.___cxa_demangle
mov ebp, eax
mov esi, dword [sym.imp.msvcrt.dll__iob]
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d622
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x475b81
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d659
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d5f3
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d61d
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x41d673

Function at 0x46a190
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x46a1c6
jmp 0x46a205
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x46a1c3
cmp al, 0x20
je 0x46a1c3
cmp al, 0x22
jne 0x46a1e9
jmp 0x46a254
cmp al, 0x20
lea esi, [esi]
je 0x46a1f0
test al, al
je 0x46a205
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x46a1d7
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x46a26a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x46a1f7
cmp al, 0x20
je 0x46a1f7
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x46a214
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x46a25e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x46a250
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x46a1f0
cmp al, 9
je 0x46a1f7
jmp 0x46a205
Function at 0x40c848
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
and byte [ebp - 0x14], 0
push ebx
push esi
lea eax, [ebp - 0x34]
push edi
push eax
mov byte [ebp - 0x34], 0x41
mov byte [ebp - 0x33], 0x42
mov byte [ebp - 0x32], 0x43
mov byte [ebp - 0x31], 0x44
mov byte [ebp - 0x30], 0x45
mov byte [ebp - 0x2f], 0x46
mov byte [ebp - 0x2e], 0x47
mov byte [ebp - 0x2d], 0x48
mov byte [ebp - 0x2c], 0x49
mov byte [ebp - 0x2b], 0x4a
mov byte [ebp - 0x2a], 0x4b
mov byte [ebp - 0x29], 0x4c
mov byte [ebp - 0x28], 0x4d
mov byte [ebp - 0x27], 0x4e
mov byte [ebp - 0x26], 0x4f
mov byte [ebp - 0x25], 0x50
mov byte [ebp - 0x24], 0x51
mov byte [ebp - 0x23], 0x52
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x55
mov byte [ebp - 0x1f], 0x56
mov byte [ebp - 0x1e], 0x57
mov byte [ebp - 0x1d], 0x58
mov byte [ebp - 0x1c], 0x59
mov byte [ebp - 0x1b], 0x5a
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x62
mov byte [ebp - 0x18], 0x63
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x66
call fcn.0041e610
and byte [ebp - 0x38], 0
mov esi, eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], 0x67
push eax
mov byte [ebp - 0x57], 0x68
mov byte [ebp - 0x56], 0x69
mov byte [ebp - 0x55], 0x6a
mov byte [ebp - 0x54], 0x6b
mov byte [ebp - 0x53], 0x6c
mov byte [ebp - 0x52], 0x6d
mov byte [ebp - 0x51], 0x6e
mov byte [ebp - 0x50], 0x6f
mov byte [ebp - 0x4f], 0x70
mov byte [ebp - 0x4e], 0x71
mov byte [ebp - 0x4d], 0x72
mov byte [ebp - 0x4c], 0x73
mov byte [ebp - 0x4b], 0x74
mov byte [ebp - 0x4a], 0x75
mov byte [ebp - 0x49], 0x76
mov byte [ebp - 0x48], 0x77
mov byte [ebp - 0x47], 0x78
mov byte [ebp - 0x46], 0x79
mov byte [ebp - 0x45], 0x7a
mov byte [ebp - 0x44], 0x30
mov byte [ebp - 0x43], 0x31
mov byte [ebp - 0x42], 0x32
mov byte [ebp - 0x41], 0x33
mov byte [ebp - 0x40], 0x34
mov byte [ebp - 0x3f], 0x35
mov byte [ebp - 0x3e], 0x36
mov byte [ebp - 0x3d], 0x37
mov byte [ebp - 0x3c], 0x38
mov byte [ebp - 0x3b], 0x39
mov byte [ebp - 0x3a], 0x2b
mov byte [ebp - 0x39], 0x2f
call fcn.0041e610
lea eax, [eax + esi + 1]
push eax
call fcn.00431b75
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
call fcn.0040c55b
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
call fcn.0040c5e2
add esp, 0x1c
mov dword [ebp - 4], 2
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0x157b
push 0x14
mov esi, 0x4451a0
pop ebx
inc dword [ebp - 4]
mov edi, dword [ebp - 8]
imul edi, dword [ebp - 4]
push edi
push esi
add ebx, 0xa
call fcn.0041e165
lea edi, [edi + ebx + 1]
push edi
push esi
call fcn.0041e165
mov eax, dword [ebp - 8]
imul eax, edi
imul eax, dword [ebp - 4]
push eax
push esi
call fcn.0041e165
add esp, 0x18
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x40c9b2
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, edx
mov cl, byte [edx]
pop ebx
test cl, cl
je 0x40ca12
cmp cl, byte [ebp + 8]
je 0x40ca0e
mov cl, byte [eax + 1]
inc eax
jmp 0x40c9ff
sub eax, edx
leave
ret
or eax, 0xffffffff
leave
ret
Function at 0x40ca17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.0040c6d4
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov dword [ebp + 8], 2
push 0x14
mov dword [ebp - 4], 1
pop ebx
mov dword [ebp - 0xc], 0x157b
mov esi, 0x4451a0
inc dword [ebp + 8]
mov edi, dword [ebp - 4]
imul edi, dword [ebp + 8]
push edi
push esi
add ebx, 0xa
call fcn.0041e165
lea edi, [edi + ebx + 1]
push edi
push esi
call fcn.0041e165
mov eax, dword [ebp - 4]
imul eax, edi
imul eax, dword [ebp + 8]
push eax
push esi
call fcn.0041e165
add esp, 0x18
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x40ca52
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
pop edi
cmp dword [ebp - 0x10], ecx
pop esi
pop ebx
jle 0x40cab7
mov eax, dword [ebp - 8]
add byte [eax + ecx], 0x7a
add eax, ecx
mov eax, dword [ebp - 8]
xor byte [eax + ecx], 0x59
add eax, ecx
inc ecx
cmp ecx, dword [ebp - 0x10]
jl 0x40ca9f
mov eax, dword [ebp - 8]
leave
ret
Function at 0x40d26e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
push edi
call esi
push edi
call esi
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 1
call esi
push edi
call esi
push edi
mov dword [ebp - 4], edi
call esi
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 1
call esi
push edi
call esi
push 2
push edi
push 0xfffffc00
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
nop
nop
nop
nop
call fcn.0040c4f0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 1
call esi
lea eax, [ebx + 1]
push eax
call fcn.00431b75
pop ecx
mov dword [ebp - 8], eax
push edi
call esi
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 1
call esi
push edi
call esi
lea eax, [ebp - 4]
push edi
push eax
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 1
call esi
push edi
call esi
push edi
push ebx
push dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
push ebx
call fcn.0040d207
add esp, 0x10
mov edi, eax
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 1
call esi
cmp edi, 0xffffffff
je 0x40d350
lea eax, [edi + ebx]
jmp 0x40d359
push ebx
call fcn.00431b9e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d63a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push edi
push ebx
call esi
push ebx
call esi
mov byte [ebp - 0x1c], 0x43
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0x5c
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x67
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x6d
mov byte [ebp - 0x12], 0x20
mov byte [ebp - 0x11], 0x46
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x41
mov byte [ebp - 0xa], 0x70
mov byte [ebp - 9], 0x70
mov byte [ebp - 8], 0x50
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x63
mov byte [ebp - 4], 0x68
mov byte [ebp - 3], 0x5c
mov byte [ebp - 2], bl
nop
nop
nop
nop
nop
call fcn.0040c4f0
push 0x104
mov edi, 0x449f94
push ebx
push edi
call fcn.0041dcc0
nop
nop
nop
nop
nop
call fcn.0040c4f0
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0040c5e2
add esp, 0x14
push 1
call esi
nop
nop
nop
nop
nop
call fcn.0040c4f0
push ebx
call esi
push dword [ebp + 8]
push edi
call fcn.0040c5e2
pop ecx
pop ecx
push 1
call esi
nop
nop
nop
nop
nop
call fcn.0040c4f0
push ebx
call esi
mov al, bl
add al, 0x43
push eax
call fcn.0040d57b
test eax, eax
pop ecx
jne 0x40d736
inc bl
cmp bl, 4
jl 0x40d71b
pop edi
pop esi
pop ebx
leave
ret
push 1
pop eax
jmp 0x40d731

Function at 0x40d8cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 3], 0
lea eax, [ebp - 0xc]
push 0xa
push eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 0xc], 0x4b
push eax
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x68
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x35
mov byte [ebp - 5], 0x39
mov byte [ebp - 4], 0x39
call fcn.0040d73b
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push dword [ebp + 8]
push eax
call fcn.0040d820
add esp, 0x18
leave
ret
Function at 0x40de7d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x43dc7c
call fcn.0041dba4
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov eax, dword [0x446090]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x3ea
call fcn.0042ebe6
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40deda
push 1
push 0x445888
push 0x445938
mov ecx, edi
call fcn.0042f8cd
cmp eax, 1
jne 0x40dfad
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40dfad
lea ecx, [ebp - 0x34]
call fcn.00432cd5
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004332ff
mov eax, dword [0x446090]
mov dword [ebp - 0x38], eax
or dword [ebp - 0x3c], 0xffffffff
mov esi, 0x40467c
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], ebx
call fcn.0043185e
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x34]
push eax
push 0x1001
push dword [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00432de7
test eax, eax
jne 0x40df52
push ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.00433327
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 6
jmp 0x40df99
lea ecx, [ebp - 0x24]
call fcn.0043337c
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
push dword [ebp - 0x14]
call fcn.00432f3e
lea ecx, [ebp - 0x34]
call fcn.00433002
mov dword [ebp - 4], 5
call fcn.004333ba
push ebx
push 0x445888
push 0x445928
mov ecx, edi
call fcn.0042f8cd
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.004316d5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00432d2a
mov byte [ebp - 4], bl
jmp 0x40dffd
lea ecx, [ebp - 0x14]
call fcn.004316d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004316d5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4153fc
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
push edi
push ebp
call esi
push ebp
call esi
mov edi, dword [esp + 0x18]
cmp word [edi], 0x5a4d
jne 0x415569
push ebp
call esi
mov ebx, dword [edi + 0x3c]
push ebp
add ebx, edi
call esi
cmp dword [ebx], 0x4550
jne 0x415569
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov ebp, eax
test ebp, ebp
jne 0x41546d
push eax
call esi
push 4
push 0x2000
push dword [ebx + 0x50]
push ebp
call edi
mov ebp, eax
test ebp, ebp
je 0x415569
push 0
call esi
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor eax, eax
push eax
mov dword [edi + 4], ebp
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
call esi
push 4
push 0x1000
push dword [ebx + 0x50]
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
call esi
push 4
push 0x1000
push dword [ebx + 0x54]
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov dword [esp + 0x14], eax
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebx + 0x54]
push ecx
push eax
push dword [esp + 0x18]
call fcn.0041de30
mov eax, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [eax + 0x3c]
push 0
add eax, dword [esp + 0x14]
mov dword [edi], eax
call esi
mov eax, dword [edi]
push 0
mov dword [eax + 0x34], ebp
call esi
push edi
push ebx
push dword [esp + 0x20]
call fcn.00415578
add esp, 0xc
push 0
call esi
mov eax, ebp
sub eax, dword [ebx + 0x34]
mov dword [esp + 0x18], eax
je 0x415525
xor ebx, ebx
push ebx
call esi
push dword [esp + 0x18]
push edi
call fcn.0041574f
pop ecx
pop ecx
jmp 0x415527
xor ebx, ebx
push ebx
call esi
push edi
call fcn.004157e4
pop ecx
test eax, eax
push ebx
jne 0x41553a
call esi
jmp 0x415562
call esi
push edi
call fcn.00415641
mov eax, dword [edi]
pop ecx
cmp dword [eax + 0x28], ebx
je 0x415570
push ebx
call esi
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
add eax, ebp
je 0x415562
push ebx
push 1
pop esi
push esi
push ebp
call eax
test eax, eax
jne 0x41556d
push edi
call fcn.00415ba5
pop ecx
xor eax, eax
jmp 0x415572
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x415578
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x14]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], bx
lea esi, [ecx + eax + 0x18]
jbe 0x41563c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x10
jmp 0x4155b6
xor ebx, ebx
push ebx
call edi
cmp dword [esi], ebx
push ebx
jne 0x4155f2
call edi
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x41561f
push 0
call edi
mov eax, dword [esi - 4]
push 4
add eax, dword [esp + 0x18]
push 0x1000
push ebx
push eax
call ebp
push ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.0041dcc0
add esp, 0xc
jmp 0x41561f
call edi
mov eax, dword [esi - 4]
push 4
add eax, dword [esp + 0x18]
push 0x1000
push dword [esi]
push eax
call ebp
push dword [esi]
mov ebx, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x20]
push eax
push ebx
call fcn.0041de30
add esp, 0xc
mov dword [esi - 8], ebx
mov eax, dword [esp + 0x24]
inc dword [esp + 0x10]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [esp + 0x10], eax
jl 0x4155b4
pop edi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x42a800
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.0041dc90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42a8cb
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 0x42a8cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42a87e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42a889
or bh, 8
and edi, 0x8000000
je 0x42a8a4
mov eax, dword [0x44d95c]
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 0x42a8cb
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