joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40259a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00402ec3
mov dword [ebp - 4], eax
test eax, eax
je 0x402614
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x402608
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x4025f8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402611
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00402ec3
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4026cb
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4026c5
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x402689
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00402ec3
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402766
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x40275f
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x402736
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], 0x3219
xor dword [ebp - 4], 0xbbb63f5b
or dword [ebp - 4], 0xd6aa8814
shl dword [ebp - 4], 0xf
add dword [ebp - 4], 0xffff2acf
shr dword [ebp - 4], 0xb
shr dword [ebp - 4], 0xa
shr dword [ebp - 4], 6
xor dword [ebp - 4], 8
mov dword [ebp - 8], 0xe424
add dword [ebp - 8], 0xfffffe2f
or dword [ebp - 8], 0xc50301cb
xor dword [ebp - 8], 0xc503e3dd
mov dword [ebp - 8], 0x18f4
shl dword [ebp - 8], 0xa
xor dword [ebp - 8], 0xb6a9493c
add dword [ebp - 8], 0xffff2c81
imul eax, dword [ebp - 8], 0x59
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
xor dword [ebp - 8], 0x8c25bea5
cmp byte [ebx], 0
je 0x402b8f
push esi
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 0xe424
add dword [ebp - 8], 0xfffffe2f
or dword [ebp - 8], 0xc50301cb
xor dword [ebp - 8], 0xc503e3dd
mov cl, byte [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0x18f4
shl dword [ebp - 8], 0xa
xor dword [ebp - 8], 0xb6a9493c
add dword [ebp - 8], 0xffff2c81
imul eax, dword [ebp - 8], 0x59
shl esi, cl
mov dword [ebp - 8], eax
xor dword [ebp - 8], 0x8c25bea5
mov cl, byte [ebp - 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0x402b22
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402cb5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402d41
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402aa0
xor eax, 0x2639b496
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402d18
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402cf3
jmp 0x402d41
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402d41
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402d41
mov ecx, esi
call fcn.00402d81
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d4a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402d72
mov ecx, dword [esi + 0x30]
call fcn.00402b97
xor eax, 0x42e9ee48
cmp eax, ebx
je 0x402d7c
mov esi, dword [esi]
cmp esi, edi
jne 0x402d5f
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402d78

Function at 0x402f24
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], eax
push edi
cmp edx, 0x40
jb 0x40301e
call fcn.00403025
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40301e
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x1fe812dc
mov ecx, 0xcd97083a
push 0
push 0x5b
call fcn.00402e0d
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x403019
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402e9f
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x402fe2
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402e9f
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x402fbd
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.00403103
mov edx, edi
mov ecx, esi
call fcn.0040304e
pop ebx
test eax, eax
jne 0x403019
push 0x8000
push eax
push esi
push 0xc2
mov edx, 0xdccb6bc1
mov ecx, 0xcd97083a
call fcn.00402e0d
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
jmp 0x403020
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403025
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x403032
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40302f
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x8a900fb
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x43b9035d
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x407180
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 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x477880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x475015
lea edi, [esi - 0x74015]
push edi
or ebp, 0xffffffff
jmp 0x4778a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4778a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477898
mov eax, 1
add ebx, ebx
jne 0x4778bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4778b0
jne 0x4778cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778b0
xor ecx, ecx
sub eax, 3
jb 0x4778e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477952
mov ebp, eax
add ebx, ebx
jne 0x4778eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4778f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47791c
inc ecx
add ebx, ebx
jne 0x477908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4778fd
jne 0x477919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47793c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47792d
jmp 0x47789e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47793c
add edi, ecx
jmp 0x47789e
pop esi
mov edi, esi
mov ecx, 0x25e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47795a
cmp byte [edi], 2
jne 0x47795a
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 eax, ebx
loop 0x47795f
lea edi, [esi + 0x75000]
mov eax, dword [edi]
or eax, eax
je 0x4779ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x770c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47798c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x770cc]
or eax, eax
je 0x4779c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4779a9
call dword [esi + 0x770d0]
popal
jmp 0x4011cb
Function at 0x401000
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401059
push ebx
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0xffffffe6
cmp eax, 0xf85
ja 0x40104a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret

Function at 0x401110
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebx
cmp eax, 0x19
jl 0x401177
push esi
push dword [ebp + 8]
call ebx
imul eax, eax, 3
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push dword [ebp + 8]
call ebx
inc eax
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop ebp
ret

Function at 0x40117a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x4019b2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40119f

Function at 0x4011d3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push 0x401a2d
push ecx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
leave
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x687d6846
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section._RDATA
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x382119f6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
or dword [0x758b5c78], 0xffffffa4
push esi
lea eax, [ebp - 9]
push 0x78
push eax
push esi
cmp ebx, dword [ebx + 0x68]
add byte [eax], al
mov ecx, dword [ebp - 0x35]
or dword [0x2040c0c8], edx
push eax
push ecx
add edx, 0x40
push 0x4059ac
invalid

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0xbd91d4b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x57c40634
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4011c0
Capabilities:
Create directory
Get thread local storage value
Set file attributes

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
xor ebx, ebx
sub eax, 2
push edi
mov edi, ecx
je 0x4012b9
sub eax, 1
jne 0x40134a
add edi, 0x118
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00438a52
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [0x468b90]
mov edi, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000100
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40129c
movzx eax, word [esi + 0x1a]
movzx ecx, word [esi + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x401295
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x401295
lea ecx, [esp + 8]
push ecx
push ebx
mov edx, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esi + 0x1c]
and eax, 0x27
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x40134c
mov edx, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [edx + 0x14]
push eax
call edx
test al, al
je 0x401343
lea eax, [edi + 0x118]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.00438a52
mov edx, dword [esi + 4]
add esp, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x120]
push 0x104
push edx
call fcn.00438a52
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea ecx, [esp + 0x120]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x180
lea edx, [esp + 0x1c]
push 0x8121
push edx
call fcn.004379d9
add esp, 0xc
mov ebx, eax
add dword [edi + 0x21c], 1
mov eax, ebx
mov ecx, dword [esp + 0x220]
pop edi
pop ebx
xor ecx, esp
call fcn.0043782a
add esp, 0x21c
ret 4
Function at 0x401630
Capabilities:
Extract resource via kernel32 functions
Get thread local storage value

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x4b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401731
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401731
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [esi + 0x224], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [esi + 8]
push edi
push 0xffffffffffffffff
push 0x4010e0
push 0x4010c0
push 0x401090
push 0x401060
push 0x401030
push 0x401020
push 0x401010
mov dword [esi + 0x228], eax
call sub.Cabinet.dll_FDICreate
add esp, 0x24
test eax, eax
mov dword [esi + 4], eax
je 0x401721
mov eax, dword [0x468b90]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
mov edx, dword [eax]
push 0
push 0x8020
mov ecx, eax
mov eax, dword [edx]
push 0
call eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
push edi
push edx
call sub.Cabinet.dll_FDIIsCabinet
movzx eax, word [esp + 0x1e]
mov ecx, dword [0x468b90]
add esp, 0xc
push ecx
mov dword [esi + 0x220], eax
call ebx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00401370
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
mov eax, dword [edi]
pop edi
pop esi
add eax, 0xb000
pop ebx
add esp, 0x18
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x4037f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44f9ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00436db4
push 4
mov dword [esp + 0x20], 0
call fcn.00439077
mov edi, eax
add esp, 4
test edi, edi
je 0x403870
call fcn.0043701a
mov dword [edi], eax
call fcn.00436e4e
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004375f9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403865
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0043761a
jmp 0x403872
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4105f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4502b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004040b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410644
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00403fe0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004040b0
cmp dword [esp + 0x24], 8
jb 0x41068a
mov eax, dword [esp + 0x10]
push eax
call fcn.00439059
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x412e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452e1e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00422d80
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
call fcn.004047e0
mov dword [esi + 0x10], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x10]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x10]
mov dword [eax], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], ebx
mov word [esi + 0x1c], bx
mov byte [esp + 0x14], 2
call fcn.004242d0
mov dword [esi + 0x44], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x44]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x44]
mov dword [eax], eax
mov eax, dword [esi + 0x44]
mov dword [eax + 8], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x3e], 1
mov byte [esi + 0x3c], bl
mov dword [esi + 0x38], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4