joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], vtable.CArmReport.0
push 0x104
push 0
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.00407808
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 4
push edx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4096ab
jmp 0x4096d7
push str.AdobeARM_
push 0x104
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.004063f0
push str.ArmReport.ini
push 0x104
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.004063f0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x409900
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x100
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR90.dll_vswprintf_s]
add esp, 0x10
mov dword [ebp - 0x210], 0
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x454], 0
je 0x4099a3
mov eax, dword [ebp + 8]
add eax, 0x230
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4099a1
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4099b3
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCR90.dll__putws]
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x409ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0
push 0x80
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x409bb6
mov dword [ebp - 0x18], 0x100000
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x409b9d
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409b9d
cmp dword [ebp - 0x10], 0
jbe 0x409b9d
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00407808
add esp, 0xc
jmp 0x409b23
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x409bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40ac90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x40acb0
xor eax, eax
jmp 0x40ad66
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ad64
mov dword [ebp - 0x25c], 0
call fcn.00409bd0
test eax, eax
je 0x40ace0
mov eax, 1
jmp 0x40ad66
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea ecx, [ebp - 0x254]
push ecx
call fcn.00407808
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40ad64
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0xffffffff
je 0x40ad3b
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp + 0xc]
je 0x40ad3b
xor eax, eax
jmp 0x40ad66
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040a3e0
add esp, 8
test eax, eax
je 0x40ad64
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40ad5d
mov eax, dword [ebp - 0x238]
jmp 0x40ad66
mov eax, 1
jmp 0x40ad66
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x40b420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c4f3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ad80
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.00409660
mov dword [ebp - 4], 0
mov byte [ebp - 0x42d], 0
lea ecx, [ebp - 0x42d]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004096e0
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.00407808
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x40b4e2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004093e0
jmp 0x40b531
push str.AdobeARM1.0Temp
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004063f0
test eax, eax
jge 0x40b510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004093e0
jmp 0x40b531
lea edx, [ebp - 0x21c]
push edx
call fcn.0040a950
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004093e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x414e38
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414e56
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x62
jb 0x414e47
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414e5e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414e7c
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0x10
jb 0x414e6d
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414e84
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414ea2
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0x14
jb 0x414e93
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414eaa
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414ec8
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x414eb9
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414eee
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x414edf
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414ef6
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414f14
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0xe
jb 0x414f05
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414f6c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414f8a
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0x1c
jb 0x414f7b
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414f92
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414fb0
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0x1c
jb 0x414fa1
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x414fb8
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414fd6
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0x1c
jb 0x414fc7
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x414fde
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x414ffc
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0x15
jb 0x414fed
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x415004
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x415022
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0x12
jb 0x415013
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x41502a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x415048
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x415039
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x415050
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x41506e
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0xc
jb 0x41505f
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x415076
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x415094
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x13
jb 0x415085
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x41509c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4150ba
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x14
jb 0x4150ab
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4150c2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4150e0
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0xd
jb 0x4150d1
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4150e8
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x415106
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7a]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x4150f7
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x41510e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x41512c
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x79]
xor byte [ecx], al
inc ebx
cmp ebx, 0x13
jb 0x41511d
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x415134
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x415152
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x79]
xor byte [ecx], al
inc ebx
cmp ebx, 0xf
jb 0x415143
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x41515a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x415178
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x78]
xor byte [ecx], al
inc ebx
cmp ebx, 0xd
jb 0x415169
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4160a9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4160c7
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0x14
jb 0x4160b8
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4160cf
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4160ed
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0xc
jb 0x4160de
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4160f5
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x416113
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x80]
xor byte [ecx], al
inc ebx
cmp ebx, 0xc
jb 0x416104
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x41611b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x416139
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0xc
jb 0x41612a
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x416141
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x41615f
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x78]
xor byte [ecx], al
inc ebx
cmp ebx, 0xa
jb 0x416150
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x416167
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x416185
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x78]
xor byte [ecx], al
inc ebx
cmp ebx, 0x18
jb 0x416176
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x41618d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4161ab
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x77]
xor byte [ecx], al
inc ebx
cmp ebx, 0x39
jb 0x41619c
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x4161b3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4161d1
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x77]
xor byte [ecx], al
inc ebx
cmp ebx, 0x3a
jb 0x4161c2
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4161d9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4161f7
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x76]
xor byte [ecx], al
inc ebx
cmp ebx, 0x3a
jb 0x4161e8
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4161ff
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x41621d
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x76]
xor byte [ecx], al
inc ebx
cmp ebx, 0x39
jb 0x41620e
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x417e58
Capabilities:
Create thread

Disassembly:
mov eax, 0x439118
call fcn.00435968
push ecx
push ebx
push esi
push edi
push 8
mov edi, edx
xor ebx, ebx
call fcn.00419f53
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [eax], esi
mov dword [eax + 4], ecx
lea esi, [edi + 4]
mov dword [ebp - 4], ebx
push esi
push ebx
push eax
push 0x417f57
push ebx
push ebx
call fcn.0041eaad
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x417eae
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 6
mov dword [esi], ebx
call fcn.004183bf
int3

Function at 0x419063
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 0x419084
jl 0x41907b
test edi, edi
jne 0x419084
xor eax, eax
xor edx, edx
jmp 0x419145
cmp dword [ebx + 0x38], 0
je 0x419099
push eax
push edi
push dword [ebp + 8]
call fcn.00415307
jmp 0x419145
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4190e0
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4190e0
cmp eax, edi
jb 0x4190ba
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0041b5c0
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 0x4190e6
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x41913a
mov ecx, ebx
call fcn.004189ce
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x419125
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00421eec
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 0x41913a
jmp 0x4190f8
test edx, edx
je 0x41913a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00421eec
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 0x41ac06
Capabilities:
Parse pe header

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

Function at 0x42787f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43dbc4
push 0x43dbbc
push str.FlsAlloc
push 0x1f
call fcn.00427707
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4278b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a18c]
call esi
jmp 0x4278b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4278fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43dbd4
push 0x43dbcc
push str.FlsGetValue
push 0x21
call fcn.00427707
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427934
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a18c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42793c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43dbdc
push 0x43dbd4
push str.FlsSetValue
push 0x22
call fcn.00427707
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427976
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43a18c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42b067
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041af20
mov eax, dword [0x44c040]
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.00428b9f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42b0a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42b205
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004354c0
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 + 0x44dca8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042c064
mov ecx, dword [esi*4 + 0x44dca8]
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 0x42b1fe
cmp eax, dword [ecx + edi + 0x24]
jne 0x42b1fe
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 0x42b1fe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c064
add esp, 0x14
test edx, edx
jl 0x42b1fe
jg 0x42b174
test eax, eax
jb 0x42b1fe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42b1fe
jl 0x42b18e
cmp dword [ebp - 0x1008], eax
ja 0x42b1fe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42b1ac
test ebx, ebx
je 0x42b1e5
cmp ecx, edi
jae 0x42b1e5
mov al, byte [ecx]
cmp al, 0xd
jne 0x42b1c6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42b1d2
cmp byte [ecx + 1], 0xa
jne 0x42b1d2
inc ecx
jmp 0x42b1d2
movzx eax, al
movsx eax, byte [eax + 0x44c310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42b1ac
cmp edx, ebx
jne 0x42b1ac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42b203
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041a319
leave
ret