joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000f50a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.301de000
jmp 0x3000f50a
push 0x60
push 0x3000f668
call fcn.30012fb4
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x3001d288
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
je 0x3001d295
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
jne 0x3001d2a3
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x3004f6d4], esi
mov dword [0x3004f6dc], eax
mov dword [0x3004f6e0], ecx
mov dword [0x3004f6e4], edx
mov dword [0x3004f6d8], edi
call fcn.300012b8
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.300039f6
pop ecx
test eax, eax
je 0x3001d2ae
call fcn.30003498
test eax, eax
je 0x3001d2bb
call fcn.30001357
mov dword [ebp - 4], ebx
call fcn.30003087
test eax, eax
jl 0x3001d2c8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x3004fc60], eax
call fcn.30003c5a
mov dword [0x3004f6c8], eax
call fcn.30002e1f
test eax, eax
jl 0x3001d2d5
call fcn.30003194
test eax, eax
jl 0x3001d2e2
push ebx
call fcn.30008eb5
pop ecx
test eax, eax
jne 0x3001d2ef
call fcn.300049e2
test byte [ebp - 0x44], bl
je 0x3000f663
movzx ecx, word [ebp - 0x40]
push ecx
push eax
push 0
push 0x30000000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x3001d2fb
push eax
call fcn.3000d18e
push 0xa
pop ecx
jmp 0x3000f642
push 0x12
call fcn.30027bb8
pop ecx
jmp 0x3001d34a
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x3001d34a
or edi, 0x8000
jmp 0x3000f590
push 0x1c
call fcn.30027bb8
pop ecx
jmp 0x3000f5d4
push 0x10
call fcn.30027bb8
pop ecx
jmp 0x3000f5e1
push 0x1b
call fcn.3002862c
pop ecx
jmp 0x3000f5f6
push 8
call fcn.3002862c
pop ecx
jmp 0x3000f618
push 9
call fcn.3002862c
pop ecx
jmp 0x3000f625
push eax
call fcn.3002862c
pop ecx
jmp 0x3000f634
call fcn.30028661
jmp 0x3001d330
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x3001d34f
mov eax, 0xff
call fcn.30013054
ret

Function at 0x3000fbbb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, ecx
call fcn.3001164b
mov esi, dword [ebp + 0xc]
cmp esi, eax
ja 0x300161e4
mov ecx, edi
call fcn.3001164b
mov ecx, dword [ebp + 0x10]
lea edx, [esi + ecx]
cmp edx, eax
ja 0x300161e4
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
call fcn.30012d0c
pop edi
pop esi
leave
ret 0xc
xor eax, eax
push 0x43
pop ecx
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4515157f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x31425f7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x23062582
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
mov ecx, 0x7120652
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002280
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
nop
movsx edx, byte [ecx + str.91__]
dec edx
mov eax, edx
and edx, 7
sar eax, 3
movsx eax, byte [eax + edi]
test dword [edx*4 + 0x10026e80], eax
setne al
mov byte [esi + ecx + 4], al
inc ecx
cmp ecx, 0x38
jl 0x10002290
push 0x60
lea eax, [esi + 0x6074]
push 0
push eax
call fcn.1000bf70
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
movsx edi, byte [eax + 0x100270f0]
xor edx, edx
lea ebx, [edi - 0x1c]
nop
cmp edx, 0x1c
mov ecx, edi
sbb eax, eax
and eax, 0xffffffe4
add eax, 0x38
cmp edi, eax
cmovge ecx, ebx
inc edi
inc ebx
mov al, byte [ecx + esi + 4]
mov byte [esi + edx + 0x3c], al
inc edx
cmp edx, 0x38
jl 0x100022e0
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movsx ecx, byte [eax + 0x100270c0]
mov ebx, dword [ebp + 8]
cmp byte [ecx + esi + 0x3b], 0
je 0x1000233b
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
add edx, ebx
mov cl, byte [ecx*4 + 0x10026e80]
or byte [edx + esi + 0x6074], cl
inc eax
cmp eax, 0x30
jl 0x10002310
mov eax, dword [ebp - 4]
add ebx, 6
inc eax
mov dword [ebp + 8], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x60
jl 0x100022d3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002360
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, ecx
push 0x1000
mov dword [ebp - 4], eax
add eax, 0x5074
push 0
push eax
call fcn.1000bf70
add esp, 0xc
xor edi, edi
xor ebx, ebx
xor esi, esi
nop word [eax + eax]
xor eax, eax
movsx edx, byte [eax + 0x10026ea0]
dec edx
mov ecx, edx
sar ecx, 3
cmp ecx, edi
jne 0x100023cf
and edx, 7
test dword [edx*4 + 0x10026e80], esi
je 0x100023cf
mov ecx, eax
lea edx, [ebx + esi]
shr ecx, 3
add ecx, dword [ebp - 4]
lea edx, [ecx + edx*4]
mov ecx, eax
and ecx, 7
mov cl, byte [ecx*4 + 0x10026e80]
or byte [edx + 0x5074], cl
inc eax
cmp eax, 0x20
jl 0x10002392
inc esi
cmp esi, 0x100
jl 0x10002390
add ebx, 0x100
inc edi
cmp ebx, 0x400
jl 0x10002385
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, ecx
movlpd qword [ebp - 0xc], xmm0
mov bl, byte [edx]
xor ecx, ecx
test bl, bl
je 0x100026a6
cmp ecx, 0x28
jge 0x100026a6
mov eax, ecx
and eax, 0x80000007
jns 0x1000269a
dec eax
or eax, 0xfffffff8
inc eax
xor byte [ebp + eax - 0xc], bl
inc edx
inc ecx
mov bl, byte [edx]
test bl, bl
jne 0x10002687
push str.:2_
lea eax, [esi + 0x74]
push eax
call fcn.10002400
push 0x1002a9a8
lea eax, [esi + 0x874]
push eax
call fcn.10002400
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.10002280
mov ecx, esi
call fcn.10002220
mov ecx, esi
call fcn.10002360
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a48d
mov esp, ebp
pop ebp
ret 4

Function at 0x100029e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10002a15
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
xor ebx, dword [edx*4 + 0x1002b6e8]
mov dword [edi], ebx
sub eax, 1
jne 0x100029f3
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x100090b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1002a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0x40
push 4
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000a48d
mov esp, ebp
pop ebp
ret

Function at 0x10009100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push edi
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1000c120
add esp, 0xc
push 0
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000a48d
mov esp, ebp
pop ebp
ret

Function at 0x10010e67
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010ea6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010ea6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010ea6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010ea6
cmp dword [ecx + 0x74], 0xe
jbe 0x10010ea6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100121dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1002b210]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001221d
cmp byte [ebx], 0xa
jne 0x1001221d
or byte [edi + eax + 0x28], 4
jmp 0x10012222
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10012321
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10012304
inc eax
cmp dl, 0xd
je 0x1001224e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10012274
cmp eax, ecx
jae 0x10012282
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10012236
jmp 0x10012321
push 0
lea eax, [ebp - 0x10]
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 0x100122ff
cmp dword [ebp - 0x10], 0
je 0x100122ff
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002b210]
test byte [eax + edi + 0x28], 0x48
je 0x100122d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100122c4
mov byte [esi], dl
jmp 0x100122d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002b210]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10012321
cmp byte [ebp - 1], 0xa
jne 0x100122e8
cmp esi, ebx
jne 0x100122e8
mov byte [esi], 0xa
jmp 0x10012320
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10017d0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10012321
mov byte [esi], 0xd
jmp 0x10012320
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002b210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001231e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012321
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001232a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002b210]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012370
cmp word [ebx], dx
jne 0x10012370
or byte [eax + edi + 0x28], 4
jmp 0x10012375
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100124d8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100124b8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100123b6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100123ec
cmp eax, edx
jae 0x100123fa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10012391
jmp 0x100124d8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100124b3
cmp dword [ebp - 0x18], 0
je 0x100124b3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002b210]
test byte [eax + edi + 0x28], 0x48
je 0x10012489
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001244d
mov word [esi], cx
jmp 0x10012484
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002b210]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002b210]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002b210]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100124d8
pop eax
cmp word [ebp - 4], ax
jne 0x10012499
cmp esi, ebx
jne 0x10012499
mov word [esi], ax
jmp 0x100124d5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10017d0e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100124d8
push 0xd
pop eax
jmp 0x10012494
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002b210]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100124d2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100124d8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10014f8d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022f14
push 0x10022f0c
push str.FlsAlloc
push 0x1f
call fcn.10014e69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014fc1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100201ac]
call esi
jmp 0x10014fc7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001500b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022f24
push 0x10022f1c
push str.FlsGetValue
push 0x21
call fcn.10014e69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015042
push dword [ebp + 8]
mov ecx, esi
call dword [0x100201ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001504a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022f2c
push 0x10022f24
push str.FlsSetValue
push 0x22
call fcn.10014e69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015084
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100201ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001676e
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 0x1001680b
push ebx
push esi
call fcn.10016737
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.100166cb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100167b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001680a
push edi
push eax
call fcn.1001391a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100167d8
call fcn.10012cf7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016809
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100166cb
add esp, 0x20
test eax, eax
jne 0x100167f7
push edi
call fcn.10012cf7
jmp 0x100167ff
push ebx
call fcn.10012cf7
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 0x1001ba61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001b9dd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001bbd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001bbd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001bb85
jg 0x1001babd
test eax, eax
je 0x1001bb7b
push 1
push 0x1000
call fcn.10014cf3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001bae0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001bb72
push 0x8000
push ebx
call fcn.1001b90e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001bb09
jg 0x1001bb04
cmp ecx, 0x1000
jb 0x1001bb09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100187d1
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001bb4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001bb04
jl 0x1001bb35
test ecx, ecx
jne 0x1001baf6
push dword [ebp - 0xc]
push ebx
call fcn.1001b90e
push esi
call fcn.10012cf7
add esp, 0xc
xor ebx, ebx
jmp 0x1001bbde
cmp byte [edi + 0x24], 0
je 0x1001bb65
cmp dword [edi + 0x20], 5
jne 0x1001bb65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001bb70
mov ebx, dword [edi + 0x18]
jmp 0x1001bb72
xor ebx, ebx
push esi
call fcn.10012cf7
pop ecx
jmp 0x1001bbde
test ecx, ecx
jg 0x1001bb47
jl 0x1001bb85
test eax, eax
jae 0x1001bb47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10017d0e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001bba5
cmp byte [edi + 0x1c], 0
je 0x1001bb47
jmp 0x1001bbd6
push ebx
call fcn.10017c21
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001bb47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001bbde
cmp byte [edi + 0x1c], 0
je 0x1001bbdb
mov ebx, dword [edi + 0x18]
jmp 0x1001bbde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10017d0e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e6f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e71d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e71d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret