joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4521c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x22c]
test eax, eax
jne 0x4133ae
xor al, al
jmp 0x413503
cmp byte [esi + 0x241], 2
jae 0x4133c0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00409a40
push 0x104
push 0
push 0x104
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00409f90
push eax
push dword [esi + 0x22c]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x41340c
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409b40
cmp dword [esi + 0x3c], 0
je 0x413423
mov eax, dword [esi + 0x40]
test eax, eax
je 0x413423
push ecx
push eax
push ecx
mov ecx, esi
call fcn.00416830
mov eax, dword [esi + 0x234]
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x413436
push eax
call ebx
mov eax, dword [esi + 0x238]
test eax, eax
je 0x413443
push eax
call ebx
mov eax, dword [esi + 0x1fc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x413456
push eax
call edi
mov eax, dword [esi + 0x200]
test eax, eax
je 0x413463
push eax
call edi
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x413470
push eax
call edi
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x413481
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x254]
test eax, eax
je 0x413492
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp byte [esi + 0x241], 2
jae 0x4134cd
push dword [esi + 0x22c]
call ebx
cmp byte [esi + 0x241], 0
jne 0x4134cd
lea ecx, [ebp - 0x1c]
call fcn.00409c00
test eax, eax
je 0x4134cd
push dword [esi + 0x11c]
lea ecx, [ebp - 0x1c]
call fcn.00409cd0
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x4134de
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
push esi
push 0x412750
push dword [esi + 0x22c]
call dword [sym.imp.COMCTL32.dll_RemoveWindowSubclass]
push 0
mov ecx, esi
call fcn.00417b00
lea ecx, [ebp - 0x1c]
call fcn.00409b80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret
Function at 0x415f60
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4528c1
mov eax, dword fs:[0]
push eax
mov eax, 0x11f8
call fcn.0044f6e0
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push 0xffffffffffffffff
push str.HKCUSoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.0040c6e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.0040c730
test eax, eax
jne 0x415fd4
xor bl, bl
jmp 0x4161b0
cmp dword [ebp - 0x220], 0
jne 0x416176
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x2af9
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 0x1c
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x21c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x23c]
movq qword [ebp - 0x23c], xmm0
push 0
push 0
push 0
push str.Internet_exploreriexplore.exe
push eax
call fcn.00409ac0
push 0xfc8
lea eax, [ebp - 0x1204]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0043e2c0
add esp, 0xc
lea ecx, [ebp - 0x23c]
call fcn.00409cd0
push eax
lea ecx, [ebp - 0x1204]
call fcn.0040ec10
sub esp, 0xc
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x1204]
movq qword [ebp - 0x230], xmm0
call fcn.0040ec90
push eax
lea ecx, [ebp - 0x230]
call fcn.00409a90
push 2
push 1
push 1
push 1
push 0x46e2d8
lea ecx, [ebp - 0x230]
call fcn.0040a840
test eax, eax
je 0x4160c1
mov dword [ebp - 0x220], 0x22b8
jmp 0x41613f
push 2
push 1
push 1
push 1
push 0x46e2e0
lea ecx, [ebp - 0x230]
call fcn.0040a840
test eax, eax
je 0x4160e9
mov dword [ebp - 0x220], 0x270f
jmp 0x41613f
push 3
push 1
push 1
push 1
push 0x46e2e8
lea ecx, [ebp - 0x230]
call fcn.0040a840
test eax, eax
je 0x416111
mov dword [ebp - 0x220], 0x2711
jmp 0x41613f
push 3
push 1
push 1
push 1
push 0x46e2f0
lea ecx, [ebp - 0x230]
call fcn.0040a840
mov ecx, dword [ebp - 0x220]
test eax, eax
mov edx, 0x2ee1
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x230]
call fcn.00409b80
lea ecx, [ebp - 0x248]
call fcn.00409b80
lea ecx, [ebp - 0x254]
call fcn.00409b80
lea ecx, [ebp - 0x260]
call fcn.00409b80
lea ecx, [ebp - 0x23c]
call fcn.00409b80
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push 0
lea eax, [ebp - 0x220]
push eax
push 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040cc20
mov bl, al
lea ecx, [ebp - 0x224]
call fcn.0040c740
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 4
Function at 0x416fa0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x3c], eax
cmp edi, 0xffffffff
jne 0x416fc6
mov edi, dword [esi + 0x40]
push edi
call fcn.00417320
test al, al
jne 0x416fe5
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x234], 0
jne 0x416ff7
call fcn.00417840
test al, al
je 0x416fd0
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0043e2c0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [edi + edi*8]
shl ecx, 3
add esp, 0xc
mov dword [ebp - 0x38], ecx
add ecx, dword [esi + 0x3c]
mov dword [ebp - 0x34], 0x30
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0x1c
jne 0x417067
push 0
push edi
push 0x419
mov dword [ebp - 0x30], 0x10
push dword [ecx + 4]
call ebx
cmp eax, 0xffffffff
je 0x416fd0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x38]
push eax
mov eax, dword [esi + 0x3c]
push 0x41d
push dword [eax + ecx + 4]
call ebx
test eax, eax
je 0x416fd0
mov dword [ebp - 0x28], edi
jmp 0x417074
mov dword [ebp - 0x30], 0x11
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
push 0x186a0
push 0
push 0x418
push dword [esi + 0x234]
call ebx
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [esi + 0x234]
call ebx
mov ecx, dword [ebp - 4]
cmp eax, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x417ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 2
push 0
push 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417f14
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp - 8]
push ebx
push edi
call fcn.00417ca0
test eax, eax
je 0x417f4a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x417f4a
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419120
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x68
mov edi, edx
mov esi, ecx
call fcn.00424a1c
add esp, 4
mov dword [ebp - 8], eax
mov ecx, eax
call fcn.00418f80
push 0x68
mov ebx, eax
push 0
push ebx
call fcn.0043e2c0
add esp, 0xc
lea ecx, [ebx + 0x3c]
push esi
call fcn.00409b00
push edi
lea ecx, [ebx + 0x30]
mov dword [ebx + 0x1c], 3
call fcn.00409b00
push str.http:__www.carifred.com
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x20], 0
call fcn.00409b00
lea ecx, [ebx + 0x54]
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_49.0.2623.87_Safari_537.36
call fcn.00409b00
push 0
lea ecx, [ebx + 0x30]
call fcn.00409b70
movzx eax, word [eax]
cmp eax, 0x22
je 0x4191d6
cmp eax, 0x5c
je 0x4191d6
push 2
push 2
push 1
push 1
push 0x46de98
lea ecx, [ebx + 0x30]
call fcn.0040a840
test eax, eax
je 0x4191d6
sub esp, 0x28
lea ecx, [ebx + 0x30]
push 0
push 0x46de84
call fcn.0040ae00
push 0
push 0
push ebx
push 0x419290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x60], eax
test eax, eax
jne 0x419239
lea ecx, [ebx + 0x54]
call fcn.00409b80
lea ecx, [ebx + 0x48]
call fcn.00409b80
lea ecx, [ebx + 0x3c]
call fcn.00409b80
lea ecx, [ebx + 0x30]
call fcn.00409b80
lea ecx, [ebx + 0x24]
call fcn.00409b80
push 0x68
push ebx
call fcn.004252df
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [ebp - 8]
push ecx
push eax
call esi
test eax, eax
je 0x41926f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0x103
jne 0x41926f
call fcn.0040b920
push 5
call edi
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x60]
call esi
test eax, eax
jne 0x419250
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419820
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452b68
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x3c
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0043e2c0
add esp, 0xc
mov ecx, esi
push 0
push 0x400
call fcn.00409f90
push 0
push 0x400
mov ecx, ebx
call fcn.00409f90
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00409a40
push 0
push 0x400
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00409f90
mov ecx, esi
mov dword [ebp - 0x58], 0x3c
call fcn.00409cd0
mov ecx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x400
call fcn.00409cd0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
call fcn.00409cd0
mov dword [ebp - 0x24], eax
mov ecx, edi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x20], 0x400
push eax
push 0
call fcn.0040b9b0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov byte [ebp - 0x59], al
test al, al
je 0x41992d
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00409cd0
push eax
mov ecx, ebx
call fcn.0040aaf0
mov ecx, dword [ebp - 0x60]
mov ax, word [ebp - 0x40]
mov word [ecx], ax
lea ecx, [ebp - 0x1c]
call fcn.00409b80
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
Function at 0x419f40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x471cf0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x419ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x41a07c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41a02d
cmp dword [esi + 0x40], edi
jae 0x41a02d
push eax
call fcn.00424a4f
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x41a045
lea eax, [edi + edi]
push eax
call fcn.00424a54
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.0043e9e0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x41a079
lea ecx, [esi + 0x30]
nop dword [eax + eax]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.00419fb0
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x41a060
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41a0bc
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x41a097
mov dword [esi + 0x14], 0x30000
jmp 0x41a0ef
push edi
add ecx, edx
push ebx
push ecx
call fcn.0043e9e0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x41a0e8
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
Function at 0x41bca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41bcab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41bd67
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
sub edi, 1
jne 0x41bcc0
pop edi
test esi, esi
je 0x41bd8a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x471cf0]
sub esi, 1
jne 0x41bd70
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x41c5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x41c616
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c611
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41c63e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x41c627
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0043e9e0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret
Function at 0x41d5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x41d664
cmp dword [esi + 4], 0xffffffff
jne 0x41d664
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d5f2
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x41d626
cmp eax, 0x2f
je 0x41d626
push 0x46d658
push 0x104
push edi
call fcn.00445167
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041c420
add esp, 8
test eax, eax
jne 0x41d645
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.0041c980
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41dd30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x41dd62
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41dd62
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41de23
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x41dd7f
cmp ax, 0x5c
jne 0x41dd81
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41dd73
cmp esi, ebx
je 0x41ddca
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0043e9e0
add esp, 0xc
cmp esi, 0x208
jae 0x41de33
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.0041dd30
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x41dded
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00445236
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00445167
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41de23
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret
call fcn.0042513a
int3
Function at 0x401847
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc2d3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x513720]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x513720]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0xffffffffffffffff
call dword [sym.imp.IMM32.dll_ImmDisableIME]
push 0x4fe434
xor ebx, ebx
push ebx
call fcn.004b9a2e
xor eax, eax
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
mov esi, str._K__M
pop ecx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x10]
call fcn.00404b50
or dword [esp + 0x30], 0xffffffff
xor eax, eax
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004b923d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401dd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e2f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e20
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401e1c
cmp esi, ecx
jae 0x401e20
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x401e0c
cmp esi, ecx
jb 0x401e24
xor eax, eax
jmp 0x401e2e
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402dd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
and dword [edi], 0
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e30
cmp dword [ebp - 8], 1
je 0x402e27
cmp dword [ebp - 8], 2
je 0x402e27
push 0xd
pop eax
jmp 0x402e30
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b923d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404daa
Capabilities:
Check mutex on windows

Disassembly:
push 0x24
mov eax, 0x4dca29
call fcn.004c10fd
mov edi, ecx
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00404eb2
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x404dd1
mov eax, dword [eax]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
or dword [ebp - 4], 0xffffffff
xor esi, esi
push ebx
inc esi
lea ecx, [ebp - 0x30]
push esi
call fcn.00403864
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404ea9
lea eax, [ebp - 0x30]
push eax
call fcn.00404f50
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 8
jb 0x404e13
mov eax, dword [eax]
push eax
push 0x400
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x18], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
push ebx
push 1
call fcn.00403864
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x404ea0
push 0x400
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404e94
push 0
push 0
push 0x7e8
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404e8d
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x18]
call ebx
push dword [edi + 4]
call ebx
and dword [edi + 4], 0
mov eax, dword [ebp - 0x14]
call fcn.004c10cb
ret

Function at 0x404eb2
Capabilities:
Get hostname

Disassembly:
push 0x410
mov eax, 0x4dca66
call fcn.004c1130
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x418], edi
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
mov dword [ebp - 0x41c], esi
call fcn.004be330
add esp, 0xc
mov dword [ebp - 0x414], 0x200
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.ATL:MemData03EA
mov ecx, esi
call fcn.004034e9
mov dword [ebp - 4], edi
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0x418], 1
call fcn.00402ce4
pop ecx
push eax
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.004038aa
mov eax, esi
call fcn.004c10df
ret 4