joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100114d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10037040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001158c
cmp byte [esi + 0x3d], 0
je 0x1001158c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001157a
mov ecx, dword [esi + 0x38]
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 dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10011541
sub eax, 1
je 0x10011545
sub eax, 2
jne 0x1001157a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026c90
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10011563
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001157a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026c90
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026c90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10026c90
mov esp, ebp
pop ebp
ret
Function at 0x1001dae0
Capabilities:
Terminate process

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x10025af0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1394
call fcn.10028270
mov eax, dword [0x10037040]
xor eax, esp
mov dword [esp + 0x1390], eax
push esi
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [esp + 0x138c], 0xffffffff
mov ecx, 1
mov dword [esp + 0xc], eax
nop dword [eax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [esp + ecx*4 + 0xc], eax
inc ecx
cmp ecx, 0x270
jb 0x10025b30
lea ecx, [esp + 8]
mov dword [esp + 8], 0x270
call fcn.10026170
mov esi, 0x1389
mul esi
cmp eax, esi
jae 0x10025b82
cmp eax, 0xd93
jae 0x10025b82
nop
lea ecx, [esp + 8]
call fcn.10026170
mul esi
cmp eax, 0xd93
jb 0x10025b70
lea ecx, [edx - 0x7fffc568]
cmp ecx, 0x80000000
lea edx, [ecx - 0x80000000]
lea eax, [ecx - 0x80000000]
mov ecx, dword [esp + 0x1394]
cmovae eax, edx
pop esi
xor ecx, esp
call fcn.10026c90
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x100261cd
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
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 0x10026190
mov eax, dword [esi]
jmp 0x100262ab
cmp eax, 0x4e0
jb 0x100262ab
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
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 [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x100261e6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
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 [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10026231
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
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 [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
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
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405a4f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405d0d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a8e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x405c18
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405aa8
test eax, eax
je 0x405bc6
test bl, 2
je 0x405bc6
mov esi, 0x42b490
push edi
push esi
call fcn.0040628d
cmp dword [ebp + 8], 0
je 0x405ac7
push 0x40a3c4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405acd
push edi
call fcn.00405c66
cmp byte [edi], 0
jne 0x405adb
cmp byte [0x42b490], 0x5c
jne 0x405ae6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405bbc
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c4a
cmp byte [eax], 0
je 0x405b2c
cmp byte [ebp - 0x1c], 0
je 0x405b2c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b42
mov al, byte [esi + 1]
test al, al
je 0x405b9b
cmp al, 0x2e
jne 0x405b42
cmp byte [esi + 2], 0
je 0x405b9b
push esi
push ebx
call fcn.0040628d
test byte [ebp - 0x14c], 0x10
je 0x405b67
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b9b
push dword [ebp + 0xc]
push edi
call fcn.00405a4f
jmp 0x405b9b
push dword [ebp - 4]
push edi
call fcn.00405a07
test eax, eax
jne 0x405b93
cmp dword [ebp - 4], eax
je 0x405b8b
push edi
push 0xfffffffffffffff1
call fcn.004053d1
push 0
push edi
call fcn.00406066
jmp 0x405b9b
inc dword [0x42f0a8]
jmp 0x405b9b
push edi
push 0xfffffffffffffff2
call fcn.004053d1
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405b0a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405bc6
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405c18
cmp dword [ebp - 0xc], esi
jne 0x405bda
inc dword [0x42f0a8]
jmp 0x405c18
push edi
call fcn.00406620
test eax, eax
je 0x405c18
push edi
call fcn.00405c1f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405a07
test eax, eax
jne 0x405c10
cmp dword [ebp - 4], esi
je 0x405bd2
push edi
push 0xfffffffffffffff1
call fcn.004053d1
push esi
push edi
call fcn.00406066
jmp 0x405c18
push edi
push 0xffffffffffffffe5
call fcn.004053d1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bfaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.100037d5
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x100018fb
push eax
push esi
call fcn.10004f6d
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.10003925
int3

Function at 0x10002640
Capabilities:
Get hostname
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100027ce
lea esi, [eax + 0x8df0]
test esi, esi
je 0x100027ce
push 0x104
lea eax, [esp + 0x7c]
mov dword [esp + 0xc], 0x104
push 0
push eax
call fcn.10007230
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x100027ce
mov ecx, dword [esp + 8]
movzx eax, byte [esi]
mov byte [esp + ecx + 0x78], al
movzx eax, byte [esi + 1]
mov byte [esp + ecx + 0x79], al
lea eax, [ecx + 2]
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0xc], ecx
xor esi, esi
nop dword [eax]
xor edx, edx
test edi, edi
jle 0x100026f9
mov eax, fcn.10001fb0
add eax, ecx
nop dword [eax]
cmp esi, 0x690
jge 0x100026f5
mov cl, byte [esp + edx + 0x78]
inc esi
xor byte [eax], cl
inc edx
inc eax
cmp edx, edi
jl 0x100026e0
mov ecx, dword [esp + 0xc]
add ecx, edi
mov dword [esp + 0xc], ecx
cmp ecx, 0x690
jl 0x100026d0
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x40]
and eax, 0xfff00000
cmp dword [esp + 0x44], 0
ja 0x100027c9
jb 0x1000273b
cmp eax, 0x3fe00000
jae 0x100027c9
call fcn.10002860
push eax
call fcn.10002b00
mov ax, word [0x100277b8]
lea edx, [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x24], 3
movaps xmmword [esp + 0x14], xmm0
add esp, 4
mov word [esp + 0x10], ax
mov al, byte [0x100277ba]
mov dword [esp + 0x24], 0xf
push 3
mov byte [esp + 0x16], al
mov byte [esp + 0x17], 0
call fcn.100034f0
add esp, 4
push eax
call fcn.10002b00
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 0x10
jb 0x100027ce
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100027b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100027d4
push ecx
push edx
call fcn.10005783
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10001fb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1000a34a
int3
Function at 0x1000495d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1000497e
jl 0x10004975
test edi, edi
jne 0x1000497e
xor eax, eax
xor edx, edx
jmp 0x10004a3f
cmp dword [ebx + 0x38], 0
je 0x10004993
push eax
push edi
push dword [ebp + 8]
call fcn.10004a45
jmp 0x10004a3f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100049da
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100049da
cmp eax, edi
jb 0x100049b4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10006c90
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100049e0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10004a34
mov ecx, ebx
call fcn.100041b6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10004a1f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1000afb9
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10004a34
jmp 0x100049f2
test edx, edx
je 0x10004a34
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1000afb9
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x100104dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100202a8
push 0x100202a0
push str.FlsAlloc
push 0x1e
call fcn.100103a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010510
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d13c]
call esi
jmp 0x10010516
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001055a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100202b8
push 0x100202b0
push str.FlsGetValue
push 0x20
call fcn.100103a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010591
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10011b06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10011977

Function at 0x10011f00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100065f0
mov eax, dword [0x1002b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10010b6c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10011f42
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001209e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001bd50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002c8b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10012ef7
mov ecx, dword [esi*4 + 0x1002c8b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10012097
cmp eax, dword [edi + ecx + 0x24]
jne 0x10012097
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012097
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10012ef7
add esp, 0x14
test edx, edx
jl 0x10012097
jg 0x1001200d
test eax, eax
jb 0x10012097
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10012097
jl 0x10012027
cmp dword [ebp - 0x1008], eax
ja 0x10012097
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10012045
test ebx, ebx
je 0x1001207e
cmp ecx, edi
jae 0x1001207e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001205f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001206b
cmp byte [ecx + 1], 0xa
jne 0x1001206b
inc ecx
jmp 0x1001206b
movzx eax, al
movsx eax, byte [eax + 0x1002b278]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10012045
cmp edx, ebx
jne 0x10012045
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001209c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10005e31
leave
ret
Function at 0x10012395
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002c8b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100123d5
cmp byte [ebx], 0xa
jne 0x100123d5
or byte [eax + edi + 0x28], 4
jmp 0x100123da
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100124d8
mov al, byte [edx]
cmp al, 0x1a
je 0x100124ba
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10012409
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001242e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10012438
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100123eb
jmp 0x100124d8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100124b5
cmp dword [ebp - 0xc], 0
je 0x100124b5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002c8b8]
test byte [eax + edi + 0x28], 0x48
je 0x1001248f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001247a
mov byte [esi], dl
jmp 0x1001248b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002c8b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100124d8
cmp byte [ebp - 1], 0xa
jne 0x1001249e
cmp esi, ebx
jne 0x1001249e
mov byte [esi], 0xa
jmp 0x100124d7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10012f15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100124d8
mov byte [esi], 0xd
jmp 0x100124d7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002c8b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100124d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100124d8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100124e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1002c8b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012524
cmp word [esi], dx
jne 0x10012524
or byte [edi + eax + 0x28], 4
jmp 0x10012529
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1001267c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1001265c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1001256b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100125a1
cmp eax, edx
jae 0x100125ad
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10012543
jmp 0x1001267c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012658
cmp dword [ebp - 0x14], 0
je 0x10012658
mov eax, dword [ebx*4 + 0x1002c8b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10012630
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100125f9
mov word [esi], cx
jmp 0x1001262c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002c8b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1002c8b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002c8b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1001267c
pop ebx
cmp word [ebp - 4], bx
jne 0x10012641
cmp esi, dword [ebp + 0xc]
jne 0x10012641
mov word [esi], bx
jmp 0x10012679
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10012f15
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1001267c
push 0xd
jmp 0x10012675
mov ecx, dword [ebx*4 + 0x1002c8b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012673
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001267c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001751b
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 0x100175b8
push ebx
push esi
call fcn.100174e4
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.1001627b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017565
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100175b7
push edi
push eax
call fcn.100130f4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017585
call fcn.1000e3b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100175b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001627b
add esp, 0x20
test eax, eax
jne 0x100175a4
push edi
call fcn.1000e3b2
jmp 0x100175ac
push ebx
call fcn.1000e3b2
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 0x1001bd10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001bd3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001bd3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xd42c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xd42d8c
test eax, eax
je 0xd42d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0xd5dff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0xd42d73
lea edi, [eax + 4]
jmp 0xd42cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0xd42cec
mov dword [ebp - 4], 2
jmp 0xd42d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0xd42d03
mov dword [ebp - 4], 1
jmp 0xd42d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0xd42d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0xd42d46
mov byte [ecx], 0x3d
jmp 0xd42d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0xd42d5d
mov byte [ecx], 0x3d
jmp 0xd42d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0xd42cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret