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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1001cf64], 0x2b8
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, ecx, 0x90
mov edi, edx
add edi, esi
add edi, 0x8c
imul esi, ecx, 0x90
add edx, esi
add edx, 0x54
add ecx, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, eax
cmp ecx, 0x28d
mov eax, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10002731
lea eax, [0x1000523b]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x1001cf64], 0x187f
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.10001d04
mov dword [0x1001cf64], 0xb6a
call fcn.10002e3a
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.10001f0d
mov ecx, eax
mov dword [0x1001cf84], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x1001cf64]
add edx, 0x5b1
mov dword [0x1001cf68], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x90
mov edi, edx
add edi, esi
add edi, 0x8c
mov esi, dword [edi]
imul edi, eax, 0x90
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x90
add edx, ebx
add edx, 0x54
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.10003370
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x28d
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x1000283b
lea eax, [0x10005249]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1001cf64], 0xf62
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10002f97
mov dword [0x1001cf68], 0x218a
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10002b8c
xor eax, eax
mov dword [0x1001cf64], 0x22f7
mov ecx, dword [ebp - 0x148]
add ecx, 0x542ad
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x117e00
mov ecx, dword [ebp - 0x148]
add ecx, 0x3fcc
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f70
mov dword [0x1001cf68], 0x1607
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100029f5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x1001cf68], 0x103f
call fcn.1000108b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x10002b82
lea eax, [esp + 0x38]
mov dword [0x1001cf64], 0x20bd
mov dword [0x1001cf68], 0x1999
mov dword [esp + 0x20], eax
call fcn.100022f5
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x10002b7a
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.10002702
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x84], edx
add ecx, 0x30
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea eax, [0x1000256a]
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0x117e00
mov edx, dword [0x1001cf50]
mov dword [esp + 0x44], edx
mov edx, dword [0x1001cf54]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1001cf58]
mov dword [esp + 0x48], edx
mov edx, dword [0x1001cf5c]
mov dword [esp + 0x4c], edx
mov dword [0x1001cf68], 0x18fe
mov edx, dword [0x1001cf60]
mov dword [esp + 0x88], edx
mov dword [0x1001cf64], 0xec1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x10002afd
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x10002b11
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x10], eax
jmp 0x10002ada
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 8]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x40], esi
mov dword [0x1001cf64], 0x2870
mov dword [0x1001cf68], 0x604
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.100025d5
mov dword [0x1001cf68], 0xe81
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x1001cf64], 0x216c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10002b8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1001cf6c], 0
mov dword [0x1001cf70], 0
mov dword [0x1001cf7c], 0
mov ebx, dword [0x1001cf68]
mov dword [ebp - 0x10], eax
mov eax, ebx
add eax, 0x2109
mov dword [0x1001cf64], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
je 0x10002d6e
jmp 0x10002c21
mov eax, dword [0x1001cf6c]
mov ecx, dword [0x1001cf70]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 1
add esi, 0xffffe410
mov ebx, edx
add ebx, 1
mov dword [0x1001cf68], esi
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov dword [ebp - 0x40], edx
cdq
idiv edi
mov dword [0x1001cf6c], edx
mov dword [0x1001cf64], 0x1d0b
mov ecx, dword [ebp - 0x28]
movzx esi, byte [ecx + edx]
mov ecx, dword [ebp - 0x3c]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x44], edx
cdq
idiv edi
mov dword [0x1001cf70], edx
mov dword [0x1001cf64], 0x6e1
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x44]
mov cl, byte [ecx + esi]
mov byte [0x1001cf74], cl
mov dword [0x1001cf64], 0x20dc
mov edi, dword [ebp - 0x28]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1001cf68], 0x1432
mov cl, byte [0x1001cf74]
mov edx, dword [0x1001cf70]
mov byte [edi + edx], cl
mov dword [0x1001cf64], 0x1c97
mov edx, dword [0x1001cf6c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x1001cf70]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1001cf7c], ecx
mov dword [0x1001cf64], 0x1f96
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x40]
mov ch, byte [edx + esi]
mov edx, dword [0x1001cf68]
mov byte [ebp - 0x45], cl
add cl, byte [0x1001cf81]
mov byte [0x1001cf80], cl
mov byte [0x1001cf81], ch
mov cl, byte [ebp - 0x45]
mov byte [0x1001cf82], cl
xor ch, cl
add edx, 0x1655
mov dword [0x1001cf64], edx
mov edx, dword [ebp - 0x24]
mov byte [edx + esi], ch
mov edx, dword [0x1001cf64]
add edx, 0xfffff287
mov dword [0x1001cf64], edx
mov edx, dword [0x1001cf68]
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov esi, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jne 0x10002c04
mov eax, dword [ebp - 0x30]
add eax, 0xffffe688
mov dword [0x1001cf64], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002f97
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1001cf70], 0
mov byte [0x1001cf74], 0
mov edi, dword [0x1001cf68]
add edi, 0xffffec05
mov dword [0x1001cf68], edi
mov dword [0x1001cf64], 0x1b2c
mov dword [0x1001cf6c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1001cf64]
add eax, 0xffffffd9
mov dword [0x1001cf64], eax
mov eax, dword [0x1001cf6c]
add eax, 1
mov dword [0x1001cf6c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10002fee
xor eax, eax
mov dword [0x1001cf64], 0x111f
mov dword [0x1001cf6c], 0
mov ecx, dword [0x1001cf68]
add ecx, 0xad6
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x2789
mov esi, 0x100
mov dword [0x1001cf78], 0
mov edi, dword [0x1001cf70]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x1001cf78], ebx
mov eax, ebx
cdq
idiv esi
mov dword [0x1001cf70], edx
mov dword [0x1001cf64], ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x1001cf74], cl
mov dword [0x1001cf64], 0xde8
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x1001cf64], 0x246f
mov cl, byte [0x1001cf74]
mov edx, dword [0x1001cf70]
mov byte [ebx + edx], cl
mov edx, dword [0x1001cf64]
add edx, 0xffffe7c0
mov dword [0x1001cf64], edx
mov dword [0x1001cf68], 0x1cb3
mov edx, dword [0x1001cf6c]
add edx, 1
mov dword [0x1001cf6c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x1000304b
mov dword [0x1001cf68], 0x504
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401716
Capabilities:
Parse pe header

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

Function at 0x409a34
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x409a7f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00409bcd
test al, al
jne 0x409a79
sub edx, 2
cmp edx, edi
jne 0x409a5f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x409aa1
lea eax, [edi + 2]
cmp edx, eax
je 0x409aa1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00409980
add esp, 0x10
jmp 0x409b99
push esi
lea ecx, [ebp - 0x255]
call fcn.00409bcd
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409ae2
push dword [ebp - 0x25c]
jmp 0x409a91
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x409b1f
cmp word [ebp - 0x226], 0
je 0x409b40
cmp word [ebp - 0x226], ax
jne 0x409b1f
cmp word [ebp - 0x224], 0
je 0x409b40
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00409980
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x409b8c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x409af9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x409b74
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x409b99
push 0x4097b0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040e5b0
add esp, 0x10
jmp 0x409b69
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b9e
leave
ret

Function at 0x40a6d3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40a6e4
pop esi
ret
push ebx
push edi
push esi
call fcn.0040a69c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00407d70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a70c
push ebx
push esi
push edi
call fcn.00402b20
add esp, 0xc
push 0
call fcn.00407d20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40aadb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040a721
Function at 0x412910
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41293d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41293d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x413dc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x18]
sub ebx, esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0xc
add eax, dword [esp + 0x20]
push ebp
adc edi, dword [esp + 0x28]
push edx
push ebp
push edx
mov dword [esp + 0x24], eax
call fcn.00412aa0
add eax, dword [esp + 0x14]
lea esi, [esi + 2]
mov cx, word [esi + ebx - 2]
adc edx, edi
xor ebp, ebp
xor cx, dx
or ebp, eax
sub dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
mov word [esi - 2], cx
jne 0x413de7
mov edi, dword [esp + 0x1c]
xor eax, eax
mov word [edi + 0x18], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x415510
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
add eax, 0x14
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [eax]
cmp ebx, eax
je 0x4155ba
nop
mov ebp, dword [ebx + 0x28]
mov esi, 0x76028531
movzx eax, word [ebp]
push eax
call fcn.00404136
movzx edx, ax
add esp, 4
test edx, edx
je 0x4155ae
nop dword [eax]
lea eax, [edx + esi]
mov ecx, 0xc0226212
imul eax, eax, 0x6e8a982e
lea ebp, [ebp + 2]
sub ecx, eax
ror ecx, 0x11
lea eax, [ecx - 0x6e8a982e]
add eax, esi
lea esi, [edx*2 + 0x19]
mov ecx, eax
shl eax, 0x10
shr ecx, 0x10
or ecx, eax
movzx eax, word [ebp]
imul esi, ecx
push eax
lea edi, [ecx*2 + 0x47]
imul edi, edx
ror esi, 0xe
ror edi, 0xf
call fcn.00404136
movzx edx, ax
add esp, 4
test edx, edx
jne 0x415550
cmp edi, 0x6c887ed8
je 0x4155c2
mov ebx, dword [ebx]
cmp ebx, dword [esp + 0x10]
jne 0x415530
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x415e70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push str.loadFileW12_n_n_n
mov edi, ecx
mov dword [esp + 0x18], edx
push 0x100000
push 0x420410
mov dword [esp + 0x1c], edi
call fcn.00401010
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x420408
push esi
push 0x420410
push eax
call ebp
mov esi, dword [esp + 0x1c]
push 0
push 1
push 3
mov eax, dword [esi + 0x10]
push 0
push 1
push 0x80000000
push edi
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x415f21
push dword [esp + 0x10]
push str.loadFileW:_CreateFileW__S__failed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0x10
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebx
push 0
push 0x420408
push esi
push 0x420410
push eax
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x54]
push 0
push edi
call eax
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x415f76
push str.loadFileW:_GetFileSize_failed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebx
push 0
push 0x420408
push esi
push 0x420410
push eax
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
mov eax, dword [esi + 0x44]
push 8
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x415fcf
push str.loadFileW:_HeapAlloc_failed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebx
push 0
push 0x420408
push esi
push 0x420410
push eax
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [eax + 0x58]
push esi
push edi
call eax
test eax, eax
jne 0x41602c
push str.loadFileW:_ReadFile_failed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebx
push 0
push 0x420408
push esi
push 0x420410
push eax
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x416190
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00415510
mov esi, eax
test esi, esi
jne 0x4161e8
push str.kernel32
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0xfffffff1
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x338303e3
mov edx, edi
mov ecx, esi
call fcn.00416050
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x416242
push str.LoadLibraryW
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x2b9285c5
mov edx, edi
mov ecx, esi
call fcn.00416050
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
jne 0x41629d
push str.RegOpenKeyExA
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
ret
push 0xd9bf7a42
mov edx, edi
mov ecx, esi
call fcn.00416050
add esp, 4
mov dword [ebx + 8], eax
test eax, eax
jne 0x4162f8
push str.RegEnumKeyExA
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x396a1994
mov edx, edi
mov ecx, esi
call fcn.00416050
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x416353
push str.RegCloseKey
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x3bf2994c
mov edx, edi
mov ecx, esi
call fcn.00416050
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x4163ae
push str.RegEnumValueA
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x416790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x400
push 0
push eax
mov ebp, ecx
call fcn.004020a0
add esp, 0xc
push str.generateTempFileName_n
push 0x100000
push 0x420410
call fcn.00401010
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call edi
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0x200
call eax
mov ebx, eax
test ebx, ebx
jne 0x416846
push str.GetTempPathW_failed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call edi
push 0
push 0x420408
push esi
push 0x420410
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
lea eax, [ebx*2 + 0x14]
push eax
mov eax, dword [ebp + 0x44]
push 8
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x41688c
push str.loaderHeapAllocFailed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call eax
jmp 0x416824
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
push edi
push 0
push 0x41d5e4
push ecx
call eax
mov esi, eax
test esi, esi
jne 0x4168fc
push str.GetTempPathNameW_failed_n
push 0x100000
push 0x420410
call fcn.00401010
add esp, 0xc
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call eax
push 0
push 0x420408
push esi
push 0x420410
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
mov eax, dword [ebp + 0x44]
mov esi, dword [ebp + 0x40]
push edi
push 8
call eax
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
mov eax, dword [ebp + 0xc]
push edi
call eax
cmp esi, 0x1000
jae 0x416923
mov eax, 0x2e
mov dword [edi + ebx*2], 0x690066
mov dword [edi + ebx*2 + 4], 0x65006c
mov word [edi + ebx*2 + 8], ax
push edi
push str.tempFile:__S_n
push 0x100000
push 0x420410
call fcn.00401010
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0x10
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebp
push 0
push 0x420408
push esi
push 0x420410
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
push edi
push str.tempFile:__S_n
push 0x100000
push 0x420410
mov dword [edi + ebx*2 + 0xa], 0x640070
mov dword [edi + ebx*2 + 0xe], 0x66
call fcn.00401010
add esp, 0x10
mov esi, eax
mov dword [0x42040c], esi
push 0xfffffffffffffff5
call ebp
push 0
push 0x420408
push esi
push 0x420410
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret