joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10021b30
cmp edx, dword [eax]
je 0x1000e8c2
add eax, 8
inc ecx
cmp eax, 0x10021bc0
jl 0x1000e8b3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10021b30]
jne 0x1000e9f0
mov eax, dword [0x100233f4]
cmp eax, 1
je 0x1000e9ca
test eax, eax
jne 0x1000e8f3
cmp dword [0x100233f8], 1
je 0x1000e9ca
cmp edx, 0xfc
je 0x1000e9f0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e92a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10012490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10012580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000e96d
lea eax, [ebp - 0x1a4]
push eax
call fcn.10012580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001c7b4
push edi
call fcn.10012a90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10012490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100124a0
lea eax, [ebp - 0xa0]
push 0x1001c794
push eax
call fcn.100124a0
push dword [esi + 0x10021b34]
lea eax, [ebp - 0xa0]
push eax
call fcn.100124a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100129ff
add esp, 0x2c
pop edi
jmp 0x1000e9f0
lea eax, [ebp + 8]
lea esi, [esi + 0x10021b34]
push 0
push eax
push dword [esi]
call fcn.10012580
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 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 0x51e080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xad000]
push edi
jmp 0x51e09a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51e0a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e090
mov eax, 1
add ebx, ebx
jne 0x51e0b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51e0c4
jne 0x51e0e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e0e3
dec eax
add ebx, ebx
jne 0x51e0d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51e0a8
add ebx, ebx
jne 0x51e0df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51e135
xor ecx, ecx
sub eax, 3
jb 0x51e0fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51e16a
sar eax, 1
mov ebp, eax
jmp 0x51e106
add ebx, ebx
jne 0x51e106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e0d4
inc ecx
add ebx, ebx
jne 0x51e114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e0d4
add ebx, ebx
jne 0x51e121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51e116
jne 0x51e132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51e116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51e154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51e146
jmp 0x51e096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51e154
add edi, ecx
jmp 0x51e096
pop esi
mov edi, esi
mov ecx, 0x3ede
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51e172
cmp byte [edi], 0x11
jne 0x51e172
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51e177
lea edi, [esi + 0x117000]
mov eax, dword [edi]
or eax, eax
je 0x51e1ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1494cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x149648]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51e1a4
mov ecx, edi
jns 0x51e1d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14964c]
or eax, eax
je 0x51e1e9
mov dword [ebx], eax
add ebx, 4
jmp 0x51e1c1
call dword [esi + 0x14965c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51e220
cmp al, 0xef
ja 0x51e213
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51e1f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51e202
mov ebp, dword [esi + 0x149650]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51e254
sub esp, 0xffffff80
jmp 0x4276e7
Function at 0x757379ff
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, dl
xchg ecx, eax
mov eax, 0x33096076
or dword [ebx], esi
add byte [ecx + edx*4 + 0x96076b8], bl
xor eax, dword [eax]
add al, 0xa
xor eax, dword [eax]
rcl byte [ecx - 0x6e4f8948], 0xb8
jbe 0x757379e9
mov esp, 0xbcd876b7
mov bh, 0x76
add eax, dword [eax]
add byte [eax], al
add eax, 0x4000000
add byte [eax], al
add byte [edx + ecx], al
xor eax, dword [eax]
add al, 0xa
or dh, byte [ebx]
add byte [edx + ecx], al
xor eax, dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
stosw word es:[edi], ax
test byte [ebx + 0x50c0d68b], 0x96
add byte [ecx + 0x28bb5cab], ch
jno 0x75737a31
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx + 0x562334ac], bh
scasd eax, dword es:[edi]
add byte [eax + esi*8], cl
jnp 0x75737a0d
jbe 0x757379d9
jl 0x75737a11
jbe 0x75737a5a
add dword es:[eax], eax
add dword [eax], eax
add dword [eax], eax
add byte [eax], al
cmp byte [ecx + esi], 0x50
or dh, byte [ebx]
add byte [eax + 0x32e6], dh
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, dh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, dl
cdq
xor al, byte [eax]
Function at 0x402d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402d2e
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402d26
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d76
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402d72
lea ebx, [ebx]
cmp esi, ecx
jae 0x402d76
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402d60
cmp esi, ecx
jb 0x402d7f
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4030c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00485e2f
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4031c6
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4031c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4031c6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4031c6
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40314a
cmp esi, ecx
jae 0x4031c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403134
cmp esi, ecx
jae 0x4031c6
cmp word [esi], 0
je 0x4031c6
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x4031d1
mov ecx, dword [ebx]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x40318f
push edi
mov ecx, ebx
call fcn.00403840
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4031d1
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402cb0
int3
Function at 0x405c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x405d8d
cmp dword [edi + 0x1c], 0
push esi
jne 0x405d1a
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x405d84
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x613aec]
call esi
test eax, eax
js 0x405d7d
mov eax, dword [edi + 0x2c]
lea ecx, [ebp - 4]
push ecx
push 0x1388
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x28]
mov ecx, esi
call dword [0x613aec]
call esi
test eax, eax
js 0x405d7d
cmp dword [ebp - 4], 2
jne 0x405d7d
mov eax, dword [0x6c7b6c]
mov dword [edi + 8], 1
test eax, eax
je 0x405d7d
push ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6c7b6c]
call dword [sym.imp.USER32.dll_GetWindowDC]
cmp dword [edi + 0x1c], 0
mov ebx, eax
jne 0x405d02
mov edx, dword [edi + 0x34]
test edx, edx
je 0x405d02
mov ecx, dword [0x6c7b6c]
test ecx, ecx
je 0x405d08
mov eax, dword [edx]
push ebx
push ecx
push edx
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x613aec]
call esi
mov ecx, dword [0x6c7b6c]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 8]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x405d84
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x613aec]
call esi
test eax, eax
js 0x405d7d
mov eax, dword [edi + 0x50]
lea ecx, [ebp - 4]
push ecx
push 0x1388
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x28]
mov ecx, esi
call dword [0x613aec]
call esi
test eax, eax
js 0x405d7d
cmp dword [ebp - 4], 2
jne 0x405d7d
mov eax, dword [0x6c7b6c]
mov dword [edi + 8], 1
test eax, eax
je 0x405d7d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405da0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x34]
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x405de1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
cmp dword [0x6c7b6c], 0
jne 0x405efb
mov eax, dword [str.movie_player]
mov dword [ebp - 0x14], eax
mov eax, dword [0x6746dc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x6746e0]
mov dword [ebp - 0xc], eax
mov al, byte [0x6746e4]
push 0x7f00
push 0
mov byte [ebp - 8], al
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], 3
mov dword [ebp - 0x60], 0x404790
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.USER32.dll_LoadIconA]
cmp dword [edi + 4], 0
mov dword [ebp - 0x50], eax
je 0x405e60
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x4c], eax
jmp 0x405e67
mov dword [ebp - 0x4c], 0
push 0x7f00
lea eax, [ebp - 0x14]
mov dword [ebp - 0x44], 0
push 0
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test si, si
jne 0x405eb2
cmp eax, 0x582
je 0x405eb2
mov dword [ebp - 0x38], 0
jmp 0x405edf
push 0
push dword [edi + 0x10]
lea eax, [ebp - 0x14]
push 0
push dword [edi + 0x14]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0x42000000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x6c7b6c], eax
cmp dword [0x6c7b6c], 0
jne 0x405efb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x34], 0
je 0x405f56
lea eax, [ebp - 0x24]
push eax
push dword [0x6c7b6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x405f56
mov eax, dword [edi + 0x34]
push dword [0x6c7b6c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x613aec]
call esi
xor ebx, ebx
lea ecx, [ebp - 0x24]
test eax, eax
mov eax, dword [edi + 0x34]
push ecx
sets bl
push 0
mov esi, dword [eax]
dec ebx
and ebx, dword [ebp - 0x38]
push eax
mov esi, dword [esi + 0x18]
mov ecx, esi
call dword [0x613aec]
call esi
test eax, eax
jns 0x405f58
xor ebx, ebx
push 0
push dword [0x6c7b6c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6c7b6c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
Function at 0x407bd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00407e30
push dword [0x6a9598]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x407c4b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407c44
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x407c3d
push edi
push 0x100
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x407c3c
mov ecx, dword [ebp + 0xc]
push 0x64
mov ecx, dword [ecx]
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.005e0de4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8
Function at 0x407c50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff65d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x69ee98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00485933
mov edi, eax
test edi, edi
je 0x407e1b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x674642
mov dword [ebp - 4], 0
shr eax, 0x10
mov ecx, 0x674642
movzx edi, cx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x407cc7
push edi
call fcn.004030c0
jmp 0x407cd3
push 0
push 0x674642
call fcn.004038a0
mov dword [ebp - 4], 1
call fcn.00407e30
push dword [0x6a9598]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x407d68
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x407e25
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
cmp dword [ebp - 0x14], 0
mov ecx, ebx
mov byte [ebp - 4], 2
jne 0x407d31
push edi
call fcn.004030c0
jmp 0x407d3d
push 0
push 0x674642
call fcn.004038a0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x407e05
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
jmp 0x407df9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407dbf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x407db8
push 0x100
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x407db8
push edi
call fcn.005e1c2a
push eax
lea eax, [ebp - 0x10]
push 0x67477c
push eax
call fcn.00407050
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00403750
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407e05
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402cb0
push 0x80004005
call fcn.00402cb0
int3

Function at 0x408340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00493700
Function at 0x419460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4194d6
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret

Function at 0x4197c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, edx
mov edi, ecx
push ebx
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x419904
lea eax, [ebp - 0x20c]
mov edx, str..htm
push eax
call fcn.00419460
add esp, 4
test eax, eax
jne 0x4198f2
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push eax
mov edx, eax
call fcn.00419460
add esp, 4
test eax, eax
jne 0x4198f2
push esi
lea eax, [ebp - 0x20c]
push str.__1_
push eax
call fcn.005e3031
mov esi, eax
add esp, 8
test esi, esi
jne 0x419887
lea eax, [ebp - 0x20c]
push 0x6754b0
push eax
call fcn.005e3031
mov esi, eax
add esp, 8
test esi, esi
jne 0x419887
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x20d]
jmp 0x41988a
mov byte [esi], 0
push 0x674748
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.005d7470
add esp, 0xc
mov word [ebp - 0x230], bx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
Function at 0x41b9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff6b0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x69ee98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov edx, dword [ebx]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 4], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 8], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0xc], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x10], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x14], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x18], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x1c], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x20], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x24], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x28], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x2c], eax
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41bbfc
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x30], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402cb0
int3