joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fb50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x436da8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449030]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
call fcn.0042c3b0
test eax, eax
mov esi, dword [esp + 0x94]
jne 0x42fb94
cmp dword [esi + 0x28], 0xffffffff
jne 0x42fcd9
call fcn.0042c3b0
mov ecx, dword [esi + 0x28]
push ecx
add eax, 0xc
call fcn.0042c510
xor edi, edi
cmp eax, edi
je 0x42fcd9
mov ebx, dword [eax + 0x1c]
mov esi, dword [esi + 0x44]
cmp ebx, esi
lea ecx, [eax + 0xc]
mov dword [esp + 0x18], ecx
jl 0x42fcd9
mov eax, ebx
cdq
idiv esi
test edx, edx
jne 0x42fcd9
mov eax, ebx
cdq
idiv esi
mov ebp, dword [ecx + 0x14]
mov dword [esp + 0x28], ebp
xor ebp, ebp
cmp esi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
jle 0x42fcd9
jmp 0x42fbf9
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], vtable.FCObjImage.0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x8c], edi
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
push ecx
lea ebx, [esp + 0x40]
mov dword [eax + 0xc], edx
call fcn.00427060
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edi
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, ebx
push ecx
call fcn.00426c80
mov ecx, dword [esp + 0x94]
mov esi, ebx
add ecx, 0x30
call fcn.0042ff60
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x2c], vtable.FCObjImage.0
call fcn.00422f30
mov edx, dword [esp + 0x94]
add ebp, 1
cmp ebp, dword [edx + 0x44]
jl 0x42fbf5
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4
Function at 0x4301e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x434f88
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x449030]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esp + 0x10], eax
mov dword [esi], vtable.FCObjImage.0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
push 0x20
push esi
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.00421b10
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x4322b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449030]
jne 0x4322c2
repz ret
jmp fcn.004327e1
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x4074ac
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4074c8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4074ca
shr eax, 1
dec edx
jne 0x4074bb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4074b4
pop esi
ret

Function at 0x4074e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x407503
call fcn.004074ac
push 1
push 0x40b558
call fcn.00404424
mov eax, edi
test esi, esi
je 0x40752e
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407509
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40897c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jle 0x40899d
mov eax, esi
mov edx, 0x40a1c8
mov ecx, 0x40
call fcn.0040270c
je 0x4089a2
call fcn.00408914
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x4089c1
cmp edi, eax
jne 0x4089c1
cmp dword [ebx], 0xcc
je 0x4089c6
call fcn.00408914
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.00407534
cmp eax, dword [ebx + 0xc]
jne 0x4089ed
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x4089f2
call fcn.00408914
mov bl, 0xcc
mov esi, 0x40b95c
cmp ebp, dword [esp]
jb 0x408a03
call fcn.00408914
mov eax, ebp
call fcn.00404cac
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.00403278
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x4089f9
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x408ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x408cef
pop dword [ebp - 0x10]
mov eax, 0xae99ec4a
add eax, 0x51a6a0a5
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xb38f3bc2
add dword [ebp - 0x20], 0x9ac30989
mov dword [ebp - 0x1c], 0x1ee94015
add dword [ebp - 0x1c], 0x134a0c30
mov dword [ebp - 0x18], 0x94bdd837
sub dword [ebp - 0x18], 0x48719409
mov dword [ebp - 0x14], 0x47fbc46a
sub dword [ebp - 0x14], 0x47fbc46a
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x3021ed0b
add dword [ebp - 0x20], 0x44507c4b
mov dword [ebp - 0x1c], 0x71baacf
add dword [ebp - 0x1c], 0x3a50b6a6
mov dword [ebp - 0x18], 0xb03b8228
sub dword [ebp - 0x18], 0x4ccc15bc
mov dword [ebp - 0x14], 0x1ae8f71a
sub dword [ebp - 0x14], 0x1ae8f71a
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x4f37cb0f
sub eax, 0x4ef6fac7
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3e70a
push 0
call eax
mov ecx, 0xa9cfd5e0
sub ecx, 0xa9cf79ff
xor ebx, ebx
add ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x10]
mov edx, 0x10dd3491
sub edx, 0x726077d0
mov edi, dword [esi]
sub dword [ebp - 8], ecx
sub edi, edx
xor dword [ebp - 0xc], 0x5f6cd3da
mov dword [ebx], edi
add ebx, 0x7a2d533f
sub ebx, 0x7a2d533b
add esi, 0xb7cbce7b
sub esi, 0xb7cbce77
loop 0x408e08
add eax, 0x3aac5658
sub eax, 0x3aaaf401
xor ebx, ebx
add ebx, eax
add eax, 0xa93134d8
add eax, 0x56cecb2d
mov ecx, 0x9e54a230
add ecx, 0x61eb5dd0
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401105
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 0x40111a
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40112c
xor eax, eax
jmp 0x40115e
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 0x401150
cmp esi, eax
jae 0x401128
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401142
cmp esi, eax
jae 0x401128
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401444
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x41f8bc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], esi
call fcn.0041053c
test eax, eax
je 0x4014af
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4014af
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x401493
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403476
leave
ret

Function at 0x404349
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.004040f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4043e4
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 [0x422794]
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 0x4043e4
cmp eax, 1
je 0x404405
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 0x4043e4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4043b1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4043e0
xor eax, eax
inc eax
jmp 0x404424
cmp edi, eax
jae 0x4043e8
xor eax, eax
jmp 0x404424
cmp eax, esi
jae 0x4043ef
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 [0x422794]
jmp 0x404408
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 0x4045ca
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41aa08
call fcn.0040442c
mov edi, 0x94
mov eax, edi
call fcn.004040f0
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 [0x422794], ecx
mov eax, dword [esi + 4]
mov dword [0x4227a0], eax
mov edx, dword [esi + 8]
mov dword [0x4227a4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x422798], esi
cmp ecx, 2
je 0x40462a
or esi, 0x8000
mov dword [0x422798], esi
shl eax, 8
add eax, edx
mov dword [0x42279c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404665
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404665
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40467d
cmp eax, 0x20b
je 0x40466a
mov dword [ebp - 0x1c], esi
jmp 0x404691
cmp dword [ecx + 0x84], 0xe
jbe 0x404665
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40468b
cmp dword [ecx + 0x74], 0xe
jbe 0x404665
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00406b9a
pop ecx
test eax, eax
jne 0x4046a5
push 0x1c
call fcn.004045a6
pop ecx
call fcn.00405dfb
test eax, eax
jne 0x4046b6
push 0x10
call fcn.004045a6
pop ecx
call fcn.004082b9
mov dword [ebp - 4], esi
call fcn.004080bb
test eax, eax
jge 0x4046cf
push 0x1b
call fcn.00404581
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424070], eax
call fcn.00407f99
mov dword [0x422784], eax
call fcn.00407ef7
test eax, eax
jge 0x4046f5
push 8
call fcn.00404581
pop ecx
call fcn.00407cc4
test eax, eax
jge 0x404706
push 9
call fcn.00404581
pop ecx
push 1
call fcn.00404884
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40471c
push eax
call fcn.00404581
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00407c67
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40473d
movzx eax, word [ebp - 0x40]
jmp 0x404740
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040f0d6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40475e
push edi
call fcn.004049b1
call fcn.004049d3
jmp 0x404790
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404467
ret
Function at 0x4048ee
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41aa30
call fcn.0040442c
push 8
call fcn.00406b4f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4227d4], esi
jne 0x404922
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4227d0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4227cc], al
cmp dword [ebp + 0xc], edi
jne 0x40496c
cmp dword [0x424068], edi
je 0x40495c
mov eax, dword [0x424064]
sub eax, 4
mov dword [0x424064], eax
cmp eax, dword [0x424068]
jb 0x40495c
mov eax, dword [eax]
cmp eax, edi
je 0x40493d
call eax
jmp 0x40493d
push 0x41f07c
mov eax, 0x41f074
call fcn.0040486c
pop ecx
push 0x41f088
mov eax, 0x41f080
call fcn.0040486c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40499d
cmp dword [ebp + 0x10], edi
jne 0x4049ab
mov dword [0x4227d4], esi
push dword [ebp + 8]
call fcn.0040482a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4049aa
push 8
call fcn.00406a9a
pop ecx
ret
call fcn.00404467
ret
Function at 0x407729
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 0x407757
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 0x40775e
cmp ebx, dword [eax + 4]
jae 0x40775e
xor eax, eax
jmp 0x40794e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40776f
xor eax, eax
inc eax
jmp 0x40794d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407785
cmp ecx, edx
jae 0x4078ca
cmp dword [eax + 4], 0
je 0x40778e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407776
cmp dword [ebp + 8], 0
je 0x4077b0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4078ca
cmp eax, esi
jae 0x4078ca
mov eax, dword [0x422958]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4077d5
cmp dword [esi*4 + 0x422960], edi
je 0x4078ce
inc esi
cmp esi, eax
jl 0x4077c3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40794a
cmp dword [ebp - 8], 0x1000000
jne 0x40794a
test byte [ebp - 0xc], 0xcc
je 0x407853
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40794a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40794a
cmp word [eax + 0x18], 0x10b
jne 0x40794a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40794a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407853
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407853
test byte [ecx + 0x27], 0x80
jne 0x4078ca
push 1
push 0x4229a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407767
mov ecx, dword [0x422958]
test ecx, ecx
mov edx, ecx
jle 0x407887
lea eax, [ecx*4 + 0x42295c]
cmp dword [eax], edi
je 0x407887
dec edx
sub eax, 4
test edx, edx
jg 0x40787b
test edx, edx
jne 0x4078b8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407894
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4078ac
lea eax, [edx*4 + 0x422960]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40789a
cmp ecx, 0x10
jge 0x4078b8
inc ecx
mov dword [0x422958], ecx
push 0
push 0x4229a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407767
xor eax, eax
jmp 0x40794d
test esi, esi
jle 0x407767
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4229a0
call ebx
test eax, eax
jne 0x407767
cmp dword [esi*4 + 0x422960], edi
je 0x407924
mov eax, dword [0x422958]
lea esi, [eax - 1]
test esi, esi
jl 0x407912
cmp dword [esi*4 + 0x422960], edi
je 0x40790e
dec esi
jns 0x407902
test esi, esi
jge 0x407922
cmp eax, 0x10
jge 0x40791d
inc eax
mov dword [0x422958], eax
lea esi, [eax - 1]
jmp 0x407924
je 0x40793c
xor ecx, ecx
test esi, esi
jl 0x40793c
lea eax, [ecx*4 + 0x422960]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40792a
push 0
push 0x4229a0
call ebx
jmp 0x407767
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407952
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41f8bc]
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 + 0x41fcb8]
je 0x407989
inc eax
cmp eax, 0x13
jb 0x40797a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41fcb8]
jne 0x407aac
mov eax, dword [0x42278c]
cmp eax, 1
je 0x407a87
cmp eax, edx
jne 0x4079b9
cmp dword [0x41f8d4], 1
je 0x407a87
cmp ecx, 0xfc
je 0x407aac
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 0x4079ef
lea eax, [ebp - 0x7c]
push 0x41ab48
push eax
call fcn.00409b80
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00403490
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407a23
mov eax, edi
push eax
call fcn.00403490
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ab44
push edi
call fcn.0040b5e0
add esp, 0x10
push edi
call fcn.00403490
push dword [esi + 0x41fcbc]
mov ebx, eax
call fcn.00403490
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004040f0
mov ebx, esp
push 0x41b128
push ebx
call fcn.00409b80
push edi
push ebx
call fcn.00409b90
push 0x41ab40
push ebx
call fcn.00409b90
push dword [esi + 0x41fcbc]
push ebx
call fcn.00409b90
push 0x12010
push 0x41ab0c
push ebx
call fcn.0040b4de
add esp, 0x2c
jmp 0x407aac
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x41fcbc]
push dword [esi]
call fcn.00403490
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.00403476
add ebp, 0x90
leave
ret
Function at 0x40b4de
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422bcc], ebx
push esi
push edi
jne 0x40b55e
push 0x41a960
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b599
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b4e0
push edi
call esi
test eax, eax
mov dword [0x422bcc], eax
je 0x40b599
push 0x41b4d0
push edi
call esi
push 0x41b4bc
push edi
mov dword [0x422bd0], eax
call esi
cmp dword [0x422794], 2
mov dword [0x422bd4], eax
jne 0x40b55e
push 0x41b4a0
push edi
call esi
test eax, eax
mov dword [0x422bdc], eax
je 0x40b55e
push 0x41b488
push edi
call esi
mov dword [0x422bd8], eax
mov eax, dword [0x422bd8]
test eax, eax
je 0x40b5a3
call eax
test eax, eax
je 0x40b58a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422bdc]
test eax, eax
je 0x40b58a
test byte [ebp - 8], 1
jne 0x40b5a3
cmp dword [0x4227a0], 4
jb 0x40b59d
or byte [ebp + 0x12], 0x20
jmp 0x40b5c2
xor eax, eax
jmp 0x40b5d2
or byte [ebp + 0x12], 4
jmp 0x40b5c2
mov eax, dword [0x422bd0]
test eax, eax
je 0x40b5c2
call eax
mov ebx, eax
test ebx, ebx
je 0x40b5c2
mov eax, dword [0x422bd4]
test eax, eax
je 0x40b5c2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422bcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b96a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x41f8bc]
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 0x40b9a6
xor eax, eax
jmp 0x40bb10
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 + 0x423d00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40b9e4
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0040d27b
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40ba7e
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x40bae1
jmp 0x40ba08
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 0x40ba43
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ba34
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 0x40ba14
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 0x40baa2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40baab
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x40ba06
jmp 0x40baab
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 0x40baa2
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x40baab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x40bb0b
cmp dword [ebp - 0x68], eax
je 0x40bade
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x40bad3
call fcn.00405b6a
mov dword [eax], 9
call fcn.00405b73
mov dword [eax], esi
jmp 0x40bb06
push dword [ebp - 0x68]
call fcn.00405b7c
pop ecx
jmp 0x40bb06
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40baf3
cmp byte [edi], 0x1a
jne 0x40baf3
xor eax, eax
jmp 0x40bb0e
call fcn.00405b6a
mov dword [eax], 0x1c
call fcn.00405b73
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40bb0e
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00403476
add ebp, 0x3a4
leave
ret