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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xc
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00c26c69
add esp, 0xc
cmp ebx, 0x949
jns 0xc30ab1
jg 0xc30abd
ja 0xc30ab5
xchg esi, esi
lea ecx, [ecx]
jle 0xc30abd
mov ecx, 0xec45c68a
inc esp
mov byte [ebp - 0x14], 0x44
mov byte [ebp - 0xf], 0x49
mov byte [ebp - 0xa], 0x66
mov byte [ebp - 0x13], 0x6d
mov byte [ebp - 0xe], 0x62
mov byte [ebp - 9], 0
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0x10], 0x66
mov byte [ebp - 0xb], 0x6d
lea esi, [esi + 0x5857]
sub esi, 0x5857
jae 0xc30afb
shl esp, 0
jne 0xc30b16
lea edx, [edx + 0x4885]
lea edx, [edx - 0x4885]
js 0xc30b0e
jg 0xc30b10
lea eax, [eax]
je 0xc30b16
add eax, 0xec4d8a59
mov cl, byte [ebp - 0x14]
sub cl, 1
mov byte [ebp - 0x14], cl
mov dl, byte [ebp - 0xf]
sub dl, 1
mov byte [ebp - 0xf], dl
mov al, byte [ebp - 0xa]
sub al, 1
mov byte [ebp - 0xa], al
mov cl, byte [ebp - 0x13]
sub cl, 1
mov byte [ebp - 0x13], cl
mov dl, byte [ebp - 0xe]
sub dl, 1
mov byte [ebp - 0xe], dl
mov al, byte [ebp - 0x12]
sub al, 1
mov byte [ebp - 0x12], al
mov cl, byte [ebp - 0xd]
sub cl, 1
mov byte [ebp - 0xd], cl
mov dl, byte [ebp - 0x11]
sub dl, 1
mov byte [ebp - 0x11], dl
mov al, byte [ebp - 0xc]
sub al, 1
mov byte [ebp - 0xc], al
mov cl, byte [ebp - 0x10]
sub cl, 1
mov byte [ebp - 0x10], cl
mov dl, byte [ebp - 0xb]
sub dl, 1
mov byte [ebp - 0xb], dl
call fcn.00c1b32a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xc30b8b
xor eax, eax
jmp 0xc30c0c
clc
jns 0xc30b9d
lea edx, [edx + 0x593f]
lea edx, [edx - 0x593f]
js 0xc30b9d
mov edx, 0x50ec458d
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00c3172f
mov dword [ebp - 4], eax
push 0xc
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00c26c69
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0xc30bc7
xor eax, eax
jmp 0xc30c0c
cmp esp, 0xdaa
std
cld
jo 0xc30bda
nop
jbe 0xc30bd4
jne 0xc30bd6
jno 0xc30bda
call 0xfd0896fc
mov eax, dword [ebp - 4]
push eax
call fcn.00c1bfd4
add esp, 4
rol eax, 0x1e
ror eax, 0x1e
lea edx, [edx + 0x6d4]
sub edx, 0x6d4
jno 0xc30c05
lea edi, [edi]
xchg esi, esi
xchg edx, ecx
xchg edx, ecx
jo 0xc30c05
mov ebp, 0x51084d8b
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x490100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
or ebp, 0xffffffff
jmp 0x490122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x490129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x490118
mov eax, 1
add ebx, ebx
jne 0x49013b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49014c
jne 0x49016b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49016b
dec eax
add ebx, ebx
jne 0x490158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x490130
add ebx, ebx
jne 0x490167
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4901bd
xor ecx, ecx
sub eax, 3
jb 0x490183
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4901f2
sar eax, 1
mov ebp, eax
jmp 0x49018e
add ebx, ebx
jne 0x49018e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49015c
inc ecx
add ebx, ebx
jne 0x49019c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49015c
add ebx, ebx
jne 0x4901a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49019e
jne 0x4901ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49019e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4901dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4901ce
jmp 0x49011e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4901dc
add edi, ecx
jmp 0x49011e
pop esi
mov edi, esi
mov ecx, 0x215a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4901fa
cmp byte [edi], 0x1b
jne 0x4901fa
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 0x4901ff
lea edi, [esi + 0x8c000]
mov eax, dword [edi]
or eax, eax
je 0x490277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x99e8c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9a008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49022c
mov ecx, edi
jns 0x49025b
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 + 0x9a00c]
or eax, eax
je 0x490271
mov dword [ebx], eax
add ebx, 4
jmp 0x490249
call dword [esi + 0x9a010]
popal
jmp 0x41a91a
Function at 0x40110a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push edi
mov edi, ecx
je 0x40111b
and dword [eax], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40117d
and dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x401142
call fcn.004010ee
and dword [esi + 0xc], 0
push ebx
mov ecx, edi
mov dword [esi + 8], eax
call fcn.00401065
push esi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop esi
jne 0x40116a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x401180
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x401178
cmp dword [ebp + 0xc], ebx
jae 0x40117d
jmp 0x401180
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
inc eax
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x40121c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push edi
mov edi, ecx
je 0x40122d
and dword [eax], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x401297
and dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x401254
call fcn.004010ee
and dword [esi + 0xc], 0
push ebx
mov ecx, edi
mov dword [esi + 8], eax
call fcn.00401065
push esi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x40127c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x40129a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40128a
cmp dword [ebp + 0xc], ebx
jae 0x40128f
jmp 0x40129a
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x401802
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401819
test al, 0x10
je 0x401819
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4018b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x415194]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004065c0
test eax, eax
pop ecx
je 0x40196a
push esi
call fcn.00401802
cmp eax, 1
pop ecx
jne 0x4018e7
xor eax, eax
inc eax
jmp 0x40196a
push esi
call fcn.004065c0
cmp byte [eax + esi - 1], 0x3a
pop ecx
je 0x4018df
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp byte [esi], bl
je 0x401960
mov al, byte [esi + edi]
cmp al, 0x5c
je 0x40190a
cmp al, 0x2f
jne 0x40195a
cmp edi, ebx
je 0x40195a
cmp byte [esi + edi - 1], 0x3a
je 0x40195a
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.0040188a
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x40192b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40194f
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x401943
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401977
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00401343
inc edi
cmp byte [esi + edi], bl
jne 0x4018ff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406bb5
leave
ret
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00401343
xor eax, eax
jmp 0x401968
Function at 0x4048af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.004072f0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x400
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x80
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret

Function at 0x404901
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x415194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x404969
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x404960
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.00406bb5
leave
ret
Function at 0x404bd6
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x415194]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x5c
mov eax, 0x410932
call fcn.00406bc4
mov eax, dword [ebp + 0x130]
mov esi, dword [ebp + 0x12c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404b5f
mov dword [esp], str.DFZH
push eax
lea eax, [ebp]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00402491
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401343
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x404c46
lea eax, [ebp + 4]
push eax
call fcn.00401802
test eax, eax
pop ecx
jne 0x404c9c
lea eax, [ebp - 0x4c]
push eax
call fcn.00404b5f
mov dword [esp], str.AppDataLocalDfzh
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 3
call fcn.00402491
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00401547
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00401343
push edi
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401343
push 0x4115d0
lea ecx, [ebp]
call fcn.004021b6
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x404cb5
lea eax, [ebp + 4]
mov edx, dword [esi + 0x18]
cmp edx, 0x10
mov dword [ebp - 0x10], eax
lea eax, [esi + 4]
jb 0x404cc7
mov ecx, dword [eax]
jmp 0x404cc9
mov ecx, eax
cmp edx, 0x10
jb 0x404cd0
mov eax, dword [eax]
push dword [ebp - 0x10]
lea edx, [ebp + 0x1c]
push 0x104
push edx
push ecx
push eax
push str.Locale
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.00401675
push edi
push 1
lea ecx, [ebp]
call fcn.00401343
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00406bb5
add ebp, 0x124
leave
ret

Function at 0x406bb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415194]
jne 0x406bbf
repz ret
jmp fcn.004095ec
Function at 0x40c9e8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x415d40]
je 0x40ca03
inc edi
cmp edi, 0x17
jb 0x40c9f4
cmp edi, 0x17
jae 0x40cb83
push ebp
push 3
call fcn.0040ff29
cmp eax, 1
pop ecx
je 0x40cb4f
push 3
call fcn.0040ff29
test eax, eax
pop ecx
jne 0x40ca37
cmp dword [0x4151a0], 1
je 0x40cb4f
cmp ebx, 0xfc
je 0x40cb82
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x416660
push ebp
call fcn.00407b9d
add esp, 0xc
test eax, eax
je 0x40ca6d
push esi
push esi
push esi
push esi
push esi
call fcn.00406d87
add esp, 0x14
push 0x104
mov esi, 0x416679
push esi
push 0
mov byte [0x41677d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cab1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407b9d
add esp, 0xc
test eax, eax
je 0x40cab1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406d87
add esp, 0x14
push esi
call fcn.004065c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40caf6
push esi
call fcn.004065c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x416974
push 0x411da4
sub ecx, eax
push ecx
push eax
call fcn.0040f456
add esp, 0x14
test eax, eax
je 0x40caf6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00406d87
add esp, 0x14
jmp 0x40caf8
xor esi, esi
push 0x411da0
push ebx
push ebp
call fcn.0040f39c
add esp, 0xc
test eax, eax
je 0x40cb18
push esi
push esi
push esi
push esi
push esi
call fcn.00406d87
add esp, 0x14
push dword [edi*8 + 0x415d44]
push ebx
push ebp
call fcn.0040f39c
add esp, 0xc
test eax, eax
je 0x40cb3a
push esi
push esi
push esi
push esi
push esi
call fcn.00406d87
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040fd6c
add esp, 0xc
jmp 0x40cb82
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40cb82
cmp ebp, 0xffffffff
je 0x40cb82
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x415d44]
push dword [esi]
call fcn.004065c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40fd6c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409025
xor ebx, ebx
cmp dword [0x416c54], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40fe42
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ff22
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412f14
push edi
call esi
cmp eax, ebx
je 0x40ff22
push eax
call fcn.00408fb7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416c54], eax
call esi
push eax
call fcn.00408fb7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416c58], eax
call esi
push eax
call fcn.00408fb7
mov dword [0x416c5c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a910
test eax, eax
pop ecx
pop ecx
je 0x40fe10
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406d87
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40fe42
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408fb7
cmp eax, ebx
pop ecx
mov dword [0x416c64], eax
je 0x40fe42
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408fb7
pop ecx
mov dword [0x416c60], eax
mov eax, dword [0x416c60]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40fec7
cmp dword [0x416c64], ecx
je 0x40fec7
push eax
call fcn.0040902e
push dword [0x416c64]
mov esi, eax
call fcn.0040902e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40fec7
cmp edi, ebx
je 0x40fec7
call esi
cmp eax, ebx
je 0x40fe94
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40fe94
test byte [ebp - 0x18], 1
jne 0x40fec7
lea eax, [ebp - 0x10]
push eax
call fcn.0040a947
test eax, eax
pop ecx
je 0x40feaf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406d87
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40febe
or dword [ebp + 0x10], 0x200000
jmp 0x40ff02
or dword [ebp + 0x10], 0x40000
jmp 0x40ff02
mov eax, dword [0x416c58]
cmp eax, dword [ebp - 8]
je 0x40ff02
push eax
call fcn.0040902e
cmp eax, ebx
pop ecx
je 0x40ff02
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ff02
mov eax, dword [0x416c5c]
cmp eax, dword [ebp - 8]
je 0x40ff02
push eax
call fcn.0040902e
cmp eax, ebx
pop ecx
je 0x40ff02
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416c54]
call fcn.0040902e
cmp eax, ebx
pop ecx
je 0x40ff22
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ff24
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xd7811e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd7813e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd7812a
add dl, dl
jne 0xd78149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd7819a
xor eax, eax
add dl, dl
jne 0xd78156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd7823b
add dl, dl
jne 0xd78165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd78170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd7817b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd78186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd78190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd78135
mov eax, 1
add dl, dl
jne 0xd781a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd781b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd7819f
sub eax, ebx
mov ebx, 1
jne 0xd781e6
mov ecx, 1
add dl, dl
jne 0xd781cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd781d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd781c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd78135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd781fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd78208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd781f4
cmp eax, 0x7d00
jae 0xd7822b
cmp eax, 0x500
jb 0xd78226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd78135
cmp eax, 0x7f
ja 0xd7822e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd78135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd7825c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd78135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4011d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44bc3b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45b030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
push edi
call fcn.0040b1c0
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [edi], vtable.CDialogSetDLPath.0
mov dword [edi + 0x2c], vtable.CDialogSetDLPath.1.0
mov dword [edi + 0x30], vtable.CDialogSetDLPath.2.0
xor eax, eax
mov dword [edi + 0x124], esi
mov dword [edi + 0x128], esi
mov dword [edi + 0x12c], eax
mov dword [edi + 0x130], eax
mov dword [edi + 0x134], eax
mov dword [edi + 0x138], eax
lea eax, [edi + 0x150]
push eax
mov dword [edi + 0x13c], esi
mov dword [edi + 0x140], esi
mov dword [edi + 0x144], esi
mov dword [edi + method.CSomImageWnd.virtual_0], vtable.CSomImageWnd.0
mov dword [edi + 0x148], esi
mov dword [edi + 0x14c], esi
call fcn.00406900
mov byte [esp + 0x14], 1
mov dword [edi + 0x1a8], esi
mov dword [edi + 0x1ac], esi
xor eax, eax
mov dword [edi + 0x1b0], eax
mov dword [edi + 0x1b4], eax
mov dword [edi + 0x1b8], eax
mov dword [edi + 0x1bc], eax
mov dword [edi + 0x1c0], esi
mov dword [edi + 0x1c4], esi
mov dword [edi + 0x1c8], esi
mov dword [edi + method.CSomImageWnd.virtual_0], vtable.CSomImageWnd.0
mov dword [edi + 0x1cc], esi
mov dword [edi + 0x1d0], esi
mov dword [edi + 0x1d8], esi
mov dword [edi + 0x1dc], esi
mov dword [edi + 0x1e0], eax
mov dword [edi + 0x1e4], eax
mov dword [edi + 0x1e8], eax
mov dword [edi + 0x1ec], eax
lea ecx, [edi + 0x204]
push ecx
mov dword [edi + 0x1f0], esi
mov dword [edi + 0x1f4], esi
mov dword [edi + 0x1f8], esi
mov dword [edi + method.CSomImageWnd.virtual_0], vtable.CSomImageWnd.0
mov dword [edi + 0x1fc], esi
mov dword [edi + 0x200], esi
call fcn.00406900
lea edx, [edi + 0x258]
push edx
mov byte [esp + 0x18], 2
call fcn.00406900
mov dword [edi + 0x2ac], esi
lea esi, [edi + 0x2b0]
call fcn.00405e80
lea esi, [edi + 0x2f8]
call fcn.00405e80
lea esi, [edi + 0x340]
call fcn.00405e80
lea eax, [edi + 0x388]
push eax
mov byte [esp + 0x18], 6
call fcn.00406900
mov dword [edi + 0x10c], 0x460318
mov dword [edi + 0x110], 0x45ff90
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x401e00
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4499f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x45b030]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x45e5d0]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e5d0
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x20]
add ebx, 0x2ac
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00402fd0
mov esi, dword [esp + 0xc]
cmp dword [esi - 0xc], 0
je 0x401e89
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401e75
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x401e89
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4