joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003d30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10008004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push ebx
mov dword [ebp - 0x28], ecx
push esi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x18], eax
mov edx, eax
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ecx + 0x18]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x10003dc3
mov esi, dword [eax + 0x18]
test esi, esi
je 0x10003dc3
mov eax, dword [eax + 0x20]
lea edi, [eax + esi*4]
add edi, ebx
mov eax, dword [edi - 4]
lea edi, [edi - 4]
add eax, ebx
dec esi
mov edx, 0xd8e9dd90
mov cl, byte [eax]
inc eax
test cl, cl
je 0x10003db9
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x10003d98
cmp edx, 0x353323b6
je 0x10003e53
test esi, esi
jne 0x10003d83
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp eax, edx
je 0x10003dd4
cmp dword [ecx + 0x18], 0
jne 0x10003d61
xor eax, eax
call eax
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x10003ec6
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003e00
sub ecx, edx
mov edi, esi
sub edi, ecx
add edi, dword [ebp - 0xc]
cmp esi, edi
jae 0x10003ec6
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003e26
sub ecx, edx
push ecx
push dword [ebp - 0x14]
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x10003e70
inc esi
cmp esi, edi
jb 0x10003e20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004a92
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
jmp 0x10003dd6
test esi, esi
je 0x10003ec6
mov ebx, dword [ebp + 8]
mov edi, ebx
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10003e80
lea eax, [ebp - 0x20]
sub edi, ecx
push eax
push 0x40
mov edx, edi
mov ecx, esi
call fcn.10003120
add esp, 8
test edi, edi
je 0x10003eb3
mov ecx, esi
sub ebx, esi
mov edx, edi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10003ea5
lea eax, [ebp - 0x20]
mov edx, edi
push eax
push dword [ebp - 0x20]
mov ecx, esi
call fcn.10003120
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004a92
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Compiled with perl2exe
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
lea eax, [ebp - 0x104]
push esi
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004010c5
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x401031
lea eax, [ebp - 0x104]
push eax
jmp 0x401036
push str.p2x561.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x401052
push str.ERROR:_LoadLibrary_p2x561.dll_failed_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push 1
jmp 0x401075
push str.RunPerl
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x40316c], eax
jne 0x401078
push str.ERROR:_GetProcAddress_p2x561.dll_failed_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push 2
pop eax
jmp 0x4010a5
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4010a2
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401309
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push 1
push 0
push dword [ebp + 8]
call esi
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40133a
or eax, eax
jmp 0x40137e
push edi
push 0x4030e8
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40136b
sub eax, dword [ebp + 0xc]
push 0
mov dword [ebp + 0xc], eax
lea eax, [eax + ebx + 2]
push eax
push dword [ebp + 8]
call esi
add esp, 0xc
and byte [edi], 0
jmp 0x40137a
push 0
push ebx
push dword [ebp + 8]
call esi
add esp, 0xc
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4013ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 1
test edi, edi
pop esi
jge 0x4013ce
neg edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
jmp 0x4013d5
and dword [ebp - 8], 0
mov dword [ebp - 4], edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push 0
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x110]
push 0x403134
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcat
push 0x1ff
lea eax, [ebp - 0x110]
push 0x8302
push eax
call dword [sym.imp.MSVCRT.dll__open]
add esp, 0x34
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], edi
je 0x4014af
test edi, edi
je 0x4014a3
mov edi, str.For_more_information_visit_www.indigostar.com
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x14], eax
jg 0x401459
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4014a3
cmp dword [ebp - 8], 0
je 0x40148b
push ebx
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
push esi
push ebx
call fcn.004014f9
add esp, 0x14
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__write]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4014a3
sub dword [ebp + 0x14], esi
jne 0x40144e
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
jmp 0x4014e1
lea eax, [ebp - 0x110]
push eax
call fcn.004010a9
test eax, eax
pop ecx
jne 0x4014d4
lea eax, [ebp - 0x110]
push eax
push str.ERROR:_Cant_create__s_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
add ebx, edi
push 0
push ebx
push dword [ebp + 8]
call esi
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp + 0x14]
pop ecx
neg eax
sbb eax, eax
pop edi
pop esi
and al, 0xfe
pop ebx
leave
ret
Function at 0x40157b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push edi
mov edi, 0xc800
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x4015a2
or eax, 0xffffffff
jmp 0x40163d
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
or esi, 0xffffffff
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x401625
cmp eax, ebx
jbe 0x401625
mov dword [ebp + 0x10], eax
xor esi, esi
sub dword [ebp + 0x10], ebx
je 0x4015eb
mov eax, dword [ebp - 8]
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40160c
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4015cf
cmp dword [ebp - 0xc], edi
jne 0x4015a7
push 1
push 0xfffffc18
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
add dword [ebp - 4], 0xc418
jmp 0x4015a7
mov eax, dword [ebp - 4]
push 0
add esi, eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
jmp 0x40162f
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret

Function at 0x401658
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402090
push 0x401790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403170], 0xffffffff
or dword [0x403174], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403168]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403164]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403178], eax
call fcn.00401789
cmp dword [0x40314c], 0
jne 0x4016db
push 0x401786
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401774
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403160]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40315c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
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 0x10018e04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10018e13
pop dword [ebp - 0xc]
mov eax, 0xcc2cc8f6
sub eax, 0xbc2b3ae3
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x454ef
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x5b67
xor edi, edi
add edi, eax
mov esi, 0xb963547c
sub esi, 0xa95f967c
add esi, dword [ebp - 0xc]
mov ebx, 0xe2d0c21
add ebx, 0x340840c
xor dword [ebp - 4], ebx
mov edx, dword [esi]
add dword [ebp - 4], esi
xor edx, ebx
add dword [ebp - 8], ecx
mov dword [edi], edx
xor dword [ebp - 8], 0x32067f56
add edi, 0x32094320
sub edi, 0x3209431c
add esi, 0x1b131a5b
sub esi, 0x1b131a57
loop 0x10018e69
add eax, 0x7643930e
sub eax, 0x7642329f
mov ebx, eax
add eax, 0x84510817
sub eax, 0x84510812
mov ecx, 0x8620948b
add ecx, 0x89df6b75
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10018e04
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10018e04
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x6d8f364a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d4c]
test eax, eax
je 0x6d8f36b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d4c]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.6d8f9779
pop ecx
pop edi
pop esi
ret

Function at 0x6d8f3d88
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6d8f3dbd
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6d8f3db0
push eax
call fcn.6d8f4838
push 2
call fcn.6d8f4827
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
pop esi
ret
Function at 0x6d8f5f75
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6d917070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dl, byte [eax + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
cmp dl, 3
je 0x6d8f60fb
and dword [ebp - 0x18], 0
mov ecx, dword [eax]
push ebx
push edi
mov edi, dword [ebp + 0x10]
test dl, 2
je 0x6d8f5fd5
movzx edx, byte [eax + 9]
movzx esi, byte [edi]
mov ebx, edx
sub ebx, esi
movzx esi, byte [edi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, edx
sub ebx, esi
movzx esi, byte [edi + 2]
sub edx, esi
mov esi, dword [ebp - 0x1c]
push 3
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
pop ebx
jmp 0x6d8f5fe5
movzx edx, byte [edi + 3]
movzx ebx, byte [eax + 9]
sub ebx, edx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
inc ebx
test byte [eax + 8], 4
je 0x6d8f5ffa
movzx edx, byte [edi + 4]
movzx edi, byte [eax + 9]
sub edi, edx
mov dword [ebp + ebx*4 - 0x14], edi
inc ebx
xor edi, edi
test ebx, ebx
jle 0x6d8f60f9
lea edx, [ebp + edi*4 - 0x14]
cmp dword [edx], 0
jg 0x6d8f6012
and dword [edx], 0
jmp 0x6d8f6019
mov dword [ebp - 0x18], 1
inc edi
cmp edi, ebx
jl 0x6d8f6004
cmp word [ebp - 0x18], 0
je 0x6d8f60f9
movzx edx, byte [eax + 9]
dec edx
dec edx
je 0x6d8f60e3
dec edx
dec edx
je 0x6d8f60b8
sub edx, 4
je 0x6d8f6097
sub edx, 8
jne 0x6d8f60f9
and dword [ebp - 0x18], edx
imul ecx, ebx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x6d8f60f9
mov eax, dword [ebp - 0x18]
xor edx, edx
div ebx
movzx eax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
mov cx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
add esi, 2
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x6d8f6058
jmp 0x6d8f60f9
imul ecx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x6d8f60f9
xor edx, edx
mov eax, edi
div ebx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi], cl
inc esi
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x6d8f60a3
jmp 0x6d8f60f9
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, 0xf0
sar eax, cl
push 0xf
pop edx
sar edx, cl
and al, 0xf0
or al, dl
test edi, edi
je 0x6d8f60f9
mov dl, byte [esi]
mov cl, byte [ebp - 0x14]
shr dl, cl
and dl, al
mov byte [esi], dl
inc esi
dec edi
jne 0x6d8f60d2
jmp 0x6d8f60f9
mov eax, dword [eax + 4]
mov ecx, esi
test eax, eax
je 0x6d8f60f9
mov dl, byte [ecx]
shr dl, 1
and dl, 0x55
mov byte [ecx], dl
inc ecx
dec eax
jne 0x6d8f60ec
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6d90d236
leave
ret
Function at 0x6d8f9779
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x6d8f9788
pop dword [ebp - 0xc]
mov eax, 0x6d8f9788
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x5808d6ad
sub dword [ebp - 0x1c], 0x9b69162
mov dword [ebp - 0x18], 0x480c0c1a
add dword [ebp - 0x18], 0xea27402b
mov dword [ebp - 0x14], 0x4116e2c9
add dword [ebp - 0x14], 0xb356165
mov dword [ebp - 0x10], 0x9d8571ec
sub dword [ebp - 0x10], 0x9d8571ec
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xcdb3291b
add eax, 0x9fddb721
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xab030b5c
sub dword [ebp - 0x1c], 0x3690a206
mov dword [ebp - 0x18], 0x9349b98c
add dword [ebp - 0x18], 0xae22a7e9
mov dword [ebp - 0x14], 0xf0c278fc
add dword [ebp - 0x14], 0x72acf370
mov dword [ebp - 0x10], 0x1eb27218
add dword [ebp - 0x10], 0xe14d8de8
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36ad8
push 0
call eax
mov ecx, 0xcb57aaf4
add ecx, 0x34a894c4
xor edi, edi
add edi, eax
mov esi, 0xc5543694
add esi, 0xa83d9b6c
add esi, dword [ebp - 0xc]
mov ebx, 0xb3bbf1d2
sub ebx, 0x5d4fafb3
add dword [ebp - 4], ecx
mov edx, dword [esi]
xor dword [ebp - 8], 0x89b9655a
xor edx, ebx
mov dword [ebp - 4], 0xcef85f34
mov dword [edi], edx
xor dword [ebp - 8], esi
add edi, 0x9608f473
add edi, 0x69f70b91
add esi, 0xa03de79
add esi, 0xf5fc218b
loop 0x6d8f98a2
add eax, 0xfb4b2c3f
sub eax, 0xfb4a3a8c
xor ebx, ebx
add ebx, eax
add eax, 0x57477e2f
add eax, 0xa8b881d6
mov ecx, 0x6d8f0000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x6d8fe17a
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebx
push edi
jne 0x6d8fe200
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
test ecx, ecx
je 0x6d8fe1a0
push 1
push esi
push edi
call ecx
add esp, 0xc
jmp 0x6d8fe1ad
push dword [eax + 0x38]
push 1
push 1
push esi
call ebx
add esp, 0x10
cmp eax, 1
je 0x6d8fe1c0
mov dword [0x6d919e8c], 0x66
xor eax, eax
jmp 0x6d8fe215
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
lea edi, [esi + 1]
test ecx, ecx
je 0x6d8fe1dd
movzx eax, byte [esi]
push eax
push edi
push dword [esp + 0x14]
call ecx
add esp, 0xc
jmp 0x6d8fe1ec
push dword [eax + 0x38]
movzx eax, byte [esi]
push eax
push 1
push edi
call ebx
add esp, 0x10
movzx ecx, byte [esi]
cmp eax, ecx
jne 0x6d8fe1b2
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov byte [edi], 2
jmp 0x6d8fe210
movzx eax, byte [esi + 1]
mov al, byte [eax + esi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
inc byte [esi + 1]
dec byte [esi]
xor eax, eax
inc eax
pop edi
pop ebx
ret
Function at 0x10008c33
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008c72
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008c72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008c72
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008c72
cmp dword [ecx + 0x74], 0xe
jbe 0x10008c72
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b8ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b98c
push ebx
push esi
call fcn.1000b8b8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b84c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b939
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b98b
push edi
push eax
call fcn.1000c8aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b959
call fcn.1000a394
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b98a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b84c
add esp, 0x20
test eax, eax
jne 0x1000b978
push edi
call fcn.1000a394
jmp 0x1000b980
push ebx
call fcn.1000a394
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000bbf9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsAlloc
push 0x1f
call fcn.1000bb15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bc2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
jmp 0x1000bc33
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bc77
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsGetValue
push 0x21
call fcn.1000bb15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bcae
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bcb6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013680
push 0x10013678
push str.FlsSetValue
push 0x22
call fcn.1000bb15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bcf0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001139d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001139d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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