joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5c2c30], 0
jne 0x4f444a
call fcn.004f3040
mov dword [0x5c2c30], eax
test eax, eax
je 0x4f445f
mov ecx, esi
call fcn.004f3540
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
push esi
mov ecx, 0x104
lea edx, [ebp - 0x10c]
call fcn.004dd9d0
add esp, 4
cmp eax, 0x104
ja 0x4f4494
push 1
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4f67f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
inc dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
push edi
test eax, eax
jne 0x4f680f
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x4f6847
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
mov ecx, dword [esi + 0x1c]
push 0xffffffffffffffff
push ecx
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x20]
test edx, edx
jne 0x4f6824
mov edi, 1
add dword [esi + 0x24], edi
jmp 0x4f68c6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
neg edi
sbb edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4f68b3
test edi, edi
je 0x4f68c6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, ebx
ja 0x4f68bd
mov edx, ebx
sub edx, eax
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
neg edi
sbb edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x4f6877
mov edi, 1
add dword [esi + 0x24], edi
jmp 0x4f68c6
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x28]
mov edx, dword [esi + 0x28]
pop ebx
jne 0x4f68e0
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x4fd662
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5c2cf8], 0
push esi
push edi
jne 0x4fd5d3
call fcn.004fd52d
test eax, eax
je 0x4fd618
mov eax, dword [0x5c2cf8]
cmp eax, 1
jne 0x4fd5f4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4fd618
jmp 0x4fd65a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4fd65a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4fd61c
xor eax, eax
jmp 0x4fd65a
mov eax, dword [esi]
push dword [0x5c2cf8]
call edi
mov edi, eax
test edi, edi
je 0x4fd63e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4fd65a
lea edi, [esi + 0xff0]
push esi
push dword [0x5c2cf8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4fd644
mov eax, esi
pop edi
pop esi
ret
jmp 0x4fd5bf
Function at 0x4fe1f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5bc684]
jne 0x4fe1ff
repz ret
jmp fcn.0050866c

Function at 0x51acdf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00508053
and dword [ebp - 0x14], 0
cmp dword [0x5c3a88], 0
mov dword [ebp - 0x18], eax
jne 0x51ad92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51ae3a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51ae3a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5c3a88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5c3a8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c3a90], eax
call edi
push eax
call esi
mov dword [0x5c3a98], eax
test eax, eax
je 0x51ad92
push 0x583ad0
push ebx
call edi
push eax
call esi
mov dword [0x5c3a94], eax
mov eax, dword [0x5c3a94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51adeb
cmp dword [0x5c3a98], ecx
je 0x51adeb
push eax
call esi
push dword [0x5c3a98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51adeb
test ebx, ebx
je 0x51adeb
call edi
test eax, eax
je 0x51ade2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51ade2
test byte [ebp - 8], 1
jne 0x51adeb
or dword [ebp + 0x10], 0x200000
jmp 0x51ae1e
mov eax, dword [0x5c3a8c]
cmp eax, dword [ebp - 0x18]
je 0x51ae1e
push eax
call esi
test eax, eax
je 0x51ae1e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51ae1e
mov eax, dword [0x5c3a90]
cmp eax, dword [ebp - 0x18]
je 0x51ae1e
push eax
call esi
test eax, eax
je 0x51ae1e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c3a88]
call esi
test eax, eax
je 0x51ae3a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51ae3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
leave
ret
Function at 0x52e8ea
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52e9bf
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52e9ae
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x52e998
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x52e9ae
push eax
push edi
push dword [ebp - 0x110]
call fcn.0052e887
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x52e9c1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fe1f5
leave
ret 4

Function at 0x52eca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c860
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x52ed22
movzx edx, byte [ecx]
inc edx
mov byte [ecx], dl
movzx eax, dl
mov bl, byte [eax + ecx + 2]
movzx eax, byte [ecx + 1]
movzx edi, bl
add eax, edi
mov byte [ecx + 1], al
movzx eax, al
mov al, byte [eax + ecx + 2]
movzx edx, dl
mov byte [edx + ecx + 2], al
movzx edx, byte [ecx + 1]
mov byte [edx + ecx + 2], bl
add al, bl
movzx eax, al
movzx edx, byte [eax + ecx + 2]
movzx eax, byte [esi]
xor edx, eax
mov byte [esi], dl
inc esi
mov dword [ebp + 8], esi
dec dword [ebp + 0xc]
jmp 0x52ecd3
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 8
Function at 0x52f530
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 8]
push 0
push eax
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov dword [esi + 0x5c], 0xc3d2e1f0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ff6f0
xor eax, eax
xor ecx, ecx
mov word [esi + 0x48], cx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
add esp, 0xc
mov dword [esi + 0x70], eax
pop esi
ret
Function at 0x484490
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e000]
mov dword [edi + 0x70d18], 0xb0b4e367
push edi
jmp 0x4844ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4844c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4844b0
mov eax, 1
add ebx, ebx
jne 0x4844d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4844e4
jne 0x484503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484503
dec eax
add ebx, ebx
jne 0x4844f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4844c8
add ebx, ebx
jne 0x4844ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x484555
xor ecx, ecx
sub eax, 3
jb 0x48451b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48458a
sar eax, 1
mov ebp, eax
jmp 0x484526
add ebx, ebx
jne 0x484526
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4844f4
inc ecx
add ebx, ebx
jne 0x484534
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4844f4
add ebx, ebx
jne 0x484541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x484536
jne 0x484552
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x484536
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x484574
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x484566
jmp 0x4844b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x484574
add edi, ecx
jmp 0x4844b6
pop esi
mov edi, esi
mov ecx, 0x3229
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x484592
cmp byte [edi], 0x16
jne 0x484592
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 0x484597
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x48460f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x88620]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8873c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4845c4
mov ecx, edi
jns 0x4845f3
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 + 0x88744]
or eax, eax
je 0x484609
mov dword [ebx], eax
add ebx, 4
jmp 0x4845e1
call dword [esi + 0x88740]
mov ebp, dword [esi + 0x88748]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x484643
sub esp, 0xffffff80
jmp 0x434a80
Function at 0x40cf30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5036e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40cfb7
test ebx, ebx
je 0x40cfb7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40cfb7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40cfb7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40cfb1
push esi
push ebx
push edi
call fcn.004985f0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40cfb1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004779c3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004779c3
mov esp, ebp
pop ebp
ret

Function at 0x40cfd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d029
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d029
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40d01a
cmp esi, edx
jae 0x40d029
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40d008
cmp esi, edx
jae 0x40d029
cmp word [esi], 0
je 0x40d029
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x413600
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
push edi
jb 0x413623
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x413641
nop
movzx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x413630
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + esi]
add edx, esi
cmp dword [edx + 4], eax
jne 0x41367a
cmp ecx, eax
jne 0x413672
mov ecx, dword [ebx + 4]
mov dword [edx], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [esi + edx + 4], ecx
jmp 0x413682
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x413682
cmp ecx, eax
jne 0x413682
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
lea ecx, [ebx + 4]
mov edi, dword [eax]
push eax
mov dword [edx], edi
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
dec dword [ecx + 4]
call fcn.0041ec70
mov eax, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416020
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6968
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5036e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x250]
push 3
push eax
mov dword [ebp - 0x234], 1
call fcn.004172a0
add esp, 8
push 0xe
push str.debug_url.set
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040eb20
mov dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x234], 3
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x23c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x416131
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41623a
push edx
push ecx
call fcn.004776ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x21c], 8
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x23c], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4161e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004990f0
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4d3594
push str.test_url
push str.DebugUrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4161c2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040edb0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41621c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416212
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41623f
push edx
push ecx
call fcn.004776ff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004779c3
mov esp, ebp
pop ebp
ret 4
call fcn.0049c66a
call fcn.0049c66a
int3
Function at 0x429860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c88db
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5036e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004990f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4298c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x94]
call fcn.0040edb0
mov ecx, edi
call fcn.0042a770
test al, al
je 0x429a02
mov esi, dword [edi + 0x18]
xor eax, eax
test esi, esi
je 0x4298fc
mov eax, dword [esi]
mov dword [edi + 0x24], eax
xor eax, eax
test esi, esi
je 0x429908
mov eax, dword [esi + 4]
mov dword [edi + 0x28], eax
xor eax, eax
test esi, esi
je 0x429914
mov eax, dword [esi + 0xc]
push 0
push 0x3c
lea ecx, [ebp - 0x230]
mov dword [edi + 0x2c], eax
call fcn.0040a670
test esi, esi
je 0x42994d
cmp dword [ebp - 0x21c], 8
lea eax, [esi + 0x10]
push 0x3c
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push eax
push ecx
call fcn.004985f0
add esp, 0xc
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
cmovae edx, dword [ebp - 0x230]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429970
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x30]
call fcn.0040edb0
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4299cc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4299c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429a1d
push edx
push ecx
call fcn.004776ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
push 0x54
mov ecx, edi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0042b200
mov ecx, edi
call fcn.0042b8e0
mov ecx, edi
call fcn.0042b370
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004779c3
mov esp, ebp
pop ebp
ret
call fcn.0049c66a
int3
Function at 0x42bfe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8c30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5036e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004776cf
mov edi, eax
add esp, 4
test edi, edi
je 0x42c092
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043ff4c
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x42d114
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x42d103
jg 0x42d078
test edx, edx
je 0x42d103
call fcn.0040d6c0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x42d0c8
jg 0x42d08e
test esi, esi
je 0x42d0c8
cmp ebx, eax
jg 0x42d09d
jl 0x42d098
cmp edi, esi
jae 0x42d09d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.004985f0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x42d0ea
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x42d0fd
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x42d078
jl 0x42d0fd
test edi, edi
jne 0x42d078
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x42d133
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x42d135
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x42d1dd
jg 0x42d14f
test esi, esi
je 0x42d1dd
test eax, eax
jl 0x42d18e
jg 0x42d159
test ebx, ebx
je 0x42d18e
cmp edi, eax
jg 0x42d168
jl 0x42d163
cmp esi, ebx
jae 0x42d168
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004985f0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x42d194
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x42d1dd
jg 0x42d19e
test esi, esi
je 0x42d1dd
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x42d1dd
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x42d1c9
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.004a27bf
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc