joyce8/EMBER2024-capa huggingface dataset:
Function at 0x730d3c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x730d44
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x730efb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x730f14
call fcn.0040b498
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0x1c]
xor edx, edx
call fcn.0072e904
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x730f28
call fcn.00690ab8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x730dbf
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x730e00
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0xc]
xor edx, edx
call fcn.0072e904
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x730f90
call fcn.00690ab8
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040b440
mov eax, esi
mov edx, 0x730fbc
call fcn.0040b440
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x730e18
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x730e86
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x730fd0
call fcn.00690ab8
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040b440
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x730e4f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x730e7a
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x731000
call fcn.00690ab8
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040b440
mov eax, esi
mov edx, 0x730fbc
call fcn.0040b440
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x730e92
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x730ebd
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x73102c
call fcn.00690ab8
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040b440
mov eax, esi
mov edx, 0x730fbc
call fcn.0040b440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x730f02
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040a80c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040a80c
lea eax, [ebp - 4]
call fcn.0040a7ac
pop eax
jmp eax
Function at 0x7a8bf0
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x7a8bff
add esp, 0xfffffff0
call fcn.00408fec
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.006feb3c
mov dl, 1
mov eax, dword [0x7a60d8]
call fcn.007acc04
mov dword [edi + 0xbc], eax
mov dl, 1
mov eax, dword [0x7a5dc0]
call fcn.00408994
mov dword [edi + 0xb4], eax
lea eax, [edi + 0x78]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
mov dl, 1
mov eax, dword [0x757718]
call fcn.0069b2ec
mov esi, eax
mov dword [edi + 0xa0], esi
movzx eax, word [0x7a8cb8]
or word [esi + 0x149], ax
mov eax, esi
mov edx, 0xea60
call fcn.00720c14
mov eax, dword [edi + 0xa0]
mov edx, 0xea60
call fcn.00720c2c
mov esi, dword [edi + 0xa0]
mov byte [esi + 0x148], 1
mov eax, esi
call fcn.0075bd78
add eax, 0xa8
mov edx, 0x7a8cc8
call fcn.0040ab8c
mov eax, edi
test bl, bl
je 0x7a8caf
call fcn.00409044
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x7b0138
Capabilities:
Query service status

Disassembly:
add esp, 0xffffffe4
push esp
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [esp + 4]
add esp, 0x1c
ret

Function at 0x7b0be0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7b0cb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.0040b294
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x1c]
mov ecx, 2
mov eax, 0x7b0cd0
call fcn.00689358
push 0
call sub.KERNEL32.DLL_SetLastError
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_StartServiceW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
push 0
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.006896fc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, 0x7b0d3c
call fcn.00689358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b0cb9
lea eax, [ebp - 0x34]
call fcn.0040a7ac
lea eax, [ebp - 0x20]
call fcn.0040a7ac
pop eax
jmp eax
Function at 0x7b4b78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7b4ca7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2dc], 0
je 0x7b4c8f
mov eax, dword [ebp - 4]
call fcn.007b5368
test al, al
jne 0x7b4c8f
xor eax, eax
push ebp
push 0x7b4c85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x52c078]
call fcn.00532234
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7b4c74
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
call fcn.00569828
push eax
call sub.user32.dll_BeginPaint
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00533208
mov eax, dword [ebp - 4]
call fcn.007b534c
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
call fcn.007b5350
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.007b532c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.0053218c
add ebx, eax
mov edx, ebx
add edx, 0xc
add edx, 3
mov eax, dword [ebp - 4]
call fcn.0055f188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b4c7b
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
call fcn.00569828
push eax
call sub.user32.dll_EndPaint
mov eax, dword [ebp - 8]
call fcn.004089c4
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b4cae
lea eax, [ebp - 0x4c]
call fcn.0040a7ac
pop eax
jmp eax

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x430220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
mov dword [edi + 0x20794], 0xa317da16
push edi
jmp 0x43024a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430240
mov eax, 1
add ebx, ebx
jne 0x430263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430258
jne 0x430274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430258
xor ecx, ecx
sub eax, 3
jb 0x430288
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4302fa
mov ebp, eax
add ebx, ebx
jne 0x430293
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4302a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4302c4
inc ecx
add ebx, ebx
jne 0x4302b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4302a5
jne 0x4302c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4302a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4302e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4302d5
jmp 0x430246
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4302e4
add edi, ecx
jmp 0x430246
pop esi
mov edi, esi
mov ecx, 0xfe0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x430302
cmp byte [edi], 6
jne 0x430302
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x430307
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x430376
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x302d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30358]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x430334
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30360]
or eax, eax
je 0x430370
mov dword [ebx], eax
add ebx, 4
jmp 0x430351
call dword [esi + 0x3035c]
mov ebp, dword [esi + 0x30364]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4303aa
sub esp, 0xffffff80
jmp 0x42040c
Function at 0x419543
Capabilities:
Encode data using xor

Disassembly:
test dword [ebp + 0x7f60557c], edi
xor ebx, dword [esi + eax*8 + 3]
mov byte [ebx], 0xe2
push edi
mov edi, dword [ebx]
fsub qword [eax + 0x4f63f50c]
cdq
cmp edi, dword [esi - 0x4e]
mov dl, 0x8c
dec ebx
loop 0x4194d4
push es
inc edx
invalid

Function at 0x44af3f
Capabilities:
Encode data using xor

Disassembly:
dec ecx
or edi, ecx
dec edx
xor dword [edi + edx*2 + 0x268b8ab1], 0x66
push ebx
aam 0x10
fstp xword [edx + 0x28796072]
mov ch, 0x26
leave
leave
sbb byte [edi - 0x3e2595bc], ah
fcmovb st(0), st(1)
dec edx
xchg esi, eax
jp 0x44af28
mov esp, 0xbdbb8362
adc esi, dword [ebx]
push dx
pop ds
movsd dword es:[edi], dword [esi]
xor byte [ebx], 0xa6
clc
loope 0x44af45
cmp eax, 0x893654d5
mov bh, bh
pop ebx
test eax, 0x9511ed5f
cmp eax, 0x96a866d9
pop edi
fld dword [ecx]
test al, 0x61
loopne 0x44afaa
popal
xchg edi, eax
or dword [edi - 0x5b], esi
adc al, 0x23
xor ecx, dword [edi - 0x7f]
dec eax
stosd dword es:[edi], eax
push esi
call 0x828b38c6
ret 0x280a
test al, 0x85
mov bl, cl
xor eax, dword [edx]
iretd

Function at 0x4c9ff9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d43f0
cmp edx, dword [eax]
je 0x4ca01b
add eax, 8
inc ecx
cmp eax, 0x4d4480
jl 0x4ca00c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d43f0]
jne 0x4ca149
mov eax, dword [0x4d9e20]
cmp eax, 1
je 0x4ca123
test eax, eax
jne 0x4ca04c
cmp dword [0x4d431c], 1
je 0x4ca123
cmp edx, 0xfc
je 0x4ca149
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ca083
lea eax, [ebp - 0x1a4]
push 0x4cfe10
push eax
call fcn.004ca9e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cae70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ca0c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cae70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cfe0c
push edi
call fcn.004ccd40
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cfdf0
push eax
call fcn.004ca9e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004ca9f0
lea eax, [ebp - 0xa0]
push 0x4cfdec
push eax
call fcn.004ca9f0
push dword [esi + 0x4d43f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004ca9f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cfdc4
push eax
call fcn.004cccb4
add esp, 0x2c
pop edi
jmp 0x4ca149
lea eax, [ebp + 8]
lea esi, [esi + 0x4d43f4]
push 0
push eax
push dword [esi]
call fcn.004cae70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401490
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040b4a0
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x41af54
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
je 0x401658
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40165c
cmp word [ebp - 0x1008], 0x5a4d
jne 0x40166c
mov eax, dword [ebp - 0xfcc]
cmp eax, 0xf08
jae 0x40166c
lea eax, [ebp + eax - 0x1008]
mov dword [ebp - 0x1014], eax
cmp dword [eax], 0x4550
jne 0x40166c
mov eax, dword [ebp - 0x1014]
add eax, 0xf8
lea edx, [ebp - 8]
cmp eax, edx
jae 0x40166c
mov edx, dword [ebp - 0x1014]
cmp word [edx + 6], 0
jbe 0x40159b
xor edx, edx
xor ecx, ecx
cmp dword [eax + 0x14], edx
ja 0x401577
mov ebx, edx
jmp 0x401587
mov esi, dword [eax + 0x14]
add esi, dword [eax + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [edi], esi
mov esi, dword [eax + 0x14]
mov ebx, esi
mov edx, ebx
add eax, 0x28
inc ecx
mov ebx, dword [ebp - 0x1014]
movzx ebx, word [ebx + 6]
cmp ecx, ebx
jl 0x40156e
push 0
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 2
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40166c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x100c]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40165c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 0x100c], 8
jb 0x40165c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x100c]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40165c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 0x100c], 8
jb 0x40165c
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40167a
xor eax, eax
jmp 0x40167a
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40167a
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40209d
mov dword [esi], 0
jmp 0x4020a1
xor eax, eax
jmp 0x4020e8
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, 0x400000
cmp edi, 0x400000
cmovbe eax, edi
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
add ebx, edx
sub edi, edx
add dword [esi], edx
test eax, eax
je 0x4020e2
cmp dword [ebp - 4], 0
je 0x40209d
test edi, edi
jne 0x4020a1
jmp 0x40209d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40211d
mov dword [esi], 0
jmp 0x402121
xor eax, eax
jmp 0x402168
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, 0x400000
cmp edi, 0x400000
cmovbe eax, edi
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
add ebx, edx
sub edi, edx
add dword [esi], edx
test eax, eax
je 0x402162
cmp dword [ebp - 4], 0
je 0x40211d
test edi, edi
jne 0x402121
jmp 0x40211d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402220
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40224c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40225e
mov edx, dword [ebp - 4]
xor eax, eax
xor edi, edi
add eax, esi
adc edx, edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
shr edx, 1
mov ecx, eax
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x41bb8c], ecx
inc eax
cmp eax, 0x100
jb 0x405602
mov eax, 0x100
mov edx, dword [eax*4 + 0x41b78c]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41bb8c]
shr edx, 8
xor ecx, edx
mov dword [eax*4 + 0x41bb8c], ecx
inc eax
cmp eax, 0x800
jb 0x4056a4
mov dword [0x41db90], 0x406c40
mov dword [0x41db8c], 0x406c40
mov dword [0x41db94], 0x406d00
call fcn.00406ef0
test eax, eax
jne 0x4056ff
mov dword [0x41db8c], 0x406d00
ret

Function at 0x405700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
mov ebx, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x405755
lea eax, [ebp - 0x410]
push eax
call fcn.004131a0
push ebx
lea eax, [ebp - 0x410]
push eax
push str._ls_ls
push 0x30e
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040bac0
add esp, 0x14
jmp 0x40576a
push 0x30e
push ebx
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040bc10
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405810
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
or eax, 0xffffffff
inc eax
cmp word [ebx + eax*2], 0
jne 0x405822
mov dword [ebp - 0x258], eax
lea edx, [ebx + eax*2]
xor ecx, ecx
mov ax, word [ecx + 0x41436e]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x405835
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x258]
mov word [ebx + eax*2], 0
cmp dword [ebp - 0x254], 0xffffffff
je 0x4059b0
mov dword [ebp - 0x25c], 0
lea edx, [ebp - 0x224]
xor ecx, ecx
mov ax, word [edx + ecx]
cmp ax, word [ecx + 0x41436a]
jne 0x4058a0
add ecx, 2
test ax, ax
jne 0x405887
xor eax, eax
jmp 0x4058a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405946
lea edx, [ebp - 0x224]
xor ecx, ecx
mov ax, word [edx + ecx]
cmp ax, word [ecx + 0x414364]
jne 0x4058ce
add ecx, 2
test ax, ax
jne 0x4058b5
xor eax, eax
jmp 0x4058d3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405946
mov eax, dword [ebp - 0x258]
lea edx, [ebx + eax*2]
lea esi, [ebp - 0x224]
xor ecx, ecx
mov ax, word [esi + ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4058e8
test byte [ebp - 0x250], 0x10
je 0x40591d
push 0x4144b6
push ebx
call fcn.0040ba30
add esp, 8
push ebx
call fcn.00405810
mov dword [ebp - 0x25c], eax
jmp 0x40593d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40593d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
jne 0x40597c
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40587f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
cmp eax, 0x12
jne 0x40597c
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x258]
mov word [ebx + eax*2], 0
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
jne 0x4059a8
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4059b8
mov eax, dword [ebp - 0x25c]
jmp 0x4059c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4059c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406fa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, eax
cmp dword [ebp - 0x90], 5
setae al
movzx eax, al
xor ecx, ecx
test edx, edx
cmove eax, ecx
mov esp, ebp
pop ebp
ret