joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409dac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409dac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409dac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409dac
cmp dword [ecx + 0x74], 0xe
jbe 0x409dac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d03e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041ff40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411f6e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40d080
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40d1f7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041fe90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42db80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004122c9
mov ecx, dword [esi*4 + 0x42db80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x40d1f0
cmp eax, dword [edi + ecx + 0x24]
jne 0x40d1f0
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d1f0
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004122c9
add esp, 0x14
cmp edx, esi
jl 0x40d1f0
jg 0x40d14b
cmp eax, esi
jb 0x40d1f0
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x40d1f0
jl 0x40d16d
cmp dword [ebp - 0x1008], eax
ja 0x40d1f0
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x40d192
cmp ebx, esi
je 0x40d1d7
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x40d1d7
mov al, byte [ecx]
cmp al, 0xd
jne 0x40d1b8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40d1c4
cmp byte [ecx + 1], 0xa
jne 0x40d1c4
inc ecx
jmp 0x40d1c4
movzx eax, al
movsx eax, byte [eax + 0x42b208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40d19e
cmp edx, ebx
jne 0x40d19e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x40d1f5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004094b1
leave
ret
Function at 0x4128a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42db80]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4128e3
cmp byte [ebx], 0xa
jne 0x4128e3
or byte [edi + eax + 0x28], 4
jmp 0x4128e8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4129eb
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4129c6
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x412917
mov eax, dword [ebp - 8]
jmp 0x412937
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x412953
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x412931
add eax, 2
mov cl, 0xa
jmp 0x412934
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4128f9
jmp 0x4129eb
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4129c1
cmp dword [ebp - 0x10], 0
je 0x4129c1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x42db80]
test byte [eax + edi + 0x28], 0x48
je 0x4129a0
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x412990
mov byte [esi], 0xa
jmp 0x4129ea
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x42db80]
mov byte [eax + edi + 0x2a], cl
jmp 0x4129ea
cmp byte [ebp - 1], 0xa
jne 0x4129aa
cmp esi, ebx
je 0x41298b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004122e7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4129eb
mov byte [esi], 0xd
jmp 0x4129ea
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x42db80]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4129e8
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4129eb
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4129f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x42db80]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x412a38
push 0xa
pop esi
cmp word [ebx], si
jne 0x412a38
or byte [eax + edi + 0x28], 4
jmp 0x412a3d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x412ba8
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x412b80
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x412a8a
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x412ab4
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x412ad3
push 0xa
pop ebx
cmp word [edx], bx
jne 0x412aa1
push ebx
add eax, 4
pop edx
jmp 0x412aa9
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x412a4f
jmp 0x412ba8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412b7b
cmp dword [ebp - 0x14], 0
je 0x412b7b
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x42db80]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x412b57
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x412b1f
mov word [esi], ax
jmp 0x412ba5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x42db80]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42db80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42db80]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x412ba5
cmp word [ebp - 4], ax
jne 0x412b61
cmp esi, ebx
je 0x412b17
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004122e7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x412ba8
push 0xd
pop eax
jmp 0x412b17
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x42db80]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x412ba2
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x412ba8
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4163f0
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41640a
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x416421
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x416479
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004188f7
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x416479
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x416479
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x416479
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x416473
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x416475
xor bl, bl
mov al, bl
jmp 0x41647b
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x418105
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4181a2
push ebx
push esi
call fcn.004180ce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418064
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41814f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4181a1
push edi
push eax
call fcn.00414000
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41816f
call fcn.00413ac0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4181a0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418064
add esp, 0x20
test eax, eax
jne 0x41818e
push edi
call fcn.00413ac0
jmp 0x418196
push ebx
call fcn.00413ac0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41d3f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041d371
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41d564
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41d564
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41d519
jg 0x41d451
test eax, eax
je 0x41d50f
push 1
push 0x1000
call fcn.00416c80
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41d474
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41d506
push 0x8000
push ebx
call fcn.004115b8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41d49d
jg 0x41d498
cmp ecx, 0x1000
jb 0x41d49d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041600c
add esp, 0x10
cmp eax, 0xffffffff
je 0x41d4e2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41d498
jl 0x41d4c9
test ecx, ecx
jne 0x41d48a
push dword [ebp - 0xc]
push ebx
call fcn.004115b8
push esi
call fcn.00413ac0
add esp, 0xc
xor ebx, ebx
jmp 0x41d572
cmp byte [edi + 0x24], 0
je 0x41d4f9
cmp dword [edi + 0x20], 5
jne 0x41d4f9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41d504
mov ebx, dword [edi + 0x18]
jmp 0x41d506
xor ebx, ebx
push esi
call fcn.00413ac0
pop ecx
jmp 0x41d572
test ecx, ecx
jg 0x41d4db
jl 0x41d519
test eax, eax
jae 0x41d4db
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004122e7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41d539
cmp byte [edi + 0x1c], 0
je 0x41d4db
jmp 0x41d56a
push ebx
call fcn.004188f7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41d4db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41d572
cmp byte [edi + 0x1c], 0
je 0x41d56f
mov ebx, dword [edi + 0x18]
jmp 0x41d572
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004122e7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41fd40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41fd6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41fd6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10017fd
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001dd8
call fcn.010019a4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100357c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001612
cmp eax, esi
jne 0x1001605
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001615
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10015ec
xor esi, esi
inc esi
mov eax, dword [0x1003578]
cmp eax, esi
jne 0x1001628
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001663
mov eax, dword [0x1003578]
test eax, eax
jne 0x100165d
mov dword [0x1003578], esi
push 0x1001104
push 0x10010f8
call fcn.01001569
pop ecx
pop ecx
test eax, eax
je 0x1001663
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100172d
mov dword [0x10030a0], esi
mov eax, dword [0x1003578]
cmp eax, esi
jne 0x1001687
push 0x10010f4
push 0x10010ec
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003578], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001694
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003580], ebx
je 0x10016b5
push 0x1003580
call fcn.01001919
pop ecx
test eax, eax
je 0x10016b5
push ebx
push 2
push ebx
call dword [0x1003580]
push dword [0x1003088]
push dword [0x100308c]
push dword [0x1003084]
call fcn.01001493
add esp, 0xc
mov dword [0x100309c], eax
cmp dword [0x1003090], ebx
jne 0x1001713
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10030a0], ebx
jne 0x1001721
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100309c]
call fcn.010019e9
ret
call fcn.01001af1
jmp 0x10015ca

Function at 0x1001d6c
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0xa
pop esi
jmp 0x1001d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2747
jne 0x1001dab
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
imul esi, esi, 0xa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001d7f
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10

Function at 0x432002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x405d34
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x406120
call fcn.00405ff8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405d94
cmp eax, 0xffffffff
je 0x405d94
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405d8d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405d8d
cmp edx, 0x10000000
jae 0x405d8d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x405d8a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405e00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405e3e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405e36
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405e40
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405e26
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405f10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405f41
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405f41
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405f41
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410190
cmp edx, dword [eax]
je 0x40c78b
add eax, 8
inc ecx
cmp eax, 0x410220
jl 0x40c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410190]
jne 0x40c8b9
mov eax, dword [0x410bb0]
cmp eax, 1
je 0x40c893
test eax, eax
jne 0x40c7bc
cmp dword [0x4100e4], 1
je 0x40c893
cmp edx, 0xfc
je 0x40c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f45c
push edi
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d680
lea eax, [ebp - 0xa0]
push 0x40f43c
push eax
call fcn.0040d680
push dword [esi + 0x410194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040de75
add esp, 0x2c
pop edi
jmp 0x40c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x410194]
push 0
push eax
push dword [esi]
call fcn.0040d490
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]
pop esi
leave
ret
Function at 0x402df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402e40
lea ebx, [ebx]
cmp esi, eax
jae 0x402e44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e30
cmp esi, eax
jb 0x402e4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404780
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x49cc30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
push 1
mov dword [esp + 0x1c], esi
call fcn.004042c0
push 0x4a6b10
mov ecx, 0x4d7c58
mov dword [esp + 0x24], eax
call fcn.00468fb8
mov dword [esp + 0x24], eax
cmp eax, esi
je 0x40489c
mov dword [esp + 0x18], 1
call fcn.00468b49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4047f7
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], esi
call fcn.00468b49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404825
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
mov byte [esp + 0x34], 1
mov dword [esp + 0x28], ecx
jg 0x4048ba
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40489c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x3c]
cmp esi, dword [esp + 0x28]
jge 0x404913
test esi, esi
jl 0x40494a
cmp esi, dword [eax + 8]
jge 0x40494a
mov edx, dword [eax + 4]
lea eax, [edx + esi*4]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a50
mov eax, dword [ebp + 0x54]
push esi
push eax
lea eax, [esp + 0x1c]
push str.MRU__sItem_u
push eax
call fcn.00404580
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
add esp, 0x10
push ebx
push edi
push 0x4a6b10
mov ecx, 0x4d7c58
call fcn.004690f4
and dword [esp + 0x18], eax
jmp 0x40493a
mov eax, dword [ebp + 0x54]
push esi
push eax
lea ecx, [esp + 0x1c]
push str.MRU__sItem_u
push ecx
call fcn.00404580
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
add esp, 0x10
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, dword [esp + 0x20]
jl 0x4048b6
jmp 0x40484c
call fcn.0046132c
int3