joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437e60
Capabilities:
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
test eax, eax
je 0x437ecb
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x437ed2
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x437ed2
mov ecx, dword [esi + 0xc4]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x437ed2
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x437df0
push 0
push 0
call fcn.0045247f
add esp, 0x18
test eax, eax
mov dword [esi + 0xa4], eax
je 0x437ecb
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xac]
test eax, eax
je 0x437ecb
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xac]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xac]
mov edx, dword [eax]
push 0
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x64]
push 0
push ecx
mov ecx, dword [esi + 0x60]
push ecx
mov ecx, dword [esi + 0x8c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x437ecb
mov edx, dword [esi + 0x1c]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4389a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
mov dword [esp + 8], ecx
call fcn.00471ab2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x438a92
call fcn.00471ab2
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x438a92
push ebx
push ebp
call fcn.00471ab2
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x438a1c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esp + 0x1c]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x438a7a
test edi, edi
je 0x438a7a
mov esi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.00438650
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x438d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x10]
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
je 0x438d5f
mov eax, dword [ecx]
push 1
mov dword [ebp - 4], esi
call dword [eax]
jmp 0x438d55
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x10], esi
cmp dword [ebx + 0x10], esi
je 0x438d79
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebx + 8]
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], esi
mov dword [ebp - 0x20], ecx
call fcn.00401940
mov ecx, dword [ebp + 0x10]
movzx edx, word [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push edx
push edi
mov dword [ebx + 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x438dc4
mov dword [ebp - 0x1c], eax
push 0x4940cc
lea eax, [ebp - 0x1c]
push eax
call fcn.004511d1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
push esi
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov esi, eax
push 0
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x14]
push 0x10
mov dword [ebp + 0x10], ecx
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x438e44
mov edx, dword [ebp + 0x10]
lea eax, [esi + 4]
push eax
push edx
mov dword [esi], 0x48343c
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x438e46
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], eax
call fcn.00401940
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x438e71
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x438e86
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43af40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43afa1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x43af83
cmp eax, 2
jne 0x43af93
test esi, esi
mov eax, dword [esp + 0x14]
je 0x43af9d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x43af9d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x43afb0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [esp + 0x10]
inc eax
push eax
mov eax, dword [edi]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43afef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x43b00c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
ret 8

Function at 0x43b010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [ecx]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push esi
push ecx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43b073
cmp dword [esp + 0x10], 4
jne 0x43b073
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [edx], eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b06a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
pop esi
add esp, 8
ret 8
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b08d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x43bf08
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ad18
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.0043ea00
test al, al
je 0x43bf86
test esi, esi
je 0x43bf86
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x43bf86
push edi
lea ecx, [esp + 0xc]
call fcn.0043e910
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov eax, 0x66666667
imul edx
sar edx, 1
push 2
push ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push 0
push 0
push 0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00462302
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.0043e960
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x43ef20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47af58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0043e830
mov dword [esi + 0x30], 0x484ad0
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi], 0x484b10
mov dword [esi + 0x30], 0x484b04
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x44edde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x44ee31
call fcn.00471ab2
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x44ee31
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x44ee27
xor eax, eax
jmp 0x44ef4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x44ee61
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x44ee61
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x44ef47
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x44ee8e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00447aea
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x44ef47
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x44eed7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x44eed7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x44eed1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00447aea
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x44ef37
and dword [ebp + 0xc], 0
jmp 0x44ef37
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x44ef37
push 0xc
call fcn.004600d9
mov esi, eax
test esi, esi
pop ecx
je 0x44ef19
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x44ef1b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x44ef32
push dword [ebp - 8]
call fcn.0045f8c8
jmp 0x44ef37
call fcn.0045f89f
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x44ee9c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4515bf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x48ae80
call fcn.00453510
push 8
call fcn.004570ab
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x49f6ac], esi
jne 0x4515f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x49f6a8], esi
mov al, byte [ebp + 0x10]
mov byte [0x49f6a4], al
cmp dword [ebp + 0xc], edi
jne 0x45163d
cmp dword [0x4a0f6c], edi
je 0x45162d
mov eax, dword [0x4a0f68]
sub eax, 4
mov dword [0x4a0f68], eax
cmp eax, dword [0x4a0f6c]
jb 0x45162d
mov eax, dword [eax]
cmp eax, edi
je 0x45160e
call eax
jmp 0x45160e
push 0x49a0dc
mov eax, 0x49a0d4
call fcn.0045153d
pop ecx
push 0x49a0e8
mov eax, 0x49a0e0
call fcn.0045153d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x45166e
cmp dword [ebp + 0x10], edi
jne 0x45167c
mov dword [0x49f6ac], esi
push dword [ebp + 8]
call fcn.004514fb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x45167b
push 8
call fcn.00456ff6
pop ecx
ret
call fcn.0045354b
ret

Function at 0x45247f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x45249c
call fcn.00454198
mov dword [eax], 0x16
xor eax, eax
jmp 0x452506
push esi
push 0x8c
push 1
call fcn.00454c86
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4524f1
push esi
call fcn.0045574b
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4524cf
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4523ea
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x452505
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0045250a
test ebx, ebx
pop ecx
je 0x452503
push ebx
call fcn.004541aa
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4527dd
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.00450ed0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x452878
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 [0x49f66c]
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 0x452878
cmp eax, 1
je 0x452899
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 0x452878
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x452845
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x452874
xor eax, eax
inc eax
jmp 0x4528b8
cmp edi, eax
jae 0x45287c
xor eax, eax
jmp 0x4528b8
cmp eax, esi
jae 0x452883
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 [0x49f66c]
jmp 0x45289c
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 0x452a2e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x48af20
call fcn.00453510
mov edi, 0x94
mov eax, edi
call fcn.00450ed0
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 [0x49f66c], ecx
mov eax, dword [esi + 4]
mov dword [0x49f678], eax
mov edx, dword [esi + 8]
mov dword [0x49f67c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49f670], esi
cmp ecx, 2
je 0x452a8e
or esi, 0x8000
mov dword [0x49f670], esi
shl eax, 8
add eax, edx
mov dword [0x49f674], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x452ac9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x452ac9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x452ae1
cmp eax, 0x20b
je 0x452ace
mov dword [ebp - 0x1c], esi
jmp 0x452af5
cmp dword [ecx + 0x84], 0xe
jbe 0x452ac9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x452aef
cmp dword [ecx + 0x74], 0xe
jbe 0x452ac9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00459056
pop ecx
test eax, eax
jne 0x452b09
push 0x1c
call fcn.00452a0a
pop ecx
call fcn.00455945
test eax, eax
jne 0x452b1a
push 0x10
call fcn.00452a0a
pop ecx
call fcn.004575be
mov dword [ebp - 4], esi
call fcn.0045778f
test eax, eax
jge 0x452b33
push 0x1b
call fcn.004529e5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4a0f60], eax
call fcn.0045b082
mov dword [0x49f6b0], eax
call fcn.0045afe0
test eax, eax
jge 0x452b59
push 8
call fcn.004529e5
pop ecx
call fcn.0045adad
test eax, eax
jge 0x452b6a
push 9
call fcn.004529e5
pop ecx
push 1
call fcn.00451555
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x452b80
push eax
call fcn.004529e5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0045ad50
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x452ba1
movzx eax, word [ebp - 0x40]
jmp 0x452ba4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0045e626
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x452bc2
push edi
call fcn.00451682
call fcn.004516a4
jmp 0x452bf4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045354b
ret
Function at 0x457d36
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x49c220]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x457d67
xor eax, eax
jmp 0x457ef0
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49fc00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x457da3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0045c7da
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x457e7e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x457ebc
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x457e07
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x457df8
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x457dd8
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457e47
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x457e50
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x457dc9
jmp 0x457e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x457eeb
cmp dword [ebp - 0x6c], edi
je 0x457ebc
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x457eb1
call fcn.00454198
mov dword [eax], 9
call fcn.004541a1
mov dword [eax], esi
jmp 0x457ee6
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457ea6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x457e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x457e52
push dword [ebp - 0x6c]
call fcn.004541aa
pop ecx
jmp 0x457ee6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x457ed4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x457ed4
xor eax, eax
jmp 0x457eee
call fcn.00454198
mov dword [eax], 0x1c
call fcn.004541a1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x457eee
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0045086e
add ebp, 0x3a0
leave
ret