joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57354c
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 0x57357a
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 0x573581
cmp ebx, dword [eax + 4]
jae 0x573581
xor eax, eax
jmp 0x573771
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x573592
xor eax, eax
inc eax
jmp 0x573770
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5735a8
cmp ecx, edx
jae 0x5736ed
cmp dword [eax + 4], 0
je 0x5735b1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x573599
cmp dword [ebp + 8], 0
je 0x5735d3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5736ed
cmp eax, esi
jae 0x5736ed
mov eax, dword [0x830320]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5735f8
cmp dword [esi*4 + 0x830328], edi
je 0x5736f1
inc esi
cmp esi, eax
jl 0x5735e6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x57376d
cmp dword [ebp - 8], 0x1000000
jne 0x57376d
test byte [ebp - 0xc], 0xcc
je 0x573676
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x57376d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x57376d
cmp word [eax + 0x18], 0x10b
jne 0x57376d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x57376d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x573676
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x573676
test byte [ecx + 0x27], 0x80
jne 0x5736ed
push 1
push 0x830368
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x57358a
mov ecx, dword [0x830320]
test ecx, ecx
mov edx, ecx
jle 0x5736aa
lea eax, [ecx*4 + 0x830324]
cmp dword [eax], edi
je 0x5736aa
dec edx
sub eax, 4
test edx, edx
jg 0x57369e
test edx, edx
jne 0x5736db
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5736b7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5736cf
lea eax, [edx*4 + 0x830328]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5736bd
cmp ecx, 0x10
jge 0x5736db
inc ecx
mov dword [0x830320], ecx
push 0
push 0x830368
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x57358a
xor eax, eax
jmp 0x573770
test esi, esi
jle 0x57358a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x830368
call ebx
test eax, eax
jne 0x57358a
cmp dword [esi*4 + 0x830328], edi
je 0x573747
mov eax, dword [0x830320]
lea esi, [eax - 1]
test esi, esi
jl 0x573735
cmp dword [esi*4 + 0x830328], edi
je 0x573731
dec esi
jns 0x573725
test esi, esi
jge 0x573745
cmp eax, 0x10
jge 0x573740
inc eax
mov dword [0x830320], eax
lea esi, [eax - 1]
jmp 0x573747
je 0x57375f
xor ecx, ecx
test esi, esi
jl 0x57375f
lea eax, [ecx*4 + 0x830328]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x57374d
push 0
push 0x830368
call ebx
jmp 0x57358a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x574115
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x83036c], ebx
push esi
push edi
jne 0x574195
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5741d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5cfafc
push edi
call esi
test eax, eax
mov dword [0x83036c], eax
je 0x5741d0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x830370], eax
call esi
cmp dword [0x8301ac], 2
mov dword [0x830374], eax
jne 0x574195
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x83037c], eax
je 0x574195
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x830378], eax
mov eax, dword [0x830378]
test eax, eax
je 0x5741da
call eax
test eax, eax
je 0x5741c1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x83037c]
test eax, eax
je 0x5741c1
test byte [ebp - 8], 1
jne 0x5741da
cmp dword [0x8301b8], 4
jb 0x5741d4
or byte [ebp + 0x12], 0x20
jmp 0x5741f9
xor eax, eax
jmp 0x574209
or byte [ebp + 0x12], 4
jmp 0x5741f9
mov eax, dword [0x830370]
test eax, eax
je 0x5741f9
call eax
mov ebx, eax
test ebx, ebx
je 0x5741f9
mov eax, dword [0x830374]
test eax, eax
je 0x5741f9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x83036c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5762a2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00571290
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x57633d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x8301ac]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x57633d
cmp eax, 1
je 0x57635e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x57633d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x57630a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x576339
xor eax, eax
inc eax
jmp 0x57637d
cmp edi, eax
jae 0x576341
xor eax, eax
jmp 0x57637d
cmp eax, esi
jae 0x576348
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x8301ac]
jmp 0x576361
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5779a3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00571290
mov eax, dword [0x600758]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.005712cd
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x577ad6
push 2
push esi
push dword [ebp + 8]
call fcn.005712cd
add esp, 0xc
cmp eax, ebx
je 0x577ad6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x577a76
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00565d50
push 0x8000
push dword [ebp + 8]
call fcn.00577dc1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x577a2c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005713ec
add esp, 0xc
cmp eax, 0xffffffff
je 0x577a4c
sub edi, eax
test edi, edi
jg 0x577a24
jmp 0x577a64
call fcn.0056ec95
cmp dword [eax], 5
jne 0x577a61
call fcn.0056ec8c
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00577dc1
pop ecx
pop ecx
jmp 0x577abe
jge 0x577abe
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005712cd
push dword [ebp + 8]
call fcn.0057660f
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 0x577abe
call fcn.0056ec8c
mov dword [eax], 0xd
call fcn.0056ec95
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.005712cd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x577ad8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00565ca5
leave
ret
Function at 0x577ae4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5d0b80
call fcn.0056ab64
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x830500], edi
jne 0x577b28
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x577b13
mov dword [0x830500], ebx
jmp 0x577b28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x577b28
mov dword [0x830500], 2
mov eax, dword [0x830500]
cmp eax, ebx
jne 0x577b48
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x577c0b
cmp eax, 2
je 0x577b51
cmp eax, edi
jne 0x577b79
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x577b64
mov eax, dword [0x8303d0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x577b80
xor eax, eax
jmp 0x577c0b
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00571290
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x577bb3
cmp esi, edi
jne 0x577bc9
push dword [ebp - 0x20]
call fcn.00565fd5
pop ecx
mov esi, eax
cmp esi, edi
je 0x577b79
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x577bfc
cmp dword [ebp + 0x14], edi
jne 0x577be6
push edi
push edi
jmp 0x577bec
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x577c08
push esi
call fcn.00565fe7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0056ab9f
ret
Function at 0x577c14
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5d0b90
call fcn.0056ab64
xor esi, esi
cmp dword [0x830504], esi
jne 0x577c58
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x577c43
mov dword [0x830504], edi
jmp 0x577c58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x577c58
mov dword [0x830504], 2
mov eax, dword [0x830504]
cmp eax, 2
je 0x577d39
cmp eax, esi
je 0x577d39
cmp eax, 1
jne 0x577c9d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x577c86
mov eax, dword [0x8303d0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x577ca4
xor eax, eax
jmp 0x577d4b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00571290
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x577cda
cmp edi, esi
jne 0x577cf5
lea eax, [ebx + ebx]
push eax
call fcn.00565fd5
pop ecx
mov edi, eax
cmp edi, esi
je 0x577c9d
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x577d28
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x577d12
push esi
push esi
jmp 0x577d18
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x577d34
push edi
call fcn.00565fe7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x577d4b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0056ab9f
ret
Function at 0x580011
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x580032
mov eax, 0x8876086c
jmp 0x580125
cmp dword [ebp + 0x7c], esi
je 0x5800b4
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x580094
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00571290
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x5800b4
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x5800cd
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x580113
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x580113
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x580113
cmp eax, esi
je 0x580120
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x580123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x580125
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xe8b1328
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x23e10b1
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0xa8c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a8c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa8c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8c06a
add dl, dl
jne 0xa8c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8c0dc
xor eax, eax
add dl, dl
jne 0xa8c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8c17d
add dl, dl
jne 0xa8c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa8c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa8c075
mov eax, 1
add dl, dl
jne 0xa8c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8c0e1
sub eax, ebx
mov ebx, 1
jne 0xa8c128
mov ecx, 1
add dl, dl
jne 0xa8c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa8c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8c136
cmp eax, 0x7d00
jae 0xa8c16d
cmp eax, 0x500
jb 0xa8c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8c075
cmp eax, 0x7f
ja 0xa8c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa8c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa8c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100142b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [edx + 0x9c0]
cmp edi, 0x270
jb 0x10014365
push ebx
push ebp
xor edi, edi
mov ebp, closesocket
push esi
mov esi, edi
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebp
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x10038110]
xor ecx, dword [edx + esi*4 + 0x634]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0xe3
jl 0x100142d3
mov ebx, 0x26f
jmp 0x1001432c
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebp
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x10038110]
xor ecx, dword [edx + esi*4 - 0x38c]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, ebx
jl 0x10014307
mov ecx, dword [edx + 0x9bc]
xor ecx, dword [edx]
and ecx, ebp
xor ecx, dword [edx + 0x9bc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop esi
pop ebp
pop ebx
mov eax, dword [eax*4 + 0x10038110]
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
mov dword [edx + 0x9c0], edi
mov ecx, dword [edx + edi*4]
lea eax, [edi + 1]
mov dword [edx + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
ret

Function at 0x1001478e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1001479d
pop dword [ebp - 8]
mov eax, 0x26f35e76
add eax, 0xe90de927
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xc0e5dd35
sub dword [ebp - 0x18], 0x729397ea
mov dword [ebp - 0x14], 0x89420c29
sub dword [ebp - 0x14], 0x570ebfe4
mov dword [ebp - 0x10], 0x48265861
add dword [ebp - 0x10], 0x425ebcd
mov dword [ebp - 0xc], 0x725235ed
add dword [ebp - 0xc], 0x8dadca13
lea eax, [ebp - 0x18]
push eax
mov eax, 0xb0ab3e26
sub eax, 0xa0a7ed0e
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xf8ca4e6a
add dword [ebp - 0x18], 0x7ba81aec
mov dword [ebp - 0x14], 0xd885f7f4
add dword [ebp - 0x14], 0x68e66981
mov dword [ebp - 0x10], 0x50cf6e55
sub dword [ebp - 0x10], 0xed6001e9
mov dword [ebp - 0xc], 0x2391f3c8
add dword [ebp - 0xc], 0xdc6e0c38
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3774b
push 0
call eax
mov ecx, 0xe780ddf9
sub ecx, 0xe780a478
xor ebx, ebx
add ebx, eax
mov esi, 0x7ab17128
add esi, 0x955712d8
add esi, dword [ebp - 8]
mov edx, 0xc7e8b804
sub edx, 0xf3c11f03
mov dword [ebp - 4], 0x7f4ffab4
mov edi, dword [esi]
xor edi, edx
xor dword [ebp - 4], 0xa2568e8e
mov dword [ebx], edi
xor dword [ebp - 4], 0xe0f00d29
add ebx, 0x5ef6e89c
sub ebx, 0x5ef6e898
add esi, 0x9b82461b
add esi, 0x647db9e9
loop 0x100148bc
add eax, 0x5f7efb16
add eax, 0xa081ddc1
xor ebx, ebx
add ebx, eax
add eax, 0xf0f51007
add eax, 0xf0aeffe
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x404a1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407360
cmp edx, dword [eax]
je 0x404a3f
add eax, 8
inc ecx
cmp eax, 0x4073f0
jl 0x404a30
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407360]
jne 0x404b6d
mov eax, dword [0x40770c]
cmp eax, 1
je 0x404b47
test eax, eax
jne 0x404a70
cmp dword [0x4072b0], 1
je 0x404b47
cmp edx, 0xfc
je 0x404b6d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404aa7
lea eax, [ebp - 0x1a4]
push 0x40639c
push eax
call fcn.004052d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404aea
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406398
push edi
call fcn.00405880
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x40637c
push eax
call fcn.004052d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004052e0
lea eax, [ebp - 0xa0]
push 0x406378
push eax
call fcn.004052e0
push dword [esi + 0x407364]
lea eax, [ebp - 0xa0]
push eax
call fcn.004052e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x406350
push eax
call fcn.004057f5
add esp, 0x2c
pop edi
jmp 0x404b6d
lea eax, [ebp + 8]
lea esi, [esi + 0x407364]
push 0
push eax
push dword [esi]
call fcn.00405440
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