joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10062ed9
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ff82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10062fb7
lea eax, [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10062fa0
push 2
lea ecx, [ebp - 0x50]
call fcn.100211fe
and dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xfffffffd
push 1
push 0x7818
lea eax, [ebp - 0x3c]
push eax
push 0x341
push 0x2b87
lea eax, [ebp - 0x50]
push eax
push 1
call fcn.1005f260
add esp, 0x1c
push 0x4f68
push 0x7d67
push 0x3a0
push 0x64cc
lea eax, [ebp - 0x2c]
push eax
push 0x177c
push 0x58f4
push 0x4fb3
push 1
push 0x741d
push 1
push 0x7378
push 0x63ab
lea eax, [ebp - 0x50]
push eax
call fcn.10059d5e
add esp, 0x38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10021280
jmp 0x10062fb2
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_ToAsciiEx]
jmp 0x100630d3
lea eax, [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10062fd6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x100630d3
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10062ff6
push 0
push 0x39f
push 0x1a85
call fcn.10057a36
add esp, 0xc
mov dword [ebp - 0x24], 0x241c
mov dword [ebp - 0x38], 0x1000f41c
cmp dword [ebp - 0x24], 0x25e7
jle 0x100630c1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
and dword [ebp - 0x14], 0
jmp 0x10063024
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x14d3
jge 0x100630c1
and dword [ebp - 0x18], 0
jmp 0x1006303e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x201
jge 0x100630bc
and dword [ebp - 0x1c], 0
jmp 0x10063054
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x58f9
jge 0x100630b7
and dword [ebp - 0x20], 0
jmp 0x1006306a
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7636
jge 0x100630b5
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
xor eax, ecx
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
lea ecx, [ebp - 0x68]
call fcn.1001105e
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
call fcn.10020ec4
push eax
call fcn.10069ba3
pop ecx
lea ecx, [ebp - 0x68]
call fcn.10020eba
jmp 0x10063063
jmp 0x1006304d
jmp 0x10063037
jmp 0x1006301d
cmp dword [ebp - 0x24], 0x23cf
jge 0x100630d3
push dword [ebp - 0x38]
call fcn.10069ba3
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100630e1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10063111
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x7835
push 1
push 0x177f
call fcn.100631c7
add esp, 0x10
jmp 0x100631c3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x100631a7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xf
jmp 0x10063161
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0x1d
jg 0x100631a5
mov dword [ebp - 0x24], 0x5f394a2a
push 0x68a0
push dword [ebp - 0x20]
push 0
lea eax, [ebp - 0x24]
push eax
push 1
push 0x47a
push 0x14d
push 0x6fe3
push 0
push 0x1add
push 0x12e0
call fcn.1004cebc
add esp, 0x2c
jmp 0x10063156
jmp 0x100631c3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x100631c3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esp, ebp
pop ebp
ret
Function at 0x1007a04f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10083750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006d268
mov dword [ebp - 0x14], eax
cmp dword [0x10085bf4], esi
jne 0x1007a142
push 0x800
push esi
push 0x1000675c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007a0cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007a222
push esi
push esi
push 0x1000675c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007a222
push 0x10006774
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007a222
push eax
call ebx
push 0x10006780
push edi
mov dword [0x10085bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006790
push edi
mov dword [0x10085bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100067a4
push edi
mov dword [0x10085bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10085c04], eax
test eax, eax
je 0x1007a13f
push 0x100067c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10085c00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007a167
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007a15a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007a17c
push 4
pop eax
jmp 0x1007a224
cmp dword [ebp - 0x14], esi
je 0x1007a17c
push dword [0x10085bf4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007a161
mov eax, dword [0x10085c00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007a1da
cmp dword [0x10085c04], edi
je 0x1007a1da
push eax
call ebx
push dword [0x10085c04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007a1da
test eax, eax
je 0x1007a1da
call ecx
test eax, eax
je 0x1007a1cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007a1cf
test byte [ebp - 8], 1
jne 0x1007a1da
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007a20a
mov eax, dword [0x10085bf8]
cmp eax, edi
je 0x1007a207
push eax
call ebx
test eax, eax
je 0x1007a207
call eax
mov esi, eax
test esi, esi
je 0x1007a207
mov eax, dword [0x10085bfc]
cmp eax, edi
je 0x1007a207
push eax
call ebx
test eax, eax
je 0x1007a207
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10085bf4]
call ebx
test eax, eax
je 0x1007a222
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007a224
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006a77a
mov esp, ebp
pop ebp
ret
Function at 0x4809e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x78000]
push edi
or ebp, 0xffffffff
jmp 0x480a02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x480a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4809f8
mov eax, 1
add ebx, ebx
jne 0x480a1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x480a10
jne 0x480a2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480a10
xor ecx, ecx
sub eax, 3
jb 0x480a40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x480ab2
mov ebp, eax
add ebx, ebx
jne 0x480a4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x480a58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x480a7c
inc ecx
add ebx, ebx
jne 0x480a68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x480a5d
jne 0x480a79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480a5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x480a9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x480a8d
jmp 0x4809fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x480a9c
add edi, ecx
jmp 0x4809fe
pop esi
mov edi, esi
mov ecx, 0x5ee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x480aba
cmp byte [edi], 6
jne 0x480aba
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 al, bl
loop 0x480abf
lea edi, [esi + 0x7e000]
mov eax, dword [edi]
or eax, eax
je 0x480b37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd5894]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd5948]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x480aec
mov ecx, edi
jns 0x480b1b
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 + 0xd594c]
or eax, eax
je 0x480b31
mov dword [ebx], eax
add ebx, 4
jmp 0x480b09
call dword [esi + 0xd5954]
mov ebp, dword [esi + 0xd5950]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x480b6b
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x79a03213
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x25fa679b
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x921b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x67000d
lea edi, [esi - 0x26f00d]
push edi
or ebp, 0xffffffff
jmp 0x921b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x921b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x921b28
mov eax, 1
add ebx, ebx
jne 0x921b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x921b40
jne 0x921b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x921b40
xor ecx, ecx
sub eax, 3
jb 0x921b70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x921be2
mov ebp, eax
add ebx, ebx
jne 0x921b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x921b88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x921bac
inc ecx
add ebx, ebx
jne 0x921b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x921b8d
jne 0x921ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x921b8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x921bcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x921bbd
jmp 0x921b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x921bcc
add edi, ecx
jmp 0x921b2e
pop esi
mov edi, esi
mov ecx, 0x1883
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x921bea
cmp byte [edi], 0x11
jne 0x921bea
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 al, bl
loop 0x921bef
lea edi, [esi + 0x51d000]
mov eax, dword [edi]
or eax, eax
je 0x921c5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x529164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5291bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x921c1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5291c4]
or eax, eax
je 0x921c58
mov dword [ebx], eax
add ebx, 4
jmp 0x921c39
call dword [esi + 0x5291c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x921c8f
cmp al, 0xef
ja 0x921c82
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x921c64
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x921c71
mov ebp, dword [esi + 0x5291c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x921cc3
sub esp, 0xffffff80
jmp 0x40e9dc
Function at 0x402925
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00402c22
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x402954
push 4
push dword [esp + 0x18]
call fcn.0040c91b
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x4024db
push ebp
push ebp
call fcn.0041503b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x402976
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00409393
int3

Function at 0x40ae17
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 0x40ae38
jl 0x40ae2f
test edi, edi
jne 0x40ae38
xor eax, eax
xor edx, edx
jmp 0x40aef9
cmp dword [ebx + 0x38], 0
je 0x40ae4d
push eax
push edi
push dword [ebp + 8]
call fcn.0040aeff
jmp 0x40aef9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ae94
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ae94
cmp eax, edi
jb 0x40ae6e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d870
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 0x40ae9a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40aeee
mov ecx, ebx
call fcn.0040a6b1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40aed9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00416513
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 0x40aeee
jmp 0x40aeac
test edx, edx
je 0x40aeee
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416513
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 0x40d3cf
Capabilities:
Parse pe header

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

Function at 0x41cd4d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4309c4
push 0x4309bc
push str.FlsAlloc
push 0x1e
call fcn.0041cb7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cd81
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c188]
call esi
jmp 0x41cd87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41cdcb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4309d4
push 0x4309cc
push str.FlsGetValue
push 0x20
call fcn.0041cb7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce02
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4206be
Capabilities:
Read file on windows

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

Function at 0x4206c9
Capabilities:
Read file on windows

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

Function at 0x420ac3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d820
mov eax, dword [0x47f000]
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.0041e28f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420b05
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420c61
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
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 + 0x4819b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421862
mov ecx, dword [esi*4 + 0x4819b0]
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 0x420c5a
cmp eax, dword [edi + ecx + 0x24]
jne 0x420c5a
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 0x420c5a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421862
add esp, 0x14
test edx, edx
jl 0x420c5a
jg 0x420bd0
test eax, eax
jb 0x420c5a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420c5a
jl 0x420bea
cmp dword [ebp - 0x1008], eax
ja 0x420c5a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420c08
test ebx, ebx
je 0x420c41
cmp ecx, edi
jae 0x420c41
mov al, byte [ecx]
cmp al, 0xd
jne 0x420c22
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420c2e
cmp byte [ecx + 1], 0xa
jne 0x420c2e
inc ecx
jmp 0x420c2e
movzx eax, al
movsx eax, byte [eax + 0x47f2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420c08
cmp edx, ebx
jne 0x420c08
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420c5f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cc34
leave
ret
Function at 0x420d00
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 + 0x4819b0]
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 0x420d40
cmp byte [ebx], 0xa
jne 0x420d40
or byte [eax + edi + 0x28], 4
jmp 0x420d45
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420e43
mov al, byte [edx]
cmp al, 0x1a
je 0x420e25
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420d74
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420d99
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420da3
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 0x420d56
jmp 0x420e43
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 0x420e20
cmp dword [ebp - 0xc], 0
je 0x420e20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4819b0]
test byte [eax + edi + 0x28], 0x48
je 0x420dfa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420de5
mov byte [esi], dl
jmp 0x420df6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4819b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420e43
cmp byte [ebp - 1], 0xa
jne 0x420e09
cmp esi, ebx
jne 0x420e09
mov byte [esi], 0xa
jmp 0x420e42
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421880
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420e43
mov byte [esi], 0xd
jmp 0x420e42
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4819b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420e3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e43
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret