joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70c0dfb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x70c0dfd6
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x70c0dfd6
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x70c0dfd6
ret
cmp word [ebx + 4], 0x14c
jne 0x70c0dfd6
test word [ebx + 0x16], 2
je 0x70c0dfd6
test word [ebx + 0x16], 0x100
je 0x70c0dfd6
cmp word [ebx + 0x18], 0x10b
jne 0x70c0dfd6
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x70c0dfd6
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x70c0e062
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x70c0dff6
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.70bf4f41
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x70c0dfd6
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x70c0e062
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x70c0dfd6
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x70c0dfd6
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x70c0dfd6
ret
cmp word [ebx + 4], 0x14c
jne 0x70c0dfd6
test word [ebx + 0x16], 2
je 0x70c0dfd6
test word [ebx + 0x16], 0x100
je 0x70c0dfd6
cmp word [ebx + 0x18], 0x10b
jne 0x70c0dfd6
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x70c0dfd6
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x70c0e062
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x70c0dff6
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.70bf4f41
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x70c0dfd6
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x70c0e119
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x70c0e172
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x70c0e119
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x70c0e128
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x71013dcb
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x70c0e179
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.70bf4fef
cmp eax, dword [ebp + 0xc]
pop eax
je 0x70c0e218
add edi, 4
add eax, 2
dec ecx
jne 0x70c0e15e
call 0x70c0e1c5
loope 0x70c0e1bb
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x70c0e215
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x70c0e226
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x70c0e1d9
cmp eax, ecx
ja 0x70c0e1d9
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x70c0e263
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x70c0e259
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.70bf54ce
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x70c0e128
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x70c0e172
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x70c0e119
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x70c0e128
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x71013dcb
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x70c0e179
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.70bf4fef
cmp eax, dword [ebp + 0xc]
pop eax
je 0x70c0e218
add edi, 4
add eax, 2
dec ecx
jne 0x70c0e15e
call 0x70c0e1c5
loope 0x70c0e1bb
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x70c0e215
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x70c0e226
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x70c0e1d9
cmp eax, ecx
ja 0x70c0e1d9
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x70c0e263
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x70c0e259
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.70bf54ce
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40145f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
xor esi, esi
cmp dword [0x2442e54], 0x400
push edi
jne 0x4014dd
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push str.nihunigufemakulidoyudu
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.00401d8b
push esi
push esi
call fcn.00401735
push esi
call fcn.00401d26
push esi
call fcn.00401ff4
push esi
push esi
call fcn.00401b71
push esi
call fcn.00402068
push esi
push esi
call fcn.00401639
push esi
call fcn.00401e38
add esp, 0x30
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0xacc
jge 0x401512
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be411
jg 0x40152c
inc edi
cmp edi, 0x3330601
jl 0x4014e6
xor edi, edi
cmp edi, 0x16d2a
jge 0x40153d
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x401561
inc edi
cmp edi, 0x3011b
jl 0x40152e
mov eax, dword [0x425804]
mov dword [0x2442e54], eax
call fcn.004011ea
mov edi, 0x2ec37
pop ebx
cmp dword [0x2442e54], 0x51f
jne 0x401590
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401576
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x4075c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422cdc]
jne 0x4075cb
repz ret
jmp fcn.00409586
Function at 0x408816
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004059e1
and dword [ebp - 0x14], 0
cmp dword [0x430418], 0
mov dword [ebp - 0x18], eax
jne 0x4088c9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408971
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408971
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x430418], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43041c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x430420], eax
call edi
push eax
call esi
mov dword [0x430428], eax
test eax, eax
je 0x4088c9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430424], eax
mov eax, dword [0x430424]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408922
cmp dword [0x430428], ecx
je 0x408922
push eax
call esi
push dword [0x430428]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408922
test ebx, ebx
je 0x408922
call edi
test eax, eax
je 0x408919
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408919
test byte [ebp - 8], 1
jne 0x408922
or dword [ebp + 0x10], 0x200000
jmp 0x408955
mov eax, dword [0x43041c]
cmp eax, dword [ebp - 0x18]
je 0x408955
push eax
call esi
test eax, eax
je 0x408955
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408955
mov eax, dword [0x430420]
cmp eax, dword [ebp - 0x18]
je 0x408955
push eax
call esi
test eax, eax
je 0x408955
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430418]
call esi
test eax, eax
je 0x408971
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408973
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004075c1
leave
ret
Function at 0x404d33
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
or dword [ecx + 0x1384], 0xffffffff
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x404d51
pop edi
pop esi
mov dword [ecx], ebx
mov eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x40623f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4be114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x406268
xor eax, eax
jmp 0x406334
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x406294
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x406294
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x406334
cmp dword [esi + 0x4c], 0
je 0x406331
mov ecx, esi
call fcn.0040883c
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4062c0
push dword [esi + 0x4c]
push edi
call fcn.00403a8e
pop ecx
pop ecx
test al, al
je 0x406331
movzx ebx, di
jmp 0x406331
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x406331
cmp eax, 1
jle 0x4062ff
cmp eax, 3
jne 0x406331
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4062b0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x406322
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0047163e
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x406331
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
mov ax, di
jne 0x406334
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e8dc
leave
ret 4
Function at 0x406ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x406ae7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407101
jmp 0x406b9c
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x406b09
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x406b0b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x406b90
jg 0x406b20
test esi, esi
je 0x406b90
test ecx, ecx
jl 0x406b69
jg 0x406b2a
test eax, eax
je 0x406b69
cmp edi, ecx
jg 0x406b3e
jl 0x406b34
cmp esi, eax
jae 0x406b3e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004660d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x406b6c
mov edx, dword [ebp + 8]
test edi, edi
jl 0x406b90
jg 0x406b76
test esi, esi
je 0x406b90
cmp dword [ebx + 0x4c], 0
je 0x406b90
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0047163e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406ba5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x406bcc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004071ca
jmp 0x406c9b
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x406bee
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x406bf0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x406c8f
jg 0x406c0d
test esi, esi
je 0x406c8f
test ecx, ecx
jl 0x406c5a
jg 0x406c17
test eax, eax
je 0x406c5a
cmp ebx, ecx
jg 0x406c2b
jl 0x406c21
cmp esi, eax
jae 0x406c2b
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004660d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x406c61
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x406c8f
jg 0x406c6b
test esi, esi
je 0x406c8f
cmp dword [edi + 0x4c], 0
je 0x406c8f
mov ecx, edi
call fcn.00408b70
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00471f7c
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406edf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4be114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x406f05
xor eax, eax
jmp 0x406fc9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x406f2e
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x406f2e
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x406fc9
cmp dword [esi + 0x4c], 0
je 0x406fc7
mov ecx, esi
call fcn.00408b70
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x406f5a
push dword [esi + 0x4c]
push eax
call fcn.00403a74
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x406fc7
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x406fc7
cmp eax, 1
jle 0x406f96
cmp eax, 3
jne 0x406fc7
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x406f4c
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x406fb9
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0047163e
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x406fc7
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x406fc9
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e8dc
leave
ret 4

Function at 0x40888c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4be114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408914
cmp byte [esi + 0x3e], 0
je 0x408914
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
cmp di, ax
je 0x4088e6
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4088ea
sub eax, 1
je 0x4088ee
dec eax
sub eax, 1
je 0x408914
xor al, al
jmp 0x408916
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40890b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0047163e
add esp, 0x10
cmp edi, eax
jne 0x4088e6
cmp byte [esi + 0x3e], 0
sete al
jmp 0x408916
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044e8dc
leave
ret
Function at 0x408b93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4be114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408c17
cmp byte [esi + 0x3d], 0
je 0x408c17
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x408be9
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x408bed
sub eax, 1
je 0x408bf1
dec eax
sub eax, 1
je 0x408c17
xor al, al
jmp 0x408c19
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x408c0e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0047163e
add esp, 0x10
cmp edi, eax
jne 0x408be9
cmp byte [esi + 0x3d], 0
sete al
jmp 0x408c19
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044e8dc
leave
ret

Function at 0x40bb61
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x40bba9
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40bb71
jmp 0x40bbb6
cmp dword [esi], 0x4e0
jb 0x40bbb6
call fcn.0040bbf0
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x40bbf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40bc02
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40bc47
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret
Function at 0x40cbc3
Capabilities:
Get disk information

Disassembly:
push 0x124
mov eax, 0x48c866
call fcn.0044f982
mov ebx, ecx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x11c], ebx
xor eax, eax
mov edi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], eax
stosd dword es:[edi], eax
push ecx
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00413cbb
and dword [ebp - 4], 0
lea eax, [ebp - 0xe8]
xor edi, edi
push eax
inc edi
push 0x68
mov dword [ebp - 0x12c], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40ccdb
cmp word [ebp - 0xe8], 0
lea esi, [ebp - 0xe8]
je 0x40ccdb
push esi
lea ecx, [ebp - 0x100]
call fcn.00409b2a
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x100]
cmp dword [ebp - 0xec], 8
mov eax, dword [ebp - 0xf0]
cmovae ecx, dword [ebp - 0x100]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x100]
cmovae ecx, dword [ebp - 0x100]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040a3b7
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 0
je 0x40ccb3
sub eax, 1
je 0x40ccb3
sub eax, 1
je 0x40cca5
sub eax, 1
je 0x40cca5
sub eax, 1
je 0x40cca5
sub eax, 1
jmp 0x40ccb3
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.00413c85
lea ecx, [ebp - 0x118]
call fcn.0040855a
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0
call fcn.0040840e
add esi, 8
xor eax, eax
cmp word [esi], ax
jne 0x40cc35
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x124], esi
cmp esi, edi
jae 0x40cd73
lea eax, [esi + 0x18]
mov dword [ebp - 0x120], eax
mov edx, 0x4a862d
mov dword [ebp - 0x11c], edi
mov ecx, esi
call fcn.0040cace
test al, al
je 0x40cd57
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
cmp eax, edi
je 0x40cd46
mov dword [ebp - 0x128], esi
mov ebx, eax
sub esi, eax
push ebx
lea ecx, [esi + ebx]
call fcn.00413d1f
add ebx, 0x18
cmp ebx, edi
jne 0x40cd27
mov ebx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x124]
mov edi, dword [ebx + 4]
lea ecx, [edi - 0x18]
call fcn.0040855a
add dword [ebx + 4], 0xffffffe8
mov eax, dword [ebx + 4]
jmp 0x40cd5d
mov eax, dword [ebp - 0x11c]
add dword [ebp - 0x120], 0x18
add esi, 0x18
mov dword [ebp - 0x124], esi
mov edi, eax
cmp esi, eax
jb 0x40ccf7
mov eax, ebx
call fcn.0044f92c
ret