joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5564a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x6013c8]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x6013cc]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x6013b0]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x6013c0]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x556570
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x556539
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x556586
inc ax
mov word [ebp - 0xa], ax
jmp 0x55654f
cmp eax, 0xe7
jne 0x556586
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x556586
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x556520
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552cac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00552cac
mov esp, ebp
pop ebp
ret
Function at 0x576140
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
xor dl, dl
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], ecx
push ebp
push esi
push edi
test bl, 3
jne 0x576277
test cl, 3
jne 0x576277
test eax, eax
je 0x576277
mov edi, eax
xor ecx, ecx
shr edi, 2
xor esi, esi
mov dword [esp + 0x10], ecx
test edi, edi
je 0x57623e
mov ebp, dword [esp + 0x20]
cmp edi, 8
jb 0x576207
mov edx, edi
lea ecx, [ebp + 0x10]
mov eax, ebx
and edx, 0xfffffff8
sub eax, ebp
xorps xmm3, xmm3
mov dword [esp + 0x14], eax
xorps xmm2, xmm2
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
nop
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ecx + ebp - 0x20]
movups xmm0, xmmword [ecx - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x5761b0
mov ebp, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ecx, xmm2
mov dword [esp + 0x10], ecx
cmp esi, edi
jae 0x576242
mov ecx, ebx
lea edx, [esi*4]
sub ecx, ebp
mov ebx, edi
add edx, ebp
mov dword [esp + 0x14], ecx
sub ebx, esi
mov ebp, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
mov ecx, dword [edx + ebp]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
or edi, ecx
sub ebx, 1
jne 0x576224
mov ebx, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x20]
shl esi, 2
sub eax, esi
jne 0x576256
pop edi
pop esi
test ecx, ecx
pop ebp
sete al
pop ebx
add esp, 8
ret
mov edx, ecx
add ebp, esi
shr ecx, 0x10
add ebx, esi
shr edx, 0x18
or dl, cl
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x10]
shr ecx, 8
or dl, cl
mov ecx, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test eax, eax
je 0x576340
cmp eax, 0x20
jb 0x57631f
mov esi, eax
add ecx, 0x10
and esi, 0xffffffe0
xorps xmm3, xmm3
mov dword [esp + 0x1c], esi
xorps xmm2, xmm2
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
nop
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edi + ebx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ecx + ebp - 0x20]
movups xmm0, xmmword [ecx - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x5762b0
por xmm2, xmm3
mov ebp, dword [esp + 0x14]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ecx, xmm2
or dl, cl
cmp edi, eax
jae 0x576340
jmp 0x576323
mov ebp, dword [esp + 0x14]
sub ebx, ebp
lea esi, [edi + ebp]
sub eax, edi
nop word [eax + eax]
mov cl, byte [ebx + esi]
lea esi, [esi + 1]
xor cl, byte [esi - 1]
or dl, cl
sub eax, 1
jne 0x576330
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x57a95b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5af05f
Capabilities:
Read file on windows

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

Function at 0x5af06a
Capabilities:
Read file on windows

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

Function at 0x5b8dfe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b8951
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

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

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x43b64f
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
or ecx, edi
or ecx, edi
sub ecx, 0x7806c617
call fcn.0043b681
dec edi
xor dword [edx], eax
add edi, 0x7ccb47ae
sub edi, edi
dec edi
inc edx
and edi, edi
and edi, ecx
cmp edx, ebx
jne fcn.0043b64f
sub ecx, ecx
ret
Function at 0x403a62
Capabilities:
Allocate or change rwx memory
Read .ini file

Disassembly:
mov eax, 0x447cc3
call fcn.00447bd0
sub esp, 0xf4
push ebx
push esi
mov eax, 0xb2d3b
add dword [0x487314], eax
xor ebx, ebx
cmp dword [0x487314], 0x20a
jne 0x403af2
push edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x402c08
push ebx
push 0x402c2c
push 0x402c54
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call fcn.00403040
lea eax, [ebp - 0x38]
call fcn.00403d1c
push ebx
mov dword [ebp - 4], ebx
call fcn.00404bb1
push ebx
push ebx
push ebx
call fcn.004051ad
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea edi, [ebp - 0x38]
call fcn.00403d41
pop edi
xor eax, eax
cmp eax, 0xf027935
jg 0x403b03
inc eax
cmp eax, 0x736251e2
jl 0x403af4
push 0x45ab08
mov byte [0x45ab0d], 0x6c
mov byte [0x45ab0f], 0x32
mov byte [0x45ab10], 0x2e
mov byte [0x45ab0b], 0x6e
mov byte [0x45ab0c], 0x65
mov byte [0x45ab11], 0x64
mov byte [0x45ab0e], 0x33
mov byte [0x45ab12], 0x6c
mov byte [0x45ab13], 0x6c
mov byte [0x45ab14], bl
mov byte [0x45ab08], 0x6b
mov byte [0x45ab09], 0x65
mov byte [0x45ab0a], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x487314]
mov dword [0x487284], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x487314]
mov dword [0x487280], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x45503c]
xor esi, esi
mov dword [0x4873ec], eax
cmp dword [0x487314], ebx
jbe 0x403bf5
mov eax, dword [0x4873ec]
mov dword [ebp - 0x14], eax
mov eax, 0xb2d3b
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov ecx, dword [0x487280]
mov byte [ecx + esi], al
cmp dword [0x487314], 0x44
jne 0x403bec
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalShrink]
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
inc esi
cmp esi, dword [0x487314]
jb 0x403ba6
call fcn.004039c4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp esi, 0x770e
jne 0x403c19
call fcn.00403a3c
inc esi
cmp esi, 0x286c535
jl 0x403bfc
push 0x7b
pop esi
cmp dword [0x487314], 0xd
jne 0x403c5a
push 0x30
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.00405d50
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
push 0x402c98
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec esi
jne 0x403c25
call fcn.00403a56
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40598b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454168]
jne 0x405995
repz ret
jmp fcn.0040c73c
Function at 0x40ccce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408eed
and dword [ebp - 4], 0
cmp dword [0x45a9f4], 0
mov ebx, eax
jne 0x40cd7f
push 0x401ae4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ce30
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ad8
push edi
call esi
test eax, eax
je 0x40ce30
push eax
call fcn.00408e7b
mov dword [esp], 0x401ac8
push edi
mov dword [0x45a9f4], eax
call esi
push eax
call fcn.00408e7b
mov dword [esp], 0x401ab4
push edi
mov dword [0x45a9f8], eax
call esi
push eax
call fcn.00408e7b
mov dword [esp], 0x401a98
push edi
mov dword [0x45a9fc], eax
call esi
push eax
call fcn.00408e7b
pop ecx
mov dword [0x45aa04], eax
test eax, eax
je 0x40cd7f
push 0x401a80
push edi
call esi
push eax
call fcn.00408e7b
pop ecx
mov dword [0x45aa00], eax
mov eax, dword [0x45aa00]
cmp eax, ebx
je 0x40cdd7
cmp dword [0x45aa04], ebx
je 0x40cdd7
push eax
call fcn.00408ef6
push dword [0x45aa04]
mov esi, eax
call fcn.00408ef6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cdd7
test edi, edi
je 0x40cdd7
call esi
test eax, eax
je 0x40cdce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cdce
test byte [ebp - 0xc], 1
jne 0x40cdd7
or dword [ebp + 0x10], 0x200000
jmp 0x40ce10
mov eax, dword [0x45a9f8]
cmp eax, ebx
je 0x40ce10
push eax
call fcn.00408ef6
pop ecx
test eax, eax
je 0x40ce10
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ce10
mov eax, dword [0x45a9fc]
cmp eax, ebx
je 0x40ce10
push eax
call fcn.00408ef6
pop ecx
test eax, eax
je 0x40ce10
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a9f4]
call fcn.00408ef6
pop ecx
test eax, eax
je 0x40ce30
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ce32
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001e34
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x10011e0
call fcn.01002c88
mov edi, 0x94
mov eax, edi
call fcn.01002df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010a8]
mov ecx, dword [esi + 0x10]
mov dword [0x10062b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10062c4], eax
mov edx, dword [esi + 8]
mov dword [0x10062c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10062bc], esi
cmp ecx, 2
je 0x1001e94
or esi, 0x8000
mov dword [0x10062bc], esi
shl eax, 8
add eax, edx
mov dword [0x10062c0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1001ed0
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001ed0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001ee9
cmp ecx, 0x20b
je 0x1001ed6
and dword [ebp - 0x1c], 0
jmp 0x1001efd
cmp dword [eax + 0x84], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1001ef7
cmp dword [eax + 0x74], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01002c2a
pop ecx
test eax, eax
jne 0x1001f2a
cmp dword [0x10062a8], 1
jne 0x1001f17
call fcn.01002406
push 0x1c
call fcn.01002219
push 0xff
call fcn.01002078
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01002a5a
test eax, eax
jge 0x1001f3f
push 0x1b
call fcn.01001e05
pop ecx
call dword [0x10010ac]
mov dword [0x1006854], eax
call fcn.0100292d
mov dword [0x10062a0], eax
call fcn.01002884
test eax, eax
jge 0x1001f65
push 8
call fcn.01001e05
pop ecx
call fcn.0100262a
test eax, eax
jge 0x1001f76
push 9
call fcn.01001e05
pop ecx
call fcn.010020d2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001f89
push eax
call fcn.01001e05
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x10010b0]
call fcn.010025bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1001fab
movzx eax, word [ebp - 0x40]
jmp 0x1001fae
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01001c3d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1001fcf
push esi
call 0x10021b2
call fcn.010021ea
jmp 0x1002001
or dword [ebp - 4], 0xffffffff
dec ebp
pop edx
nop
add byte [ebx], al
add byte [eax], al
add byte [eax + eax], al
add byte [eax], al
invalid
Function at 0x1000f570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x1000f590
jl 0x1000f587
cmp dword [ebp + 0xc], 0
ja 0x1000f590
xor eax, eax
xor edx, edx
jmp 0x1000f6c8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x1000f5b2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.1000ff80
jmp 0x1000f6c8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.100140e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x1000f622
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.1000f6d0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10014280
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10015ec0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.10014200
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x1000f6b9
mov ecx, dword [ebp - 8]
call fcn.10013c10
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x1000f692
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1003b6dd
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x1000f690
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x1000f6c8
jmp 0x1000f63e
cmp dword [ebp - 4], 0
jbe 0x1000f6b9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1003b6dd
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d6f5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003d734
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003d734
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003d734
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003d734
cmp dword [ecx + 0x74], 0xe
jbe 0x1003d734
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10043075
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f68
push 0x10056f60
push str.FlsAlloc
push 0x1f
call fcn.10042f3d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100430a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10053138]
call esi
jmp 0x100430af
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100430f3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f78
push 0x10056f70
push str.FlsGetValue
push 0x21
call fcn.10042f3d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004312a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10053138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10043132
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f80
push 0x10056f78
push str.FlsSetValue
push 0x22
call fcn.10042f3d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004316c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10053138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10043871
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10033eb0
mov eax, dword [0x10063080]
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.1003e342
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100438b3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10043a0f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004f670
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 + 0x10064a50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10045193
mov ecx, dword [esi*4 + 0x10064a50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10043a08
cmp eax, dword [ecx + edi + 0x24]
jne 0x10043a08
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10043a08
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10045193
add esp, 0x14
test edx, edx
jl 0x10043a08
jg 0x1004397e
test eax, eax
jb 0x10043a08
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10043a08
jl 0x10043998
cmp dword [ebp - 0x1008], eax
ja 0x10043a08
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100439b6
test ebx, ebx
je 0x100439ef
cmp ecx, edi
jae 0x100439ef
mov al, byte [ecx]
cmp al, 0xd
jne 0x100439d0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100439dc
cmp byte [ecx + 1], 0xa
jne 0x100439dc
inc ecx
jmp 0x100439dc
movzx eax, al
movsx eax, byte [eax + 0x10063330]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100439b6
cmp edx, ebx
jne 0x100439b6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10043a0d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10032e56
leave
ret