joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414200
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x445004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0x6c], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x64], 0x67452301
lea eax, [ebx*8]
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x54], eax
mov eax, ebx
shr eax, 0x1d
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x50], eax
cmp ebx, 0x40
jb 0x4142d1
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x68], eax
nop dword [eax]
movups xmm0, xmmword [edi]
mov esi, 0x10
lea eax, [ebp - 0x4a]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebp - 0x2c], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ebp - 0x1c], xmm0
nop word [eax + eax]
movzx edx, byte [eax + 1]
lea eax, [eax + 4]
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 6]
shl edx, 8
or edx, ecx
mov dword [eax - 6], edx
sub esi, 1
jne 0x414290
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00413ad0
add edi, 0x40
sub ebx, 0x40
sub dword [ebp - 0x68], 1
jne 0x414260
push ebx
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.00419e20
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x64]
add esp, 0xc
call fcn.00414150
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d55
mov esp, ebp
pop ebp
ret

Function at 0x41485c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov edi, 0x104
push edi
push esi
call fcn.00415bdb
add esp, 0xc
test al, al
je 0x41490b
push 0x4342a0
push edi
push esi
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x41490b
push edi
push esi
call fcn.00415c18
mov ebx, eax
sub edi, ebx
pop ecx
pop ecx
cmp edi, 0xb
jb 0x41490b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor eax, ecx
lea ecx, [esi + ebx*2]
push 0xa
mov dword [ebp + 0xc], eax
pop eax
push edi
dec eax
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 4
push eax
call fcn.00415b58
add esp, 0x10
test al, al
je 0x41490b
lea eax, [ebx + 5]
mov ecx, esi
push eax
call fcn.00414fb9
push 0x440aac
push 0x104
push esi
call fcn.00415bb3
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x414914
inc dword [ebp + 0xc]
lea ecx, [esi + ebx*2]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4148bb
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x440580
push 0x104
push esi
call fcn.00415bb3
add esp, 0xc
jmp 0x41490d
Function at 0x414929
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push dword [ebp + 8]
xor eax, eax
mov ebx, 0x104
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bdb
add esp, 0xc
test al, al
je 0x414a64
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x414a64
push 0x4342c4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x414a64
push esi
push edi
push 0x250
xor esi, esi
lea eax, [ebp - 0x45c]
push esi
push eax
call fcn.00414fd6
add esp, 0xc
lea eax, [ebp - 0x45c]
push esi
push esi
push 1
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414a62
xor eax, eax
mov word [ebp - 0x460], ax
mov word [ebp - 0x668], ax
test byte [ebp - 0x45c], 0x10
je 0x414a49
cmp word [ebp - 0x228], 0
lea eax, [ebp - 0x430]
lea esi, [ebp - 0x228]
cmove esi, eax
push esi
call fcn.00414b74
pop ecx
test al, al
jne 0x414a49
push dword [ebp + 8]
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00415bdb
add esp, 0xc
test al, al
je 0x414a49
push esi
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x414a49
lea eax, [ebp - 0x668]
push eax
call fcn.00414cf1
pop ecx
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4149e5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414a89
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push esi
mov word [ebp - 4], ax
mov esi, 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x414ad9
cmp eax, esi
jae 0x414ad9
xor esi, esi
push dword [esi + 0x4342cc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00414929
add esi, 4
pop ecx
pop ecx
cmp esi, 8
jb 0x414abd
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414cf1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x104
push ebx
push esi
call fcn.00415c18
push str..
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.00415bb3
add esp, 0x14
test al, al
je 0x414dcf
push edi
push 0x250
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00414fd6
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414dbd
cmp word [ebp - 0x1c], 0
lea eax, [ebp - 0x224]
lea ebx, [ebp - 0x1c]
cmove ebx, eax
push ebx
call fcn.00414b74
pop ecx
test al, al
jne 0x414da4
mov eax, dword [ebp + 8]
mov ecx, esi
inc eax
push eax
call fcn.00414fb9
push ebx
push 0x104
push esi
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x414da4
test byte [ebp - 0x250], 0x10
push esi
je 0x414d9e
call fcn.00414cf1
pop ecx
jmp 0x414da4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414d51
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
mov ecx, esi
call fcn.00414fb9
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414dd5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00414fd6
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x414e24
xor al, al
jmp 0x414e65
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414e42
xor bl, bl
jmp 0x414e5a
cmp dword [ebp + 0x10], 0
je 0x414e5a
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
neg eax
sbb al, al
and bl, al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414e6b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
push esi
mov word [ebp - 0x18], ax
mov ebx, 0x104
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00415bdb
add esp, 0xc
test al, al
je 0x414fb0
push 0x434240
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x414fb0
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x414ba4
push 0x4342b0
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
call ebx
test eax, eax
je 0x414fb0
push 0x104
push edi
call fcn.00415c18
pop ecx
pop ecx
test eax, eax
je 0x414fb0
mov edi, 0x104
push edi
push esi
call fcn.00415c18
pop ecx
pop ecx
test eax, eax
jne 0x414fb0
lea eax, [ebp - 0x14]
push eax
push 0x414ba4
push 0x4342a8
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x414f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x414fb0
push edi
push esi
call fcn.00415c18
pop ecx
pop ecx
test eax, eax
je 0x414fa0
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00415615
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, al
pop ecx
pop ecx
push esi
call edi
test bl, bl
je 0x414f9c
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
call fcn.00415bdb
add esp, 0xc
test al, al
jne 0x414f9c
lea eax, [ebp - 0x220]
push eax
call edi
xor bl, bl
mov al, bl
jmp 0x414fb2
push edi
push esi
call fcn.00415c18
test eax, eax
pop ecx
pop ecx
setne al
jmp 0x414fb2
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4150b8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x20c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push edi
cmp word [eax], bx
je 0x4150d7
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp word [eax], bx
je 0x4150e2
push eax
call esi
mov eax, dword [ebp + 0x14]
cmp word [eax], bx
je 0x4150ed
push eax
call esi
mov edi, dword [ebp + 8]
cmp word [edi], bx
je 0x41514c
xor eax, eax
mov ebx, 0x104
push edi
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bdb
add esp, 0xc
test al, al
je 0x41514c
push str.setup.exe
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x41514c
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
call fcn.00415155
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415155
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push dword [ebp + 8]
xor eax, eax
mov ebx, 0x104
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bdb
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415c18
push str.BRAND_
mov edi, eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bb3
push 0x250
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.00414fd6
add esp, 0x2c
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41523e
cmp word [ebp - 0x228], 0
lea ecx, [ebp - 0x228]
lea eax, [ebp - 0x430]
cmove ecx, eax
cmp edi, ebx
jae 0x4151fa
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
push ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00415bb3
add esp, 0xc
test al, al
je 0x415225
test byte [ebp - 0x45c], 0x10
jne 0x415225
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4151d5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415743
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x445ec0]
sub esp, 0x208
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x4157c8
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
call fcn.00414fd6
add esp, 0xc
mov esi, ebx
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [esi + 0x43437c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x4157b0
push 8
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x445ec0], eax
jmp 0x4157b5
mov eax, dword [0x445ec0]
test eax, eax
jne 0x4157c8
add esi, 4
cmp esi, 0xc
jb 0x415770
mov eax, dword [0x445ecc]
jmp 0x4157ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
push str.FDIDestroy
push dword [0x445ec0]
mov dword [0x445ec4], eax
call esi
push str.FDICopy
push dword [0x445ec0]
mov dword [0x445ec8], eax
call esi
mov dword [0x445ecc], eax
cmp dword [0x445ec4], ebx
je 0x415815
cmp dword [0x445ec8], ebx
je 0x415815
test eax, eax
je 0x415815
mov bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415cc4
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415cde
xor al, al
jmp 0x415d4e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x415cf0
xor al, al
jmp 0x415d4d
push ebx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415d3d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x415d41
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x415d4c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x416249
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x443228
call fcn.00416b30
push 1
call fcn.004164d4
pop ecx
test al, al
jne 0x416100
push 7
call fcn.004166d6
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041649f
mov byte [ebp - 0x24], al
mov eax, dword [0x446218]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4160f9
test eax, eax
jne 0x41616a
mov dword [0x446218], ecx
push 0x434210
push 0x4341ec
call fcn.00420c5d
pop ecx
pop ecx
test eax, eax
je 0x41614d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x416243
push 0x4341e8
push 0x4341bc
call fcn.00420c01
pop ecx
pop ecx
mov dword [0x446218], 2
jmp 0x41616f
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00416641
pop ecx
call fcn.00416ac0
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41619f
push esi
call fcn.004165b7
pop ecx
test al, al
je 0x41619f
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004168be
call esi
call fcn.00416ac6
mov esi, eax
cmp dword [esi], edi
je 0x4161bd
push esi
call fcn.004165b7
pop ecx
test al, al
je 0x4161bd
push dword [esi]
call fcn.0041ff67
pop ecx
call fcn.004167f2
movzx eax, ax
push eax
call fcn.00420bbb
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00416825
test al, al
jne 0x4161e8
push esi
call fcn.0041ff9f
test bl, bl
jne 0x4161f1
call fcn.0041ff42
push edi
push 1
call fcn.0041665e
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x416243
call fcn.00416b76
ret
call fcn.00416a0b
jmp 0x4160e1
Function at 0x417952
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x433847
call fcn.00431ae9
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x417a7c
cmp byte [edi + 0x3d], bl
je 0x417a7c
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004168be
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x417995
xor al, al
jmp 0x417a7e
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00402690
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
cmp ecx, 0x10
jb 0x4179ca
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4179d4
mov edx, eax
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call fcn.004168be
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x417a03
sub eax, 1
jne 0x417a61
mov edi, dword [ebp - 0x30]
jmp 0x417a09
mov edi, dword [ebp - 0x30]
mov byte [edi + 0x3d], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x417a19
mov edx, eax
mov esi, dword [ebp - 0x38]
sub esi, edx
je 0x417a43
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x417a2a
mov edx, eax
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.0041f7cd
add esp, 0x10
cmp esi, eax
jne 0x417a6c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [edi + 0x3d], 0
je 0x417a6a
test esi, esi
jne 0x4179bc
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00402870
jmp 0x4179b6
dec eax
sub eax, 1
jne 0x417a70
inc eax
jmp 0x417a6e
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00402630
mov al, bl
jmp 0x417a7e
mov al, 1
call fcn.00431aa4
ret

Function at 0x41975a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437834
push 0x43782c
push str.FlsAlloc
push 0
call fcn.004196da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41978c
push dword [ebp + 8]
mov ecx, esi
call fcn.004168be
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4197ce
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437844
push 0x43783c
push str.FlsGetValue
push 2
call fcn.004196da
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4197ff
mov ecx, esi
call fcn.004168be
call esi
jmp 0x419805
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x419808
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x43784c
push 0x437844
push str.FlsSetValue
push 3
call fcn.004196da
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x41983c
mov ecx, esi
call fcn.004168be
call esi
jmp 0x419842
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x42ce4b
Capabilities:
Read file on windows

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

Function at 0x430736
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x446a48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x430777
cmp byte [edx], 0xa
jne 0x430777
or byte [eax + edi + 0x28], 4
jmp 0x43077c
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x43086d
mov al, byte [ebx]
cmp al, 0x1a
je 0x43084e
cmp al, 0xd
je 0x4307a5
mov byte [esi], al
inc esi
inc ebx
jmp 0x430843
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4307c5
cmp byte [eax], 0xa
jne 0x4307ba
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4307c0
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x430843
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43083c
cmp dword [ebp - 0x14], 0
je 0x43083c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x446a48]
test byte [eax + edi + 0x28], 0x48
je 0x430813
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x430803
mov byte [esi], dl
jmp 0x43083f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x446a48]
mov byte [eax + edi + 0x2a], dl
jmp 0x43083f
cmp byte [ebp - 1], 0xa
jne 0x430825
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x430825
mov byte [esi], 0xa
jmp 0x4307c2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042834a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x430840
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x43078e
jmp 0x43086d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x446a48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x430868
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43086d
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430878
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x446a48]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4308bc
cmp word [edx], bx
jne 0x4308bc
or byte [edi + eax + 0x28], 4
jmp 0x4308c1
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x430a15
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4309f5
cmp ax, word [ebp - 0x10]
je 0x4308fa
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4309ea
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x430920
push 0xa
pop ecx
cmp word [eax], cx
jne 0x430910
push ecx
pop eax
push 4
jmp 0x430915
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4309e4
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4309db
cmp dword [ebp - 0x18], 0
je 0x4309db
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x446a48]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4309a7
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x43096b
mov word [esi], ax
jmp 0x43099f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x446a48]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x446a48]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x446a48]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4309ea
cmp word [ebp - 4], ax
jne 0x4309bc
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4309bc
mov word [esi], ax
add esi, 2
jmp 0x4309ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042834a
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4309e7
jmp 0x4309de
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4308da
jmp 0x430a15
mov ecx, dword [ecx*4 + 0x446a48]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x430a0c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x430a15
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret