joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41542e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4220cc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41545f
xor eax, eax
jmp 0x4155e8
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x424fa0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41549b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004166a6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415576
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4155b4
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4154ff
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4154f0
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4154d0
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41553f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x415548
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4154c1
jmp 0x41554a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4155e3
cmp dword [ebp - 0x6c], edi
je 0x4155b4
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4155a9
call fcn.004117d3
mov dword [eax], 9
call fcn.004117dc
mov dword [eax], esi
jmp 0x4155de
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41559e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41554a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41554a
push dword [ebp - 0x6c]
call fcn.004117e5
pop ecx
jmp 0x4155de
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4155cc
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4155cc
xor eax, eax
jmp 0x4155e6
call fcn.004117d3
mov dword [eax], 0x1c
call fcn.004117dc
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4155e6
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00414d0e
add ebp, 0x3a0
leave
ret
Function at 0x41590c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41593a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x415941
cmp ebx, dword [eax + 4]
jae 0x415941
xor eax, eax
jmp 0x415b31
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415952
xor eax, eax
inc eax
jmp 0x415b30
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415968
cmp ecx, edx
jae 0x415aad
cmp dword [eax + 4], 0
je 0x415971
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x415959
cmp dword [ebp + 8], 0
je 0x415993
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415aad
cmp eax, esi
jae 0x415aad
mov eax, dword [0x424e08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4159b8
cmp dword [esi*4 + 0x424e10], edi
je 0x415ab1
inc esi
cmp esi, eax
jl 0x4159a6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415b2d
cmp dword [ebp - 8], 0x1000000
jne 0x415b2d
test byte [ebp - 0xc], 0xcc
je 0x415a36
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415b2d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415b2d
cmp word [eax + 0x18], 0x10b
jne 0x415b2d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415b2d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415a36
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415a36
test byte [ecx + 0x27], 0x80
jne 0x415aad
push 1
push 0x424e50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41594a
mov ecx, dword [0x424e08]
test ecx, ecx
mov edx, ecx
jle 0x415a6a
lea eax, [ecx*4 + 0x424e0c]
cmp dword [eax], edi
je 0x415a6a
dec edx
sub eax, 4
test edx, edx
jg 0x415a5e
test edx, edx
jne 0x415a9b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415a77
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415a8f
lea eax, [edx*4 + 0x424e10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415a7d
cmp ecx, 0x10
jge 0x415a9b
inc ecx
mov dword [0x424e08], ecx
push 0
push 0x424e50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41594a
xor eax, eax
jmp 0x415b30
test esi, esi
jle 0x41594a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x424e50
call ebx
test eax, eax
jne 0x41594a
cmp dword [esi*4 + 0x424e10], edi
je 0x415b07
mov eax, dword [0x424e08]
lea esi, [eax - 1]
test esi, esi
jl 0x415af5
cmp dword [esi*4 + 0x424e10], edi
je 0x415af1
dec esi
jns 0x415ae5
test esi, esi
jge 0x415b05
cmp eax, 0x10
jge 0x415b00
inc eax
mov dword [0x424e08], eax
lea esi, [eax - 1]
jmp 0x415b07
je 0x415b1f
xor ecx, ecx
test esi, esi
jl 0x415b1f
lea eax, [ecx*4 + 0x424e10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415b0d
push 0
push 0x424e50
call ebx
jmp 0x41594a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415f0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4160e0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x424fa0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4160e0
test cl, 0x48
je 0x415f77
cmp byte [eax + 5], 0xa
je 0x415f77
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x415fb1
call fcn.004117d3
mov dword [eax], 9
call fcn.004117dc
mov dword [eax], esi
jmp 0x415fc1
cmp eax, 0x6d
je 0x4160e0
push eax
call fcn.004117e5
pop ecx
or eax, 0xffffffff
jmp 0x4160e2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4160db
test eax, eax
je 0x415ff0
cmp byte [ebx], 0xa
jne 0x415ff0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x415ff9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4160d5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4160c5
cmp al, 0xd
je 0x41602b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4160b7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x416045
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x416040
add dword [ebp + 0x10], 2
jmp 0x416099
mov dword [ebp + 0x10], eax
jmp 0x4160b3
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41606d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4160b3
cmp dword [ebp - 0xc], 0
je 0x4160b3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41608e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x416099
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4160b6
cmp ebx, dword [ebp + 0xc]
jne 0x41609e
cmp byte [ebp - 1], 0xa
jne 0x41609e
mov byte [ebx], 0xa
jmp 0x4160b6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041530f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4160b7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41600f
jmp 0x4160d5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4160d5
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4160e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416192
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x424e5c], ebx
push esi
push edi
jne 0x416212
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41624d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c974
push edi
call esi
test eax, eax
mov dword [0x424e5c], eax
je 0x41624d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x424e60], eax
call esi
cmp dword [0x424ad0], 2
mov dword [0x424e64], eax
jne 0x416212
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x424e6c], eax
je 0x416212
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x424e68], eax
mov eax, dword [0x424e68]
test eax, eax
je 0x416257
call eax
test eax, eax
je 0x41623e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x424e6c]
test eax, eax
je 0x41623e
test byte [ebp - 8], 1
jne 0x416257
cmp dword [0x424adc], 4
jb 0x416251
or byte [ebp + 0x12], 0x20
jmp 0x416276
xor eax, eax
jmp 0x416286
or byte [ebp + 0x12], 4
jmp 0x416276
mov eax, dword [0x424e60]
test eax, eax
je 0x416276
call eax
mov ebx, eax
test ebx, ebx
je 0x416276
mov eax, dword [0x424e64]
test eax, eax
je 0x416276
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x424e5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416732
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00412e90
mov eax, dword [0x4220cc]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041530f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x416865
push 2
push esi
push dword [ebp + 8]
call fcn.0041530f
add esp, 0xc
cmp eax, ebx
je 0x416865
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416805
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00414940
push 0x8000
push dword [ebp + 8]
call fcn.0040f084
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4167bb
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041542e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4167db
sub edi, eax
test edi, edi
jg 0x4167b3
jmp 0x4167f3
call fcn.004117dc
cmp dword [eax], 5
jne 0x4167f0
call fcn.004117d3
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040f084
pop ecx
pop ecx
jmp 0x41684d
jge 0x41684d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041530f
push dword [ebp + 8]
call fcn.00413ca6
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41684d
call fcn.004117d3
mov dword [eax], 0xd
call fcn.004117dc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0041530f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x416867
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00414d0e
leave
ret
Function at 0x416ecd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x416ee6
or eax, 0xffffffff
jmp 0x416f47
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x416f43
push 0x3d
push esi
call fcn.004170cd
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x416f43
cmp esi, eax
je 0x416f43
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x424af0]
sete cl
cmp eax, dword [0x424af4]
mov dword [ebp - 8], ecx
jne 0x416f29
mov edi, eax
call fcn.00416e6c
mov dword [0x424af0], eax
cmp eax, ebx
jne 0x416f82
cmp dword [ebp + 0xc], ebx
je 0x416f4b
cmp dword [0x424af8], ebx
je 0x416f4b
call fcn.004169ef
test eax, eax
je 0x416f82
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x416f54
xor eax, eax
jmp 0x416f46
push 4
call fcn.00410fb5
cmp eax, ebx
pop ecx
mov dword [0x424af0], eax
je 0x416f43
mov dword [eax], ebx
cmp dword [0x424af8], ebx
jne 0x416f82
push 4
call fcn.00410fb5
cmp eax, ebx
pop ecx
mov dword [0x424af8], eax
je 0x416f43
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x424af0]
call fcn.00416e1f
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x416fe3
cmp dword [esi], ebx
je 0x416fe3
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040ef37
cmp dword [ebp - 8], ebx
pop ecx
jne 0x416fc6
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x417024
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x416fbd
mov eax, edi
shl eax, 2
push eax
push dword [0x424af0]
call fcn.00411a5b
cmp eax, ebx
pop ecx
pop ecx
je 0x417024
jmp 0x41701f
cmp dword [ebp - 8], ebx
jne 0x41708f
cmp edi, ebx
jge 0x416ff2
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x424af0]
call fcn.00411a5b
cmp eax, ebx
pop ecx
pop ecx
je 0x416f43
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x424af0], eax
cmp dword [ebp + 0xc], ebx
je 0x417079
push dword [ebp - 4]
call fcn.004115e0
inc eax
inc eax
push eax
call fcn.00410fb5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x417079
push dword [ebp - 4]
push esi
call fcn.004147f0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x417072
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040ef37
pop ecx
cmp dword [ebp - 8], ebx
je 0x417087
push dword [ebp - 4]
call fcn.0040ef37
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x416f46
push dword [ebp - 4]
call fcn.0040ef37
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x416f50
Function at 0x4180b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4180d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004117e5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4180fb
test byte [esp + 8], 2
je 0x4180fb
call fcn.004117d3
mov dword [eax], 0xd
call fcn.004117dc
mov dword [eax], 5
jmp 0x4180d4
xor eax, eax
ret
Function at 0x40ea91
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], esp
push 0
mov eax, 0
call fcn.00412bef
cmp dword [ebp - 4], esp
je 0x40eabe
push 6
call fcn.00412be9
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
push 0
push 0
push 0
push SysStringLen
push 0
push str.WinHttp.WinhttpRequest.5.1
push 0x10030
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 3
mov ebx, 0x416150
call fcn.00412bf5
add esp, 0x28
and eax, 1
xor eax, 1
test eax, eax
je 0x40eb3d
push SysStringLen
push 0
push 0x4fb2f1
push 0x80000301
push 0
push 0
push SysStringLen
push 0
push str.Http
push 3
mov ebx, 0x414980
call fcn.00412bf5
add esp, 0x28
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push SysStringLen
push 0
push str.SetTimeouts
push 0x10030
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 6
mov ebx, 0x415110
call fcn.00412bf5
add esp, 0x4c
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
push SysStringLen
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
push SysStringLen
push 0
push str.User_Agent
push SysStringLen
push 0
push str.SetRequestHeader
push 0x10030
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 4
mov ebx, 0x415110
call fcn.00412bf5
add esp, 0x34
mov esp, ebp
pop ebp
ret 4
Function at 0x421340
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f0eeb
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.004e5179
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4213c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004e278d
mov eax, dword [eax]
push 0x631234
push eax
call fcn.004d3654
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004e5404
test bl, bl
je 0x4213c2
push 0x631234
lea ecx, [esp + 0xc]
call fcn.004e5794
push 0x634dd4
lea ecx, [esp + 0xc]
call fcn.004e5794
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 0x4213fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004e5404
jmp 0x4214c9
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 0x421482
lea edx, [esp + 0x7c]
push 0x634dd0
push edx
call fcn.004d3654
add esp, 8
test eax, eax
je 0x421482
lea eax, [esp + 0x7c]
push 0x634dcc
push eax
call fcn.004d3654
add esp, 8
test eax, eax
je 0x421482
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 0x421412
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.004e5404
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 0x421cc0
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 0x421d22
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 0x421d30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f0f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6420b8]
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 0x421e68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x421d96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004e5404
xor eax, eax
jmp 0x421edf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004e5541
push esi
lea ecx, [esp + 0xc]
call fcn.004e57d0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x421ebd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00421cc0
test eax, eax
jne 0x421ebd
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.00421cc0
test eax, eax
jne 0x421ebd
lea eax, [esp + 0x14]
push 0x634de8
push eax
call fcn.004d4820
mov esi, eax
add esp, 8
test esi, esi
jne 0x421e9c
lea ecx, [esp + 0x14]
push 0x634de4
push ecx
call fcn.004d47a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x421e9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x421e9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004e54f1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x421dae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004e5404
xor eax, eax
jmp 0x421edf
mov byte [esi], 0
push 0x634de0
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.004e5404
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