joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404139
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40418d
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
cmp ebx, 0xffffffff
jne 0x404191
xor eax, eax
jmp 0x4041ac
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4041b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ecx, [edx + eax - 0x16]
push edi
mov edi, dword [ebp + 0x18]
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sub eax, 0x22
lea esi, [eax + edx]
xor edx, edx
mov dword [edi], edx
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp dword [ecx], 0x6054b50
jne 0x4042dd
cmp dword [esi], 0x1234567b
je 0x404205
push str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
push edx
call fcn.00401a90
pop ecx
pop ecx
jmp 0x4042df
cmp eax, edx
jl 0x4042dd
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x404221
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40da10], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov edi, esi
push 0x104
sub eax, dword [esi + 8]
mov dword [ecx], eax
sub edi, dword [esi + 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4042dd
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4042ca
push ebx
push 0
lea eax, [ebp - 0x104]
push 0x40c2c4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4042ca
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push ebx
push 2
call fcn.00401091
add esp, 0x1c
mov dword [ebp + 8], eax
test eax, eax
je 0x4042dd
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCRT.dll__strdup]
mov ecx, dword [ebp + 0x18]
add esp, 0x14
push dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 1
pop eax
jmp 0x4042df
push str.Could_not_create_temporary_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a90
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9d3e1c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x9f5e6c
push esi
call fcn.009cc273
pop ecx
pop ecx
test eax, eax
jne 0x9d3e4a
xor al, al
jmp 0x9d3ec7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009d3b51
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9d3e84
push dword [ebp - 0x210]
call fcn.009ba4f2
xor al, al
jmp 0x9d3ec5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9d3e8a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9d3eaa
push edx
call fcn.009d3d53
pop ecx
test al, al
je 0x9d3e75
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9d3eb8
mov bl, 1
push dword [ebp - 0x210]
call fcn.009ba4f2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009b6e52
leave
ret

Function at 0x9d49ac
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9d49ef
call fcn.009c44e7
mov dword [eax], 0xf
call fcn.009c44fa
mov dword [eax], 0xd
call fcn.009c7dc4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b6e52
leave
ret
test eax, eax
jne 0x9d49f6
inc eax
jmp 0x9d49e3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9d49e1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9d49e3

Function at 0x1003a98
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1003af0
call fcn.01003b0c
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003ae7
cmp ecx, 0xffffffff
je 0x1003ae7
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1003ae0
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1003ae0
cmp edx, 0x10000000
jae 0x1003ae0
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1006d0b
mov dword [ebp - 4], 0xfffffffe
call fcn.010023d0
ret 4
je 0x1006d56
outsb dx, byte [esi]
je 0x1006d75
jb 0x1006d7c
dec esp
and ch, byte [edx]
Function at 0x8f6b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3db000]
push edi
or ebp, 0xffffffff
jmp 0x8f6b92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8f6b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6b88
mov eax, 1
add ebx, ebx
jne 0x8f6bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8f6bbc
jne 0x8f6bdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6bdb
dec eax
add ebx, ebx
jne 0x8f6bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8f6ba0
add ebx, ebx
jne 0x8f6bd7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8f6c2d
xor ecx, ecx
sub eax, 3
jb 0x8f6bf3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8f6c62
sar eax, 1
mov ebp, eax
jmp 0x8f6bfe
add ebx, ebx
jne 0x8f6bfe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6bcc
inc ecx
add ebx, ebx
jne 0x8f6c0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6bcc
add ebx, ebx
jne 0x8f6c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8f6c0e
jne 0x8f6c2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8f6c0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8f6c4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8f6c3e
jmp 0x8f6b8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8f6c4c
add edi, ecx
jmp 0x8f6b8e
pop esi
mov edi, esi
mov ecx, 0xf3dd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8f6c6a
cmp byte [edi], 0x2e
jne 0x8f6c6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8f6c6f
lea edi, [esi + 0x4f2000]
mov eax, dword [edi]
or eax, eax
je 0x8f6ce7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x55fb90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x55fcd0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8f6c9c
mov ecx, edi
jns 0x8f6ccb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x55fcd4]
or eax, eax
je 0x8f6ce1
mov dword [ebx], eax
add ebx, 4
jmp 0x8f6cb9
call dword [esi + 0x55fce4]
mov ebp, dword [esi + 0x55fcd8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8f6d1b
sub esp, 0xffffff80
jmp 0x6a78d4
Function at 0x40b42f
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x42b55e
call fcn.0040d3a1
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40b54c
cmp byte [ebx + 0x3e], 0
je 0x40b54c
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040d341
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x40b47b
xor al, al
jmp 0x40b54e
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0040b752
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x40b4ab
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.0040d341
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x40b4e0
sub eax, 1
je 0x40b4e4
dec eax
sub eax, 1
je 0x40b53a
xor bl, bl
jmp 0x40b53c
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40b4f4
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x40b51c
cmp eax, 0x10
jae 0x40b503
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416cf6
add esp, 0x10
cmp esi, eax
jne 0x40b4dc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x40b53a
test esi, esi
jne 0x40b49f
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408750
jmp 0x40b499
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00407380
mov al, bl
jmp 0x40b54e
mov al, 1
call fcn.0040d35c
ret
Function at 0x40bb08
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x42b5b3
call fcn.0040d3a1
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x40bb2d
xor eax, eax
jmp 0x40bca6
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40bb59
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40bb59
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x40bca6
cmp dword [esi + 0x4c], 0
je 0x40bca3
mov ecx, esi
call fcn.0040b6e2
xor eax, eax
cmp dword [esi + 0x38], eax
jne 0x40bb8c
push dword [esi + 0x4c]
push edi
call fcn.0040af83
pop ecx
pop ecx
test al, al
je 0x40bca3
movzx ebx, di
jmp 0x40bca3
push eax
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0040b752
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x40bbc4
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call fcn.0040d341
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x40bc97
cmp eax, 1
jg 0x40bc72
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40bc0d
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x40bc3a
cmp eax, 0x10
jae 0x40bc1c
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00416cf6
add esp, 0x10
cmp edi, eax
jne 0x40bc6d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x40bc3d
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x3c], edx
jne 0x40bc67
test edi, edi
jne 0x40bbb8
cmp dword [ebp - 0x18], 0x20
jae 0x40bc91
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408750
jmp 0x40bbb2
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x40bc91
cmp eax, 3
jne 0x40bc97
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.0040af83
pop ecx
pop ecx
test al, al
je 0x40bc91
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00407380
mov ax, bx
call fcn.0040d35c
ret 4

Function at 0x41d95a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d61d

Function at 0x41d965
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d79e

Function at 0x421976
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421624
Function at 0x42a000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b9cd
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x43e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x250]
push 0x105
mov dword [ebp - 0x22c], 0
call fcn.00406610
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x250]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
lea ecx, [ebp - 0x244]
push esi
call fcn.00406520
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x244]
push ebx
push esi
push dword [ebp - 0x224]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x4375a8
push ebx
call esi
mov ecx, dword [ebp - 0x220]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x4375e0
push 0x104
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040a4d0
add esp, 0x18
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call esi
mov ebx, dword [ebp - 0x228]
xor eax, eax
mov edx, dword [ebp - 0x21c]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [edx], ax
je 0x42a14f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a140
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.004030f0
mov dword [ebp - 0x22c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.00406480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.00407300
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cbd8
mov esp, ebp
pop ebp
ret

Function at 0x42a1a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba0e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x43e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x10], 0
push 6
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push str.32_bit
mov word [esi], ax
call fcn.004030f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x3c], 0
je 0x42a246
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x14], 0
jne 0x42a23f
push 6
push str.64_bit
mov ecx, esi
call fcn.004030f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
Function at 0x42a260
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba29
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
push 0x437578
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp dword [edi + 0x14], 8
jb 0x42a2d2
mov edi, dword [edi]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
push esi
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call fcn.0040e830
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov al, 1
mov byte [ebp - 0x11], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101ba24c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x101d73c4]
mov esi, edx
add esi, 0xffffedec
mov dword [0x101d73c4], esi
mov dword [0x101d73c0], 0x1040
mov esi, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
jmp 0x101ba345
lea eax, [ebp - 0x2c]
mov dword [0x101d73c4], 0x79a
mov dword [0x101d73c0], 0x1410
mov dword [ebp - 0x40], eax
call fcn.101ba186
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.101bad59
mov ecx, eax
mov dword [0x101d73e0], eax
mov eax, esp
mov edx, dword [ebp - 0x44]
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, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
jmp 0x101ba3d9
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
call fcn.101bb625
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x52677
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x14c600
mov ecx, dword [ebp - 0x48]
add ecx, 0x4ddc7
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f20
mov dword [0x101d73c0], 0x131b
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0xac
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0xac
add edx, edi
add edx, 0xa4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x241
mov ecx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], eax
jne 0x101ba345
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xfff9df3c
mov dword [0x101d73c4], ecx
mov dword [0x101d73c0], 0x195f
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov cl, byte [eax + 0x101bd582]
mov dl, byte [eax + 0x101bd553]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x54], eax
je 0x101ba28b
jmp 0x101ba3ad
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0xac
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0xac
mov ebx, edx
add ebx, edi
add ebx, 4
mov edi, dword [ebx]
imul ebx, eax, 0xac
add edx, ebx
add edx, 0xa4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
call fcn.101ba83f
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x58]
add edx, 1
cmp edx, 0x241
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
je 0x101ba2f3
jmp 0x101ba3d9
Function at 0x101baeaf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [0x101d73c4]
add ecx, 0x1134
mov dword [0x101d73c0], ecx
mov dword [ebp - 0x10], eax
call fcn.101babb5
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101baefd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101d73c4], 0x1efe
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x101d73c0], 0xe72
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x101bb01c
jmp 0x101baf72
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], eax
jb 0x101baf82
jmp 0x101bb01c
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x101bafed
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x101baf9c
mov al, byte [ebp - 0x52]
test al, 1
jne 0x101baff9
jmp 0x101baf49
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101d73c0], 0x114f
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret