joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f00
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x46cd36
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x48cc50]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48cc50]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
push eax
push 0x104
push 0x48f228
call fcn.0043cab7
push 0x2e
push 0x48f228
call fcn.0043b107
push 0x47dbf4
xor ecx, ecx
push 0x104
push 0x48f228
mov word [eax], cx
call fcn.0043c47c
add esp, 0x20
push 0
push 0x48f228
push 0
call dword [0x4723c4]
test eax, eax
je 0x418fb4
push str.FALSE
push str.ASSERT_FAIL:__s_n
push str.install_management_icbc::CCabinet::CreateCabinetFolder
push 0x70
push str..Cabinet.cpp
push 0
push 3
call fcn.00414e20
add esp, 0x1c
xor eax, eax
jmp 0x419139
mov ecx, esi
call fcn.004171a0
push 0x48f228
lea ecx, [esp + 0x1c]
call fcn.00417c80
push str..inf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x27c], 0
call fcn.00417c40
mov edx, dword [0x491f78]
mov eax, dword [edx + 0xc]
mov ecx, 0x491f78
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x280], 1
call dword [0x4722c0]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4190de
push 0x48f228
lea ecx, [esp + 0x18]
call fcn.00417c00
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.00417c40
mov ebx, dword [esp + 0x280]
mov edi, dword [esp + 0x14]
push ebx
push edi
mov ecx, esi
call fcn.00418220
mov ecx, esi
call fcn.00417a30
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [0x472294]
test eax, eax
je 0x4190d7
mov eax, 0x48f228
lea edx, [eax + 2]
jmp 0x419070
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419070
sub eax, edx
sar eax, 1
push eax
push 0x48f228
lea ecx, [esp + 0x1c]
call fcn.00402380
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419095
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401e70
mov edi, dword [esp + 0x14]
push ebx
push edi
mov ecx, esi
call fcn.00418220
mov ecx, esi
call fcn.00417a30
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [0x472294]
test eax, eax
jne 0x419063
push ebp
call dword [0x4722c4]
mov ecx, esi
call fcn.00417e10
lea eax, [edi - 0x10]
mov byte [esp + 0x278], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x278], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419134
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0043aa16
add esp, 0x268
ret 4
Function at 0x41adf0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x41fbd0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46d6bd
call fcn.0043eb37
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41fbf5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [0x472480]
jmp 0x41fc3b
lea ecx, [ebp - 0x10]
call fcn.00402730
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b22a
add esp, 0x10
push dword [ebp + 8]
call dword [0x4722d8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004028c0
mov eax, esi
call fcn.0043ec0f
ret 8
Function at 0x4018f0
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.user32.dll_LoadStringA]
push 0x64
push 0x40deb0
push 0x69
push esi
call edi
push 0x64
push 0x40de48
push 0x67
push esi
call edi
mov edi, dword [sym.imp.user32.dll_LoadIconA]
push 0x6b
push esi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x4c], 0x4015c0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 3
call edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x6c
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x69
mov dword [ebp - 0x2c], 0x40cd3c
call edi
push 0x40cd84
mov dword [ebp - 0x28], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x40cd34
push 0x40cd3c
push 0
mov dword [0x40cd27], esi
call dword [sym.imp.user32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x401a2d
push 0
push esi
call dword [sym.imp.user32.dll_ShowWindow]
push esi
call dword [sym.imp.user32.dll_UpdateWindow]
mov esi, dword [sym.imp.user32.dll_GetMessageA]
push 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40566b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404368
and dword [ebp - 0x14], 0
cmp dword [0x40e840], 0
mov dword [ebp - 0x18], eax
jne 0x40571e
push 0x4097dc
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4057c6
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x4097d0
push ebx
call edi
test eax, eax
je 0x4057c6
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push 0x4097c0
push ebx
mov dword [0x40e840], eax
call edi
push eax
call esi
push 0x4097ac
push ebx
mov dword [0x40e844], eax
call edi
push eax
call esi
push 0x409790
push ebx
mov dword [0x40e848], eax
call edi
push eax
call esi
mov dword [0x40e850], eax
test eax, eax
je 0x40571e
push 0x409778
push ebx
call edi
push eax
call esi
mov dword [0x40e84c], eax
mov eax, dword [0x40e84c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x405777
cmp dword [0x40e850], ecx
je 0x405777
push eax
call esi
push dword [0x40e850]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405777
test ebx, ebx
je 0x405777
call edi
test eax, eax
je 0x40576e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40576e
test byte [ebp - 8], 1
jne 0x405777
or dword [ebp + 0x10], 0x200000
jmp 0x4057aa
mov eax, dword [0x40e844]
cmp eax, dword [ebp - 0x18]
je 0x4057aa
push eax
call esi
test eax, eax
je 0x4057aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4057aa
mov eax, dword [0x40e848]
cmp eax, dword [ebp - 0x18]
je 0x4057aa
push eax
call esi
test eax, eax
je 0x4057aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e840]
call esi
test eax, eax
je 0x4057c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4057c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059d6
leave
ret

Function at 0x4059d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d0f0]
jne 0x4059e0
repz ret
jmp fcn.00406d13
Function at 0x403bc7
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0040ef10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x435e88], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x403c03
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, dword [0x42b738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42b73c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403bc0
mov eax, dword [0x42b740]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42b744]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x435e88], 0xc
mov dword [ebp - 4], eax
jne 0x403ca7
lea eax, [ebp - 0x838]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1038]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x435e88]
cmp eax, 0xfa9
jne 0x403cc3
mov dword [0x435424], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403cd0
mov dword [0x434dd0], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x435420], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x435e88], 0x213
mov dword [ebp - 0x14], edx
jne 0x403d0e
push 0x4036cc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x435e88], 0xc
jne 0x403d3b
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00403bba
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403c3f
cmp dword [0x435e88], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403d96
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x4040f5
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x435e88], 0x400
push edi
jne 0x404155
push esi
call fcn.00404519
pop ecx
push esi
call fcn.00404702
pop ecx
push esi
push esi
call fcn.00404a22
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403b37
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403b14
fstp st(0)
push esi
call fcn.00404cca
pop ecx
push esi
push esi
call fcn.004045a7
pop ecx
pop ecx
mov eax, dword [0x42bdc4]
mov dword [0x435e88], eax
mov eax, dword [0x42bd9c]
mov dword [0x435e8c], eax
call fcn.00403e38
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x4041c4
cmp dword [esp + 0x18], 0x785074d5
jne 0x4041d2
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x404177
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403894
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x404203
cmp dword [esp + 0x18], 0x785074d5
jne 0x40420c
inc edi
cmp edi, 0x11915
jl 0x4041d4
mov eax, dword [0x434dd8]
mov dword [0x43541c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405640
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a118]
jne 0x40564a
repz ret
jmp fcn.0040a1e2
Function at 0x409f05
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.0040830e
and dword [ebp - 4], 0
cmp dword [0x42c68c], 0
mov ebx, eax
jne 0x409fb6
push 0x402450
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a067
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402444
push edi
call esi
test eax, eax
je 0x40a067
push eax
call fcn.0040829c
mov dword [esp], 0x402434
push edi
mov dword [0x42c68c], eax
call esi
push eax
call fcn.0040829c
mov dword [esp], 0x402420
push edi
mov dword [0x42c690], eax
call esi
push eax
call fcn.0040829c
mov dword [esp], 0x402404
push edi
mov dword [0x42c694], eax
call esi
push eax
call fcn.0040829c
pop ecx
mov dword [0x42c69c], eax
test eax, eax
je 0x409fb6
push 0x4023ec
push edi
call esi
push eax
call fcn.0040829c
pop ecx
mov dword [0x42c698], eax
mov eax, dword [0x42c698]
cmp eax, ebx
je 0x40a00e
cmp dword [0x42c69c], ebx
je 0x40a00e
push eax
call fcn.00408317
push dword [0x42c69c]
mov esi, eax
call fcn.00408317
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a00e
test edi, edi
je 0x40a00e
call esi
test eax, eax
je 0x40a005
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a005
test byte [ebp - 0xc], 1
jne 0x40a00e
or dword [ebp + 0x10], 0x200000
jmp 0x40a047
mov eax, dword [0x42c690]
cmp eax, ebx
je 0x40a047
push eax
call fcn.00408317
pop ecx
test eax, eax
je 0x40a047
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a047
mov eax, dword [0x42c694]
cmp eax, ebx
je 0x40a047
push eax
call fcn.00408317
pop ecx
test eax, eax
je 0x40a047
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c68c]
call fcn.00408317
pop ecx
test eax, eax
je 0x40a067
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a069
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40562e
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 0x40564f
jl 0x405646
test edi, edi
jne 0x40564f
xor eax, eax
xor edx, edx
jmp 0x405710
cmp dword [ebx + 0x38], 0
je 0x405664
push eax
push edi
push dword [ebp + 8]
call fcn.00405716
jmp 0x405710
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4056ab
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4056ab
cmp eax, edi
jb 0x405685
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408b20
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 0x4056b1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405705
mov ecx, ebx
call fcn.00404e96
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4056f0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040eb4d
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 0x405705
jmp 0x4056c3
test edx, edx
je 0x405705
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040eb4d
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 0x4080d6
Capabilities:
Parse pe header

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

Function at 0x41488d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4289e8
push 0x4289e0
push str.FlsAlloc
push 0x1e
call fcn.004146fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4148c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42513c]
call esi
jmp 0x4148c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41490b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4289f8
push 0x4289f0
push str.FlsGetValue
push 0x20
call fcn.004146fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414942
push dword [ebp + 8]
mov ecx, esi
call dword [0x42513c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4176ee
Capabilities:
Read file on windows

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

Function at 0x4176f9
Capabilities:
Read file on windows

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

Function at 0x417af3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408470
mov eax, dword [0x433010]
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.00415e22
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b35
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c91
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004242b0
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 + 0x4377b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418cc3
mov ecx, dword [esi*4 + 0x4377b0]
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 0x417c8a
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8a
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 0x417c8a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418cc3
add esp, 0x14
test edx, edx
jl 0x417c8a
jg 0x417c00
test eax, eax
jb 0x417c8a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8a
jl 0x417c1a
cmp dword [ebp - 0x1008], eax
ja 0x417c8a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c38
test ebx, ebx
je 0x417c71
cmp ecx, edi
jae 0x417c71
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c52
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5e
cmp byte [ecx + 1], 0xa
jne 0x417c5e
inc ecx
jmp 0x417c5e
movzx eax, al
movsx eax, byte [eax + 0x433298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c38
cmp edx, ebx
jne 0x417c38
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c8f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004078dc
leave
ret
Function at 0x418161
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 + 0x4377b0]
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 0x4181a1
cmp byte [ebx], 0xa
jne 0x4181a1
or byte [eax + edi + 0x28], 4
jmp 0x4181a6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4182a4
mov al, byte [edx]
cmp al, 0x1a
je 0x418286
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4181d5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4181fa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418204
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 0x4181b7
jmp 0x4182a4
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 0x418281
cmp dword [ebp - 0xc], 0
je 0x418281
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4377b0]
test byte [eax + edi + 0x28], 0x48
je 0x41825b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418246
mov byte [esi], dl
jmp 0x418257
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4377b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4182a4
cmp byte [ebp - 1], 0xa
jne 0x41826a
cmp esi, ebx
jne 0x41826a
mov byte [esi], 0xa
jmp 0x4182a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418ce1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4182a4
mov byte [esi], 0xd
jmp 0x4182a3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4377b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4182a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4182a4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret