joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032013
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74c
mov eax, 0x1005f975
call fcn.10045525
mov edi, ecx
cmp dword [edi + 0x24], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x758], eax
jne 0x10032068
push 0x10004bf0
push 0x3a
lea ecx, [ebp - 0x73c]
call fcn.10042d2d
mov esi, eax
push 0x100629b4
lea eax, [ebp - 0x3b4]
mov ecx, 0xe2
lea edi, [ebp - 0x3b4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10042d2d
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x744], 7
mov dword [ebp - 0x740], 1
jb 0x10032086
mov eax, dword [esi]
jmp 0x10032088
mov eax, esi
lea ecx, [ebp - 0x740]
push ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x744]
push ecx
push ebx
push eax
push dword [edi + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x100321de
cmp dword [ebp - 0x744], 7
jne 0x100321de
test ecx, ecx
je 0x100320dd
push esi
lea eax, [edi + 8]
push eax
push 0x10004ac0
push ecx
push 0xf
lea ecx, [ebp - 0x73c]
call fcn.10042d2d
jmp 0x10032048
mov eax, dword [ebp - 0x740]
add eax, 2
mov dword [ebp - 0x740], eax
mov dword [ebp - 0x754], ebx
mov dword [ebp - 0x750], ebx
mov dword [ebp - 0x74c], ebx
push eax
lea ecx, [ebp - 0x754]
mov dword [ebp - 4], ebx
call fcn.10042d2d
mov ebx, dword [ebp - 0x750]
sub ebx, dword [ebp - 0x754]
mov dword [ebp - 4], 1
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
cmp dword [esi + 0x14], 8
jb 0x10032136
mov ecx, dword [esi]
jmp 0x10032138
mov ecx, esi
lea edx, [ebp - 0x740]
push edx
push eax
lea eax, [ebp - 0x744]
push eax
push 0
push ecx
push dword [edi + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x10032167
push esi
lea ecx, [edi + 8]
push ecx
push 0x10004ac0
push eax
jmp 0x100320cb
mov edi, dword [ebp - 0x758]
xor esi, esi
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
and dword [ebp - 0x1c], 0
xor ecx, ecx
lea eax, [eax + esi*2]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.10042d2d
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10042d2d
mov eax, dword [ebp - 0x1c]
push 0
inc eax
push 1
lea ecx, [ebp - 0x2c]
add esi, eax
mov byte [ebp - 4], 1
call fcn.10042d2d
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x754]
cmp byte [ecx + esi*2], 0
jne 0x1003216f
lea ecx, [ebp - 0x754]
call fcn.1005ec72
mov al, 1
jmp 0x100321e0
xor al, al
call fcn.100455a8
ret 8
Function at 0x1003d123
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100611af
call fcn.100454bc
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x1003d14c
cmp dword [0x1009b850], edi
je 0x1003d236
push 2
pop ebx
jmp 0x1003d166
cmp edi, 1
jne 0x1003d236
mov eax, ebx
call fcn.1003e014
test al, al
je 0x1003d236
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.1003e036
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x1003d218
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1003d1ad
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
call fcn.1003d80d
test eax, eax
je 0x1003d24a
push 0x1c049f
push 0
call fcn.10042d2d
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x10069528], 0
push ebx
mov ecx, 0x1009b860
call fcn.10042d2d
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.1003d924
mov esi, eax
test esi, esi
je 0x1003d199
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003e057
inc edi
cmp edi, 2
jl 0x1003d134
mov eax, esi
call fcn.10045594
ret 0x18
push ebx
mov ecx, 0x1009b860
call fcn.10042d2d
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x1003d22a
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x1003d285
cmp dword [ebp - 0x20], 3
jne 0x1003d280
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x1003d280
and cl, 0xf
cmp cl, 4
je 0x1003d285
push 2
pop esi
jmp 0x1003d22a
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.1003e057
xor eax, eax
jmp 0x1003d242
Function at 0x1003d70e
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x10061220
call fcn.100454bc
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b858]
jne 0x1003d72c
xor al, al
jmp 0x1003d805
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x1003d73d
xor ecx, ecx
cmp dword [0x1009b850], ecx
jmp 0x1003d748
mov eax, esi
call fcn.1003e014
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x1003d725
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.1003e036
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x1003d7c6
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1003d77c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.1003d80d
test eax, eax
je 0x1003d7eb
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.10042d2d
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b860
mov dword [eax + 0x10069528], ebx
call fcn.10042d2d
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.1003d924
mov ebx, eax
test ebx, ebx
je 0x1003d770
jmp 0x1003d7f8
push dword [ebp + 8]
mov ecx, 0x1009b860
call fcn.10042d2d
lea ecx, [ebp + 0xf]
call fcn.1003e057
test ebx, ebx
sete al
call fcn.10045594
ret 8
Function at 0x1003e078
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10061276
call fcn.100454bc
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b858]
jne 0x1003e096
xor eax, eax
jmp 0x1003e1fb
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x1003e0b9
cmp dword [0x1009b850], ebx
je 0x1003e1bb
push 2
pop edi
jmp 0x1003e0d3
cmp ebx, 1
jne 0x1003e1bb
mov eax, esi
call fcn.1003e014
test al, al
je 0x1003e1bb
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.1003e036
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x1003e17e
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1003e107
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x1003e133
cmp dword [ebp - 0x1c], 1
je 0x1003e130
cmp dword [ebp - 0x1c], 2
jne 0x1003e133
push 2
pop edi
mov eax, edi
call fcn.1003d80d
test eax, eax
je 0x1003e19b
push 0x1c0496
xor edi, edi
push edi
call fcn.10042d2d
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b860
mov dword [eax + 0x10069528], edi
call fcn.10042d2d
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.1003d924
mov edi, eax
test edi, edi
je 0x1003e0fb
jmp 0x1003e1ac
push dword [ebp - 0x10]
mov ecx, 0x1009b860
call fcn.10042d2d
test edi, edi
je 0x1003e1c7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003e057
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x1003e0a1
jmp 0x1003e1d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003e057
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x1003e1f1
cmp dword [ebp - 0x1c], 2
je 0x1003e1e9
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x1003e1f9
push ecx
call fcn.10042d2d
jmp 0x1003e1f7
push esi
call fcn.10042d2d
mov ecx, eax
mov eax, ecx
call fcn.10045594
ret 4
Function at 0x10042d2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10042d3c
pop dword [ebp - 0x20]
mov eax, 0x3d892822
add eax, 0xd27b051a
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x84908c3d
add dword [ebp - 0x30], 0xc9c1b90e
mov dword [ebp - 0x2c], 0x1eba9f69
sub dword [ebp - 0x2c], 0xec875324
mov dword [ebp - 0x28], 0x351a076b
add dword [ebp - 0x28], 0x17323cc3
mov dword [ebp - 0x24], 0x53df5be5
add dword [ebp - 0x24], 0xac20a41b
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x17b9b1a2
sub dword [ebp - 0x30], 0xa347484c
mov dword [ebp - 0x2c], 0x7c25138b
sub dword [ebp - 0x2c], 0x3ab8b216
mov dword [ebp - 0x28], 0xfd07bb07
sub dword [ebp - 0x28], 0x99984e9b
mov dword [ebp - 0x24], 0x82774cf5
sub dword [ebp - 0x24], 0x82774cf5
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x48fdb
push 0
call eax
mov ecx, 0xf47731ec
sub ecx, 0xf476ed0b
mov edi, eax
mov ebx, 0xa40a1fb1
sub ebx, 0x93fcfbb1
add ebx, dword [ebp - 0x20]
mov edx, 0x71969eeb
xor dword [ebp - 0xc], 0xf8eeeedb
mov esi, dword [ebx]
sub dword [ebp - 0x18], edi
add esi, edx
sub dword [ebp - 4], edi
mov dword [edi], esi
xor dword [ebp - 0x14], 0xe66c738c
add edi, 4
add ebx, 0x96dcaed7
add ebx, 0x6923512d
loop 0x10042e4e
add eax, 0xba7fa327
add eax, 0x45816330
mov ebx, eax
add eax, 5
mov ecx, 0x38e3869a
sub ecx, 0x28e3869a
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10044aee
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10066040
call fcn.100498d0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10044b7c
call fcn.1004989e
test eax, eax
jne 0x10044b12
xor eax, eax
jmp 0x10044c48
call fcn.10048c80
test eax, eax
jne 0x10044b22
call fcn.100498bc
jmp 0x10044b0b
call fcn.10049852
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x100a4834], eax
call fcn.10042d2d
mov dword [0x1009c15c], eax
call fcn.10042d2d
test eax, eax
jns 0x10044b4c
call fcn.10048959
jmp 0x10044b1b
call fcn.10042d2d
test eax, eax
js 0x10044b75
call fcn.1004948a
test eax, eax
js 0x10044b75
push 0
call fcn.10042d2d
pop ecx
test eax, eax
jne 0x10044b75
inc dword [0x1009c158]
jmp 0x10044c45
call fcn.10049437
jmp 0x10044b45
xor edi, edi
cmp eax, edi
jne 0x10044bdb
cmp dword [0x1009c158], edi
jle 0x10044b0b
dec dword [0x1009c158]
mov dword [ebp - 4], edi
cmp dword [0x1009c4d4], edi
jne 0x10044ba0
call fcn.100491c5
cmp dword [ebp + 0x10], edi
jne 0x10044bb4
call fcn.10049437
call fcn.10048959
call fcn.100498bc
mov dword [ebp - 4], 0xfffffffe
call fcn.10044bc7
jmp 0x10044c45
cmp eax, 2
jne 0x10044c39
call fcn.10048925
push 0x214
push 1
call fcn.10042d2d
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x10044b0b
push esi
push dword [0x10099c10]
push dword [0x1009c4b4]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x10044c2d
push edi
push esi
call fcn.1004899a
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x10044c45
push esi
call fcn.10042d2d
pop ecx
jmp 0x10044b0b
cmp eax, 3
jne 0x10044c45
push edi
call fcn.10042d2d
pop ecx
xor eax, eax
inc eax
call fcn.10049915
ret 0xc

Function at 0x10045462
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10099c08]
jne 0x10046509
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1009c280], eax
mov dword [0x1009c27c], ecx
mov dword [0x1009c278], edx
mov dword [0x1009c274], ebx
mov dword [0x1009c270], esi
mov dword [0x1009c26c], edi
mov word [0x1009c298], ss
mov word [0x1009c28c], cs
mov word [0x1009c268], ds
mov word [0x1009c264], es
mov word [0x1009c260], fs
mov word [0x1009c25c], gs
pushfd
pop dword [0x1009c290]
mov eax, dword [ebp]
mov dword [0x1009c284], eax
mov eax, dword [ebp + 4]
mov dword [0x1009c288], eax
lea eax, [ebp + 8]
mov dword [0x1009c294], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1009c1d0], 0x10001
mov eax, dword [0x1009c288]
mov dword [0x1009c184], eax
mov dword [0x1009c178], 0xc0000409
mov dword [0x1009c17c], 1
mov eax, dword [0x10099c08]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10099c0c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1009c1c8], eax
push 1
call fcn.1004d289
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10010f4c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1009c1c8], 0
jne 0x100465f5
push 1
call fcn.1004d289
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x40c030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push ebx
call edi
push 0x3eb
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x40c12a
test edi, edi
je 0x40c12a
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
test eax, eax
push 0
je 0x40c0a8
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebp
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 1
push edi
call ebp
push 5
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [0x45d9d8]
lea eax, [edx + ecx]
jmp 0x40c0d1
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push edi
call ebp
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 1
push esi
call ebp
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x45d9d4]
add eax, ecx
mov edx, dword [esp + 0x18]
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x28]
test eax, eax
pop ebp
je 0x40c10b
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebx
call esi
test eax, eax
jne 0x40c123
jmp 0x40c111
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
call esi
test eax, eax
jne 0x40c123
push 2
push ebx
call esi
test eax, eax
je 0x40c12a
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401742
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401759
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40178e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40178a
cmp edi, eax
jae 0x40178e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40177c
cmp edi, eax
jb 0x401792
xor eax, eax
jmp 0x40179c
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402252
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4022e0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x402289
cmp dword [ebp - 8], 2
jne 0x4022df
push esi
mov esi, dword [ebp + 0xc]
call fcn.004015cc
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401866
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4022de
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4022d0
push eax
call fcn.004886c1
pop ecx
mov edx, esi
call fcn.0040160c
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4022e7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.004883c0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x402340
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4023ee
mov eax, dword [ebp - 0x94]
dec eax
je 0x4023da
dec eax
jne 0x4023ee
cmp dword [ebp - 0xa0], 6
jne 0x40238b
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x402373
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x402387
cmp dword [ebp - 0x9c], edi
jne 0x4023c7
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4023ee
cmp dword [ebp - 0xa0], 5
jne 0x4023ba
cmp dword [ebp - 0x9c], 2
jne 0x4023a1
push 5
jmp 0x4023d7
cmp dword [ebp - 0x9c], 1
jne 0x4023ae
push 6
jmp 0x4023d7
cmp dword [ebp - 0x9c], edi
jne 0x4023ee
push 3
jmp 0x4023d7
cmp dword [ebp - 0xa0], 4
ja 0x4023ee
push 4
jmp 0x4023d7
cmp dword [ebp - 0x9c], 2
jne 0x4023ee
cmp byte [ebp + 0x76], al
jne 0x4023ee
push 0xa
pop edi
jmp 0x4023ee
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x4024c6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
mov eax, dword [0x4db494]
mov esi, 0x4db494
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.004016a0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401aed
cmp dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
jle 0x4025fc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x40256e
cmp cx, 0x2d
je 0x40256e
push eax
lea eax, [ebp - 0xc]
call fcn.00401989
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x24]
call fcn.00405336
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x4025ed
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004055b2
mov eax, dword [edi]
inc eax
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401aed
push 0x3d
xor ecx, ecx
lea esi, [ebp - 0x2c]
call fcn.00411b05
mov esi, eax
cmp esi, 0xffffffff
je 0x4025e2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x10]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 0x2c]
call fcn.00401d55
lea edi, [ebp - 0x28]
call fcn.0040206d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
call fcn.00401a63
lea edi, [ebp - 0x2c]
call fcn.0040206d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040151c
lea ebx, [ebp - 0x24]
call fcn.00405391
mov ebx, dword [ebp + 8]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jl 0x402532
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004055b2
lea edi, [ebp - 0x2c]
call fcn.00402741
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x403009
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
inc ebx
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x403045
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x403045
mov ecx, edi
mov dword [edi + 0x388], ebx
call fcn.00402f81
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
cmp dword [edi + 0x388], 0
je 0x403048
mov eax, ebx
jmp 0x40308f
mov esi, dword [ebp + 0x18]
push 0
push esi
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d1ff
test eax, eax
jne 0x403041
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x403096
push 5
push dword [edi + 4]
lea eax, [edi + 0x388]
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x403041
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 0x403
jne 0x4030d0
mov eax, dword [edi + 0x390]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x388], ebx
mov dword [edi + 0x378], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [esi], 0
cmp dword [edi + 0x388], 0
jmp 0x40308b
cmp eax, 0x465
jne 0x40310c
xor eax, eax
lea esi, [edi + 0x2c]
push eax
mov dword [edi + 0x388], ebx
call fcn.0040c4ee
mov eax, dword [edi + 0x30]
add esi, 0x2a0
push 5
lea ecx, [edi + 0x3bc]
mov dword [edi + 0x3f4], esi
call fcn.0045affb
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x4030c7
cmp eax, 0x110
jne 0x40308d
lea eax, [edi + 0x388]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.00402a41
mov dword [esi], eax
jmp 0x403085

Function at 0x40360b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push edi
push dword [ebp + 0xc]
lea ebx, [ebp - 4]
push dword [ebp + 8]
call fcn.0040367e
xor edi, edi
cmp dword [esi], edi
pop ecx
pop ecx
je 0x403665
mov eax, esi
push dword [eax]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041dccb
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040151c
test bl, bl
jne 0x40366c
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x40362f
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x403c15
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4db494]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4db494
mov dword [ebp - 4], edi
call dword [eax + 0xc]
push 1
mov ebx, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
add ebx, 0x10
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.00402204
test eax, eax
je 0x403c67
lea eax, [ebp - 8]
push eax
push str.KAV7NEEDREBOOT
mov ebx, esi
call fcn.00402252
test eax, eax
mov ebx, dword [ebp - 8]
je 0x403c67
inc edi
lea eax, [ebx - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x403c7e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret