joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ab8e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101ab924
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jge 0x101ab93a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x101ab90d
mov eax, dword [ebp - 0x1c]
mov dword [0x101b2778], 0x258e
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101ab9d4
mov dword [0x101b2774], 0x636
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101ab9d4
mov dword [0x101b2774], 0x3d46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101ab9d4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101ab9d4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101ab9d4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101ab9d4
mov eax, 1
mov ecx, 0x18d0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x101ab9e3
xor eax, eax
mov ecx, 0x1088
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x101ab9e3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x101b2774], eax
mov eax, ecx
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x101abbaa
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b2780], 0
mov byte [0x101b2784], 0
mov edi, dword [0x101b2774]
add edi, 0xfffff8e9
mov dword [0x101b2778], edi
mov dword [0x101b277c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101abcb9
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101b2788], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101b2780]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101b2788], esi
mov dword [0x101b2774], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101b2780], edx
mov dword [0x101b2778], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b2784], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101b2784]
mov esi, dword [0x101b2780]
mov byte [ebx + esi], cl
mov esi, dword [0x101b277c]
add esi, 1
mov dword [0x101b277c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101abbfc
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101b277c], 0
mov dword [ebp - 0x20], eax
jmp 0x101abbfc
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101b2774], 0x7c1
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b2778], 0x17ea
mov eax, dword [0x101b277c]
add eax, 1
mov dword [0x101b277c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101abcb9
jmp 0x101abca5
Function at 0x101ac099
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b2778], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101ac170
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov dword [0x101b2774], 0x2091
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.101aba01
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101b2774], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x28], ecx
mov dword [0x101b2778], 0x8aa
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0xc], ecx
add ecx, 0x1ec5
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x101ac167
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101ad33c]
mov dh, byte [eax + 0x101ad30d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x101ac170
lea eax, [ebp - 0x24]
mov dword [0x101b2778], 0x1a22
mov ecx, dword [0x101b2774]
add ecx, 0xffffefe3
mov dword [0x101b2774], ecx
mov dword [ebp - 0x44], eax
call fcn.101ab5d3
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.101ab1dc
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x101ac0c0
jmp 0x101ac0c8
Function at 0x101ac4f2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101b277c], 0
mov dword [0x101b2780], 0
mov dword [0x101b278c], 0
mov dword [0x101b2774], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x101ac569
mov eax, dword [ebp - 0x28]
mov dword [0x101b2774], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101b277c], edx
mov dword [0x101b2774], 0x3264
mov ebx, dword [ebp - 0x24]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101b2780], edx
mov ecx, dword [0x101b2778]
add ecx, 0xfffff82b
mov dword [0x101b2778], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101b2784], cl
mov dword [0x101b2774], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101b2778], 0x112a
mov cl, byte [0x101b2784]
mov edx, dword [0x101b2780]
mov byte [ebx + edx], cl
mov edx, dword [0x101b277c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101b2780]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101b2778], 0x55d
and ecx, 0xff
mov dword [0x101b278c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101b2774], 0x65f
mov dword [0x101b2778], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x101ac67b
mov eax, dword [0x101b277c]
mov ecx, dword [0x101b2780]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
jmp 0x101ac569
mov eax, dword [0x101b2774]
add eax, 0xe82
mov dword [ebp - 0x28], eax
jmp 0x101ac559
Function at 0x101ac68d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101b2774]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101b2778], esi
add edx, 0xffffe928
mov dword [0x101b2774], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101abdbf
lea ecx, [0x101abb3f]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], 0x141800
mov edx, dword [0x101b2760]
mov dword [esp + 0x48], edx
mov edx, dword [0x101b2764]
mov dword [esp + 0x68], edx
mov edx, dword [0x101b2768]
mov dword [esp + 0x84], edx
mov edx, dword [0x101b276c]
mov dword [esp + 0x7c], edx
mov dword [0x101b2774], 0x5bd
mov edx, dword [0x101b2770]
mov dword [esp + 0x4c], edx
mov dword [0x101b2778], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101ac763
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101ac099
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x101ac7d1
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x101ac786
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x101ac79a
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ac763
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x8c], edx
mov dword [0x101b2774], 0xe1c
call fcn.101ab8e0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x101ac737
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x401410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40142b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401462
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40145e
jmp 0x401450
cmp esi, eax
jae 0x401462
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401450
cmp esi, eax
jb 0x401469
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b068
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405e52
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push esi
call edi
cmp dword [ebp - 0x10], 4
je 0x405e76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405e16
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call edi
cmp dword [ebp - 0x10], 4
je 0x405e94
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405e16
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ec7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 4
Function at 0x406210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b0ec
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 0x10], 0xa
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], ecx
mov word [eax + 0x14], si
mov dword [ebp - 4], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov word [eax + 0x30], si
mov byte [ebp - 4], 1
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov word [eax + 0x4c], si
mov byte [ebp - 4], 2
mov dword [eax + 0x7c], edx
xor edx, edx
mov dword [eax + 0x78], ecx
mov word [eax + 0x68], dx
mov byte [ebp - 4], 3
mov dword [eax + 0x84], ecx
mov dword [eax + 0x88], ecx
mov byte [eax + 0x8c], cl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d98c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
xor ebx, ebx
push ebx
lea eax, [edi + 0x14]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.004068f0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
push ebx
lea eax, [edi + 0x30]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.004068f0
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
push ebx
lea eax, [edi + 0x4c]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.004068f0
mov byte [ebp - 4], 2
push 0xffffffffffffffff
lea ecx, [esi + 0x68]
push ebx
lea eax, [edi + 0x68]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.004068f0
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x84]
mov dword [esi + 0x84], ecx
mov edx, dword [edi + 0x88]
mov dword [esi + 0x88], edx
mov al, byte [edi + 0x8c]
mov byte [esi + 0x8c], al
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b160
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f8c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
push 6
push 0x53bdc0
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401ed0
mov ecx, dword [ebp + 8]
push 0x53bdf8
push ecx
call fcn.004f2ab3
mov edi, eax
add esp, 8
test edi, edi
je 0x41b264
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx + ecx]
jle 0x41b206
push ecx
lea ecx, [esi + 8]
call fcn.00401820
mov eax, dword [esi + 8]
push 0
push ebx
push eax
call fcn.004b4210
mov esi, dword [esi + 8]
push edi
push 1
push ebx
push esi
call fcn.004f297b
push edi
call fcn.004f27b0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b24e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b28a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
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
Function at 0x41dee0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f8c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
push 5
push 0x53c134
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401ed0
mov ecx, dword [ebp + 8]
push 0x53bdf8
push ecx
call fcn.004f2ab3
mov edi, eax
add esp, 8
test edi, edi
je 0x41dfe4
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx + ecx]
jle 0x41df86
push ecx
lea ecx, [esi + 8]
call fcn.00401820
mov eax, dword [esi + 8]
push 0
push ebx
push eax
call fcn.004b4210
mov esi, dword [esi + 8]
push edi
push 1
push ebx
push esi
call fcn.004f297b
push edi
call fcn.004f27b0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dfce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e00a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
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
Function at 0x41e6c0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f8c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
push 6
push 0x53c208
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401ed0
mov ecx, dword [ebp + 8]
push 0x53bdf8
push ecx
call fcn.004f2ab3
mov edi, eax
add esp, 8
test edi, edi
je 0x41e7c4
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx + ecx]
jle 0x41e766
push ecx
lea ecx, [esi + 8]
call fcn.00401820
mov eax, dword [esi + 8]
push 0
push ebx
push eax
call fcn.004b4210
mov esi, dword [esi + 8]
push edi
push 1
push ebx
push esi
call fcn.004f297b
push edi
call fcn.004f27b0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e7ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e7ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
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
Function at 0x420250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51feb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
test eax, eax
jne 0x420290
push 0x80004003
call fcn.004ef9b0
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jne 0x4203a4
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
je 0x4203a4
push eax
lea ecx, [ebp - 0x18]
call fcn.004050e0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4202de
cmp dword [esi + 4], 0
jne 0x4202d6
mov ecx, dword [esi]
push ecx
call fcn.004efbd0
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x10], edx
jmp 0x4202e5
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
jmp 0x4202f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4202f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
sub eax, edx
mov edi, eax
push edi
push 0
mov dword [ebp - 0x14], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push ecx
call fcn.0041eda0
add esp, 0x10
cmp byte [ebp + 0x10], 0
je 0x420339
mov edx, dword [ebp - 0x14]
push 0
push edx
push esi
call fcn.004b4210
add esp, 0xc
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x20]
push ecx
push edx
mov edi, eax
push esi
push edi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00406790
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4203a2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4203b7
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4203b7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4203dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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