joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
mov dword [esp + 0x10], 1
mov dword [edi + 4], 0
mov eax, dword [edi + 4]
cmp esi, eax
jle 0x406cf0
test eax, eax
jl 0x406cf0
mov edx, dword [ebx]
push 0
mov ecx, esi
sub ecx, eax
push ecx
push ebp
push edx
call sub.wsock32.dll_recv
test eax, eax
jne 0x406cfd
mov dword [esp + 0x10], eax
add dword [edi + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x406cc2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
jge 0x406ce5
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x406ce8
push 0
push 0x40000
push 0x13
mov ecx, 0x428a2c
call fcn.00403420
push eax
call fcn.0041ad6c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x406d30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
jbe 0x406d5c
lea ecx, [esp + 0x10]
push ecx
push 0x4004667f
push eax
mov dword [esp + 0x1c], edi
call sub.wsock32.dll_ioctlsocket
cmp dword [esp + 0x10], edi
ja 0x406d67
pop edi
pop esi
mov eax, 1
pop ebp
ret 4
push ebx
mov bl, 2
lea ebx, [ebx]
movzx eax, byte [esi + 0x417]
dec eax
jne 0x406da1
mov eax, dword [esi + 4]
add eax, 0x15c
push ebp
lea edx, [esi + eax*2]
push 3
add edx, eax
push edx
mov ecx, esi
call fcn.00406ca0
test eax, eax
je 0x406dfa
mov byte [esi + 0x417], bl
mov dword [esi + 4], edi
jmp 0x406d70
dec eax
jne 0x406dfa
mov ax, word [esi + 0x414]
cmp ax, di
lea ebx, [esi + 0x414]
jbe 0x406df3
movzx eax, ax
lea ecx, [eax + 3]
cmp ecx, 0x400
jg 0x406df3
push ebp
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.00401ff0
add eax, dword [esi + 4]
push eax
mov ecx, esi
call fcn.00406ca0
test eax, eax
je 0x406dfa
push ebx
mov ecx, edi
call fcn.00402150
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 4
mov ecx, esi
call fcn.00406c70
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 4

Function at 0x409514
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409534
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0040ac3c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x409557
test byte [esp + 8], 2
je 0x409557
call fcn.0040ac2a
mov dword [eax], 0xd
call fcn.0040ac33
mov dword [eax], 5
jmp 0x409530
xor eax, eax
ret
Function at 0x4095cb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call entry0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x409666
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42a9d4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409666
cmp eax, 1
je 0x409687
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x409666
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409633
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409662
xor eax, eax
inc eax
jmp 0x4096a6
cmp edi, eax
jae 0x40966a
xor eax, eax
jmp 0x4096a6
cmp eax, esi
jae 0x409671
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x42a9d4]
jmp 0x40968a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b87
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4217a0
call fcn.0040aa70
push 8
call fcn.0040bc6b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42aa14], esi
jne 0x409bbb
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x42aa10], esi
mov al, byte [ebp + 0x10]
mov byte [0x42aa0c], al
cmp dword [ebp + 0xc], edi
jne 0x409c05
cmp dword [0x42c2a8], edi
je 0x409bf5
mov eax, dword [0x42c2a4]
sub eax, 4
mov dword [0x42c2a4], eax
cmp eax, dword [0x42c2a8]
jb 0x409bf5
mov eax, dword [eax]
cmp eax, edi
je 0x409bd6
call eax
jmp 0x409bd6
push 0x42708c
mov eax, 0x427084
call fcn.00409b05
pop ecx
push 0x427098
mov eax, 0x427090
call fcn.00409b05
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x409c36
cmp dword [ebp + 0x10], edi
jne 0x409c44
mov dword [0x42aa14], esi
push dword [ebp + 8]
call fcn.00409ac3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x409c43
push 8
call fcn.0040bbb6
pop ecx
ret
call fcn.0040aaab
ret
Function at 0x40d96b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40db41
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42af20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40db41
test cl, 0x48
je 0x40d9d6
cmp byte [eax + 5], 0xa
je 0x40d9d6
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40da28
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40da10
call fcn.0040ac2a
mov dword [eax], 9
call fcn.0040ac33
mov dword [eax], esi
jmp 0x40da20
cmp eax, 0x6d
je 0x40db41
push eax
call fcn.0040ac3c
pop ecx
or eax, 0xffffffff
jmp 0x40db43
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40db3c
test eax, eax
je 0x40da4f
cmp byte [ebx], 0xa
jne 0x40da4f
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40da58
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40db36
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40db26
cmp al, 0xd
je 0x40da8a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40db18
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40daa4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40da9f
add dword [ebp + 0x10], 2
jmp 0x40daf8
mov dword [ebp + 0x10], eax
jmp 0x40db14
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40dacc
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x40db14
cmp dword [ebp - 0xc], 0
je 0x40db14
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40daed
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40daf8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40db17
cmp ebx, dword [ebp + 0xc]
jne 0x40dafd
cmp byte [ebp - 1], 0xa
jne 0x40dafd
mov byte [ebx], 0xa
jmp 0x40db17
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411930
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40db18
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40da6e
jmp 0x40db36
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40db36
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40db43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ec98
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4279f8]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x40ecd4
xor eax, eax
jmp 0x40ee3e
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42af20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40ed12
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00411930
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40edac
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x40ee0f
jmp 0x40ed36
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x40ed71
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ed62
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x40ed42
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40edd0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40edd9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x40ed34
jmp 0x40edd9
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40edd0
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x40edd9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x40ee39
cmp dword [ebp - 0x68], eax
je 0x40ee0c
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x40ee01
call fcn.0040ac2a
mov dword [eax], 9
call fcn.0040ac33
mov dword [eax], esi
jmp 0x40ee34
push dword [ebp - 0x68]
call fcn.0040ac3c
pop ecx
jmp 0x40ee34
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40ee21
cmp byte [edi], 0x1a
jne 0x40ee21
xor eax, eax
jmp 0x40ee3c
call fcn.0040ac2a
mov dword [eax], 0x1c
call fcn.0040ac33
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40ee3c
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00409a5f
add ebp, 0x3a4
leave
ret
Function at 0x40eeff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40ef2d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40ef34
cmp ebx, dword [eax + 4]
jae 0x40ef34
xor eax, eax
jmp 0x40f124
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ef45
xor eax, eax
inc eax
jmp 0x40f123
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ef5b
cmp ecx, edx
jae 0x40f0a0
cmp dword [eax + 4], 0
je 0x40ef64
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ef4c
cmp dword [ebp + 8], 0
je 0x40ef86
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f0a0
cmp eax, esi
jae 0x40f0a0
mov eax, dword [0x42aba8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40efab
cmp dword [esi*4 + 0x42abb0], edi
je 0x40f0a4
inc esi
cmp esi, eax
jl 0x40ef99
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x40f120
cmp dword [ebp - 8], 0x1000000
jne 0x40f120
test byte [ebp - 0xc], 0xcc
je 0x40f029
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f120
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f120
cmp word [eax + 0x18], 0x10b
jne 0x40f120
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f120
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f029
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f029
test byte [ecx + 0x27], 0x80
jne 0x40f0a0
push 1
push 0x42abf0
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x40ef3d
mov ecx, dword [0x42aba8]
test ecx, ecx
mov edx, ecx
jle 0x40f05d
lea eax, [ecx*4 + 0x42abac]
cmp dword [eax], edi
je 0x40f05d
dec edx
sub eax, 4
test edx, edx
jg 0x40f051
test edx, edx
jne 0x40f08e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f06a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f082
lea eax, [edx*4 + 0x42abb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f070
cmp ecx, 0x10
jge 0x40f08e
inc ecx
mov dword [0x42aba8], ecx
push 0
push 0x42abf0
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x40ef3d
xor eax, eax
jmp 0x40f123
test esi, esi
jle 0x40ef3d
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x42abf0
call ebx
test eax, eax
jne 0x40ef3d
cmp dword [esi*4 + 0x42abb0], edi
je 0x40f0fa
mov eax, dword [0x42aba8]
lea esi, [eax - 1]
test esi, esi
jl 0x40f0e8
cmp dword [esi*4 + 0x42abb0], edi
je 0x40f0e4
dec esi
jns 0x40f0d8
test esi, esi
jge 0x40f0f8
cmp eax, 0x10
jge 0x40f0f3
inc eax
mov dword [0x42aba8], eax
lea esi, [eax - 1]
jmp 0x40f0fa
je 0x40f112
xor ecx, ecx
test esi, esi
jl 0x40f112
lea eax, [ecx*4 + 0x42abb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f100
push 0
push 0x42abf0
call ebx
jmp 0x40ef3d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f128
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4279f8]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x428210]
je 0x40f15f
inc eax
cmp eax, 0x13
jb 0x40f150
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x428210]
jne 0x40f282
mov eax, dword [0x42a9cc]
cmp eax, 1
je 0x40f25d
cmp eax, edx
jne 0x40f18f
cmp dword [0x4279f4], 1
je 0x40f25d
cmp ecx, 0xfc
je 0x40f282
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f1c5
lea eax, [ebp - 0x7c]
push 0x421fa4
push eax
call fcn.0040ba20
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00409fd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f1f9
mov eax, edi
push eax
call fcn.00409fd0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x421fa0
push edi
call fcn.00411670
add esp, 0x10
push edi
call fcn.00409fd0
push dword [esi + 0x428214]
mov ebx, eax
call fcn.00409fd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call entry0
mov ebx, esp
push 0x421f84
push ebx
call fcn.0040ba20
push edi
push ebx
call fcn.0040ba30
push 0x421f80
push ebx
call fcn.0040ba30
push dword [esi + 0x428214]
push ebx
call fcn.0040ba30
push 0x12010
push 0x421f58
push ebx
call fcn.004128e1
add esp, 0x2c
jmp 0x40f282
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x428214]
push dword [esi]
call fcn.00409fd0
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00409a5f
add ebp, 0x90
leave
ret
Function at 0x4128e1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ae6c], ebx
push esi
push edi
jne 0x412961
push 0x421618
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41299c
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x422904
push edi
call esi
test eax, eax
mov dword [0x42ae6c], eax
je 0x41299c
push 0x4228f4
push edi
call esi
push 0x4228e0
push edi
mov dword [0x42ae70], eax
call esi
cmp dword [0x42a9d4], 2
mov dword [0x42ae74], eax
jne 0x412961
push 0x4228c4
push edi
call esi
test eax, eax
mov dword [0x42ae7c], eax
je 0x412961
push 0x4228ac
push edi
call esi
mov dword [0x42ae78], eax
mov eax, dword [0x42ae78]
test eax, eax
je 0x4129a6
call eax
test eax, eax
je 0x41298d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42ae7c]
test eax, eax
je 0x41298d
test byte [ebp - 8], 1
jne 0x4129a6
cmp dword [0x42a9e0], 4
jb 0x4129a0
or byte [ebp + 0x12], 0x20
jmp 0x4129c5
xor eax, eax
jmp 0x4129d5
or byte [ebp + 0x12], 4
jmp 0x4129c5
mov eax, dword [0x42ae70]
test eax, eax
je 0x4129c5
call eax
mov ebx, eax
test ebx, ebx
je 0x4129c5
mov eax, dword [0x42ae74]
test eax, eax
je 0x4129c5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ae6c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412f8e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call entry0
mov eax, dword [0x4279f8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040df6d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4130c3
push 2
push esi
push dword [ebp + 8]
call fcn.0040df6d
add esp, 0xc
cmp eax, ebx
je 0x4130c3
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x413063
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040a090
push 0x8000
push dword [ebp + 8]
call fcn.00413861
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x413019
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040ec98
add esp, 0xc
cmp eax, 0xffffffff
je 0x413039
sub edi, eax
test edi, edi
jg 0x413011
jmp 0x413051
call fcn.0040ac33
cmp dword [eax], 5
jne 0x41304e
call fcn.0040ac2a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00413861
pop ecx
pop ecx
jmp 0x4130ab
jge 0x4130ab
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040df6d
push dword [ebp + 8]
call fcn.0040dcee
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4130ab
call fcn.0040ac2a
mov dword [eax], 0xd
call fcn.0040ac33
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040df6d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4130c5
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a5f
leave
ret
Function at 0x415850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41dd4e
call fcn.00409aa4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0041c9e1
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41589e
call fcn.0041c9e1
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
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], 0
je 0x4158af
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4158bb
or eax, 0xffffffff
jmp 0x4159be
mov ecx, esi
call fcn.00415392
mov dword [ebp - 0x14], eax
call fcn.0041706d
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4158fe
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4158fe
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x4158fe
push 0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0041829d
push dword [ebp - 0x14]
call fcn.00416fc5
push edi
push eax
push ebx
mov ecx, esi
call fcn.00415643
xor ebx, ebx
cmp eax, ebx
je 0x415972
test byte [esi + 0x38], 0x10
je 0x415940
push 4
pop edi
mov ecx, esi
call fcn.00418f6c
test ah, 1
je 0x415938
push 5
pop edi
push edi
mov ecx, esi
call fcn.00416a69
cmp dword [esi + 0x1c], ebx
je 0x415972
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004190a1
jmp 0x415972
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x415986
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41599f
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41599f
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.004153cc
cmp dword [esi + 0x54], ebx
je 0x4159bb
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4179d9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x417a12
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.00407daa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004070fc
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]