joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4515e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x451631
call fcn.0044efe4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x451631
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x451674
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x45165d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x45165d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x451671
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45227e
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x4522a2
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x4522b0
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x45229c
xor eax, eax
inc eax
pop esi
ret

Function at 0x45f785
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x48b4b9
call fcn.0047393e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403930
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x45f7e7
call fcn.0044e8be
cmp eax, 1
jne 0x45f7e7
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004505a0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403d80
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403d40
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403d40
mov eax, esi
call fcn.00473a16
ret 0x10
Function at 0x45f810
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x48b4b9
call fcn.0047393e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403930
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x45f872
call fcn.0044e8be
cmp eax, 1
jne 0x45f872
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004505a0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403d80
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403d40
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403d40
mov eax, esi
call fcn.00473a16
ret 0x14

Function at 0x46df66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b555c]
jne 0x46df70
repz ret
jmp fcn.004762ac

Function at 0x47c570
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.00475bee
and dword [ebp - 4], 0
cmp dword [0x4b9d70], 0
mov ebx, eax
jne 0x47c621
push 0x4a1f04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x47c6d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x47c6d2
push eax
call fcn.00475b7c
mov dword [esp], 0x4a1ee8
push edi
mov dword [0x4b9d70], eax
call esi
push eax
call fcn.00475b7c
mov dword [esp], 0x4a1ed4
push edi
mov dword [0x4b9d74], eax
call esi
push eax
call fcn.00475b7c
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x4b9d78], eax
call esi
push eax
call fcn.00475b7c
pop ecx
mov dword [0x4b9d80], eax
test eax, eax
je 0x47c621
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00475b7c
pop ecx
mov dword [0x4b9d7c], eax
mov eax, dword [0x4b9d7c]
cmp eax, ebx
je 0x47c679
cmp dword [0x4b9d80], ebx
je 0x47c679
push eax
call fcn.00475bf7
push dword [0x4b9d80]
mov esi, eax
call fcn.00475bf7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47c679
test edi, edi
je 0x47c679
call esi
test eax, eax
je 0x47c670
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47c670
test byte [ebp - 0xc], 1
jne 0x47c679
or dword [ebp + 0x10], 0x200000
jmp 0x47c6b2
mov eax, dword [0x4b9d74]
cmp eax, ebx
je 0x47c6b2
push eax
call fcn.00475bf7
pop ecx
test eax, eax
je 0x47c6b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47c6b2
mov eax, dword [0x4b9d78]
cmp eax, ebx
je 0x47c6b2
push eax
call fcn.00475bf7
pop ecx
test eax, eax
je 0x47c6b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b9d70]
call fcn.00475bf7
pop ecx
test eax, eax
je 0x47c6d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47c6d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47f67b
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.00475bee
and dword [ebp - 4], 0
cmp dword [0x4b9f9c], 0
mov ebx, eax
jne 0x47f72c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47f7dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a26b4
push edi
call esi
test eax, eax
je 0x47f7dd
push eax
call fcn.00475b7c
mov dword [esp], 0x4a1ee8
push edi
mov dword [0x4b9f9c], eax
call esi
push eax
call fcn.00475b7c
mov dword [esp], 0x4a1ed4
push edi
mov dword [0x4b9fa0], eax
call esi
push eax
call fcn.00475b7c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b9fa4], eax
call esi
push eax
call fcn.00475b7c
pop ecx
mov dword [0x4b9fac], eax
test eax, eax
je 0x47f72c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00475b7c
pop ecx
mov dword [0x4b9fa8], eax
mov eax, dword [0x4b9fa8]
cmp eax, ebx
je 0x47f784
cmp dword [0x4b9fac], ebx
je 0x47f784
push eax
call fcn.00475bf7
push dword [0x4b9fac]
mov esi, eax
call fcn.00475bf7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47f784
test edi, edi
je 0x47f784
call esi
test eax, eax
je 0x47f77b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47f77b
test byte [ebp - 0xc], 1
jne 0x47f784
or dword [ebp + 0x10], 0x200000
jmp 0x47f7bd
mov eax, dword [0x4b9fa0]
cmp eax, ebx
je 0x47f7bd
push eax
call fcn.00475bf7
pop ecx
test eax, eax
je 0x47f7bd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47f7bd
mov eax, dword [0x4b9fa4]
cmp eax, ebx
je 0x47f7bd
push eax
call fcn.00475bf7
pop ecx
test eax, eax
je 0x47f7bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b9f9c]
call fcn.00475bf7
pop ecx
test eax, eax
je 0x47f7dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47f7df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405991
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4059bf
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4059b6
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4059ae
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4059e0
mov esp, ebp
pop ebp
ret

Function at 0x4059e4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x405a50
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405a7d
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405a6c
xor ecx, eax
xor edx, ebx
dec edi
jne 0x405a5d
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405aa3
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x405a44
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405acf
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4070e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4070fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4070f3
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x40fbde
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x40fc44
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e7f
mov eax, dword [ebp + 8]
leave
ret 8

Function at 0x4297c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x429803
mov eax, dword [ecx + 0x74]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x4297e1
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x831f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2fb000]
push edi
jmp 0x831f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x831f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x831f20
mov eax, 1
add ebx, ebx
jne 0x831f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x831f54
jne 0x831f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x831f73
dec eax
add ebx, ebx
jne 0x831f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x831f38
add ebx, ebx
jne 0x831f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x831fc5
xor ecx, ecx
sub eax, 3
jb 0x831f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x831ffa
sar eax, 1
mov ebp, eax
jmp 0x831f96
add ebx, ebx
jne 0x831f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x831f64
inc ecx
add ebx, ebx
jne 0x831fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x831f64
add ebx, ebx
jne 0x831fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x831fa6
jne 0x831fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x831fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x831fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x831fd6
jmp 0x831f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x831fe4
add edi, ecx
jmp 0x831f26
pop esi
mov edi, esi
mov ecx, 0x8c47
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x832002
cmp byte [edi], 0x27
jne 0x832002
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 0x832007
lea edi, [esi + 0x42d000]
mov eax, dword [edi]
or eax, eax
je 0x83207f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4440a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4441d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x832034
mov ecx, edi
jns 0x832063
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 + 0x4441d4]
or eax, eax
je 0x832079
mov dword [ebx], eax
add ebx, 4
jmp 0x832051
call dword [esi + 0x4441e4]
mov ebp, dword [esi + 0x4441d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x8320b3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x403220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x9cb7c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.00404290
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40325e
xor al, al
jmp 0x4032a4
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x40329a
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jne 0x40329a
mov dword [ebp - 0x10], 1
jmp 0x4032a1
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004073ff
mov esp, ebp
pop ebp
ret
Function at 0x4069b1
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 0x4069d2
jl 0x4069c9
test edi, edi
jne 0x4069d2
xor eax, eax
xor edx, edx
jmp 0x406a93
cmp dword [ebx + 0x38], 0
je 0x4069e7
push eax
push edi
push dword [ebp + 8]
call fcn.00406a99
jmp 0x406a93
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406a2e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406a2e
cmp eax, edi
jb 0x406a08
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408100
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 0x406a34
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406a88
mov ecx, ebx
call fcn.00406200
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406a73
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d67f
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 0x406a88
jmp 0x406a46
test edx, edx
je 0x406a88
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d67f
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 0x407d01
Capabilities:
Parse pe header

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

Function at 0x411e33
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4216a8
push 0x4216a0
push 0x41fee4
push 0x1f
call fcn.00411d1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e67
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e138]
call esi
jmp 0x411e6d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411eb1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4216b8
push 0x4216b0
push 0x41ff08
push 0x21
call fcn.00411d1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411ee8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x411ef0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4216c0
push 0x4216b8
push 0x41ff1c
push 0x22
call fcn.00411d1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f2a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414717
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004080b0
mov eax, dword [0x9cb7c0]
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.0041335e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414759
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4148b5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041cc50
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 + 0x9cd1f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00415714
mov ecx, dword [esi*4 + 0x9cd1f8]
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 0x4148ae
cmp eax, dword [ecx + edi + 0x24]
jne 0x4148ae
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 0x4148ae
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415714
add esp, 0x14
test edx, edx
jl 0x4148ae
jg 0x414824
test eax, eax
jb 0x4148ae
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4148ae
jl 0x41483e
cmp dword [ebp - 0x1008], eax
ja 0x4148ae
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41485c
test ebx, ebx
je 0x414895
cmp ecx, edi
jae 0x414895
mov al, byte [ecx]
cmp al, 0xd
jne 0x414876
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414882
cmp byte [ecx + 1], 0xa
jne 0x414882
inc ecx
jmp 0x414882
movzx eax, al
movsx eax, byte [eax + 0x9cba90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41485c
cmp edx, ebx
jne 0x41485c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4148b3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004073ff
leave
ret
Function at 0x414bac
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 + 0x9cd1f8]
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 0x414bec
cmp byte [ebx], 0xa
jne 0x414bec
or byte [edi + eax + 0x28], 4
jmp 0x414bf1
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 0x414cf0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414cd3
inc eax
cmp dl, 0xd
je 0x414c1d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414c43
cmp eax, ecx
jae 0x414c51
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 0x414c05
jmp 0x414cf0
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 0x414cce
cmp dword [ebp - 0x10], 0
je 0x414cce
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x9cd1f8]
test byte [eax + edi + 0x28], 0x48
je 0x414ca8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414c93
mov byte [esi], dl
jmp 0x414ca4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x9cd1f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414cf0
cmp byte [ebp - 1], 0xa
jne 0x414cb7
cmp esi, ebx
jne 0x414cb7
mov byte [esi], 0xa
jmp 0x414cef
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415732
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414cf0
mov byte [esi], 0xd
jmp 0x414cef
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x9cd1f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414ced
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414cf0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret