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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004181c0
mov eax, dword [0x42e460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0
push eax
push 0xf003f
push 0
push 0x42a530
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2008], 0x1000
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404d13
lea eax, [ebp - 0x200c]
push eax
push 0xf003f
push 0
push 0x42a530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404d13
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112f8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x2004]
push eax
push 0
push 0
push str.UserId
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404d85
cmp word [ebp - 0x2004], ax
jne 0x404d59
xor ecx, ecx
lea eax, [ebp - 0x2004]
push ecx
push eax
mov ecx, 0x431ad0
call fcn.00401d00
jmp 0x404d87
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d62
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, 0x431ad0
call fcn.00401d00
jmp 0x404d87
xor bl, bl
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004112f8
mov esp, ebp
pop ebp
ret

Function at 0x404db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3068
call fcn.004181c0
mov eax, dword [0x42e460]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x3068]
mov dword [ebp - 0x3068], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x42a530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404e9f
mov eax, dword [0x431ae0]
mov ecx, 0x431ad0
cmp dword [0x431ae4], 8
cmovae ecx, dword [0x431ad0]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UserId
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1830
lea eax, [ebp - 0x3064]
push eax
push 0xffffffffffffffff
push str.utm_sourceoffergatecpinewutm_campaign1054utm_mediummlutm_site1739utm_clickidKDEfDUaPuP4ug1teutm_experimentexprelease_1.0.58_previousutm_ntbpack16landing14dld_br8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x3064]
lea edx, [eax + 2]
jmp 0x404e60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e60
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x3064]
push eax
push 1
push 0
push 0x428ef4
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112f8
mov esp, ebp
pop ebp
ret
Function at 0x403f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403ff0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x6008444e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x6008449e
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x60084499
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x60084483
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x6008448b
cmp edx, ebx
jne 0x600845d9
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x6008445a
add eax, dword [eax + 4]
jmp 0x60084447
mov dword [ebp + 0xc], ebx
jmp 0x600844a9
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x600844c1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x600844df
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x6008453d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x60084524
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x6008452d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x60084537
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x60084519
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x600844a3
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x60086539
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [eax], esi
jl 0x600865b9
mov edi, 0x1f5
lea ebx, [ebp - 8]
jmp 0x60086563
xor esi, esi
push esi
push esi
push 0xc1
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, esi
jle 0x60086593
lea esi, [eax + 1]
push esi
call fcn.6008536b
test eax, eax
mov dword [ebx], eax
je 0x60086593
push esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
add ebx, 4
inc edi
lea eax, [edi - 0x1f5]
cmp eax, dword [ebp + 0xc]
jle 0x60086561
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x600865b9
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 1
mov dword [ecx], eax
pop eax
jmp 0x600866ca
push 1
lea eax, [ebp - 0x88]
pop ebx
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [ebp - 8], esi
jne 0x6008660f
cmp dword [ebp - 4], esi
jne 0x6008660a
lea eax, [ebp - 0x88]
push 0x123
push eax
push 0x60081560
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, eax
cmp ebx, 6
jne 0x60086600
push 1
jmp 0x60086607
cmp ebx, 7
jne 0x60086683
push 4
pop ebx
jmp 0x60086683
cmp dword [ebp - 8], esi
je 0x60086644
mov esi, dword [ebp - 4]
test esi, esi
je 0x60086644
mov eax, dword [ebp - 8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x6008663b
test cl, cl
je 0x60086637
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x6008663b
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x60086619
xor eax, eax
jmp 0x60086640
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x60086683
lea eax, [ebp - 0x88]
push 0x35
push eax
push 0x60081540
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, eax
cmp ebx, 4
jne 0x60086683
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edi, 0x6008153c
push edi
push 0x1f5
push dword [ebp + 8]
call esi
push edi
push 0x1f6
push dword [ebp + 8]
call esi
cmp ebx, 1
jne 0x60086692
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x600866a0
cmp dword [ebp - 8], 0
je 0x600866a0
push dword [ebp - 8]
call fcn.6008538a
cmp dword [ebp - 4], 0
je 0x600866ae
push dword [ebp - 4]
call fcn.6008538a
cmp ebx, 4
jne 0x600866c8
push 0x1f5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x600867a1
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
push esi
test al, 3
push edi
mov ebx, ecx
jne 0x600867c2
push 0x57
pop eax
jmp 0x600868cd
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x114]
lea esi, [eax + 7]
mov al, byte [esi]
cmp al, 0x2f
je 0x600867e5
cmp al, 0x3a
je 0x600867e5
test al, al
je 0x600867e5
mov byte [ecx], al
inc ecx
inc esi
jmp 0x600867d1
mov al, byte [esi]
and byte [ecx], 0
and byte [ebp - 0x10], 0
cmp al, 0x3a
jne 0x60086807
lea ecx, [ebp - 0x10]
test al, al
je 0x60086804
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, 0x2f
jne 0x600867f5
and byte [ecx], 0
cmp byte [ebp - 0x10], 0
je 0x6008681a
lea eax, [ebp - 0xf]
push eax
call fcn.60087100
pop ecx
mov dword [ebp - 4], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.60086ed0
pop ecx
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x18], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push esi
push esi
push esi
push 0x600815a0
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [ebx + 8], eax
je 0x600868c7
push esi
push esi
push 3
push esi
push esi
lea ecx, [ebp - 0x114]
push dword [ebp - 4]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [ebx + 0xc], eax
je 0x600868c7
cmp dword [ebx + 4], 1
jne 0x600868c3
push esi
push 0x4000000
push esi
push esi
push 0x60081594
push dword [ebx + 0x18]
push 0x60081590
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, esi
mov dword [ebx + 0x10], eax
je 0x600868c7
push esi
push esi
push 0xffffffffffffffff
push 0x60081580
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x600868c7
xor eax, eax
jmp 0x600868cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x600868d4
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x600869a9
mov eax, dword [esi + 4]
and eax, 2
cmp al, 2
jne 0x600869a9
mov eax, dword [ebp + 8]
dec eax
je 0x60086928
dec eax
je 0x60086921
dec eax
je 0x6008691a
sub eax, 0x2d
je 0x60086913
mov eax, 0x60081664
jmp 0x6008692d
mov eax, 0x60081644
jmp 0x6008692d
mov eax, 0x60081628
jmp 0x6008692d
mov eax, 0x60081608
jmp 0x6008692d
mov eax, 0x600815e8
push eax
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push 0x600815b4
push eax
call fcn.60087110
add esp, 0x14
push edi
push 0x4000000
push edi
push edi
push 0x60081594
push dword [esi + 0x18]
push 0x600815ac
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x60086973
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x600869ac
push dword [ebp + 0xc]
lea ecx, [ebp - 0x400]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x600869a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x10]
mov ebx, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x10], edi
mov eax, ebx
jmp 0x600869ac
xor eax, eax
jmp 0x600869ac
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x60087390
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.60087450
mov eax, dword [0x60091078]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x600873b4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x60091074], 1
mov byte [0x60091070], bl
jne 0x6008740e
mov ecx, dword [0x60092608]
test ecx, ecx
je 0x600873fc
mov esi, dword [0x60092604]
sub esi, 4
cmp esi, ecx
jb 0x600873fc
mov eax, dword [esi]
test eax, eax
je 0x600873f5
call eax
mov ecx, dword [0x60092608]
sub esi, 4
cmp esi, ecx
jae 0x600873e7
push 0x6008e01c
push 0x6008e014
call fcn.60087470
add esp, 8
push 0x6008e024
push 0x6008e020
call fcn.60087470
add esp, 8
test ebx, ebx
je 0x6008742d
call fcn.60087460
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x60091078], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x60087490
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.60088390
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x6008e060], eax
je 0x600874e8
push 0x74
push 1
call fcn.60089aa0
mov esi, eax
add esp, 8
test esi, esi
je 0x600874e8
mov eax, dword [0x6008e060]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x600874e8
push esi
call fcn.60087520
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x60087540
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6008e060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x600875ae
push 0x74
push 1
call fcn.60089aa0
mov esi, eax
add esp, 8
test esi, esi
je 0x600875a4
mov ecx, dword [0x6008e060]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x600875a4
push esi
call fcn.60087520
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.60086e20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x60087f90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x600912ac]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x60087fd2
call edi
mov esi, eax
test esi, esi
je 0x60087fbc
mov eax, 1
jmp 0x60087fcd
call ebp
mov ebx, eax
test ebx, ebx
je 0x600880df
mov eax, 2
mov dword [0x600912ac], eax
cmp eax, 1
jne 0x60088072
test esi, esi
jne 0x60087feb
call edi
mov esi, eax
test esi, esi
je 0x600880df
cmp word [esi], 0
mov eax, esi
je 0x60088005
add eax, 2
cmp word [eax], 0
jne 0x60087ff3
add eax, 2
cmp word [eax], 0
jne 0x60087ff3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x60088064
push edi
call fcn.60086ed0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x60088064
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x60088056
push ebx
call fcn.60086e60
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x600880df
test ebx, ebx
jne 0x60088083
call ebp
mov ebx, eax
test ebx, ebx
je 0x600880df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x6008809b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x6008808b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x6008808b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.60086ed0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x600880bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x600881b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x6008e190
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x600881d4
add eax, 8
inc ebp
cmp eax, 0x6008e220
jb 0x600881c5
cmp ecx, dword [ebp*8 + 0x6008e190]
jne 0x6008837b
mov eax, dword [0x60091030]
cmp eax, 1
je 0x6008833d
test eax, eax
jne 0x60088200
cmp dword [0x60091034], 1
je 0x6008833d
cmp ecx, 0xfc
je 0x6008837b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6008823b
mov ecx, 5
mov esi, 0x60081944
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x60088284
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x60081940
add ebx, ecx
push ebx
call fcn.60089be0
add esp, 0xc
mov ecx, 6
mov esi, 0x60081924
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x60081920
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x600818f8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x6008e194]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.60089b50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x60092500]
test eax, eax
je 0x6008834e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x60088358
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x6008e194]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x6008a200
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x6008a22c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x60092500]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x6008a267
push 2
push ebp
push ecx
call fcn.6008a100
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x6008a3c9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x6008a311
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x6008a2c2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x6008a2af
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x6008a292
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6008a3ba
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x6008a30d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x6008a28e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6008a3a9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6008a365
cmp eax, 5
jne 0x6008a34e
call fcn.6008ac60
mov dword [eax], 9
call fcn.6008ac70
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.6008abe0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x6008a385
cmp byte [ebp], 0x1a
jne 0x6008a385
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.6008ac60
mov dword [eax], 0x1c
call fcn.6008ac70
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x6008a30d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6008a3fa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x6008a311
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x6008a311