joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017d0
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3020c
call fcn.00410130
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x8000
lea eax, [ebp - 0x1020c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
setne al
test al, al
je 0x401854
lea ecx, [ebp - 0x1020c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401810
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x40184f
nop word [eax + eax]
movzx ecx, word [ebp + eax*2 - 0x1020c]
cmp ecx, 0x5c
je 0x401980
cmp ecx, 0x2f
je 0x401980
sub eax, 1
jns 0x401830
cmp eax, 2
jg 0x401866
lea eax, [ebp - 0x1020c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1020c]
push eax
lea eax, [ebp - 0x2020c]
push 0x8000
push eax
call fcn.004042dd
lea ecx, [ebp - 0x2020c]
add esp, 0xc
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x401890
mov eax, dword [str._swdata1.id]
mov dword [ecx], eax
mov eax, dword [0x418c48]
mov dword [ecx + 4], eax
mov eax, dword [0x418c4c]
mov dword [ecx + 8], eax
mov eax, dword [0x418c50]
mov dword [ecx + 0xc], eax
mov eax, dword [0x418c54]
mov dword [ecx + 0x10], eax
mov eax, dword [0x418c58]
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x1020c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018d4
sub ecx, edx
sar ecx, 1
je 0x40199e
lea eax, [ebp - 0x1020c]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004042dd
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x40199e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40199e
lea eax, [ebp - 0x2020c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40199e
push esi
mov esi, dword [0x41b298]
xor eax, eax
push str.SOLIDWORKS_2018
push dword [0x41b29c]
mov word [ebp - 0x3020c], ax
lea eax, [ebp - 0x3020c]
push eax
call fcn.00401a40
add esp, 0xc
lea eax, [ebp - 0x3020c]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov cl, 1
pop esi
jmp 0x401a06
lea ecx, [eax + eax]
cmp ecx, 0x10000
jae 0x401a1b
xor edx, edx
mov word [ebp + ecx - 0x1020c], dx
jmp 0x40184f
lea eax, [ebp - 0x1020c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004042dd
lea ecx, [ebp - 0x20c]
add esp, 0xc
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4019c2
mov eax, dword [str._sldIM]
mov dword [ecx], eax
mov eax, dword [0x418c80]
mov dword [ecx + 4], eax
mov eax, dword [0x418c84]
mov dword [ecx + 8], eax
mov ax, word [0x418c88]
mov word [ecx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004016f0
add esp, 4
mov cl, al
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00401ca4
mov esp, ebp
pop ebp
ret
call fcn.00401dd8
int3
Function at 0x408ad1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040877f
Function at 0x425c10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [0x4ff6d8]
lea edx, [esp + 8]
movq xmm0, qword [str.pkgreader]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2e
mov edi, ecx
mov dword [esp + 0x34], 0x42344344
mov dword [esp + 0x38], 0x38353946
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push 0x4fee90
push esi
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x53
call fcn.00429f40
add esp, 0xc
mov dword [esp + 0x40], 0
cmp dword [esi + 0x14], 7
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, esi
jbe 0x425c99
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
push ecx
push str._lu:_llu
push eax
call fcn.0042bc60
add esp, 0x10
cmp eax, 2
jne 0x425d5f
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
cmp eax, 0xffffffff
je 0x425cd5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x30]
mov dword [edi + 8], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x425d8d
mov ecx, dword [esp + 0x34]
lea edx, [edi + 8]
mov eax, dword [esp + 0x30]
mov dword [edi + 0x14], ecx
lea ecx, [esp + 8]
mov dword [edi + 0x10], eax
call fcn.00429530
push eax
lea ecx, [edi + 0x18]
call fcn.004290b0
mov edi, dword [esp + 0xc]
test edi, edi
je 0x425d4c
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x425d4c
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4cc2f8]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x425d4c
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4cc2f8]
mov ecx, edi
call esi
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 8]
mov dword [esp + 8], 0x57
push eax
push esi
push 0x51
push str.FileLoader:_unable_to_read_stub_process_ID_and_handle_from_context___code__
push ecx
lea ecx, [esp + 0x24]
call fcn.004295b0
push 0x516930
lea eax, [esp + 0x14]
push eax
call fcn.00486900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
push ecx
push 0x2d
push str.FileLoader:_unable_to_get_file_size__code__
push eax
lea ecx, [esp + 0x20]
call fcn.00429240
push 0x516930
lea eax, [esp + 0x14]
push eax
call fcn.00486900
int3
Function at 0x44f4d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e80
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
push ebx
push esi
push edi
mov eax, dword [0x519100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx - 0x10]
mov dword [ebp - 0x18], 0x36313235
mov dword [ebp - 0x14], 0x39434638
mov dword [ebp - 0x30], 0x5f676f6c
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], 0x75646f6d
mov dword [ebp - 0x28], 0x656c
mov dword [ebp - 0x1c], 0x1f
mov dword [eax + ebx - 0x10], 0x503f7c
mov eax, dword [ebx - 0x10]
mov eax, dword [eax + 8]
mov dword [eax + ebx - 0x10], 0x503f74
mov eax, dword [ebx - 0x10]
mov eax, dword [eax + 0xc]
mov dword [eax + ebx - 0x10], 0x503f34
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x10]
mov dword [ecx + ebx - 0x14], eax
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 0xc]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 0x14], eax
mov edi, dword [ebx - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov esi, dword [edi]
push eax
push 2
lea eax, [ebp - 0x140]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4cc2f8]
mov ecx, edi
call esi
push ecx
lea ecx, [ebp - 0x140]
call fcn.00450270
lea ecx, [ebp - 0x140]
call fcn.004388d0
mov edi, dword [ebx - 0xc]
mov dword [ebp - 0x18], 0x36313235
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x39434638
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], 0x5f676f6c
mov dword [ebp - 0x44], 0x75646f6d
mov dword [ebp - 0x40], 0x656c
mov dword [ebp - 0x34], 0x20
mov esi, dword [edi]
push eax
push 2
lea eax, [ebp - 0x238]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4cc2f8]
mov ecx, edi
call esi
push ecx
lea ecx, [ebp - 0x238]
call fcn.004502f0
lea ecx, [ebp - 0x238]
call fcn.004388d0
mov edi, dword [ebx - 8]
test edi, edi
je 0x44f659
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x44f659
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4cc2f8]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x44f659
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4cc2f8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x5f11147b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x679e7a8b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x65993d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662168
cmp edx, dword [eax]
je 0x65995f
add eax, 8
inc ecx
cmp eax, 0x6621f8
jl 0x659950
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662168]
jne 0x659a8d
mov eax, dword [0xa67a90]
cmp eax, 1
je 0x659a67
test eax, eax
jne 0x659990
cmp dword [0x662094], 1
je 0x659a67
cmp edx, 0xfc
je 0x659a8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6599c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0065a320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a7b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659a0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a7b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65edec
push edi
call fcn.0065c680
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0065a320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a330
lea eax, [ebp - 0xa0]
push 0x65edcc
push eax
call fcn.0065a330
push dword [esi + 0x66216c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065c5f4
add esp, 0x2c
pop edi
jmp 0x659a8d
lea eax, [ebp + 8]
lea esi, [esi + 0x66216c]
push 0
push eax
push dword [esi]
call fcn.0065a7b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6fc510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29a000]
push edi
or ebp, 0xffffffff
jmp 0x6fc532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6fc539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc528
mov eax, 1
add ebx, ebx
jne 0x6fc54b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6fc55c
jne 0x6fc57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc57b
dec eax
add ebx, ebx
jne 0x6fc568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6fc540
add ebx, ebx
jne 0x6fc577
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6fc5cd
xor ecx, ecx
sub eax, 3
jb 0x6fc593
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6fc602
sar eax, 1
mov ebp, eax
jmp 0x6fc59e
add ebx, ebx
jne 0x6fc59e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc56c
inc ecx
add ebx, ebx
jne 0x6fc5ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc56c
add ebx, ebx
jne 0x6fc5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6fc5ae
jne 0x6fc5ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6fc5ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6fc5ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6fc5de
jmp 0x6fc52e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6fc5ec
add edi, ecx
jmp 0x6fc52e
pop esi
mov edi, esi
mov ecx, 0x5a2d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6fc60a
cmp byte [edi], 0x25
jne 0x6fc60a
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 0x6fc60f
lea edi, [esi + 0x2f9000]
mov eax, dword [edi]
or eax, eax
je 0x6fc67e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30a548]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30a674]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6fc63c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30a678]
or eax, eax
je 0x6fc678
mov dword [ebx], eax
add ebx, 4
jmp 0x6fc659
call dword [esi + 0x30a688]
mov ebp, dword [esi + 0x30a67c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x6fc6b2
sub esp, 0xffffff80
jmp 0x4f1598
Function at 0x1043370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x104338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x106c074
push ecx
mov edi, eax
call fcn.01057198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10433cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0105702e
push esi
call fcn.01056fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1046850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x10468ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x1071720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10468ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.010571e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x10468ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1071720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x104692a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.01058082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1046957
mov word [eax], si
add eax, 2
push eax
call fcn.01058030
add esp, 4
jmp 0x1046959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x10468ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10468b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1046ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1047080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x10470c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x106c458
push ecx
call fcn.010571e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.010571e1
add esp, 0x10
jmp 0x10470d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0105720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01056dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01047050
mov eax, dword [0x1071728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x104713b
push esi
call fcn.01046fb0
add esp, 4
mov dword [0x1071728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x104714c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.01046ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x104a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x104a4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x104a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x104a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x104a47e
add edx, ecx
cmp ebx, edx
jb 0x104a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x104a467
xor ecx, ecx
jmp 0x104a4a2
test eax, eax
jne 0x104a492
xor ecx, ecx
jmp 0x104a4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0104a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x104a8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x104a921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x104a946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x104a96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x104a993
push ecx
push esi
call fcn.0104a4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x104bc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x104bc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x104bc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x104bc38
add edx, eax
cmp ebx, edx
jb 0x104bc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x104bc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x104bc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x104bc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x104bcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x104bc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x104bca8
add edx, ecx
cmp ebx, edx
jb 0x104bcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x104bc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x104bf60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01058145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x104bffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x104bfdd
lea eax, [esp + 0x18]
push eax
jmp 0x104bfe2
push 0x1071720
call fcn.01057fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x104bfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x104bf40
push 4
push ecx
push eax
call fcn.0105843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x104c310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01058145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x104c3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x104c38d
lea eax, [esp + 0x18]
push eax
jmp 0x104c392
push 0x1071720
call fcn.01057fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x104c360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x104bf40
push 4
push ecx
push eax
call fcn.0105843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret