joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c31d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c435
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002c35a
push 1
push 0x105b
call fcn.1002c4a5
pop ecx
pop ecx
jmp 0x1002c494
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1002c39f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1002c39a
push 0
push 0x62bf
push 0x2161
call fcn.1002c200
add esp, 0xc
jmp 0x1002c494
mov dword [ebp - 0x24], 0x23b2
mov dword [ebp - 0x38], str.npnkmjx_spdot_gcmjtcgx_uuiqqs_lgslzjlbr_imywyqkhq_euexuizid_xybv_uen_dclulwbd_vlnkdl_soqwucffr_cyhogisfj_rfspe
cmp dword [ebp - 0x24], 0x245e
jle 0x1002c44e
and dword [ebp - 0x1c], 0
jmp 0x1002c3c7
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x434
jge 0x1002c444
and dword [ebp - 0x20], 0
jmp 0x1002c3dd
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1ea6
jge 0x1002c43f
and dword [ebp - 0x14], 0
jmp 0x1002c3f3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x38fd
jge 0x1002c43d
and dword [ebp - 0x18], 0
jmp 0x1002c409
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x115e
jge 0x1002c43b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
and eax, ecx
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov ecx, 0x10077178
call fcn.1000b0cd
jmp 0x1002c402
jmp 0x1002c3ec
jmp 0x1002c3d6
jmp 0x1002c3c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
call dword [sym.imp.USER32.dll_DestroyCaret]
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x2246
jge 0x1002c46e
mov edx, dword [ebp - 0x38]
mov ecx, 0x10077178
call fcn.1000ca72
jmp 0x1002c48a
or dword [ebp - 4], 0xffffffff
jmp 0x1002c494
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c513
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1002e35c
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1002e348
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x3c8b
mov dword [ebp - 0x30], str.hvsyiajfj_isssju_rxfyt_mdccg
cmp dword [ebp - 0x1c], 0x3f81
jle 0x1002e2ec
and dword [ebp - 0x14], 0
jmp 0x1002e298
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2e5d
jge 0x1002e2d8
and dword [ebp - 0x18], 0
jmp 0x1002e2ae
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7ffd
jge 0x1002e2d6
mov eax, dword [ebp - 0x14]
and eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov ecx, 0x10077178
call fcn.1000b0cd
jmp 0x1002e2a7
jmp 0x1002e291
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1002e306
push 0x10dc
push 0x1585
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x391e
jge 0x1002e320
mov edx, dword [ebp - 0x30]
mov ecx, 0x10077178
call fcn.1000ca72
jmp 0x1002e33c
or dword [ebp - 4], 0xffffffff
jmp 0x1002e346
jmp 0x1002e35a
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1002e3d7
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x552c
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call fcn.1002c1c2
add esp, 0x38
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035b8c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005c77b
call fcn.1005b080
sub esp, 0x30
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x3c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x10039cf6
push fcn.10026f0e
inc ebx
mov dword [ebp - 0x28], edx
push ebx
push 0xc
push eax
mov dword [ebp - 0x2c], ecx
call fcn.10044659
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x49bb
cmp dword [ebp - 0x1c], 0x4bf6
jle 0x10035c3d
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 0x14], esi
and dword [ebp - 0x24], 0
mov ecx, esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
sar edi, cl
mov ecx, esi
mov eax, edi
sar eax, cl
mov ecx, 0x10077178
xor eax, ebx
cdq
push edx
push eax
call fcn.1000b0cd
inc esi
cmp esi, 0x422b
jl 0x10035bf5
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x17a0
jl 0x10035be7
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 0x803e
jl 0x10035be2
inc ebx
cmp ebx, 0x3309
jl 0x10035bdd
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x3c]
mov edx, 0x79e0
push eax
push 0
push ebx
push dword [ebp + 8]
mov cl, bl
push dword [ebp - 0x28]
call fcn.10036356
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x471a
jge 0x10035c94
mov edx, str.mhoofwful_mxcrvb_lhof_mzwtbipkq_dtaz
mov ecx, 0x10077178
call fcn.1000ca72
jmp 0x10035c94
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.10039c10
push 0x10039cf6
push ebx
push 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
push eax
mov byte [ebp - 4], 0
call fcn.100441cb
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035df5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
test dl, dl
je 0x10035e31
cmp byte [ebp + 8], 0
je 0x10035e0f
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x10035e60
mov eax, dword [esi]
xor ecx, ecx
mov dword [eax + 0xc], ecx
jmp 0x10035e27
mov eax, dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 8], 0x76715f0e
inc dword [eax + 0xc]
mov eax, dword [esi]
cmp dword [eax + 0xc], 1
jle 0x10035e18
jmp 0x10035e60
cmp byte [ebp + 0xc], 0
je 0x10035e4f
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x10035e60
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10035e60
xor ecx, ecx
mov byte [ebp - 1], cl
cmp byte [ebp - 1], cl
je 0x10035e60
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003732e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005c891
call fcn.1005b080
sub esp, 0x20
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push ebx
push esi
push edi
push 0x10039f2b
push fcn.10026f0e
xor edi, edi
mov ebx, ecx
inc edi
mov dword [ebp - 0x1c], ebx
push edi
push 0xc
push eax
mov esi, edx
call fcn.10044659
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
push eax
push esi
push ecx
push edi
push ecx
call fcn.100370f1
mov dword [ebp - 0x18], 0x2f9e
add esp, 0x14
cmp dword [ebp - 0x18], 0x3316
jle 0x100373da
xor esi, esi
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 0x14], 0x5590
mov ebx, edi
mov dword [ebp - 0x10], 0x45f4
xor esi, esi
mov eax, ebx
mov ecx, 0x10077178
xor eax, esi
cdq
push edx
push eax
call fcn.1000b0cd
inc esi
cmp esi, 0x4734
jl 0x1003739e
dec ebx
dec dword [ebp - 0x10]
jne 0x1003739c
mov esi, dword [ebp - 0x18]
add edi, esi
dec dword [ebp - 0x14]
jne 0x10037393
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x449b
jl 0x1003738a
mov ebx, dword [ebp - 0x1c]
xor edi, edi
inc edi
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.10039e8f
push 0x10039f2b
push edi
push 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], edi
push eax
mov byte [ebp - 4], 0
call fcn.100441cb
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100384dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005c97a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp byte [ebp + 0x1c], 0
push ebx
push esi
push edi
mov dword [esp + 0x24], edx
je 0x1003851f
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edx, dword [eax]
call fcn.1000daa7
pop ecx
jmp 0x100386b4
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x34]
and dword [esp + 0x1c], 0
call fcn.1003732e
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x28]
and dword [esp + 0x4c], 0
call fcn.1003732e
xor ebx, ebx
inc ebx
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
sub eax, dword [esp + 0x28]
sub esi, dword [esp + 0x34]
and dword [esp + 0x10], 0
sar eax, 2
sar esi, 2
cmp esi, eax
jbe 0x10038593
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp eax, esi
jge 0x100385ef
sub esi, eax
add eax, esi
mov dword [esp + 0x14], eax
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.10039ed8
dec esi
jne 0x1003857b
jmp 0x100385ef
push 0x4004
lea eax, [esp + 0x2c]
mov edx, 0x6c73
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x7e01
push 0x23db
push ebx
call fcn.10037712
add esp, 0x1c
lea eax, [esp + 0x34]
mov edx, 0x1350
mov ecx, 0x48c
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0x124
push 0xc31
lea eax, [esp + 0x28]
push eax
push 0x2d9d
push ebx
push ebx
call fcn.100377bc
add esp, 0x24
push 0xd72
push ebx
push 0x107c
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x49e5
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x4c]
call fcn.100377bc
mov dword [esp + 0x44], 0x1658
add esp, 0x24
cmp dword [esp + 0x20], 0x198d
jle 0x10038698
xor esi, esi
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, edi
xor ebx, ebx
and eax, esi
mov dword [esp + 0x20], eax
mov esi, eax
xor edi, edi
mov dword [esp + 0x14], 0x128
mov eax, edi
mov ecx, 0x10077178
xor eax, esi
cdq
push edx
push eax
call fcn.1000b0cd
add edi, ebx
dec dword [esp + 0x14]
jne 0x10038654
inc ebx
cmp ebx, 0x3131
jl 0x1003864a
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x15b6
jl 0x1003863e
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x7b02
jl 0x10038638
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.1003a25f
lea ecx, [esp + 0x34]
call fcn.1003a25f
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003ad04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
test dl, dl
je 0x1003ad20
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x1003ad36
mov edx, 0x2dac
xor cl, cl
pop ebp
jmp 0x1003affd
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x1003ad36
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
push ecx
sub esp, 0x10
push ecx
push edx
push ecx
push ecx
call fcn.1003b00f
add esp, 0x20
pop ecx
ret

Function at 0x1003b8fa
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1005cb08
call fcn.1005b080
sub esp, 0x10
push ebx
push esi
mov byte [ebp - 0x14], dl
mov dword [ebp - 0x1c], 0x90f
cmp dword [ebp - 0x1c], 0xc22
push edi
mov dword [ebp - 0x10], esp
jle 0x1003b960
xor esi, esi
xor edi, edi
xor ebx, ebx
lea ecx, [ebx + edi]
mov eax, esi
shl eax, cl
mov ecx, 0x10077178
cdq
push edx
push eax
call fcn.1000b0cd
inc ebx
cmp ebx, 0x1d21
jl 0x1003b926
inc edi
cmp edi, 0x4525
jl 0x1003b924
inc esi
cmp esi, 0x28a
jl 0x1003b922
push 0xd15
call dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [ebp - 0x14], 0
je 0x1003b981
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x15], 0
je 0x1003b991
push ecx
push 0x1289
xor dl, dl
call fcn.1003ac46
pop ecx
pop ecx
jmp 0x1003b991
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
imul edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x67e
jge 0x1003b9b0
mov edx, str.ict_qtqf_bcoljnnyk_amymbpl_aevsj_ixcyend_upe_pbyk
mov ecx, 0x10077178
call fcn.1000ca72
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c69
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
lea ebx, [eax + eax*4]
mov eax, dword [0x40427c]
shl ebx, 2
lea ecx, [ebx + eax]
mov eax, dword [ebx + eax + 0x10]
cmp eax, edx
jne 0x401d4a
push esi
mov dword [ebp + 8], edx
mov esi, dword [ecx + 0xc]
push edi
cmp esi, edx
mov dword [ebp - 4], edx
je 0x401d3b
cmp byte [esi], 0x5b
jne 0x401ca6
inc esi
mov al, byte [esi]
cmp al, 0x41
jge 0x401cd3
cmp al, 0x30
jl 0x401cc6
cmp al, 0x39
jg 0x401cc6
mov ecx, dword [ebp + 8]
movsx eax, al
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2 - 0x30]
mov dword [ebp + 8], eax
jmp 0x401ca5
cmp al, 0x2d
jne 0x401ccf
mov dword [ebp + 8], edx
jmp 0x401ca5
cmp al, 0x25
jne 0x401ca5
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x401ce1
inc eax
cmp byte [eax], 0
jne 0x401cdb
mov edi, dword [eax - 4]
and edi, 0xdfdfdfff
cmp cl, 0x5c
je 0x401cf5
cmp byte [esi + 1], 0x3a
jne 0x401d08
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401d3b
test al, 0x10
jne 0x401d37
lea eax, [ebp + 8]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconA]
test eax, eax
jne 0x401d3e
cmp dword [ebp - 4], 0xffffffff
je 0x401d3b
cmp edi, 0x4558452e
je 0x401d33
cmp edi, 0x4c4c442e
je 0x401d33
push 9
jmp 0x401d3d
push 8
jmp 0x401d3d
push 0xa
jmp 0x401d3d
push 0xb
pop eax
mov ecx, dword [0x40427c]
pop edi
pop esi
mov dword [ebx + ecx + 0x10], eax
pop ebx
leave
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x24c52b36
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x21420981
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push str.bsafe_error:_strncpy___is_not_safe__use_bmidstr_instead._n
push 0x412680
call fcn.00406508
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.00406433
Function at 0x403061
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40f14b
call fcn.004074d0
sub esp, 0x418
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
push 0x413340
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.00401c0f
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
mov byte [ebp - 0x424], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push 0x20019
push ebx
mov dword [ebp - 0x18], 0x400
push dword [ebp + 0x14]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403100
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push ebx
push ebx
push dword [ebp + 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4030f7
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x24]
push eax
call fcn.00401d74
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00401c73
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00401d53
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401d53
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], bl
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c

Function at 0x403149
Capabilities:
Set registry value

Disassembly:
mov eax, 0x40f168
call fcn.004074d0
push ecx
push ecx
lea eax, [ebp - 0x14]
and byte [ebp - 0xd], 0
push eax
push 0xf003f
push 0
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031a2
mov eax, dword [ebp + 0x24]
inc eax
push eax
push dword [ebp + 0x28]
push 1
push 0
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 1
lea ecx, [ebp + 8]
call fcn.00401d53
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00401d53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
leave
ret 0x24

Function at 0x4031d3
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x40f17c
call fcn.004074d0
push ecx
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0xf003f
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403217
push dword [ebp + 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00401d53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x404a18
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40f5ff
call fcn.004074d0
push ecx
and dword [ebp - 0x10], 0
push esi
push edi
push 1
xor esi, esi
cmp dword [ebp + 0x10], esi
pop edi
mov dword [ebp - 4], edi
jle 0x404a54
mov eax, dword [ebp + 0x14]
lea ecx, [eax + esi]
mov al, byte [eax + esi]
mov dl, al
shr dl, 4
shl al, 4
or dl, al
xor dl, 0xfe
inc esi
mov byte [ecx], dl
cmp esi, dword [ebp + 0x10]
jl 0x404a36
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401c73
mov dword [ebp - 0x10], edi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x404a82
Capabilities:
Check internet connectivity via wininet

Disassembly:
push esi
push edi
mov edi, ecx
xor eax, eax
push eax
lea esi, [edi + 0x88]
mov byte [edi + 1], al
push esi
mov dword [esi], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x404aaf
mov ecx, dword [esi]
push 1
pop eax
and ecx, eax
cmp cl, al
jne 0x404ab1
mov byte [edi + 1], al
jmp 0x404ab1
xor al, al
pop edi
pop esi
ret
Function at 0x405162
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x40f740
call fcn.004074d0
sub esp, 0x428
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x413340
xor ebx, ebx
lea ecx, [edi + 0x10]
push esi
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00401d74
lea ecx, [edi + 0x1c]
push esi
call fcn.00401d74
push 7
lea eax, [ebp - 0x34]
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.0040215d
mov esi, str.http:__
mov ecx, eax
push esi
mov byte [ebp - 4], 1
call fcn.004020d2
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xe], al
mov byte [ebp - 4], bl
call fcn.00401d53
cmp byte [ebp - 0xe], bl
je 0x4051fb
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0040228d
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00401de9
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00401d53
cmp dword [ebp + 0x14], ebx
jne 0x405207
mov dword [ebp + 0x14], 0x7fffffff
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x40531d
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x405314
lea ecx, [ebp - 0x24]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x434]
push ecx
push 0x16
push eax
call esi
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.00407645
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
inc ecx
push ecx
push ebx
push eax
call fcn.00407050
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push 0x16
push dword [ebp - 0x20]
call esi
cmp eax, ebx
je 0x405302
cmp dword [ebp - 0x14], ebx
jbe 0x405302
push dword [ebp - 0x18]
lea ecx, [edi + 0x10]
call fcn.00401d74
mov esi, 0x400
push esi
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.00407050
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, esi
jb 0x4052b6
mov eax, esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x4052f4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x434]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.004010d5
mov eax, dword [ebp - 0x1c]
add esp, 0xc
sub dword [ebp + 0x14], eax
cmp eax, ebx
jbe 0x4052f4
cmp dword [ebp + 0x14], ebx
jg 0x40529c
cmp dword [edi + 0x14], ebx
jle 0x405302
cmp dword [edi + 0x20], ebx
jle 0x405302
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call fcn.0040763a
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10