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

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00411470
cmp dword [esp + 0x10], 0
jne 0x40b6ad
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40b6a5
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40b775
push ebx
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 8]
add dword [edi + 0x220], eax
adc dword [edi + 0x224], 0
test ecx, ecx
je 0x40b6e6
mov dword [ecx], eax
test ebx, ebx
jne 0x40b772
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00411470
mov ecx, dword [edi + 8]
mov ebp, 0x43eea8
push 1
push ebp
call fcn.00411349
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.00411b14
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00411740
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.00411740
add esp, 0x18
mov ecx, edi
call fcn.0040d9ef
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.0041157f
add esp, 0x10
mov ecx, edi
call fcn.0040d9ef
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004117db
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40b77a
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 8]
call fcn.00411470
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x18]
test eax, eax
push 0
cmovne ebx, eax
xor ecx, ecx
push ebx
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
sete cl
mov dword [esp + 0x20], eax
and dword [ebx], 0
push dword [esi + 0x21c]
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], 0
mov edi, eax
mov ebp, dword [ebx]
jbe 0x40b81d
test edi, edi
jne 0x40b81d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40b7ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40b81d
mov eax, dword [esp + 0x10]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x20]
add ecx, dword [ebx]
push 0
push ebx
push eax
push ecx
push dword [esi + 0x21c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebp, dword [ebx]
mov edi, eax
cmp dword [esp + 0x10], 0
jne 0x40b7cf
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x40b844
cmp dword [esp + 0x28], 0
jne 0x40b83d
cmp ebp, dword [esp + 0x24]
jne 0x40b844
mov eax, edi
jmp 0x40b901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.00411470
mov ecx, dword [esi + 8]
push 1
push 0x43eea8
call fcn.00411349
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x40b871
push 0
jmp 0x40b872
push ebx
call fcn.00411b14
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.00411740
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.00411740
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.00411740
mov ecx, dword [esi + 0x220]
mov eax, dword [esi + 0x224]
sub ecx, ebp
sbb eax, 0
push eax
push ecx
push str._IXStream__Offset__I64u_
push dword [esi + 8]
call fcn.00411740
add esp, 0x38
mov ecx, esi
call fcn.0040d9ef
push eax
push 0x6d63
push 0x43eea8
push dword [esi + 8]
call fcn.0041157f
add esp, 0x10
mov ecx, esi
call fcn.0040d9ef
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.004117db
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40bd80
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00411470
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40bda1
sub eax, 1
jne 0x40bdb4
push 2
jmp 0x40bda3
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
jne 0x40bdbb
xor eax, eax
jmp 0x40be43
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40be40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00411470
mov ecx, dword [edi + 8]
mov ebx, 0x43eea8
push 1
push ebx
call fcn.00411349
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.00411b14
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00411740
add esp, 0xc
mov ecx, edi
call fcn.0040d9ef
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.0041157f
add esp, 0x10
mov ecx, edi
call fcn.0040d9ef
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004117db
pop esi
xor eax, eax
pop ebx
jmp 0x40be43
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x40c30e
Capabilities:
Delete file

Disassembly:
mov eax, 0x43190a
call fcn.00431294
sub esp, 0x220
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x22c]
push edi
call fcn.0040b329
and dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
push 0
push esi
call fcn.0040e259
cmp dword [ebp - 0x20], 0
lea esi, [ebp - 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmovne esi, dword [ebp - 0x20]
push 0x8001
mov dword [ebp - 0x14], esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004050a5
xor ebx, ebx
inc ebx
test eax, eax
je 0x40c3b3
push ebx
mov edi, 0x43eea8
xor ecx, ecx
push edi
call fcn.00411349
mov esi, dword [ebp - 0x14]
push esi
push 0x6ddb
push edi
push 0
call fcn.00411561
add esp, 0x10
xor ecx, ecx
push esi
push ebx
call fcn.004117db
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x20]
call fcn.00406a78
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40c3d0
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x40c44e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c44e
push ecx
mov edx, ebp
lea ecx, [esp + 0x14]
call fcn.0040cba9
pop ecx
test eax, eax
je 0x40c44a
mov edx, dword [esp + 0x10]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040cca7
pop ecx
test eax, eax
je 0x40c44a
mov ecx, ebp
pop edi
pop esi
pop ebp
add esp, 8
jmp fcn.0040c30e
xor eax, eax
jmp 0x40c483
call fcn.004050a5
test eax, eax
je 0x40c481
push 1
mov edi, 0x43eea8
xor ecx, ecx
push edi
call fcn.00411349
push ebp
push 0x6ddb
push edi
push 0
call fcn.00411561
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004117db
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40c489
Capabilities:
Move file

Disassembly:
mov eax, 0x431931
call fcn.00431294
sub esp, 0x42c
push ebx
push esi
push edi
push 0x8001
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x438]
mov ebx, eax
call fcn.0040b329
and dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 0
push esi
call fcn.0040e259
cmp dword [ebp - 0x22c], 0
lea esi, [ebp - 0x438]
lea ecx, [ebp - 0x228]
cmovne esi, dword [ebp - 0x22c]
mov dword [ebp - 0x10], esi
call fcn.0040b329
push 0
push edi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0040e259
cmp dword [ebp - 0x1c], 0
lea edi, [ebp - 0x228]
cmovne edi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004050a5
test eax, eax
je 0x40c56e
push 1
mov ebx, 0x43eea8
xor ecx, ecx
push ebx
call fcn.00411349
mov esi, dword [ebp - 0x10]
push esi
push edi
push 0x6ddc
push ebx
push 0
call fcn.00411561
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004117db
push edi
push 2
xor ecx, ecx
call fcn.004117db
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
call fcn.00406a78
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
call fcn.00406a78
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40c5b4
Capabilities:
Copy file

Disassembly:
mov eax, 0x431931
call fcn.00431294
sub esp, 0x42c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x8001
mov dword [ebp - 0x14], esi
call ebx
lea ecx, [ebp - 0x438]
mov edi, eax
call fcn.0040b329
and dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 0
push esi
call fcn.0040e259
lea ecx, [ebp - 0x228]
call fcn.0040b329
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0040e259
cmp dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x228]
push 0
cmovne ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x22c], 0
push ecx
cmovne eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004050a5
test eax, eax
je 0x40c6a8
push 1
mov edi, 0x43eea8
xor ecx, ecx
push edi
call fcn.00411349
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
push esi
push ebx
push 0x6ddd
push edi
push 0
call fcn.00411561
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004117db
push ebx
push 2
xor ecx, ecx
call fcn.004117db
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
call fcn.00406a78
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
call fcn.00406a78
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c815
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, esi
push 0x3a
mov edi, dword [esi + 0x20c]
test edi, edi
pop ecx
cmovne eax, edi
cmp cx, word [eax + edx*2 - 2]
jne 0x40c842
cmp byte [esp + 0x24], 0
je 0x40c8c5
jmp 0x40c880
test edi, edi
mov ecx, esi
cmovne ecx, edi
dec edx
push ecx
call fcn.0040ee4d
pop ecx
mov ebx, eax
mov byte [esp + 0x13], 0
push 0x5c
pop ebp
test ebx, ebx
je 0x40c8a2
test edi, edi
mov eax, esi
cmovne eax, edi
add eax, 2
cmp eax, ebx
jne 0x40c894
test edi, edi
mov eax, esi
cmovne eax, edi
cmp word [eax], bp
jne 0x40c894
cmp byte [esp + 0x24], 0
je 0x40c88f
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40c920
mov byte [esp + 0x13], 1
test edi, edi
mov eax, esi
cmovne eax, edi
xor ecx, ecx
cmp eax, ebx
cmove ebx, ecx
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c8be
mov ecx, eax
call fcn.0040c928
jmp 0x40c920
cmp byte [esp + 0x13], 0
je 0x40c8ca
xor eax, eax
inc eax
jmp 0x40c920
test ebx, ebx
je 0x40c8f7
xor eax, eax
mov ecx, esi
mov word [ebx], ax
mov edx, ebx
mov eax, dword [esi + 0x20c]
test eax, eax
push 0
cmovne ecx, eax
sub edx, ecx
mov ecx, esi
sar edx, 1
call fcn.0040c815
pop ecx
test eax, eax
je 0x40c888
mov word [ebx], bp
mov eax, dword [esi + 0x20c]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x14], 0xc
cmovne esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40cbc5
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x43190a
call fcn.00431294
sub esp, 0x220
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
push edi
lea ecx, [ebp - 0x22c]
call fcn.0040b329
and dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
push 0
push esi
call fcn.0040e259
cmp dword [ebp - 0x20], 0
lea esi, [ebp - 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmovne esi, dword [ebp - 0x20]
push 0x8001
mov dword [ebp - 0x18], esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004050a5
test eax, eax
je 0x40cc7c
push 1
mov edi, 0x43eea8
xor ecx, ecx
push edi
call fcn.00411349
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push esi
push dword [eax]
push 0x6de2
push edi
push 0
call fcn.00411561
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004117db
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax], 0xffffffff
setne bl
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
call fcn.00406a78
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40cca7
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004050a5
test eax, eax
je 0x40cd1a
push 1
mov esi, 0x43eea8
xor ecx, ecx
push esi
call fcn.00411349
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00411561
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004117db
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40cd24
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x431985
call fcn.00431294
sub esp, 0x468
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], eax
push edi
xor edi, edi
mov esi, ecx
push 0x8001
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x10], eax
call fcn.0040b329
push edi
push esi
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], edi
call fcn.0040e259
cmp dword [ebp - 0x18], edi
lea esi, [ebp - 0x224]
cmovne esi, dword [ebp - 0x18]
call fcn.004135c3
test eax, eax
lea eax, [ebp - 0x474]
je 0x40cd9b
push edi
push edi
push edi
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40cda3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx], 0xffffffff
jne 0x40cdf7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40cdce
call esi
call fcn.004050a5
test eax, eax
je 0x40ce21
push 1
mov esi, 0x43eea8
xor ecx, ecx
push esi
call fcn.00411349
push 0x6de7
push esi
push edi
call fcn.00411561
add esp, 0xc
jmp 0x40ce21
mov edx, ebx
lea ecx, [ebp - 0x474]
call fcn.0040cf75
mov ecx, ebx
test eax, eax
jne 0x40ce13
call fcn.0040ce41
mov edi, eax
jmp 0x40ce21
lea edx, [ebp - 0x474]
call fcn.0040d2bd
xor edi, edi
inc edi
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
call fcn.00406a78
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40cfd0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x40d033
call fcn.004050a5
test eax, eax
je 0x40d03b
push 1
mov esi, 0x43eea8
xor ecx, ecx
push esi
call fcn.00411349
push 0x6de5
push esi
push ebp
call fcn.00411561
add esp, 0xc
jmp 0x40d03b
cmp ebp, 0x104
jbe 0x40d03f
xor eax, eax
jmp 0x40d042
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40d046
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.004050a5
test eax, eax
je 0x40d0bb
push 1
mov esi, 0x43eea8
xor ecx, ecx
push esi
call fcn.00411349
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00411561
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40de39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov eax, esi
mov edi, ecx
shr eax, 4
movzx eax, ax
push 6
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dece
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dece
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
and esi, 0xf
jbe 0x40de7f
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40de71
mov ebx, dword [esp + 0x10]
movzx edi, word [ecx]
test ebx, ebx
jne 0x40de8e
mov eax, edi
jmp 0x40ded0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40de9d
lea eax, [ecx + 2]
mov dword [ebx], eax
jmp 0x40de8a
lea eax, [edx - 1]
cmp eax, edi
cmovge eax, edi
mov edi, eax
test edi, edi
jle 0x40dec4
lea esi, [edi + edi]
push esi
lea eax, [ecx + 2]
push eax
push ebx
call fcn.0041ace0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40de8a
cmp edx, 1
jle 0x40de8a
xor eax, eax
mov word [ebx], ax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4105c4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x4105e3
or eax, 0xffffffff
jmp 0x4106c7
jbe 0x4105ed
xor eax, eax
inc eax
jmp 0x4106c7
movzx edx, word [edi + 4]
push ebp
cmp edx, 6
ja 0x41067c
movzx ecx, word [esi + 6]
movzx eax, word [esi + 4]
mov ebp, ecx
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x41065d
movzx ecx, word [esi]
test cl, 3
jne 0x41065d
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x410658
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x41065d
push 0xc
pop ecx
jmp 0x41065f
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43ebbc]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x410684
movzx edx, word [edi + 6]
movzx ebp, word [esi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4135ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
mov esi, edx
mov dword [ebp - 0x38], 0x440
push edi
mov edi, ecx
cmp dword [ebp + 0x28], ebx
je 0x4135f5
mov dword [ebp - 0x34], ebx
jmp 0x4135fe
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [ebp - 0x2c], edi
cmp dword [ebp + 0x30], ecx
mov eax, 0x4415d0
xorps xmm0, xmm0
mov dword [ebp - 0x28], esi
cmove eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41364d
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret
Function at 0x41364f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.0041b260
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x2c], di
call fcn.0041b260
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.004135b9
test eax, eax
je 0x4136bb
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.004135ce
add esp, 0x2c
jmp 0x413760
push esi
call fcn.00420839
push ebx
mov esi, eax
call fcn.00420839
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.00430f20
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.004206c4
push 0x43dfa8
push esi
call fcn.004206e6
push ebx
push esi
call fcn.004206e6
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x413714
cmp word [esi], bx
je 0x413714
push esi
call fcn.00420839
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00430f20
mov edi, esp
test esi, esi
je 0x41372d
push esi
push edi
call fcn.004206c4
pop ecx
pop ecx
jmp 0x413732
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x413760
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x3c
push ebp
push edi
push 0x1c
lea eax, [esp + 0x10]
mov ebp, edx
push 0
push eax
mov edi, ecx
call fcn.0041b260
add esp, 0xc
lea eax, [esp + 0xc]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [esp + 0x20], 0x40
je 0x41402c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0xc]
dec edi
add eax, dword [esp + 0x18]
add edi, ebp
cmp eax, edi
jae 0x414077
push 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0041b260
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x3c]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebp
add esp, 0x3c
ret