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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3d08
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402ca0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401ca0
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402013
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.0045458d
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x402062
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x4f4b21], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x40210d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020db
cmp dword [ebp - 0x7c], 2
jne 0x4020db
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x4f4b21], al
jmp 0x4020e0
mov al, byte [0x4f4b21]
test al, al
jne 0x402101
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x4f4b21], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x402148
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402148
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0045458d
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x402176
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004535b3
mov esp, ebp
pop ebp
ret
Function at 0x408180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b420b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x805c
call fcn.004558f0
mov eax, dword [0x4ed8d0]
xor eax, esp
mov dword [esp + 0x8058], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed8d0]
xor eax, esp
push eax
lea eax, [esp + 0x8070]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x8078], 0
test eax, eax
jne 0x4081fc
lea edi, [eax + 0x57]
jmp 0x40836f
mov edx, dword [ecx]
sub esp, 0x18
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.0040a7d0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40836f
mov eax, dword [esp + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40823e
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x408367
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [ebx], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x4000
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408338
call ebx
cmp eax, 0x26
jne 0x40834d
call ebx
cmp eax, 0x103
je 0x40834d
xor ebx, ebx
lea eax, [esp + 0x64]
mov dword [esp + 0x2c], eax
jmp 0x4082c0
lea eax, [esp + 0x4064]
mov edx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0x4000
mov dword [esp + 0x38], eax
call fcn.0040ad50
cmp eax, 0xfffffffe
je 0x4083a8
mov eax, dword [esp + 0x20]
mov edi, 0x4000
push dword [eax + 4]
sub edi, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x4070]
push eax
mov dword [esp + 0x24], 0
call dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add dword [edx], ecx
test eax, eax
je 0x40835e
cmp ecx, edi
jne 0x40835e
cmp dword [esp + 0x3c], 0
je 0x4082c0
cmp ebx, 4
je 0x408351
mov eax, dword [esp + 0x1c]
jmp 0x408270
cmp dword [esp + 0x30], 0
jne 0x4082ae
mov ebx, 4
jmp 0x4082b0
call ebx
jmp 0x40836d
lea ecx, [esp + 0x2c]
call fcn.0040b560
xor edi, edi
jmp 0x40836f
lea ecx, [esp + 0x2c]
call fcn.0040b560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x408380
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408380
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x8070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8058]
xor ecx, esp
call fcn.004535b3
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xfffffffe
jmp 0x40836f
Function at 0x4083b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b427b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8054
call fcn.004558f0
mov eax, dword [0x4ed8d0]
xor eax, esp
mov dword [esp + 0x8050], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed8d0]
xor eax, esp
push eax
lea eax, [esp + 0x8068]
mov dword fs:[0], eax
mov dword [esp + 0x50], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [esp + 0x58], eax
xor edi, edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x8070], edi
test eax, eax
jne 0x40841f
lea eax, [edi + 0x57]
jmp 0x4085c3
sub esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call fcn.00408bb0
add esp, 8
test eax, eax
jne 0x4085c3
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x408469
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4085bd
mov esi, eax
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x50]
push dword [eax + 4]
lea eax, [esp + 0x20]
push eax
push 0x4000
lea eax, [esp + 0x68]
push eax
call dword [esp + 0x68]
test eax, eax
je 0x4085b4
cmp dword [esp + 0x1c], 0
je 0x408546
lea eax, [esp + 0x5c]
mov dword [esp + 0x18], eax
lea ebx, [ebx]
lea eax, [esp + 0x405c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x4000
mov dword [esp + 0x24], eax
call fcn.00408d60
mov edi, eax
cmp edi, 2
je 0x4085ad
cmp edi, 0xfffffffb
jbe 0x408501
cmp edi, 0xfffffffd
jbe 0x408570
push 0
mov ebx, 0x4000
sub ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x4068]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408568
cmp dword [esp + 0x14], ebx
jne 0x408563
cmp dword [esp + 0x28], 0
je 0x4084d0
cmp edi, 1
jne 0x408495
lea ecx, [esp + 0x18]
call fcn.0040a370
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffd
jmp 0x4085c5
or edi, 0xffffffff
jmp 0x408570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4085c5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4085c5
mov edx, dword [eax + 0x34]
test edx, edx
je 0x408599
push edx
push dword [esp + 0x44]
call ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add esp, 8
push eax
push dword [esp + 0x44]
call ecx
add esp, 8
mov dword [esp + 0x34], 0
jmp 0x4085c5
mov edi, 0xfffffffd
jmp 0x408570
lea ecx, [esp + 0x18]
call fcn.0040a370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x4085d6
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4085d6
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x8068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8050]
xor ecx, esp
call fcn.004535b3
mov esp, ebp
pop ebp
ret 8
Function at 0x40bb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x40bb9c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004538e0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40bb6f
sub eax, esi
jmp 0x40bb71
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40bb60
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40bb8f
sub eax, esi
jmp 0x40bb91
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40bb80
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x40bc58
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x40bbc9
xor eax, eax
jmp 0x40bc1c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40bbe6
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040c670
jmp 0x40bbfe
cmp eax, 2
jne 0x40bc04
mov edx, dword [ebx]
test edx, edx
jne 0x40bbf5
xor eax, eax
jmp 0x40bc01
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040cdd0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004538e0
mov eax, dword [ebp - 4]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x40bc44
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x40bc58
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40bb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cdb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40cdbb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0040cdd0
Function at 0x40fac6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40fb23
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40fb1b
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040f9bb
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40fca6
Capabilities:
Get file size

Disassembly:
push 0x148
mov eax, 0x49e7d0
call fcn.00454652
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x150], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fd9f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40fd98
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x40fd91
push 1
lea eax, [ebp - 0x145]
push eax
push dword [ebp - 0x150]
lea ecx, [ebp - 0x144]
call fcn.00404000
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.0040fe82
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00454c3b
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00401ac0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x154]
push dword [ebp - 0x14c]
call fcn.0040fb6a
add esp, 0xc
mov esi, eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00454601
ret

Function at 0x40fda7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0x7863513
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00452d2b
mov edx, eax
pop ecx
test edx, edx
je 0x40fded
push edi
xor edi, edi
test ebx, ebx
je 0x40fdec
sub esi, edx
mov eax, edi
and eax, 3
lea ecx, [edi + edx]
mov al, byte [ebp + eax - 4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x40fdd6
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret
Function at 0x412bfa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x412c74
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x412c5b
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x412c5b
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x412c5b
inc bl
jmp 0x412c74
xor eax, eax
test ecx, ecx
je 0x412c74
test bl, bl
jne 0x412c74
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x412c61
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004535b3
leave
ret 4

Function at 0x412e9e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x412fa4
cmp byte [ebp + 0xc], 0
jne 0x412f52
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x412fa4
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x412f95
call fcn.00454d00
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x412f21
xor eax, eax
jmp 0x412f35
lea eax, [edi + edi]
call fcn.004558c0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004121ad
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414f51
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x412fa6
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x412fa4
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412f94
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x412f35
lea eax, [esi + 2]
jmp 0x412f35
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004535b3
leave
ret 0xc

Function at 0x413b31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x413b40
mov esi, dword [esi]
push esi
call fcn.00454574
pop ecx
push 0
push dword [ebp + 0x10]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 0x10
Function at 0x41d934
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41d9b7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41d96c
push 0
push 0
jmp 0x41d9b9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x41d966
lea edi, [eax + 0x40]
push edi
call fcn.00452d2b
pop ecx
mov dword [esi], eax
test eax, eax
je 0x41d966
push edi
push 0
push eax
call fcn.004535d0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004538e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00454592
int3
Function at 0x41e289
Capabilities:
Copy file
Create thread

Disassembly:
push 0x830
mov eax, 0x4a1680
call fcn.00454652
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
call fcn.0041e544
test al, al
je 0x41e2b9
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41e450
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004535d0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
mov ecx, esi
call fcn.0041e458
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [esi + 0xf4]
call fcn.00404ee0
mov eax, 0x4cbeac
test ebx, ebx
cmovne eax, ebx
lea ecx, [esi + 0x124]
push eax
call fcn.00404ee0
push 0x2c
call fcn.004554e7
mov edi, eax
pop ecx
mov dword [ebp - 0x81c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x41e340
lea ecx, [esi + 0xf4]
call fcn.00403d20
push 4
push esi
push dword [eax]
mov ecx, edi
call fcn.0041df15
jmp 0x41e342
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x154], eax
lea eax, [ebp - 0x820]
push eax
push ebx
push esi
push 0x41e711
push ebx
push ebx
mov dword [ebp - 0x820], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 4
mov dword [ebp - 0x81c], ebx
call fcn.00452d2b
mov dword [esp], 0x4ff
push 0xffffffffffffffff
push 0
push eax
push 1
mov dword [ebp - 0x818], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x41e3fc
mov ebx, dword [ebp - 0x818]
xor edi, edi
jmp 0x41e3c8
cmp dword [ebp - 0x838], 0x8032
jne 0x41e3bb
mov ecx, dword [esi + 0x154]
call fcn.0041f228
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41e3a4
push 0x4ff
push 0xffffffffffffffff
push edi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
je 0x41e3a0
mov ebx, dword [ebp - 0x81c]
push dword [ebp - 0x818]
call fcn.0045458d
mov esi, dword [esi + 0x154]
pop ecx
test esi, esi
je 0x41e420
mov ecx, esi
call fcn.0041e14f
push esi
call fcn.00453342
pop ecx
cmp edi, 0xffffffff
jne 0x41e429
xor eax, eax
jmp 0x41e450
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x814], eax
setge al
call fcn.00454601
ret 8

Function at 0x420ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x4a244a
call fcn.00454652
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x420f15
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004114d7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.00454601
ret 8
Function at 0x4215b7
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x4a2683
call fcn.004546be
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x49]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402c40
mov byte [ebp - 4], 1
mov ecx, 0x4cbeac
mov eax, ecx
test esi, esi
cmovne eax, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004060d0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x421649
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00401ac0
jmp 0x42177c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00452d2b
pop ecx
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x68]
push eax
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4216aa
mov byte [ebp - 4], 2
test bl, bl
je 0x421694
push esi
call fcn.00453342
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x42163c
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0xffffffffffffffff
push ecx
push 4
push edi
push esi
push ecx
call dword [sym.imp.CRYPT32.dll_CertAddSerializedElementToStore]
test eax, eax
jne 0x4216fe
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
test bl, bl
je 0x4216ec
push esi
call fcn.00453342
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 9
jmp 0x4216a4
cmp dword [ebp - 0x5c], 0
jne 0x42172c
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
test bl, bl
je 0x421717
push esi
call fcn.00453342
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 0xb
jmp 0x4216a4
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
push dword [eax + 0xc]
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificate]
mov edi, eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 2
test bl, bl
je 0x421752
push esi
call fcn.00453342
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404bf0
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401ac0
mov eax, edi
jmp 0x42177e
xor eax, eax
call fcn.00454610
ret 8