joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42da40
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x42da4d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x42da49
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x42d940
push 0
push 0
call fcn.0045978f
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x42daa2
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x42da92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42dac4
mov esi, dword [edi]
call fcn.0042d9d0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret

Function at 0x42e480
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x42e491
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x42e4af
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x42e4e6
test ecx, ecx
je 0x42e4df
test esi, esi
ja 0x42e4a0
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x495680], ecx
inc edx
cmp edx, 0x100
jb 0x430fd3
cmp edx, 0x800
jae 0x4310a9
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x495280]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x495680]
inc edx
mov dword [edx*4 + 0x49567c], eax
cmp edx, 0x800
jb 0x431080
mov dword [0x493fb0], 0x431b50
call fcn.00431d20
test eax, eax
jne 0x4310c6
mov dword [0x493fb0], 0x431c00
pop ecx
ret
Function at 0x431120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x48f900]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.00433d60
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x43129b
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x4311d3
jb 0x4311cf
cmp ebx, 0x40000
jae 0x4311d3
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x431287
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.004339d0
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x431287
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x431264
test eax, eax
jne 0x43124d
cmp edi, dword [esp + 0x4c]
je 0x431264
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x431287
xor edi, edi
jmp 0x4311b0
cmp ecx, dword [esp + 0xb4]
jne 0x431282
cmp dword [esp + 0x14], 0
jne 0x431282
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x431287
cmp eax, 4
je 0x431287
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457861
add esp, 0x90
ret
Function at 0x4312c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x48f900]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x431307
mov eax, edi
jmp 0x43145d
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00431db0
add esp, 4
cmp eax, ebx
jne 0x43145d
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x43139c
jb 0x431391
cmp dword [esp + 0xc8], eax
jae 0x43139c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x431449
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.00431f60
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x431449
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x43142e
cmp eax, ebx
jne 0x431418
cmp edi, dword [esp + 0x4c]
je 0x43142e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x431370
jmp 0x431449
cmp ecx, dword [esp + 0xd4]
jne 0x431444
cmp dword [esp + 0x14], ebx
jne 0x431444
cmp dword [esp + 0x20], 1
je 0x431449
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457861
add esp, 0xb0
ret
Function at 0x432250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x43226d
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x43229d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x43229d
inc edi
cmp edi, ebx
jb 0x432290
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x4323a5
cmp eax, 3
jbe 0x4322d0
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x43230b
cmp al, 0xff
je 0x43230b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x432283
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4322b6
movzx ecx, byte [esi + 0x47e550]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x47e548], 0
mov al, byte [eax + 4]
je 0x4322f9
test al, al
je 0x4322f9
cmp al, 0xff
jne 0x4322b6
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x432283
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x432377
movzx edx, byte [esi + 0x47e550]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x43235c
cmp bl, 0xff
jne 0x432373
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x432330
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x432283
pop edi
pop ebx
cmp eax, 3
jbe 0x4323bc
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x43a0d1
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x43a0fc
call fcn.0043efe8
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x43a11f
push eax
push dword [esi + 4]
call fcn.0043a057
push esi
push eax
mov ecx, 0x491224
call fcn.00439cd7
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x43ab9f
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4703f6
call fcn.0045a044
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0043ab5f
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401b50
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x43ac06
push eax
push dword [esi + 8]
call fcn.0043a057
push dword [esi + 0xc]
mov ecx, 0x491224
push eax
call fcn.00439cd7
mov eax, esi
call fcn.0045a11c
ret 0x1c

Function at 0x43d5f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43d63e
call fcn.0043efe8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43d63e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43d681
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43d66a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43d66a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43d67e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43f94e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x470771
call fcn.0045a044
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43f973
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43f9b9
lea ecx, [ebp - 0x10]
call fcn.00401b50
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043990b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401160
mov eax, esi
call fcn.0045a11c
ret 8
Function at 0x445a3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x445a81
call fcn.0043efe8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x445a81
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x445a9d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004455b2
mov esi, eax
test edi, edi
je 0x445a9b
test ebx, ebx
je 0x445a9b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4558e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x455905
cmp dword [edi + 0x54], 0
jne 0x455905
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043efe8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004558a2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x457861
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48f900]
jne 0x45786b
repz ret
jmp fcn.0045dfae
Function at 0x469bc0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045d912
and dword [ebp - 4], 0
cmp dword [0x493ce0], 0
mov ebx, eax
jne 0x469c71
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x469d22
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x469d22
push eax
call fcn.0045d8a0
mov dword [esp], 0x47ac08
push edi
mov dword [0x493ce0], eax
call esi
push eax
call fcn.0045d8a0
mov dword [esp], 0x47abf4
push edi
mov dword [0x493ce4], eax
call esi
push eax
call fcn.0045d8a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x493ce8], eax
call esi
push eax
call fcn.0045d8a0
pop ecx
mov dword [0x493cf0], eax
test eax, eax
je 0x469c71
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045d8a0
pop ecx
mov dword [0x493cec], eax
mov eax, dword [0x493cec]
cmp eax, ebx
je 0x469cc9
cmp dword [0x493cf0], ebx
je 0x469cc9
push eax
call fcn.0045d91b
push dword [0x493cf0]
mov esi, eax
call fcn.0045d91b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x469cc9
test edi, edi
je 0x469cc9
call esi
test eax, eax
je 0x469cc0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x469cc0
test byte [ebp - 0xc], 1
jne 0x469cc9
or dword [ebp + 0x10], 0x200000
jmp 0x469d02
mov eax, dword [0x493ce4]
cmp eax, ebx
je 0x469d02
push eax
call fcn.0045d91b
pop ecx
test eax, eax
je 0x469d02
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x469d02
mov eax, dword [0x493ce8]
cmp eax, ebx
je 0x469d02
push eax
call fcn.0045d91b
pop ecx
test eax, eax
je 0x469d02
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x493ce0]
call fcn.0045d91b
pop ecx
test eax, eax
je 0x469d22
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x469d24
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4488d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040602e
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4488d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
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 [0x4488d0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x403285
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x4032a2
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
test edi, edi
mov ebx, edi
jne 0x4032b1
mov ebx, 0x418910
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032c6
mov ecx, dword [0x448838]
add ecx, eax
push ecx
call fcn.0040326e
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.0040323c
test eax, eax
je 0x403423
test byte [ebp + 0x17], 0x80
je 0x40340c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x428918
mov dword [ebp - 0xc], eax
call fcn.00406982
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40346e
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403316
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x414910
push edi
call fcn.0040323c
test eax, eax
je 0x403423
sub dword [ebp + 0x14], esi
mov dword [0x428930], edi
mov dword [0x428934], esi
mov eax, dword [ebp - 8]
mov ecx, 0x428918
mov dword [0x428938], ebx
mov dword [0x42893c], eax
call fcn.004069a2
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403404
mov esi, dword [0x428938]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4488d4], 1
mov edi, eax
je 0x4033b8
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403385
cmp dword [ebp + 0x14], 0
jne 0x4033b8
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c97
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4033f9
cmp dword [ebp + 0x10], eax
jne 0x4033e1
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403408
cmp dword [ebp - 0x10], esi
jne 0x403408
add dword [ebp - 4], esi
jmp 0x4033ed
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x428938]
cmp dword [ebp - 0x14], 1
jne 0x403339
jmp 0x40346e
cmp dword [ebp + 0x14], eax
jg 0x403309
jmp 0x40346e
push 0xfffffffffffffffc
jmp 0x403425
push 0xfffffffffffffffe
jmp 0x403425
test edi, edi
je 0x403463
cmp dword [ebp + 0x14], esi
jge 0x403418
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040323c
test eax, eax
jne 0x40346b
push 0xfffffffffffffffd
pop eax
jmp 0x403471
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403433
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x414910
push edi
call fcn.0040323c
test eax, eax
je 0x403423
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403408
cmp esi, dword [ebp + 0x10]
jne 0x403408
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403428
jmp 0x40346e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403478
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov esi, 0x47f000
push esi
add eax, 0x3e8
push ebx
mov dword [0x448840], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405c08
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a010], edi
jne 0x4034d2
mov eax, str.Error_launching_installer
jmp 0x4036aa
push esi
mov esi, 0x477000
push esi
call fcn.00405d98
push esi
call fcn.00406207
push eax
push 0x481000
call fcn.00405d98
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x4289a4], eax
mov esi, eax
jle 0x4035ed
mov ebx, 0x420918
mov eax, dword [0x44884c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x403526
mov edi, eax
push edi
push ebx
call fcn.0040323c
test eax, eax
je 0x403657
cmp dword [0x44884c], 0
jne 0x4035b8
push 0x1c
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00405bc8
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4035c6
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x4035c6
cmp dword [ebp - 0x18], 0x74736e49
jne 0x4035c6
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x4035c6
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x4035c6
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x4289a0]
and eax, 2
or dword [0x4488c0], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x44884c], ecx
jg 0x403650
test byte [ebp + 8], 8
jne 0x4035aa
test byte [ebp + 8], 4
jne 0x4035eb
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x4035c6
mov edi, esi
jmp 0x4035c6
test byte [ebp + 8], 2
jne 0x4035c6
push 0
call fcn.004031d8
pop ecx
cmp esi, dword [0x4289a4]
jge 0x4035db
push edi
push ebx
push dword [ebp - 8]
call fcn.00406919
mov dword [ebp - 8], eax
add dword [0x4289a0], edi
sub esi, edi
test esi, esi
jg 0x40350b
xor ebx, ebx
push 1
call fcn.004031d8
cmp dword [0x44884c], ebx
pop ecx
je 0x403650
cmp dword [ebp - 4], ebx
je 0x403624
push dword [0x4289a0]
call fcn.0040326e
push 4
lea eax, [ebp + 8]
push eax
call fcn.0040323c
test eax, eax
je 0x403650
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x403650
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x44884c]
add eax, 0x1c
push eax
call fcn.0040326e
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403285
cmp eax, dword [ebp - 0x14]
je 0x403661
mov eax, str.CRC_Check_Error.
jmp 0x4036aa
push 1
call fcn.004031d8
pop ecx
jmp 0x403650
test byte [ebp - 0x28], 1
mov dword [0x4487ec], esi
mov eax, dword [esi]
mov dword [0x448848], eax
je 0x40367a
inc dword [0x448844]
push 8
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x403680
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x448800
call fcn.00405bc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4