joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68f034a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ecx
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
jae 0x68f03471
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.68f02fd3
and esi, dword [ebx - 0x2c]
xchg ebx, eax
lea eax, [ebp - 0x84]
push eax
call fcn.68f02fe3
push eax
push esi
jae 0x68f03471
inc ebp
invalid

Function at 0x68f03f2d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
cld
invalid
invalid
cmp al, 0xc6
test dword [ebx + 0x27fffffc], esp
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
invalid
jmp dword [edi]
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.68f02fe3
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.68f02f98
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.68f02fd3
xor eax, 0x689bb620
add al, 1
add byte [eax], al
invalid
test esp, edx

Function at 0x68f0557c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.GrooveUtil.DLL_public:_static_void___stdcall_GCCalendarDateUtils::FormatDateShort_class_GCStackStrBase___class_GCDate_const__
Function at 0x402f74
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x448c50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403008
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402fc5
cmp dword [ebp + 0x10], ebx
jne 0x402ffc
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402f74
test eax, eax
jne 0x402fd7
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402fac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040685d
cmp eax, ebx
je 0x40300f
push ebx
push dword [0x448c50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x403008
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x448c50], ebx
jne 0x403005
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x403005
jmp 0x403008
Function at 0x403399
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4033b6
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4033c5
mov ebx, 0x418d38
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4033da
mov ecx, dword [0x448bf8]
add ecx, eax
push ecx
call fcn.0040358b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403575
test eax, eax
je 0x40352c
test byte [ebp + 0x17], 0x80
je 0x403515
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x414ca8
mov dword [ebp - 0xc], eax
call fcn.00406940
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40356b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40342a
mov esi, dword [ebp + 0x14]
mov edi, 0x414d38
push esi
push edi
call fcn.00403575
test eax, eax
je 0x40352c
sub dword [ebp + 0x14], esi
mov dword [0x414cc0], edi
mov dword [0x414cc4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x414ca8
mov dword [0x414cc8], ebx
mov dword [0x414ccc], eax
call fcn.00406960
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40350d
mov esi, dword [0x414cc8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x448c54], 1
mov edi, eax
je 0x4034cc
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403499
cmp dword [ebp + 0x14], 0
jne 0x4034cc
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.004054af
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403501
cmp dword [ebp + 0x10], 0
jne 0x4034e9
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040603a
test eax, eax
je 0x403511
add dword [ebp - 4], esi
jmp 0x4034f5
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x414cc8]
cmp dword [ebp - 0x10], 1
jne 0x40344d
jmp 0x40356b
cmp dword [ebp + 0x14], 0
jg 0x40341d
jmp 0x40356b
push 0xfffffffffffffffc
jmp 0x40352e
push 0xfffffffffffffffe
jmp 0x40352e
test edi, edi
je 0x403560
cmp dword [ebp + 0x14], esi
jge 0x403521
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403575
test eax, eax
jne 0x403568
push 0xfffffffffffffffd
pop eax
jmp 0x40356e
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40353c
mov esi, dword [ebp + 0x14]
mov edi, 0x414d38
push esi
push edi
call fcn.00403575
test eax, eax
je 0x40352c
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040603a
test eax, eax
je 0x403511
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403531
jmp 0x40356b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43cd80
push esi
call fcn.00406320
push esi
call fcn.00405e2b
mov edi, eax
test edi, edi
jne 0x405ea1
xor eax, eax
jmp 0x405ef3
push edi
call fcn.0040658b
test byte [0x448bb8], 0x80
je 0x405eba
mov al, byte [edi]
test al, al
je 0x405e9d
cmp al, 0x5c
je 0x405e9d
sub edi, esi
jmp 0x405ed2
call fcn.004067c8
test eax, eax
je 0x405ecc
test byte [eax], 0x10
je 0x405e9d
push esi
call fcn.00405dd9
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405ebe
call fcn.00405d92
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405f6e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f8d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405f93
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405fc2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40ab7c]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406007
test edi, edi
jne 0x405fcd
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x406001
Function at 0x406069
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x43f308
push 0x40ab98
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4060b7
push 1
push 0
push esi
call fcn.00405f93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x4061d6
cmp eax, ebx
jg 0x4061d6
mov esi, 0x43f708
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4061d6
cmp eax, ebx
jg 0x4061d6
push esi
push edi
push str._s_s_r_n
push 0x43ef08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x448bb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406342
push 4
push 0xc0000000
push esi
call fcn.00405f93
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061d6
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061cf
push edi
push esi
push ebp
call fcn.0040600b
test eax, eax
je 0x4061cf
push str._Rename__r_n
push esi
call fcn.00405ef8
test eax, eax
jne 0x40616d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4061a2
add eax, 0xa
push 0x40ab80
push eax
call fcn.00405ef8
mov ebp, eax
test ebp, ebp
je 0x40619e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40618f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406189
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061a4
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43ef08
push eax
call fcn.00405f4e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040603a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061db
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4061fe
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406069
pop ecx
pop ecx
inc dword [0x448c30]
ret 8
Function at 0x406207
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406278
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406267
cmp dword [ebp + 0x14], 1
je 0x406269
cmp dword [ebp + 0x14], 2
je 0x406269
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4067ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406813
xor eax, eax
test eax, eax
je 0x406825
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406825
xor ecx, ecx
jmp 0x406828
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a28c]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4068d2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43fb0c], 0
push esi
jne 0x406909
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068e3
mov dword [ecx*4 + 0x43fb08], eax
inc ecx
cmp ecx, 0x100
jl 0x4068de
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40693a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43fb08]
xor eax, esi
inc ecx
dec edx
jne 0x40691c
pop edi
not eax
pop esi
ret 0xc
Function at 0x15dd938
Capabilities:
Encode data using xor

Disassembly:
jmp 0x15dd942
pushal
call 0x15dd948
pop ebp
sub ebp, 0x10
sub ebp, 0x11dd938
jmp 0x15dd95e
mov eax, 0x11dd938
add eax, ebp
add eax, 0x4c
mov ecx, 0x583
mov edx, 0x82cd704e
xor byte [eax], dl
inc eax
dec ecx
jne 0x15dd975
jmp 0x15dd988
lds eax, [ebx + 0x4e72c7c5]
dec esi
dec esi
iretd

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x4012b0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4fe0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x401316
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x4405b8]
push 0x42f4dc
push str.Debug.txt
mov esi, eax
call fcn.0041a059
push esi
push esi
push 0x42f4f8
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.00419f9f
mov eax, dword [edi]
push eax
call fcn.00419f4e
push 0xdf
call fcn.004159d0
push eax
call fcn.00415a20
add esp, 0x28
pop edi
pop esi
pop ebx
ret 4
Function at 0x402210
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402221
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x4fe0]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402265
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x402265
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esi + 0x48], 0x7e
lea eax, [esi + 0x48]
mov dword [esi + 0x10], 0
jne 0x402265
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x40b2b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42dd58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x30]
push edx
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.00415a90
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x10cc078], ecx
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esi], 0x4300e8
mov dword [esi + 0x1097a10], eax
call fcn.0040e1b0
mov ecx, dword [esp + 8]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x20
Function at 0x418840
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push esi
xor esi, esi
cmp word [0x441fe8], si
push edi
jne 0x418862
push 0x441fe8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x418878
push 0x5c
push 0x441fe8
call fcn.0041ac29
add esp, 8
cmp eax, esi
je 0x418878
mov word [eax], si
push 0x441fe8
call fcn.0041a06c
add esp, 4
cmp eax, 3
jne 0x41889b
cmp word [0x441fec], 0x5c
jne 0x41889b
mov word [0x441fec], si
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x4188b1
push eax
push 0x441fe8
call fcn.0041a7da
add esp, 8
mov eax, dword [esp + 0x68]
push ebx
push eax
push 0x441fe8
call fcn.0041a7b0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
push 0x42f98c
push edi
mov dword [esp + 0x1c], 0x4c
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x441fe8
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x200
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x88002c
mov word [esp + 0x54], si
mov word [esp + 0x56], si
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0x418700
mov dword [esp + 0x64], esi
call fcn.0041ae11
add esp, 0x10
test eax, eax
jne 0x418960
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
mov ebx, eax
jmp 0x418964
mov ebx, dword [esp + 0x70]
push 0x42fa54
push edi
call fcn.0041ae11
add esp, 8
test eax, eax
jne 0x418983
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov ebx, eax
cmp ebx, esi
pop ebx
jne 0x418990
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
push 0x42fa54
push edi
call fcn.0041ae11
add esp, 8
test eax, eax
jne 0x4189e4
cmp word [esp + 0x42], si
mov edx, dword [esp + 0x14]
jne 0x4189e4
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx - 1]
cmp ecx, esi
jbe 0x4189d3
lea esp, [esp]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4189c0
inc eax
movzx esi, ax
cmp esi, ecx
jb 0x4189c0
add edx, 2
push edx
push 0x441fe8
call fcn.0041a7b0
add esp, 8
pop edi
mov eax, 0x441fe8
pop esi
add esp, 0x4c
ret

Function at 0x418b53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x418b68
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x418b7a
xor eax, eax
jmp 0x418bac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x418b9e
cmp esi, eax
jae 0x418b76
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x418b90
cmp esi, eax
jae 0x418b76
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x41b575
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x431938
call fcn.0041ba90
mov edi, 0x94
mov eax, edi
call fcn.0041b460
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4443e0], ecx
mov eax, dword [esi + 4]
mov dword [0x4443ec], eax
mov edx, dword [esi + 8]
mov dword [0x4443f0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4443e4], esi
cmp ecx, 2
je 0x41b5d5
or esi, 0x8000
mov dword [0x4443e4], esi
shl eax, 8
add eax, edx
mov dword [0x4443e8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41b610
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b610
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b628
cmp eax, 0x20b
je 0x41b615
mov dword [ebp - 0x1c], esi
jmp 0x41b63c
cmp dword [ecx + 0x84], 0xe
jbe 0x41b610
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41b636
cmp dword [ecx + 0x74], 0xe
jbe 0x41b610
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00421da4
pop ecx
test eax, eax
jne 0x41b650
push 0x1c
call fcn.0041b551
pop ecx
call fcn.0041e9f0
test eax, eax
jne 0x41b661
push 0x10
call fcn.0041b551
pop ecx
call fcn.00421d02
mov dword [ebp - 4], esi
call fcn.00421b04
test eax, eax
jge 0x41b67a
push 0x1b
call fcn.0041b52c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x445cb4], eax
call fcn.004219e2
mov dword [0x4443cc], eax
call fcn.00421940
test eax, eax
jge 0x41b6a0
push 8
call fcn.0041b52c
pop ecx
call fcn.0042170d
test eax, eax
jge 0x41b6b1
push 9
call fcn.0041b52c
pop ecx
push 1
call fcn.0041c485
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41b6c7
push eax
call fcn.0041b52c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004216b0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41b6e8
movzx eax, word [ebp - 0x40]
jmp 0x41b6eb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040adb0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41b709
push edi
call fcn.0041c5b2
call fcn.0041c5d4
jmp 0x41b73b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041bacb
ret