joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432fa0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560b31
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
mov eax, dword [0x5cb160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 1
mov dword [ebp - 4], esi
call fcn.00436d1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x432ff0
push 0x80004005
call fcn.00401d90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x404], eax
mov byte [ebp - 4], 3
push 0
push 0
push 0
push 0
push 0x59c21c
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x400], ebx
test ebx, ebx
je 0x4330e5
mov ecx, dword [ebp + 8]
push 0
push 0x4000000
push 0
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x4330de
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3fc], esi
mov ecx, dword [edx - 8]
mov eax, esi
sub eax, dword [edx - 4]
or ecx, eax
jge 0x43306b
push 0
lea ecx, [ebp + 0xc]
call fcn.004019a0
mov edx, dword [ebp + 0xc]
push 0x59c220
push edx
call fcn.0053a848
mov esi, eax
add esp, 8
test esi, esi
je 0x4330d7
cmp dword [ebp - 0x3fc], 0
jbe 0x4330ce
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, edi
lea edx, [ebp - 0x3fc]
push edx
push 0x3e7
lea eax, [ebp - 0x3f8]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x3fc]
push esi
push ecx
lea edx, [ebp - 0x3f8]
push 1
push edx
call fcn.0053a9b6
add esp, 0x10
cmp dword [ebp - 0x3fc], 0
ja 0x433090
mov ebx, dword [ebp - 0x400]
push esi
call fcn.0053aa9d
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x404]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43310b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43312e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053866d
mov esp, ebp
pop ebp
ret
Function at 0x4363b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.hid.dll
call esi
mov edi, eax
test edi, edi
jne 0x4363d7
push 3
call fcn.004348e0
add esp, 4
pop edi
mov eax, 1
pop esi
ret
push ebx
push str.SetupApi.dll
call esi
mov ebx, eax
test ebx, ebx
jne 0x4363f8
push 4
call fcn.004348e0
add esp, 4
pop ebx
pop edi
mov eax, 2
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56e0a4
push edi
call esi
push 0x56e094
push edi
mov dword [0x5d68e8], eax
call esi
push 0x56e084
push edi
mov dword [0x5d6a0c], eax
call esi
push 0x56e070
push edi
mov dword [0x5d6a08], eax
call esi
push 0x56e060
push edi
mov dword [0x5d68e4], eax
call esi
push 0x56e048
push edi
mov dword [0x5d6a04], eax
call esi
push 0x56e038
push edi
mov dword [0x5d5e84], eax
call esi
push 0x56e020
push ebx
mov dword [0x5d5e80], eax
call esi
push 0x56dffc
push ebx
mov dword [0x5d68ec], eax
call esi
push 0x56dfdc
push ebx
mov dword [0x5d68e0], eax
call esi
push 0x56dfc0
push ebx
mov dword [0x5d5e88], eax
call esi
cmp dword [0x5d68e8], 0
mov dword [0x5d6a00], eax
je 0x43650e
cmp dword [0x5d6a0c], 0
je 0x43650e
cmp dword [0x5d6a08], 0
je 0x43650e
cmp dword [0x5d68e4], 0
je 0x43650e
cmp dword [0x5d6a04], 0
je 0x43650e
cmp dword [0x5d5e84], 0
je 0x43650e
cmp dword [0x5d5e80], 0
je 0x43650e
cmp dword [0x5d68ec], 0
je 0x4364fb
cmp dword [0x5d68e0], 0
je 0x4364fb
cmp dword [0x5d5e88], 0
je 0x4364fb
test eax, eax
je 0x4364fb
push 0
call fcn.004348e0
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
ret
push 6
call fcn.004348e0
add esp, 4
pop ebx
pop edi
mov eax, 4
pop esi
ret
push 5
call fcn.004348e0
add esp, 4
pop ebx
pop edi
mov eax, 3
pop esi
ret

Function at 0x436b90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x436bd2
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x436bd2
xor ecx, ecx
test edi, edi
jle 0x436bcd
mov dl, byte [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ecx
and eax, 3
mov al, byte [eax + ebx]
xor al, byte [ecx + esi]
add ecx, 1
xor al, dl
cmp ecx, edi
mov byte [ecx + esi - 1], al
mov dl, al
jl 0x436bb2
pop ebx
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x436be0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x436c25
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x436c25
xor eax, eax
test edi, edi
jle 0x436c20
mov dl, byte [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov cl, byte [eax + esi]
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + ebp]
xor bl, cl
xor bl, dl
mov byte [eax + esi], bl
add eax, 1
cmp eax, edi
mov dl, cl
jl 0x436c03
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x436c30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor al, al
test esi, esi
je 0x436c5e
mov edx, dword [esp + 0xc]
cmp edx, 2
jl 0x436c5e
xor ecx, ecx
test edx, edx
jle 0x436c5a
lea ebx, [ebx]
xor al, byte [ecx + esi]
add ecx, 1
cmp ecx, edx
jl 0x436c50
not al
pop esi
ret
xor al, al
pop esi
ret
Function at 0x439bed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x439c35
call fcn.0044e3fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x439c35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x439c78
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x439c61
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x439c61
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x439c75
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43b629
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0044e3fb
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43b662
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043b26b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43b6c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x43b6e4
cmp dword [edi + 0x74], 0
jne 0x43b6e4
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044e3fb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043b681
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43ea6d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55e8bb
call fcn.0053b618
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x43ea92
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43eae4
call fcn.00436d1f
push eax
lea ecx, [ebp - 0x10]
call fcn.00401db0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053b722
push eax
call fcn.00404ca0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401de0
mov eax, esi
call fcn.0053b6f0
ret 8

Function at 0x446215
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44625c
call fcn.0044e3fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44625c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x446278
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00445d1a
mov esi, eax
test edi, edi
je 0x446276
test ebx, ebx
je 0x446276
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4469bf
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044667e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x446a09
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043815d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00433a90
jmp 0x446a14
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0045c2fb
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x446a1a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0043e330
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x446a57
call fcn.0044667e
mov dword [esi + 0xc], 1
jmp 0x446a5c
call fcn.0044667e
cmp dword [esi], 0
je 0x446aa5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x446a7d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043815d
jmp 0x446a8f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401a00
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00433a90
jmp 0x446ac9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x446ac9
push dword [esi]
push dword [ebp + 8]
call fcn.0045c2fb
pop esi
pop ebp
ret 0xc

Function at 0x44b7c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004444fd
call fcn.00405cb0
cmp eax, esi
pop esi
jne 0x44b7e2
mov ecx, 0x5d0170
jmp fcn.0045f9e0
ret

Function at 0x45945f
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x45948a
call fcn.0044e3fb
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4594ad
push eax
push dword [esi + 4]
call fcn.004593e5
push esi
push eax
mov ecx, 0x5d004c
call fcn.00459089
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x459c8e
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x554de9
call fcn.0053b618
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00459c4e
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.00436d1f
push eax
lea ecx, [esi + 0x18]
call fcn.00401db0
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00401b10
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x459d05
push eax
push dword [esi + 8]
call fcn.004593e5
push dword [esi + 0xc]
mov ecx, 0x5d004c
push eax
call fcn.00459089
mov eax, esi
call fcn.0053b6f0
ret 0x18
Function at 0x4abc61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4abc7b
call fcn.0044e3fb
mov esi, dword [eax + 0xc]
push dword [0x5d1e34]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4abc99
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4abc91
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4abcc6
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4abc93
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004abb8f
mov esi, eax
jmp 0x4abcb8

Function at 0x521714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x52172c
mov edi, dword [esi + 0xc]
jmp 0x52176c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x521745
call fcn.00446e19
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x52175a
call fcn.00446e19
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x52176c
call fcn.00446e19
call fcn.0044e3fb
cmp dword [eax + 0x3c], 0
je 0x521781
push edi
mov ecx, ebx
call fcn.00520548
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0052162e
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x52179f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5217ab
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x53866d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5cb160]
jne 0x538677
repz ret
jmp fcn.005410a4
Function at 0x550122
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5cb160]
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.00543787
and dword [ebp - 0x14], 0
cmp dword [0x5d46f0], 0
mov dword [ebp - 0x18], eax
jne 0x5501d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x55027d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x55027d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5962f0
push ebx
mov dword [0x5d46f0], eax
call edi
push eax
call esi
push 0x5962dc
push ebx
mov dword [0x5d46f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5d46f8], eax
call edi
push eax
call esi
mov dword [0x5d4700], eax
test eax, eax
je 0x5501d5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5d46fc], eax
mov eax, dword [0x5d46fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55022e
cmp dword [0x5d4700], ecx
je 0x55022e
push eax
call esi
push dword [0x5d4700]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55022e
test ebx, ebx
je 0x55022e
call edi
test eax, eax
je 0x550225
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x550225
test byte [ebp - 8], 1
jne 0x55022e
or dword [ebp + 0x10], 0x200000
jmp 0x550261
mov eax, dword [0x5d46f4]
cmp eax, dword [ebp - 0x18]
je 0x550261
push eax
call esi
test eax, eax
je 0x550261
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x550261
mov eax, dword [0x5d46f8]
cmp eax, dword [ebp - 0x18]
je 0x550261
push eax
call esi
test eax, eax
je 0x550261
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5d46f0]
call esi
test eax, eax
je 0x55027d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x55027f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053866d
leave
ret
Function at 0x407e40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48390b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00477ea0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407ec2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004752e1
mov eax, dword [eax]
push 0x5051f0
push eax
call fcn.00467c94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047812b
test bl, bl
je 0x407ec2
push 0x5051f0
lea ecx, [esp + 0xc]
call fcn.004784bb
push 0x508d48
lea ecx, [esp + 0xc]
call fcn.004784bb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x407efe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047812b
jmp 0x407fc9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407f82
lea edx, [esp + 0x7c]
push 0x508d44
push edx
call fcn.00467c94
add esp, 8
test eax, eax
je 0x407f82
lea eax, [esp + 0x7c]
push 0x508d40
push eax
call fcn.00467c94
add esp, 8
test eax, eax
je 0x407f82
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407f12
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047812b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4087c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408822
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408830
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48398b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x51026c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408968
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408896
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047812b
xor eax, eax
jmp 0x4089df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00478268
push esi
lea ecx, [esp + 0xc]
call fcn.004784f7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x508d80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4089bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004087c0
test eax, eax
jne 0x4089bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004087c0
test eax, eax
jne 0x4089bd
lea eax, [esp + 0x14]
push 0x508d5c
push eax
call fcn.00468cd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40899c
lea ecx, [esp + 0x14]
push 0x508d58
push ecx
call fcn.00468c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40899c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40899f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00478218
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4088ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047812b
xor eax, eax
jmp 0x4089df
mov byte [esi], 0
push 0x508d54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0047812b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4