joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534ff0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
call fcn.004284a0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x429800
push 0
mov ebx, dword [ebp + 0x10]
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [edi + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x429803
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x4297f1
push esi
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [edi + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x429803
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
jmp 0x42981f
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
jmp 0x42981f
mov ecx, edi
call fcn.00428520
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429840
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535010
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x220], 1
mov dword [ebp - 4], 0
mov byte [ebp - 0x21c], 0
push 0x103
push 0
lea eax, [ebp - 0x21b]
push eax
call fcn.004ff6f0
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea ecx, [ebp - 0x117]
push ecx
call fcn.004ff6f0
add esp, 0x18
test ebx, ebx
jne 0x4298de
mov edx, dword [esi + 0x390]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.004285a0
add esp, 8
lea ebx, [ebp - 0x21c]
lea ecx, [esi + 0x18]
cmp byte [ecx], 0
je 0x4298fc
lea edx, [ebp - 0x118]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4298f0
jmp 0x42990e
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10
lea edx, [ebp - 0x118]
push edx
call fcn.004c4b10
add esp, 8
test eax, eax
jne 0x429931
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [esi + 0x324]
cmp byte [eax], 0
jne 0x429950
mov eax, 0x55fe80
push eax
push ebx
lea edx, [ebp - 0x118]
push edx
push str._s_s._s
lea eax, [esi + 0x11c]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
call edi
add esp, 0x14
lea eax, [esi + 0x328]
cmp byte [eax], 0
jne 0x429980
mov eax, 0x55fe74
push eax
push ebx
lea ecx, [ebp - 0x118]
push ecx
push str._s_s._s
add esi, 0x220
push esi
call edi
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x429d80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5350c0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x128], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x12c], ebx
mov ecx, 0x55fc9c
lea edx, [ebp - 0x118]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x429de0
mov dword [ebp - 0x124], 0x104
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 1
push 0
push edi
mov ecx, esi
call fcn.00428e00
mov dword [ebp - 0x120], eax
test eax, eax
je 0x429e8b
mov ecx, eax
call fcn.00498900
mov esi, eax
test esi, esi
je 0x429e7c
mov ecx, esi
call fcn.00497c50
mov edi, eax
lea edx, [ebp - 0x118]
push edx
lea eax, [edi + 0xc8]
push eax
call fcn.00422f60
add esp, 4
push eax
call fcn.004ff027
add esp, 8
test eax, eax
jne 0x429f7c
mov ecx, dword [edi + 0x14]
mov edx, dword [ebp - 0x128]
mov dword [edx + 0x34c], ecx
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 0x120]
push eax
call fcn.004296d0
add esp, 4
cmp dword [ebp - 0x11c], 0
jne 0x429f51
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429ea1
sub eax, edx
lea edi, [eax + 0xd9]
push edi
call fcn.004fc6be
mov esi, eax
lea ecx, [ebx + 1]
mov ebx, dword [ebp - 0x128]
mov dword [ebx + 0x34c], ecx
mov dword [esi + 8], edi
mov dword [esi], 1
mov edx, dword [ebx + 0x34c]
mov dword [esi + 0x14], edx
push 0
call fcn.004ff06e
add esp, 8
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x34c]
mov dword [esi + 0x14], eax
and dword [esi + 0xc8], 0xffffff00
mov eax, dword [esi + 0xc8]
or eax, 1
mov dword [esi + 0xc8], eax
lea eax, [ebp - 0x118]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x429f11
sub eax, ecx
inc eax
mov dword [esi + 0xd0], eax
lea ecx, [ebp - 0x118]
lea edx, [esi + 0xd4]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x429f30
push esi
mov ecx, ebx
call fcn.00429b90
mov dword [ebp - 0x11c], eax
push esi
call fcn.004808a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x14]
cmp eax, ebx
ja 0x429f85
mov eax, ebx
mov ebx, eax
mov dword [ebp - 0x12c], ebx
push esi
mov ecx, dword [ebp - 0x120]
call fcn.00498910
jmp 0x429e2d
Function at 0x42a1d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535130
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.004284a0
xor ebx, ebx
mov dword [ebp - 4], ebx
or edi, 0xffffffff
cmp dword [esi + 0x360], ebx
je 0x42a24e
mov ecx, esi
call fcn.0042a0e0
push ebx
mov eax, dword [esi + 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov ecx, dword [esi + 0x360]
push ecx
call fcn.004287c0
add esp, 4
mov edx, dword [esi + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x360], ebx
mov eax, dword [esi + 0x364]
cmp eax, ebx
je 0x42a274
push eax
call fcn.004287c0
add esp, 4
mov eax, dword [esi + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x364], ebx
cmp edi, ebx
jne 0x42a27f
mov ecx, esi
call fcn.00428910
lea ecx, [esi + 0x368]
push ecx
call fcn.00428360
lea edx, [esi + 0x37c]
push edx
call fcn.00428360
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x42a2b5
mov dword [esi + 0x360], ebx
mov dword [esi + 0x344], ebx
mov ecx, esi
call fcn.00428520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431440
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x43147b
push 0
push 0x3ea
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
mov ecx, dword [esi + 0x10]
push 0
push 0x403
push ecx
call edi
push eax
call ebx
push 0
jmp 0x4314a0
push 1
push 0x3ea
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
mov ecx, dword [esi + 0x10]
push 1
push 0x403
push ecx
call edi
push eax
call ebx
push 1
mov edx, dword [esi + 0x10]
push 6
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 0x10]
push 0x3e9
push eax
call edi
xor ecx, ecx
cmp dword [esi + 0x28], ecx
push 0
sete cl
push ecx
push 0xcf
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x10]
push 0x3ea
push edx
call edi
mov ecx, dword [esi + 0x28]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call ebx
mov edx, dword [esi + 0x10]
push 6
push edx
call edi
push 0
push eax
call ebx
cmp byte [esi + 0x130], 0
jne 0x431512
mov eax, dword [esi + 0x10]
push 0
push 0x3eb
push eax
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x435830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5369b0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x224], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], eax
push 0x104
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004ff6f0
add esp, 0xc
push 6
lea ecx, [ebp - 0x118]
push ecx
push 0x4fa3
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
push eax
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
call ebx
lea eax, [ebp - 0x118]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4358b3
sub eax, ecx
push 7
lea edx, [ebp + eax - 0x118]
push edx
push 0x4fa4
push esi
call edi
push eax
call ebx
lea eax, [ebp - 0x118]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4358e0
sub eax, ecx
push 6
lea eax, [ebp + eax - 0x118]
push eax
push 0x4fa5
push esi
call edi
push eax
call ebx
push 0x104
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004ff6f0
add esp, 0xc
push 0x2d
lea edx, [ebp - 0x21c]
push edx
push 0x4fa2
push esi
call edi
push eax
call ebx
push 0
mov ecx, dword [ebp - 0x224]
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + 0x60]
add edx, 0x66b5
push edx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.004354c0
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x439270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537175
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x5bbfe4]
mov dword [esi], eax
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [0x5bbfe4]
mov dword [esi + 4], ecx
mov byte [ebp - 4], 1
mov edx, dword [0x5bbfe4]
mov dword [esi + 8], edx
mov byte [ebp - 4], 2
mov eax, dword [0x5bbfe4]
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
mov ecx, dword [0x5bbfe4]
mov dword [esi + 0x10], ecx
mov byte [ebp - 4], 4
mov edx, dword [0x5bbfe4]
mov dword [esi + 0x14], edx
mov byte [ebp - 4], 5
mov eax, dword [0x5bbfe4]
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 6
mov ecx, dword [0x5bbfe4]
mov dword [esi + 0x1c], ecx
mov byte [ebp - 4], 7
mov edx, dword [0x5bbfe4]
mov dword [esi + 0x20], edx
mov byte [ebp - 4], 8
mov eax, dword [0x5bbfe4]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 9
mov ecx, dword [0x5bbfe4]
mov dword [esi + 0x28], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [0x5bbfe4]
mov dword [esi + 0x2c], edx
mov byte [ebp - 4], 0xb
mov eax, dword [0x5bbfe4]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [0x5bbfe4]
mov dword [esi + 0x34], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [0x5bbfe4]
mov dword [esi + 0x38], edx
mov byte [ebp - 4], 0xe
mov eax, dword [0x5bbfe4]
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [0x5bbfe4]
mov dword [esi + 0x40], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [0x5bbfe4]
mov dword [esi + 0x44], edx
mov byte [ebp - 4], 0x11
push edi
lea ecx, [esi + 0x5c]
call fcn.00498380
mov byte [ebp - 4], 0x12
push edi
lea ecx, [esi + 0x70]
call fcn.00498380
mov byte [ebp - 4], 0x13
push edi
lea ecx, [esi + 0x84]
call fcn.00498380
mov byte [ebp - 4], 0x14
push edi
lea ecx, [esi + 0x98]
call fcn.00498380
mov byte [ebp - 4], 0x15
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43aa80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537460
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x110], esi
jne 0x43aaf2
push edi
push esi
push 0x43a620
call fcn.00501655
add esp, 0xc
mov dword [ebp - 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x110], 0
jne 0x43aaf2
cmp esi, 0x3e8
jae 0x43aaf2
push 0x32
call ebx
add esi, 0x32
mov dword [ebp - 0x18], esi
jmp 0x43aad5
mov eax, dword [edi + 0x110]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ab30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x43abb0
lea edx, [esi + 0xc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43ab42
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x110], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.xxutfsvr__04x
lea eax, [esi + 0x114]
push 0x40
push eax
call fcn.00500ba9
add esp, 0x10
mov ecx, esi
call fcn.0043a800
test eax, eax
je 0x43abb0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersion]
call edi
cmp eax, 0x80000000
jae 0x43abaf
call edi
cmp al, 6
jb 0x43abaf
mov ecx, esi
call fcn.0043aa80
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x43aca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5374a0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x118]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call esi
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x118]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43ad10
mov edx, dword [str.mswebhlp.dll]
mov dword [eax], edx
mov ecx, dword [0x560de8]
mov dword [eax + 4], ecx
mov edx, dword [0x560dec]
mov dword [eax + 8], edx
mov cl, byte [0x560df0]
mov byte [eax + 0xc], cl
lea edx, [ebp - 0x118]
push edx
call fcn.004c4aa0
add esp, 4
test eax, eax
je 0x43ad58
mov dword [ebp - 0x11c], 1
push 0x104
lea eax, [ebp - 0x118]
push eax
call esi
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x118]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43ad80
mov edx, dword [str.urlmkpl.dll]
mov dword [eax], edx
mov ecx, dword [0x560ddc]
mov dword [eax + 4], ecx
mov edx, dword [0x560de0]
mov dword [eax + 8], edx
lea eax, [ebp - 0x118]
push eax
call fcn.004c4aa0
add esp, 4
test eax, eax
je 0x43adbf
mov dword [ebp - 0x11c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x43ae10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5374d0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x118]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call edi
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x118]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43ae72
mov edx, dword [str.mswebhlp.dll]
mov dword [eax], edx
mov ecx, dword [0x560de8]
mov dword [eax + 4], ecx
mov edx, dword [0x560dec]
mov dword [eax + 8], edx
mov cl, byte [0x560df0]
mov byte [eax + 0xc], cl
lea edx, [ebp - 0x118]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov esi, eax
test esi, esi
jne 0x43af07
push 0x104
lea eax, [ebp - 0x118]
push eax
call edi
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x118]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43aed6
mov edx, dword [str.urlmkpl.dll]
mov dword [eax], edx
mov ecx, dword [0x560ddc]
mov dword [eax + 4], ecx
mov edx, dword [0x560de0]
mov dword [eax + 8], edx
lea eax, [ebp - 0x118]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x43af66
push 0x560db0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x43af5f
lea ecx, [ebp - 0x11c]
push ecx
push 0x2346
push 1
push 0x231242a
call edi
add esp, 0x10
test eax, eax
je 0x43af5f
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx]
push 0x231242a
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x11c]
push ecx
push 0x2346
push 0
push 0x231242a
call edi
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x43b050
Capabilities:
Check os version
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.inetsys]
mov edx, dword [str.inetsys.exe]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x560e44]
mov dword [ebp - 0x150], edx
lea edx, [ebp - 0x154]
push edx
mov dword [ebp - 0x14c], eax
xor ebx, ebx
lea eax, [ebp - 0x144]
push eax
push ebx
mov ecx, 0xb
mov esi, 0x560e10
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x560e50]
push 0xf003f
push ebx
mov dword [ebp - 8], ecx
mov ecx, dword [0x560e48]
push ebx
mov dword [ebp - 0x148], ecx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x43b1d3
cmp dword [ebp + 8], 1
jne 0x43b115
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jae 0x43b12e
call esi
cmp al, 5
jae 0x43b1ae
push 0x104
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x140]
push edx
call fcn.004bf2e0
lea eax, [ebp - 0x150]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b157
lea edi, [ebp - 0x140]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43b167
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x140]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b188
sub eax, edx
mov edx, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x140]
push eax
push 1
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x43b1f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537520
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x32c], edi
mov dword [ebp - 0x334], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x330], ebx
push 0x104
push ebx
lea eax, [ebp - 0x118]
push eax
call fcn.004ff6f0
push 0x208
push ebx
lea ecx, [ebp - 0x320]
push ecx
call fcn.004ff6f0
add esp, 0x18
mov edx, dword [0x560e58]
mov dword [ebp - 0x118], edx
mov eax, dword [0x560e5c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x328], 0x104
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43b2b0
sub eax, edx
jne 0x43b2d2
mov eax, dword [0x560e58]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x560e5c]
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x43b2e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43b2e0
sub eax, edx
lea edx, [ebp - 0x330]
push edx
push 0x208
lea ecx, [ebp - 0x320]
push ecx
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.004a34c0
push 0x560e54
lea eax, [ebp - 0x320]
push eax
call fcn.004fee10
add esp, 0x1c
mov dword [ebp - 0x324], eax
cmp eax, ebx
je 0x43b329
mov byte [eax], bl
lea esi, [ebp - 0x320]
mov dword [ebp - 0x324], esi
mov ecx, esi
push ecx
call fcn.00530199
add esp, 4
mov al, byte [esi]
cmp al, bl
je 0x43b362
cmp al, 0x61
jl 0x43b34e
cmp al, 0x7a
jle 0x43b359
cmp al, 0x30
jl 0x43b356
cmp al, 0x39
jle 0x43b359
mov byte [esi], 0x6d
inc esi
mov dword [ebp - 0x324], esi
jmp 0x43b340
mov byte [ebp - 0x31c], bl
lea edx, [ebp - 0x320]
push edx
push str.ms_swin
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [edi + 0xc], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4