joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fc54
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x44fc5c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x44fe4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x44fe64
mov eax, esi
call fcn.0044d9e4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403b68
lea ecx, [ebp - 0x10]
mov edx, 0x44fe78
mov eax, esi
call fcn.0044d9e4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403b68
lea ecx, [ebp - 0x14]
mov edx, 0x44fe90
mov eax, esi
call fcn.0044d9e4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403b68
lea ecx, [ebp - 0x18]
mov edx, 0x44feac
mov eax, esi
call fcn.0044d9e4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403b68
lea ecx, [ebp - 0x1c]
mov edx, 0x44fec8
mov eax, esi
call fcn.0044d9e4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403b68
lea ecx, [ebp - 0x24]
mov edx, 0x44fee0
mov eax, esi
call fcn.0044d9e4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408498
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408790
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x44fef8
mov eax, esi
call fcn.0044d9e4
mov eax, dword [ebp - 0x28]
call fcn.0044cb10
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x44ff08
mov eax, esi
call fcn.0044d9e4
mov eax, dword [ebp - 0x2c]
call fcn.0044cb10
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x44ff20
mov eax, esi
call fcn.0044d9e4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408790
inc eax
je 0x44fdf1
lea ecx, [ebp - 0x34]
mov edx, 0x44ff20
mov eax, esi
call fcn.0044d9e4
mov eax, dword [ebp - 0x34]
call fcn.00408754
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409424
fstp qword [ebp - 0x3c]
wait
call fcn.004097fc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x44fe0c
lea ecx, [ebp - 0x40]
mov edx, 0x44ff20
mov eax, esi
call fcn.0044d9e4
mov eax, dword [ebp - 0x40]
call fcn.0044cb10
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x44ff30
mov eax, esi
call fcn.0044d9e4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fe55
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403b38
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403b38
ret
Function at 0x460cf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x460d54
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403d44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408790
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460d5b
lea eax, [ebp - 0xc]
call fcn.00403b14
ret

Function at 0x463e48
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402aa4
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x46703c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467114
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47ce08], 0
jne 0x4670f8
lea eax, [ebp - 4]
mov edx, 0x46712c
call fcn.00403bac
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403f58
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4670f8
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4670f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4670db
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46713c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4670db
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x47ce08], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4670f8
mov eax, dword [ebp - 0xc]
call fcn.0040272c
ret
mov ebx, dword [0x47ce08]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46711b
lea eax, [ebp - 4]
call fcn.00403b14
ret

Function at 0x46b5c0
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x47ce2c], 0
jne 0x46b5e3
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46b544
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47ce2c], eax
ret

Function at 0x46cf88
Capabilities:
Set global application hook

Disassembly:
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x46ced0
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x479490], eax
cmp dword [0x479490], 0
jne 0x46cfaf
call fcn.00462cac
ret
Function at 0x46d224
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404144
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x46d273
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d278
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004042f4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47122d
test al, 0x10
jne 0x471231
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x474bd4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
and ax, 0xffff
cmp ax, 0xffff
jne 0x474c03
mov eax, esi
call fcn.004042f4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x474c03
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesW
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x4713d4]
call fcn.004714dc
cmp dword [eax + 8], 0xffffffff
jne 0x474c1f
call fcn.00402e04
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x475d7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004046c4
lea eax, [ebp - 8]
call fcn.004046c4
xor eax, eax
push ebp
push 0x475f1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x40e928]
call fcn.00402dd4
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.00474fd8
test al, al
jne 0x475dda
mov eax, ebx
call fcn.00402e04
jmp 0x475ef9
mov esi, dword [ebx + 4]
mov eax, ebx
call fcn.00411f08
cmp eax, 8
jle 0x475e40
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00403ccc
mov eax, dword [ebp - 0x10]
mov edx, 0x475f38
call fcn.00403ea4
jne 0x475e40
add esi, 8
push 0
mov eax, ebx
call fcn.00411f08
mov ecx, eax
sub ecx, 8
mov eax, dword [0x47cea8]
mov eax, dword [eax + 0x2e8]
mov edx, esi
call fcn.004747d4
mov eax, ebx
call fcn.004122a4
mov eax, ebx
mov edx, dword [0x47cea8]
mov edx, dword [edx + 0x2e8]
mov ebx, dword [edx + 0x24]
mov dword [edx + 0x24], eax
mov dx, 0xffff
mov eax, dword [ebp - 8]
call fcn.00474bd4
mov esi, eax
test esi, esi
je 0x475ef2
jmp 0x475eaa
mov eax, ebx
call fcn.00411f08
mov edi, eax
mov eax, ebx
call fcn.00411eec
sub edi, eax
mov dword [0x48ceb8], edi
cmp dword [0x48ceb8], 0x10000
jle 0x475e86
mov dword [0x48ceb8], 0x10000
mov edx, 0x47ceb8
mov ecx, dword [0x48ceb8]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov edx, 0x47ceb8
mov ecx, dword [0x48ceb8]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, ebx
call fcn.00411eec
mov edi, eax
mov eax, ebx
call fcn.00411f08
cmp edi, eax
jl 0x475e58
mov eax, esi
call fcn.00402e04
mov eax, ebx
call fcn.00402e04
mov eax, dword [ebp - 4]
call fcn.00471174
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004759a0
mov eax, dword [ebp - 4]
call fcn.004042f4
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebp - 9], 1
jmp 0x475ef9
mov eax, ebx
call fcn.00402e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475f23
lea eax, [ebp - 0x10]
call fcn.00403b14
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040415c
ret
Function at 0x4770a4
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4770ac
push ebx
mov eax, 0x476cec
call fcn.00406698
xor eax, eax
push ebp
push 0x4772e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.004028e4
mov eax, dword [ebp - 0x10]
mov edx, 0x4772fc
call fcn.00403ea4
jne 0x47714a
mov ebx, 5
jmp 0x477124
mov edx, dword [0x47b140]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, 0x477308
call fcn.00403de0
mov eax, dword [ebp - 0x14]
mov edx, 0x20
call fcn.00408980
push 0x3e8
call sub.kernel32.dll_Sleep
dec ebx
test ebx, ebx
jle 0x4772c9
mov edx, dword [0x47b140]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x477308
call fcn.00403de0
mov eax, dword [ebp - 0x18]
call fcn.004089a8
test al, al
je 0x4770ef
jmp 0x4772c9
lea edx, [ebp - 0x24]
mov eax, dword [0x47b070]
mov eax, dword [eax]
call fcn.00444e34
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408a74
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004082c4
mov eax, dword [ebp - 0x1c]
mov edx, 0x477320
call fcn.00403ea4
jne 0x477209
lea edx, [ebp - 0x28]
mov eax, 1
call fcn.004028e4
mov eax, dword [ebp - 0x28]
mov edx, 0x477338
call fcn.00403ea4
jne 0x4772c9
push 0
mov edx, dword [0x47b140]
mov edx, dword [edx]
lea eax, [ebp - 0x2c]
mov ecx, 0x477308
call fcn.00403de0
mov eax, dword [ebp - 0x2c]
call fcn.00403f58
push eax
lea edx, [ebp - 0x30]
mov eax, dword [0x47b070]
mov eax, dword [eax]
call fcn.00444e34
mov eax, dword [ebp - 0x30]
call fcn.00403f58
push eax
call sub.kernel32.dll_CopyFileA
push 1
mov edx, dword [0x47b140]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
mov ecx, 0x477308
call fcn.00403de0
mov eax, dword [ebp - 0x34]
call fcn.00403f58
push eax
call sub.kernel32.dll_WinExec
jmp 0x4772c9
mov dl, 1
mov eax, dword [0x445b74]
call fcn.00402dd4
mov ebx, eax
mov edx, 0x477344
mov eax, ebx
call fcn.00445c00
test eax, eax
jne 0x477252
push 0
push 0x477354
call sub.user32.dll_FindWindowA
test eax, eax
je 0x477249
push 0x43
push 0
push 0
push 0
push 0
push 0
push eax
call sub.user32.dll_SetWindowPos
mov eax, ebx
call fcn.00402e04
jmp 0x4772c9
call fcn.0047557c
mov eax, dword [0x47b070]
mov eax, dword [eax]
call fcn.004448d4
mov ecx, dword [0x47b11c]
mov eax, dword [0x47b070]
mov eax, dword [eax]
mov edx, dword [0x4756f4]
call fcn.004448ec
call fcn.00475678
mov eax, dword [0x47b070]
mov eax, dword [eax]
call fcn.0044496c
mov eax, ebx
call fcn.00402e04
push 1
push 0x477360
push 0x477364
mov edx, dword [0x47b140]
mov edx, dword [edx]
lea eax, [ebp - 0x38]
mov ecx, 0x477370
call fcn.00403de0
mov eax, dword [ebp - 0x38]
call fcn.00403f58
push eax
push 0x477380
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4772eb
lea eax, [ebp - 0x38]
mov edx, 0xb
call fcn.00403b38
ret
Function at 0x1128058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x11281a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x112807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112806a
add dl, dl
jne 0x1128089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11280dc
xor eax, eax
add dl, dl
jne 0x1128096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112817d
add dl, dl
jne 0x11280a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11280b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11280bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11280c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11280d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1128075
mov eax, 1
add dl, dl
jne 0x11280ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11280f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11280e1
sub eax, ebx
mov ebx, 1
jne 0x1128128
mov ecx, 1
add dl, dl
jne 0x112810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1128119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1128105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1128075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x112813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1128136
cmp eax, 0x7d00
jae 0x112816d
cmp eax, 0x500
jb 0x1128168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1128075
cmp eax, 0x7f
ja 0x1128170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1128075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x112819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1128075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4068a4
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 0x4068c5
jl 0x4068bc
test edi, edi
jne 0x4068c5
xor eax, eax
xor edx, edx
jmp 0x406986
cmp dword [ebx + 0x38], 0
je 0x4068da
push eax
push edi
push dword [ebp + 8]
call fcn.0040698c
jmp 0x406986
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406921
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406921
cmp eax, edi
jb 0x4068fb
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408520
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 0x406927
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40697b
mov ecx, ebx
call fcn.004060f4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406966
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004107b6
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 0x40697b
jmp 0x406939
test edx, edx
je 0x40697b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004107b6
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 0x407cb0
Capabilities:
Parse pe header

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

Function at 0x415dda
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429354
push 0x42934c
push str.FlsAlloc
push 0x1e
call fcn.00415c07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415e0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x425164]
call esi
jmp 0x415e14
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415e58
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429364
push 0x42935c
push str.FlsGetValue
push 0x20
call fcn.00415c07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415e8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x425164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41944f
Capabilities:
Read file on windows

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

Function at 0x419849
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408030
mov eax, dword [0x473d00]
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.004172ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41988b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4199e7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407380
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 + 0x4758b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a840
mov ecx, dword [esi*4 + 0x4758b8]
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 0x4199e0
cmp eax, dword [edi + ecx + 0x24]
jne 0x4199e0
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 0x4199e0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a840
add esp, 0x14
test edx, edx
jl 0x4199e0
jg 0x419956
test eax, eax
jb 0x4199e0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4199e0
jl 0x419970
cmp dword [ebp - 0x1008], eax
ja 0x4199e0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41998e
test ebx, ebx
je 0x4199c7
cmp ecx, edi
jae 0x4199c7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4199a8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4199b4
cmp byte [ecx + 1], 0xa
jne 0x4199b4
inc ecx
jmp 0x4199b4
movzx eax, al
movsx eax, byte [eax + 0x473fc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41998e
cmp edx, ebx
jne 0x41998e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4199e5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040736f
leave
ret
Function at 0x419cde
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 + 0x4758b8]
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 0x419d1e
cmp byte [ebx], 0xa
jne 0x419d1e
or byte [eax + edi + 0x28], 4
jmp 0x419d23
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419e21
mov al, byte [edx]
cmp al, 0x1a
je 0x419e03
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419d52
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419d77
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419d81
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 0x419d34
jmp 0x419e21
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 0x419dfe
cmp dword [ebp - 0xc], 0
je 0x419dfe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4758b8]
test byte [eax + edi + 0x28], 0x48
je 0x419dd8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419dc3
mov byte [esi], dl
jmp 0x419dd4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4758b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419e21
cmp byte [ebp - 1], 0xa
jne 0x419de7
cmp esi, ebx
jne 0x419de7
mov byte [esi], 0xa
jmp 0x419e20
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419e21
mov byte [esi], 0xd
jmp 0x419e20
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4758b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419e1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419e21
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret