joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x438f94]
mov eax, dword [0x438080]
mov ecx, dword [0x438ed4]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push esi
mov esi, dword [0x43800c]
push edi
mov edi, dword [0x43925c]
push edx
push 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push 4
push eax
mov dword [ebp - 0x10], ecx
call ebx
add esp, 0x10
test eax, eax
jne 0x41fdd0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi*8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41fdf1
mov ecx, dword [0x438f94]
mov edx, dword [ebp + 0xc]
push ecx
push 1
push eax
push edx
call ebx
add esp, 0x10
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax], edi
jle 0x41fe48
mov ecx, dword [0x439254]
lea eax, [ecx*8]
test eax, eax
je 0x41fe21
mov ecx, dword [0x438f94]
push ecx
push 1
push eax
push esi
call ebx
mov ecx, dword [0x439254]
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x41fe40
fld qword [esi + eax*8]
mov edx, dword [ebp - 8]
imul ecx, edi
add ecx, eax
inc eax
fstp qword [edx + ecx*8]
mov ecx, dword [0x439254]
cmp eax, ecx
jl 0x41fe27
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax]
jl 0x41fe00
cmp dword [eax], 0
mov dword [ebp - 4], 0
jle 0x41fe7d
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x41fe6d
mov eax, dword [0x438f94]
push eax
push 1
push esi
push edi
call ebx
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
inc eax
add edi, esi
mov dword [ebp - 4], eax
cmp eax, dword [ecx]
jl 0x41fe57
cmp dword [0x438da0], 0
je 0x41fea8
mov edx, dword [0x438f94]
mov eax, dword [ebp + 0x18]
push edx
push 1
push 8
push eax
call ebx
mov ecx, dword [0x438f94]
mov edx, dword [ebp + 0x1c]
push ecx
push 1
push 8
push edx
jmp 0x41fec7
mov eax, dword [0x438f94]
mov ecx, dword [ebp + 0x18]
push eax
push 1
push 0xd
push ecx
call ebx
mov edx, dword [0x438f94]
mov eax, dword [ebp + 0x1c]
push edx
push 1
push 0xd
push eax
call ebx
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
add esp, 0x20
add eax, eax
je 0x41feea
mov ecx, dword [0x438f94]
mov edx, dword [ebp + 0x10]
push ecx
push 1
push eax
push edx
call ebx
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423ac0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov edx, dword [0x437c5c]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
push ebx
mov ebx, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
test esi, esi
je 0x423b1c
push ecx
push 1
push esi
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x423b30
xor eax, eax
test esi, esi
je 0x423b30
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx], 0x20
jne 0x423b46
inc eax
cmp eax, esi
jb 0x423b25
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e325
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
jle 0x423ca9
mov dword [ebp - 0x1c], edi
lea edi, [ebx + 2]
mov ebx, dword [sym.imp.MSVCR100.dll_strncpy]
jmp 0x423b68
mov ecx, dword [ebp - 0x18]
movzx eax, word [edi + 2]
test ax, ax
je 0x423c96
jns 0x423c73
cmp dword [0x438da0], 0
je 0x423bf8
movsx eax, word [edi]
mov edx, dword [edi + 0x12]
add edx, dword [ebp - 0x18]
push eax
lea esi, [ebp - 0x38]
call fcn.00405d80
mov esi, dword [ebp - 0x24]
add esp, 4
cmp word [edi + 2], 0xffff
je 0x423ba6
mov esi, dword [ebp - 0x28]
fld qword [ebp - 0x38]
sub esp, 8
fadd qword [0x436220]
fstp qword [esp]
call sub.MSVCR100.dll_floor
fst qword [esi]
add esp, 8
fcomp qword [0x438ee8]
fnstsw ax
test ah, 0x41
jne 0x423c96
push str.ID_mus_be_no_more_than_12_digits_long_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x423bf0
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x4392b4]
mov edx, dword [0x4392b0]
mov dword [ebp - 0x10], eax
mov al, byte [0x4392bc]
mov dword [ebp - 0x14], edx
mov edx, dword [0x4392b8]
mov byte [ebp - 8], al
mov dword [ebp - 0xc], edx
movzx eax, word [edi]
cmp ax, 0xc
cwde
jl 0x423c29
mov eax, 0xc
mov edx, dword [edi + 0x12]
push eax
add edx, ecx
push edx
lea eax, [ebp - 0x14]
push eax
call ebx
add esp, 0xc
mov eax, 0xc
lea esi, [ebp - 0x14]
call fcn.004045b0
cmp word [edi + 2], 0xffff
mov eax, esi
mov ecx, esi
jne 0x423c62
mov edx, dword [ebp - 0x24]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x423c56
jmp 0x423c96
mov edx, dword [ebp - 0x28]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x423c67
jmp 0x423c96
movsx edx, word [edi]
push edx
mov edx, dword [edi + 0x12]
add edx, dword [ebp - 0x18]
lea esi, [ebp - 0x38]
call fcn.00405d80
mov eax, dword [ebp - 0x1c]
fld qword [ebp - 0x38]
add esp, 4
fstp qword [eax]
add eax, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
inc eax
add edi, 0x1c
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x20]
jl 0x423b65
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0042e325
mov esp, ebp
pop ebp
ret
Function at 0x425f90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x437c5c]
push ebx
lea eax, [edx*8]
Function at 0x426b00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [0x437c5c]
push ebx
lea ecx, [eax*8]
push esi
mov esi, dword [ebp + 0xc]
sub ecx, eax
lea eax, [edx + ecx*8]
push edi
mov edi, dword [eax + 8]
mov ebx, dword [edi + 0x24]
mov eax, dword [eax + 0xc]
push edi
push esi
push ebx
mov dword [ebp - 4], eax
call fcn.00405500
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x426c79
cmp dword [0x438da0], eax
je 0x426c00
mov ecx, dword [edi + 0x18]
fld qword [esi + ecx*8]
sub esp, 8
fadd qword [0x436220]
fstp qword [esp]
call sub.MSVCR100.dll_floor
mov edx, dword [ebp + 0x10]
fst qword [edx]
add esp, 8
fcomp qword [0x438ee8]
fnstsw ax
test ah, 0x41
jne 0x426ba0
push str.ID_must_be_no_more_than_12_digits_long_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x426b98
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x426c5d
mov eax, dword [edi + 0x1c]
fld qword [esi + eax*8]
sub esp, 8
fadd qword [0x436220]
fstp qword [esp]
call sub.MSVCR100.dll_floor
fst qword [ebx]
add esp, 8
fcomp qword [0x438ee8]
fnstsw ax
test ah, 0x41
jne 0x426c5d
push str.ID_must_be_no_more_than_12_digits_long_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x426bf8
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 0x10]
imul eax, eax, 0xd
add eax, ebx
mov edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x426c10
mov eax, 0xc
call fcn.004045b0
mov ecx, esi
mov esi, dword [ebp + 0x14]
mov byte [ecx + 0xc], 0
test esi, esi
je 0x426c5a
mov eax, dword [edi + 0x1c]
imul eax, eax, 0xd
add eax, ebx
mov edx, esi
jmp 0x426c40
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x426c40
mov eax, 0xc
call fcn.004045b0
mov edx, esi
mov byte [edx + 0xc], 0
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [edi + 0x14], eax
jle 0x426c79
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
fld qword [esi + edx*8]
mov ecx, dword [ebp + 8]
fstp qword [ecx + eax*8]
inc eax
cmp eax, dword [edi + 0x14]
jl 0x426c64
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e325
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x42e32f
repz ret
jmp fcn.0042e5cc
Function at 0x1001e0f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x1001120
call fcn.01002e40
mov edi, 0x94
mov eax, edi
call fcn.01002e90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10068d0], ecx
mov eax, dword [esi + 4]
mov dword [0x10068dc], eax
mov edx, dword [esi + 8]
mov dword [0x10068e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10068d4], esi
cmp ecx, 2
je 0x1001e6f
or esi, 0x8000
mov dword [0x10068d4], esi
shl eax, 8
add eax, edx
mov dword [0x10068d8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001ea8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ea8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001ec0
cmp eax, 0x20b
je 0x1001ead
mov dword [ebp - 0x1c], edi
jmp 0x1001ed4
cmp dword [ecx + 0x84], 0xe
jbe 0x1001ea8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001ece
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ea8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.01002dee
pop ecx
test eax, eax
jne 0x1001ee8
push 0x1c
call fcn.01001deb
pop ecx
call fcn.01002d65
test eax, eax
jne 0x1001ef9
push 0x10
call fcn.01001deb
pop ecx
mov dword [ebp - 4], edi
call fcn.01002ad8
test eax, eax
jge 0x1001f0d
push 0x1b
call fcn.01001dc6
pop ecx
call fcn.01002a39
mov dword [0x1007194], eax
call fcn.010028ae
mov dword [0x10068c4], eax
call fcn.01002818
test eax, eax
jge 0x1001f32
push 8
call fcn.01001dc6
pop ecx
call fcn.010025e5
test eax, eax
jge 0x1001f43
push 9
call fcn.01001dc6
pop ecx
call fcn.01002120
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1001f56
push eax
call fcn.01001dc6
pop ecx
mov eax, dword [0x10068f8]
mov dword [0x10068fc], eax
push eax
push dword [0x10068ec]
push dword [0x10068e4]
call fcn.01001d7f
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001f85
push esi
call fcn.0100223f
call fcn.01002261
jmp 0x1001fb7
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01002e79
ret
Function at 0x100227f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1006008]
je 0x100229f
inc eax
cmp eax, 0x12
jb 0x1002290
shl eax, 3
cmp edx, dword [eax + 0x1006008]
mov dword [ebp + 8], eax
jne 0x100243d
mov ecx, dword [0x10068c8]
cmp ecx, 1
je 0x1002412
test ecx, ecx
jne 0x10022d1
cmp dword [0x1006004], 1
je 0x1002412
cmp edx, 0xfc
je 0x100243d
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100230c
push 5
pop ecx
mov esi, 0x10014b4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100231b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002353
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002333
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10014b0
push ebx
call fcn.01003980
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002358
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100600c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100236f
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01002e90
mov edx, esp
push 6
pop ecx
mov esi, 0x1001494
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100239b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10023a7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10023c0
mov eax, dword [ebp + 8]
mov esi, 0x1001490
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100600c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023db
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10023e7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001468
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01003885
add esp, 0xc
jmp 0x100243d
mov ecx, dword [eax + 0x100600c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100241d
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10028ae
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x1006b24]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
push 2
mov dword [esp + 0x14], ebx
pop edi
jne 0x10028fb
call esi
mov ebp, eax
cmp ebp, ebx
je 0x10028e2
mov dword [0x1006b24], 1
jmp 0x1002900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10028f6
mov eax, edi
mov dword [0x1006b24], eax
jmp 0x10028fb
mov eax, dword [0x1006b24]
cmp eax, 1
jne 0x1002960
cmp ebp, ebx
jne 0x1002913
call esi
mov ebp, eax
cmp ebp, ebx
jne 0x1002913
xor eax, eax
jmp 0x1002a1c
cmp word [ebp], bx
mov eax, ebp
je 0x1002929
add eax, edi
cmp word [eax], bx
jne 0x100291b
add eax, edi
cmp word [eax], bx
jne 0x100291b
sub eax, ebp
add eax, edi
mov esi, eax
push esi
call fcn.010020de
cmp eax, ebx
pop ecx
jne 0x1002948
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x1002a1c
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x100293a
cmp eax, edi
je 0x1002968
cmp eax, ebx
jne 0x100290c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x100290c
cmp byte [ebp], bl
mov esi, ebp
je 0x10029ab
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100290c
add dword [esp + 0x10], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100299a
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x100297b
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add eax, eax
push eax
call fcn.010020de
cmp eax, ebx
pop ecx
mov dword [esp + 0x14], eax
je 0x1002a2d
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x1002a0e
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, dword [esp + 0x14]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1002a23
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10029f2
sub eax, ecx
push esi
lea edi, [edi + eax + 1]
call fcn.01003a9a
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x10029cd
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x14]
call fcn.01001fc6
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x100290c
Function at 0x1002a39
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x1006b28]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1002a79
call esi
test eax, eax
je 0x1002a5e
mov dword [0x1006b28], 1
jmp 0x1002a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002a75
mov dword [0x1006b28], 2
jmp 0x1002a87
xor eax, eax
jmp 0x1002ad5
cmp eax, 1
jne 0x1002a82
call esi
jmp 0x1002ad5
cmp eax, 2
jne 0x1002a75
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x1002ad1
lea eax, [esi + esi]
push eax
call fcn.010020de
mov ebp, eax
test ebp, ebp
pop ecx
je 0x1002ad1
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
je 0x1002aca
mov eax, ebp
jmp 0x1002ad3
push ebp
call fcn.01001fc6
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x1003885
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1006c88], ebx
push esi
push edi
jne 0x1003905
push 0x1001530
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003940
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001524
push edi
call esi
test eax, eax
mov dword [0x1006c88], eax
je 0x1003940
push 0x1001514
push edi
call esi
push 0x1001500
push edi
mov dword [0x1006c8c], eax
call esi
cmp dword [0x10068d0], 2
mov dword [0x1006c90], eax
jne 0x1003905
push 0x10014e4
push edi
call esi
test eax, eax
mov dword [0x1006c98], eax
je 0x1003905
push 0x10014cc
push edi
call esi
mov dword [0x1006c94], eax
mov eax, dword [0x1006c94]
test eax, eax
je 0x100394a
call eax
test eax, eax
je 0x1003931
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1006c98]
test eax, eax
je 0x1003931
test byte [ebp - 8], 1
jne 0x100394a
cmp dword [0x10068dc], 4
jb 0x1003944
or byte [ebp + 0x12], 0x20
jmp 0x1003969
xor eax, eax
jmp 0x1003979
or byte [ebp + 0x12], 4
jmp 0x1003969
mov eax, dword [0x1006c8c]
test eax, eax
je 0x1003969
call eax
mov ebx, eax
test ebx, ebx
je 0x1003969
mov eax, dword [0x1006c90]
test eax, eax
je 0x1003969
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1006c88]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100511a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002e90
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10051af
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10068d0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10051af
cmp eax, 1
je 0x10051c7
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10051af
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1005184
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10051ab
xor eax, eax
inc eax
jmp 0x10051e3
cmp esi, ebx
jae 0x10051b3
xor eax, eax
jmp 0x10051e3
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10068d0]
jmp 0x10051c9
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
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
Function at 0x11b30
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call sub.ntoskrnl.exe_PsGetVersion
cmp dword [ebp - 8], 5
jne 0x11b80
cmp dword [ebp - 4], 2
jne 0x11b61
mov dword [0x14268], 0x77
jmp 0x11bc1
cmp dword [ebp - 4], 1
jne 0x11b73
mov dword [0x14268], 0x71
jmp 0x11bc1
cmp dword [ebp - 4], esi
jne 0x11bb9
mov dword [0x14268], esi
jmp 0x11bd4
cmp dword [ebp - 8], 6
jne 0x11bb9
cmp dword [ebp - 4], esi
jne 0x11b97
mov dword [0x14268], 0xb7
jmp 0x11bc1
cmp dword [ebp - 4], 1
jne 0x11ba9
mov dword [0x14268], 0xaf
jmp 0x11bc1
cmp dword [ebp - 4], 2
jne 0x11bb9
mov dword [0x14268], 0xed
cmp dword [0x14268], esi
je 0x11bd4
mov eax, dword [0x14280]
mov ecx, dword [0x14268]
mov eax, dword [eax + ecx*4]
mov dword [0x14264], eax
pop esi
leave
ret 4

Function at 0x15006
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x150d0
cmp dword [ebp - 4], 2
jne 0x15067
mov dword [0x141d4], 0x80
mov dword [0x141dc], 0xc2
mov dword [0x141e4], 0x11f
mov dword [0x141ec], 0x12
mov dword [0x141f4], 0x10a
jmp 0x15182
cmp dword [ebp - 4], 1
jne 0x150a4
mov dword [0x141d4], 0x7a
mov dword [0x141dc], 0xba
mov dword [0x141e4], 0x115
mov dword [0x141ec], 0x11
mov dword [0x141f4], 0x101
jmp 0x15182
cmp dword [ebp - 4], esi
jne 0x15182
mov dword [0x141d4], esi
mov dword [0x141dc], esi
mov dword [0x141e4], esi
mov dword [0x141ec], esi
mov dword [0x141f4], esi
jmp 0x15182
cmp dword [ebp - 8], 6
jne 0x15182
cmp dword [ebp - 4], esi
jne 0x15113
mov dword [0x141d4], 0xc2
mov dword [0x141dc], 0x105
mov dword [0x141e4], 0x166
mov dword [0x141ec], 0x12
mov dword [0x141f4], 0x14e
jmp 0x15182
cmp dword [ebp - 4], 1
jne 0x1514d
mov dword [0x141d4], 0xbe
mov dword [0x141dc], 0x115
mov dword [0x141e4], 0x18f
mov dword [0x141ec], 0x13
mov dword [0x141f4], 0x172
jmp 0x15182
push 2
pop eax
cmp dword [ebp - 4], eax
jne 0x15182
mov dword [0x141d4], 0xde
mov dword [0x141dc], 0x84
mov dword [0x141e4], eax
mov dword [0x141ec], 0x197
mov dword [0x141f4], 0x23
pop esi
leave
ret

Function at 0x15210
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 4], 5
mov eax, dword [ebp - 8]
jne 0x15240
cmp eax, 2
je 0x1526c
cmp eax, 1
je 0x1526c
test eax, eax
je 0x1526c
cmp dword [ebp - 4], 6
jne 0x1526c
test eax, eax
jne 0x15258
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
mov eax, dword [eax]
add eax, 0x138
jmp 0x15267
cmp eax, 1
jne 0x1526c
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
mov eax, dword [eax]
sub eax, 0xffffff80
mov dword [0x141c8], eax
leave
ret