joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40299d
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc0
mov eax, dword [0x42197c]
push ebx
push esi
push edi
xor eax, ebp
push 0x44
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
pop esi
push esi
mov dword [ebp + 8], eax
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.004058a0
add esp, 0xc
push 0x18
pop ecx
xor eax, eax
mov byte [ebp + 0xc], bl
lea edi, [ebp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.._set.ini
push 0x64
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
push eax
mov edi, 0x41a74c
push edi
mov dword [ebp - 0x34], esi
push str.runonce
mov esi, 0x41a710
push esi
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.00405750
test eax, eax
pop ecx
pop ecx
je 0x402a6e
mov edi, str.d:_runonce.ini
push edi
push ebx
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x402a6e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push 0x41a734
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040526e
add ebp, 0x74
leave
ret 4
Function at 0x403937
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40394c
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40395e
xor eax, eax
jmp 0x403990
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403982
cmp esi, eax
jae 0x40395a
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403974
cmp esi, eax
jae 0x40395a
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4053a6
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 fcn.004055f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405441
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 [0x42483c]
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 0x405441
cmp eax, 1
je 0x405462
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 0x405441
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40540e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40543d
xor eax, eax
inc eax
jmp 0x405481
cmp edi, eax
jae 0x405445
xor eax, eax
jmp 0x405481
cmp eax, esi
jae 0x40544c
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 [0x42483c]
jmp 0x405465
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 0x405a41
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41c888
call fcn.0040548c
mov edi, 0x94
mov eax, edi
call fcn.004055f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42483c], ecx
mov eax, dword [esi + 4]
mov dword [0x424848], eax
mov edx, dword [esi + 8]
mov dword [0x42484c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x424840], esi
cmp ecx, 2
je 0x405aa1
or esi, 0x8000
mov dword [0x424840], esi
shl eax, 8
add eax, edx
mov dword [0x424844], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405adc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405adc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405af4
cmp eax, 0x20b
je 0x405ae1
mov dword [ebp - 0x1c], esi
jmp 0x405b08
cmp dword [ecx + 0x84], 0xe
jbe 0x405adc
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405b02
cmp dword [ecx + 0x74], 0xe
jbe 0x405adc
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040825b
pop ecx
test eax, eax
jne 0x405b1c
push 0x1c
call fcn.00405a1d
pop ecx
call fcn.00407d69
test eax, eax
jne 0x405b2d
push 0x10
call fcn.00405a1d
pop ecx
call fcn.0040a58f
mov dword [ebp - 4], esi
call fcn.0040a391
test eax, eax
jge 0x405b46
push 0x1b
call fcn.004059f8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x426110], eax
call fcn.0040a26f
mov dword [0x42482c], eax
call fcn.0040a1cd
test eax, eax
jge 0x405b6c
push 8
call fcn.004059f8
pop ecx
call fcn.00409f9a
test eax, eax
jge 0x405b7d
push 9
call fcn.004059f8
pop ecx
push 1
call fcn.00405cfb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405b93
push eax
call fcn.004059f8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00409f3d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405bb4
movzx eax, word [ebp - 0x40]
jmp 0x405bb7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040f620
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405bd5
push edi
call fcn.00405e28
call fcn.00405e4a
jmp 0x405c07
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004054c7
ret
Function at 0x405d65
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41c8b0
call fcn.0040548c
push 8
call fcn.00408210
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42487c], esi
jne 0x405d99
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424878], esi
mov al, byte [ebp + 0x10]
mov byte [0x424874], al
cmp dword [ebp + 0xc], edi
jne 0x405de3
cmp dword [0x426108], edi
je 0x405dd3
mov eax, dword [0x426104]
sub eax, 4
mov dword [0x426104], eax
cmp eax, dword [0x426108]
jb 0x405dd3
mov eax, dword [eax]
cmp eax, edi
je 0x405db4
call eax
jmp 0x405db4
push 0x421084
mov eax, 0x42107c
call fcn.00405ce3
pop ecx
push 0x421090
mov eax, 0x421088
call fcn.00405ce3
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x405e14
cmp dword [ebp + 0x10], edi
jne 0x405e22
mov dword [0x42487c], esi
push dword [ebp + 8]
call fcn.00405ca1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x405e21
push 8
call fcn.0040815b
pop ecx
ret
call fcn.004054c7
ret
Function at 0x408dea
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 0x408e18
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 0x408e1f
cmp ebx, dword [eax + 4]
jae 0x408e1f
xor eax, eax
jmp 0x40900f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408e30
xor eax, eax
inc eax
jmp 0x40900e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408e46
cmp ecx, edx
jae 0x408f8b
cmp dword [eax + 4], 0
je 0x408e4f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408e37
cmp dword [ebp + 8], 0
je 0x408e71
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408f8b
cmp eax, esi
jae 0x408f8b
mov eax, dword [0x424a00]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408e96
cmp dword [esi*4 + 0x424a08], edi
je 0x408f8f
inc esi
cmp esi, eax
jl 0x408e84
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40900b
cmp dword [ebp - 8], 0x1000000
jne 0x40900b
test byte [ebp - 0xc], 0xcc
je 0x408f14
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40900b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40900b
cmp word [eax + 0x18], 0x10b
jne 0x40900b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40900b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408f14
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408f14
test byte [ecx + 0x27], 0x80
jne 0x408f8b
push 1
push 0x424a48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408e28
mov ecx, dword [0x424a00]
test ecx, ecx
mov edx, ecx
jle 0x408f48
lea eax, [ecx*4 + 0x424a04]
cmp dword [eax], edi
je 0x408f48
dec edx
sub eax, 4
test edx, edx
jg 0x408f3c
test edx, edx
jne 0x408f79
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408f55
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408f6d
lea eax, [edx*4 + 0x424a08]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408f5b
cmp ecx, 0x10
jge 0x408f79
inc ecx
mov dword [0x424a00], ecx
push 0
push 0x424a48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408e28
xor eax, eax
jmp 0x40900e
test esi, esi
jle 0x408e28
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x424a48
call ebx
test eax, eax
jne 0x408e28
cmp dword [esi*4 + 0x424a08], edi
je 0x408fe5
mov eax, dword [0x424a00]
lea esi, [eax - 1]
test esi, esi
jl 0x408fd3
cmp dword [esi*4 + 0x424a08], edi
je 0x408fcf
dec esi
jns 0x408fc3
test esi, esi
jge 0x408fe3
cmp eax, 0x10
jge 0x408fde
inc eax
mov dword [0x424a00], eax
lea esi, [eax - 1]
jmp 0x408fe5
je 0x408ffd
xor ecx, ecx
test esi, esi
jl 0x408ffd
lea eax, [ecx*4 + 0x424a08]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408feb
push 0
push 0x424a48
call ebx
jmp 0x408e28
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c28
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42197c]
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 + 0x421f00]
je 0x409c5f
inc eax
cmp eax, 0x13
jb 0x409c50
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421f00]
jne 0x409d82
mov eax, dword [0x424834]
cmp eax, 1
je 0x409d5d
cmp eax, edx
jne 0x409c8f
cmp dword [0x421984], 1
je 0x409d5d
cmp ecx, 0xfc
je 0x409d82
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 0x409cc5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00405900
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00405630
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x409cf9
mov eax, edi
push eax
call fcn.00405630
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ca44
push edi
call fcn.0040c3a0
add esp, 0x10
push edi
call fcn.00405630
push dword [esi + 0x421f04]
mov ebx, eax
call fcn.00405630
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004055f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405900
push edi
push ebx
call fcn.00405910
push 0x41ca40
push ebx
call fcn.00405910
push dword [esi + 0x421f04]
push ebx
call fcn.00405910
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c298
add esp, 0x2c
jmp 0x409d82
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x421f04]
push dword [esi]
call fcn.00405630
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.0040526e
add ebp, 0x90
leave
ret
Function at 0x40c298
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x424c78], ebx
push esi
push edi
jne 0x40c318
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c353
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d324
push edi
call esi
test eax, eax
mov dword [0x424c78], eax
je 0x40c353
push 0x41d314
push edi
call esi
push 0x41d300
push edi
mov dword [0x424c7c], eax
call esi
cmp dword [0x42483c], 2
mov dword [0x424c80], eax
jne 0x40c318
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x424c88], eax
je 0x40c318
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x424c84], eax
mov eax, dword [0x424c84]
test eax, eax
je 0x40c35d
call eax
test eax, eax
je 0x40c344
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x424c88]
test eax, eax
je 0x40c344
test byte [ebp - 8], 1
jne 0x40c35d
cmp dword [0x424848], 4
jb 0x40c357
or byte [ebp + 0x12], 0x20
jmp 0x40c37c
xor eax, eax
jmp 0x40c38c
or byte [ebp + 0x12], 4
jmp 0x40c37c
mov eax, dword [0x424c7c]
test eax, eax
je 0x40c37c
call eax
mov ebx, eax
test ebx, ebx
je 0x40c37c
mov eax, dword [0x424c80]
test eax, eax
je 0x40c37c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x424c78]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c988
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42197c]
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 0x40c9c4
xor eax, eax
jmp 0x40cb2e
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 + 0x425da0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40ca02
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0040df18
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40ca9c
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x40caff
jmp 0x40ca26
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 0x40ca61
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ca52
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 0x40ca32
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 0x40cac0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40cac9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x40ca24
jmp 0x40cac9
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 0x40cac0
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x40cac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x40cb29
cmp dword [ebp - 0x68], eax
je 0x40cafc
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x40caf1
call fcn.00406fcd
mov dword [eax], 9
call fcn.00406fd6
mov dword [eax], esi
jmp 0x40cb24
push dword [ebp - 0x68]
call fcn.00406fdf
pop ecx
jmp 0x40cb24
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40cb11
cmp byte [edi], 0x1a
jne 0x40cb11
xor eax, eax
jmp 0x40cb2c
call fcn.00406fcd
mov dword [eax], 0x1c
call fcn.00406fd6
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40cb2c
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0040526e
add ebp, 0x3a4
leave
ret
Function at 0x40e19f
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 0x40e375
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x425da0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40e375
test cl, 0x48
je 0x40e20a
cmp byte [eax + 5], 0xa
je 0x40e20a
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 0x40e25c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40e244
call fcn.00406fcd
mov dword [eax], 9
call fcn.00406fd6
mov dword [eax], esi
jmp 0x40e254
cmp eax, 0x6d
je 0x40e375
push eax
call fcn.00406fdf
pop ecx
or eax, 0xffffffff
jmp 0x40e377
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40e370
test eax, eax
je 0x40e283
cmp byte [ebx], 0xa
jne 0x40e283
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40e28c
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 0x40e36a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40e35a
cmp al, 0xd
je 0x40e2be
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40e34c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40e2d8
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40e2d3
add dword [ebp + 0x10], 2
jmp 0x40e32c
mov dword [ebp + 0x10], eax
jmp 0x40e348
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 0x40e300
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e348
cmp dword [ebp - 0xc], 0
je 0x40e348
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40e321
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40e32c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40e34b
cmp ebx, dword [ebp + 0xc]
jne 0x40e331
cmp byte [ebp - 1], 0xa
jne 0x40e331
mov byte [ebx], 0xa
jmp 0x40e34b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040df18
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40e34c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40e2a2
jmp 0x40e36a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40e36a
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 0x40e377
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410e26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x410e5d
call fcn.00417c04
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410e6e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x410ea7
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x410e8c
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x410e94
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x410ea5
test ax, ax
jne 0x410ea5
test si, si
je 0x410ea7
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x410eb6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x411108
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41948a
call fcn.0040512c
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.00417c04
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x411156
call fcn.00417c04
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 0x411167
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x411173
or eax, 0xffffffff
jmp 0x411276
mov ecx, esi
call fcn.00410c4a
mov dword [ebp - 0x14], eax
call fcn.00412964
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4111b6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4111b6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4111b6
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.00413b91
push dword [ebp - 0x14]
call fcn.004128bc
push edi
push eax
push ebx
mov ecx, esi
call fcn.00410efb
xor ebx, ebx
cmp eax, ebx
je 0x41122a
test byte [esi + 0x38], 0x10
je 0x4111f8
push 4
pop edi
mov ecx, esi
call fcn.0041480e
test ah, 1
je 0x4111f0
push 5
pop edi
push edi
mov ecx, esi
call fcn.00412360
cmp dword [esi + 0x1c], ebx
je 0x41122a
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00414930
jmp 0x41122a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41123e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x411257
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x411257
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.00410c84
cmp dword [esi + 0x54], ebx
je 0x411273
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 0x4144fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x414541
call fcn.00417c04
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414541
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41455c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00413659
test ebx, ebx
mov esi, eax
je 0x41455a
test edi, edi
je 0x41455a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4