joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478548
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41af84]
call fcn.004052f8
xor eax, eax
push ebp
push 0x47868c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ce7b8], 0
jne 0x47859b
mov ecx, dword [0x4d18e0]
mov dl, 1
mov eax, dword [0x408218]
call fcn.0040d714
call fcn.0040418c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040316c
mov eax, ebx
call fcn.004050b0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47869c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004066ec
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004050c0
test eax, eax
jle 0x478633
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47862c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a78
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a60
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004090e8
test eax, eax
jne 0x47862c
mov ebx, 0x15
jmp 0x478638
mov ebx, 0x10
jmp 0x478638
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4ce7b8]
call fcn.00478444
mov eax, dword [ebp - 8]
call fcn.00478444
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478693
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404814
lea eax, [ebp - 0x10]
mov edx, dword [0x41af84]
call fcn.004053c8
ret

Function at 0x494b90
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x494bb5
cmp dword [esp + 4], 5
jb 0x494bb5
mov al, 1
jmp 0x494bb7
xor eax, eax
add esp, 0x94
ret
Function at 0x4a7d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x4a7d66
cmp dword [ebx + 0x64], 0
jne 0x4a7d66
cmp dword [ebx + 0x6c], 0
jne 0x4a7d66
mov edi, esi
jmp 0x4a7ded
cmp edi, 0xffffffff
jne 0x4a7d6e
dec edi
jmp 0x4a7ded
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4a7ded
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004a6a74
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a7dbb
mov cx, word [esp]
sub cx, si
jmp 0x4a7dbd
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a7da4
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a7de3
mov cx, word [esp]
sub cx, si
jmp 0x4a7de5
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a7dcc
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4a7e4a
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004a7ad8
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4a7e35
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4a7e4a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a7d46
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4aea18
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x4aea28
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4aea3d
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4aeb40
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.004aeaac
mov esi, eax
mov eax, ebx
call fcn.0040393c
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4af110
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af1b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4af19a
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4af173
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.004049e8
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4af161
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 4], 0
je 0x4af194
mov eax, dword [ebp - 4]
mov edx, 0x4af1c8
call fcn.00404bfc
jne 0x4af198
xor ebx, ebx
jmp 0x4af19a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af1b7
lea eax, [ebp - 4]
call fcn.004047f0
ret

Function at 0x4af1d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x4af240
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4af231
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x4af270
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4af21e
cmp byte [esp + 4], 1
sete bl
jmp 0x4af225
call fcn.004af110
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4af238
call fcn.004af110
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret

Function at 0x4af668
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4af729
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4af740
call fcn.00404df4
test eax, eax
jne 0x4af6b0
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4af74c
call fcn.00404afc
test bl, bl
je 0x4af6ef
lea edx, [ebp - 8]
mov eax, 0x4af75c
call fcn.004af2e8
cmp dword [ebp - 8], 0
je 0x4af6ef
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
push 0x4af764
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4af70e
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404cb0
push eax
push 0x4af764
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af730
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404814
ret
Function at 0x4af76c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af822
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040a18c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040e340
mov eax, dword [ebx]
call fcn.004af830
test al, al
jne 0x4af804
lea edx, [ebp - 0x114]
mov eax, dword [0x4d1ea4]
mov eax, dword [eax]
call fcn.00466088
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.00409d90
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040e340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af829
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404814
ret

Function at 0x4af830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4af849
test al, 0x10
jne 0x4af84d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4b0978
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00404cb0
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4b0a32
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x4b0a3c]
fnstsw ax
sahf
je 0x4b09dc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.004b0924
fld qword [ebp + 8]
fcomp dword [0x4b0a3c]
fnstsw ax
sahf
je 0x4b09f8
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.004b0924
fld qword [ebp + 0x10]
fcomp dword [0x4b0a3c]
fnstsw ax
sahf
je 0x4b0a14
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.004b0924
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4b0a7c
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404cb0
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b0ad7
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.004b0a40
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret
Function at 0x4b0ae4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4b0b67
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4b0b67
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4b0b67
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x4b0b67
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4b0b67
xor edx, edx
push ebp
push 0x4b0b5d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.00420674
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b0b67
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4b0c64
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x4b0c77
add ebx, 0x20
test byte [esp], 2
je 0x4b0c80
add ebx, 2
test byte [esp], 4
je 0x4b0c87
inc ebx
test byte [esp], 8
je 0x4b0c90
add ebx, 4
test byte [esp], 0x10
je 0x4b0c9c
add ebx, 0x100
test byte [esp], 0x20
je 0x4b0ca8
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.00404cb0
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret
Function at 0x4b1bc8
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4b1d4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4b1d6c
call fcn.00404df4
test eax, eax
jne 0x4b1c13
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4b1d78
call fcn.00404afc
mov eax, esi
mov edx, 0x3c
call fcn.004b0b9c
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.00402830
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.00402830
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.00402830
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.00402830
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.00402830
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.00402830
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404ab0
push eax
mov eax, dword [ebp - 4]
call fcn.00404cb0
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4b1d09
mov eax, edi
mov edx, dword [esi + 4]
call fcn.004049e8
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.004049e8
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.004049e8
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.004049e8
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.004049e8
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.004049e8
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.00402850
mov eax, dword [esi + 0x2c]
call fcn.00402850
mov eax, dword [esi + 0x24]
call fcn.00402850
mov eax, dword [esi + 0x1c]
call fcn.00402850
mov eax, dword [esi + 0x10]
call fcn.00402850
mov eax, dword [esi + 4]
call fcn.00402850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1d56
lea eax, [ebp - 4]
call fcn.004047f0
ret

Function at 0x4b1f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4b1f89
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4b1f96
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4b1fb4
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1fd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4b201f
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00404a54
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00404a54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2380
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4b239d
add esp, 0xfffffff0
call fcn.00403c60
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4b249c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x4b23ea
mov eax, esi
call fcn.00404cb0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x4b23db
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x4b23ea
push 0x20
mov eax, esi
call fcn.00404cb0
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x4d0f5c]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404cb0
push eax
call sub.kernel32.dll_CreateFileA_1
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.00420800
cmp dword [ebx + 4], 0
jge 0x4b246d
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00409e44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1c]
call fcn.0040ce2c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x4d21c0]
mov dl, 1
mov eax, dword [0x41b304]
call fcn.0040d750
call fcn.0040418c
cmp byte [ebp + 8], 0
je 0x4b2481
push edi
mov eax, esi
call fcn.00404cb0
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b24a3
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404814
ret
Function at 0x4b2cfc
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4b2e19
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004b2bc4
pop ecx
test al, al
je 0x4b2df4
mov eax, dword [ebp + 8]
push eax
call fcn.004b2a08
pop ecx
test al, al
jne 0x4b2df4
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x138]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4b2df4
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.004b2a48
pop ecx
test al, al
je 0x4b2df4
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404a60
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040966c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x180], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x180]
cmp esi, 0xc8
je 0x4b2dbf
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x4b2df4
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.004b2a48
pop ecx
test al, al
je 0x4b2df4
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404a60
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040966c
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b2a08
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2e20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404814
ret
Function at 0x4b7fa0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b80f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x4d4040]
call fcn.00404cb0
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4b8067
mov dl, 1
mov eax, dword [0x41c118]
call fcn.0040390c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b8057
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4b8100
mov edx, 0x4b8100
mov eax, dword [0x4d3668]
call fcn.004b0ae4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b805e
mov eax, dword [ebp - 0x10]
call fcn.0040393c
ret
push 1
push dword [0x4d4040]
push 0x4b8110
lea edx, [ebp - 0x1c]
mov eax, dword [0x4d1ea4]
mov eax, dword [eax]
call fcn.00466088
push dword [ebp - 0x1c]
push 0x4b811c
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404b70
mov eax, dword [ebp - 0x18]
call fcn.00404cb0
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x25c], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1f2], 0
je 0x4b80d4
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1f4]
call dword [ebx + 0x1f0]
jmp 0x4b80d9
call fcn.004b0b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b80fb
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404814
ret

Function at 0x4b81c4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x4b82af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x4d1ea4]
mov eax, dword [eax]
call fcn.00466088
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00409d90
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040e340
lea eax, [ebp - 0x144]
mov edx, 0x4b82c4
call fcn.00404ab8
mov eax, dword [ebp - 0x144]
call fcn.00404cb0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b8291
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404a60
mov eax, dword [ebp - 0x150]
call fcn.00409c64
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4b8259
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b82b6
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.00404814
ret