joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436233
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042e7af
and dword [ebp - 4], 0
cmp dword [0x45626c], 0
mov ebx, eax
jne 0x4362e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436395
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436395
push eax
call fcn.0042e73d
mov dword [esp], 0x443e00
push edi
mov dword [0x45626c], eax
call esi
push eax
call fcn.0042e73d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x456270], eax
call esi
push eax
call fcn.0042e73d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x456274], eax
call esi
push eax
call fcn.0042e73d
pop ecx
mov dword [0x45627c], eax
test eax, eax
je 0x4362e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e73d
pop ecx
mov dword [0x456278], eax
mov eax, dword [0x456278]
cmp eax, ebx
je 0x43633c
cmp dword [0x45627c], ebx
je 0x43633c
push eax
call fcn.0042e7b8
push dword [0x45627c]
mov esi, eax
call fcn.0042e7b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43633c
test edi, edi
je 0x43633c
call esi
test eax, eax
je 0x436333
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436333
test byte [ebp - 0xc], 1
jne 0x43633c
or dword [ebp + 0x10], 0x200000
jmp 0x436375
mov eax, dword [0x456270]
cmp eax, ebx
je 0x436375
push eax
call fcn.0042e7b8
pop ecx
test eax, eax
je 0x436375
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436375
mov eax, dword [0x456274]
cmp eax, ebx
je 0x436375
push eax
call fcn.0042e7b8
pop ecx
test eax, eax
je 0x436375
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45626c]
call fcn.0042e7b8
pop ecx
test eax, eax
je 0x436395
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436397
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492e52
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x401a8b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.00471be0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x401a6e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041dc20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041dc00
int3

Function at 0x401aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
movzx eax, cx
mov edi, edx
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401afa
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401afa
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401afa
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x401b03
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esi + 1]
test edx, edx
js 0x401b78
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x401b25
push edx
mov ecx, edi
call fcn.00411860
mov eax, dword [edi]
push esi
push dword [ebp - 4]
push eax
call fcn.00471db0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x401b51
mov eax, dword [edi]
test eax, eax
jne 0x401b43
xor esi, esi
jmp 0x401b55
push dword [eax - 8]
push eax
call fcn.00479ca0
add esp, 8
mov esi, eax
test esi, esi
js 0x401b78
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x401b78
mov dword [ecx - 0xc], esi
mov ecx, dword [edi]
push ebx
mov byte [esi + ecx], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041dc00
int3
Function at 0x40b200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x7a
mov esi, dword [edi]
movsx eax, byte [esi]
cmp eax, 0x7f
cmova eax, ebx
cmp byte [eax + 0x4aa0f0], 0
je 0x40b227
inc esi
jmp 0x40b212
mov dword [edi], esi
mov ecx, esi
mov dword [ebp - 4], ecx
nop
mov dl, byte [esi]
movsx eax, dl
cmp eax, 0x7f
cmova eax, ebx
cmp byte [eax + 0x4aa2f0], 0
je 0x40b3ae
cmp dl, 0x26
jne case.0x40b268.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x40b268.36
movzx eax, byte [eax + 0x40b3ec]
jmp dword [eax*4 + 0x40b3d4]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x40b293
cmp byte [esi + 3], 0x70
jne case.0x40b268.36
cmp byte [esi + 4], 0x3b
jne case.0x40b268.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x40b22b
cmp al, 0x70
jne case.0x40b268.36
cmp byte [esi + 3], 0x6f
jne case.0x40b268.36
cmp byte [esi + 4], 0x73
jne case.0x40b268.36
cmp byte [esi + 5], 0x3b
jne case.0x40b268.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x40b22b
cmp byte [esi + 2], 0x75
jne case.0x40b268.36
cmp byte [esi + 3], 0x6f
jne case.0x40b268.36
cmp byte [esi + 4], 0x74
jne case.0x40b268.36
cmp byte [esi + 5], 0x3b
jne case.0x40b268.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x40b22b
cmp byte [esi + 2], 0x74
jne case.0x40b268.36
cmp byte [esi + 3], 0x3b
jne case.0x40b268.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x40b22b
cmp byte [esi + 2], 0x74
jne case.0x40b268.36
cmp byte [esi + 3], 0x3b
jne case.0x40b268.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x40b22b
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x40b368
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x4aa3f0]
cmp al, 0xff
je 0x40b38f
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x4aa3f0]
cmp al, 0xff
jne 0x40b350
jmp 0x40b38f
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x4aa3f0]
cmp al, 0xff
je 0x40b38f
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x4aa3f0]
cmp al, 0xff
jne 0x40b378
lea ecx, [ebp - 4]
call fcn.0040ba50
cmp byte [esi], 0x3b
jne 0x40b3b9
mov ecx, dword [ebp - 4]
inc esi
jmp 0x40b230
mov byte [ecx], dl
inc ecx
inc esi
jmp 0x40b22b
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.expected__
lea ecx, [ebp - 0x18]
call fcn.00402090
push 0x4bfc34
mov eax, ecx
push eax
call fcn.00471d3a
xor eax, 0x6f0040b3
mov dl, 64
add cl, bh
mov dl, 0x40
add byte [ecx], bl
mov bl, 0x40
add ch, al
mov dl, 0x40
add byte [ebp + 0x40b3], ah
add eax, 0x5050505
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x40dbc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x32
push 0x4c7934
mov esi, ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40dc45
mov ecx, 0x4ab3c4
mov eax, 0x4c7934
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dc06
test dl, dl
je 0x40dc02
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dc06
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dbe6
xor eax, eax
jmp 0x40dc0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40dc45
mov ecx, 0x4c7934
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc28
sub ecx, edx
push ecx
push 0x4c7934
mov ecx, esi
call fcn.0041ccc0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc60
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.0041ccc0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4949f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0041d110
push 8
call fcn.0047a613
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4166a3
push 1
mov dword [ebp - 4], 1
call fcn.0045812a
mov dword [ebx + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 2
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 3
push eax
call fcn.0041bbc0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 4
test ebx, ebx
je 0x416670
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
test eax, eax
je 0x41666d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x41668d
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.0041d110
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 0xc
push 0x4bfe80
lea eax, [ebp + 0xb]
push eax
call fcn.00471d3a
int3
Function at 0x4166c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494a20
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047a613
mov edi, eax
add esp, 4
test edi, edi
je 0x416782
push 1
mov dword [ebp - 4], 0
call fcn.0045812a
mov dword [edi + 4], eax
lea ecx, [esi + 8]
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
add esp, 4
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4bfe80
lea eax, [ebp - 0xd]
push eax
call fcn.00471d3a
int3

Function at 0x4171d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4171fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41721d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41721f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4172be
jg 0x41723c
test esi, esi
je 0x4172be
test ecx, ecx
jl 0x417289
jg 0x417246
test eax, eax
je 0x417289
cmp ebx, ecx
jg 0x41725a
jl 0x417250
cmp esi, eax
jae 0x41725a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00471db0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x417290
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4172be
jg 0x41729a
test esi, esi
je 0x4172be
cmp dword [edi + 0x4c], 0
je 0x4172be
mov ecx, edi
call fcn.00417b30
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004786cc
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4172e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41730b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c620
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x41732d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41732f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4173b3
jg 0x417344
test esi, esi
je 0x4173b3
test ecx, ecx
jl 0x41738d
jg 0x41734e
test eax, eax
je 0x41738d
cmp edi, ecx
jg 0x417362
jl 0x417358
cmp esi, eax
jae 0x417362
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00471db0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x417390
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4173b3
jg 0x41739a
test esi, esi
je 0x4173b3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4173b3
push eax
push esi
push 1
push edx
call fcn.00477c52
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x417bb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x417bec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x417bec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x417cd1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x417c14
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x417c47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00477cd3
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x417cd1
cmp eax, 1
jle 0x417ca4
cmp eax, 3
jne 0x417cd1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00417b60
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x417cc1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00477c52
add esp, 0x10
cmp edi, eax
jne 0x417cd1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x417bd7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
Function at 0x417d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x417db1
cmp byte [esi + 0x3d], 0
je 0x417db1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x417d67
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x417d79
sub eax, 1
je 0x417d7d
sub eax, 2
je 0x417db1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x417d9a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00477c52
add esp, 0x10
cmp edi, eax
jne 0x417d67
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004591b7
mov esp, ebp
pop ebp
ret
Function at 0x41d870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d8c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d8c9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41d8b8
cmp esi, edx
jae 0x41d8c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41d8a6
cmp esi, edx
jae 0x41d8c9
cmp word [esi], 0
je 0x41d8c9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x41e3f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495318
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x4c206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x40
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x44
push 0
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.00471be0
add esp, 0xc
mov dword [ebp - 0x38], 1
test esi, esi
je 0x41e452
mov eax, 0xa
jmp 0x41e454
xor eax, eax
mov word [ebp - 0x34], ax
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x41e579
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00405db0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
add esp, 0x10
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x41e4e2
test edi, edi
je 0x41e4db
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41e4db
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41e4db
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e4f9
push eax
call edi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e50a
push eax
call edi
mov dword [ebp - 0x1c], 0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e528
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e546
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41e565
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041dc00
int3