joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x40fa35
test eax, eax
jne 0x40fb4d
mov ebp, dword [0x42a1fc]
test ebp, ebp
je 0x40fb4d
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
jmp 0x40fa57
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x40fa78
push dword [ebp + 4]
call edi
test eax, eax
je 0x40fa50
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x40fa50
test bl, 1
je 0x40fb4d
mov ebp, dword [0x42a1fc]
test ebp, ebp
je 0x40fb4d
xor ebx, ebx
jmp 0x40faa7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x40fac8
push dword [ebp + 4]
call edi
test eax, eax
je 0x40faa0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x40faa0
test bl, 1
je 0x40fb4d
mov ebp, dword [0x42a1fc]
test ebp, ebp
je 0x40fb4d
xor ebx, ebx
jmp 0x40fae7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x40fb08
push dword [ebp + 4]
call edi
test eax, eax
je 0x40fae0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x40fae0
test bl, 1
je 0x40fb4d
mov ebp, dword [0x42a1fc]
test ebp, ebp
je 0x40fb4d
xor ebx, ebx
jmp 0x40fb27
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x40fb48
push dword [ebp + 4]
call edi
test eax, eax
je 0x40fb20
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x40fb20
test bl, 1
jne 0x40fb59
mov al, byte [0x427c80]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebp, dword [0x42a1fc]
jmp 0x40fb64
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x40fb4d
push dword [ebp + 4]
call edi
test eax, eax
je 0x40fb61
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
jmp 0x40fb61
Function at 0x40ff90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422300
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x42a1dc
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x20], 0x42a1dc
mov edi, dword [esi]
test edi, edi
jne 0x410025
mov ebx, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x410041
mov edi, eax
test ebx, ebx
je 0x41001d
mov ecx, 0xc
call fcn.00404a00
test eax, eax
je 0x4100eb
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x42a1fc]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x42a1fc], ecx
jne 0x410010
mov eax, edi
test edi, edi
xchg dword [esi], eax
je 0x410064
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
mov edx, 0x2e
push 0x4274d4
call fcn.00423500
add esp, 4
jmp 0x410101
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0x42631c
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x68], 0x426c60
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0x425a20
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x406170
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], 1
push eax
call fcn.00410450
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.00410590
mov ecx, 7
int 0x29
ud2
mov ecx, 0xc
mov edx, 4
mov dword [ebp - 0x10], 0
call fcn.004233c0
ud2
Function at 0x411d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x42a150]
test eax, eax
jne 0x411d84
mov ecx, 0x42a150
call fcn.0040ff90
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x411d97
cmp dword [eax], 0
mov esi, eax
jne 0x411e05
mov eax, dword [0x42a150]
test eax, eax
jne 0x411daa
mov ecx, 0x42a150
call fcn.0040ff90
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411dc0
xor esi, esi
cmp eax, 1
je 0x411e08
mov esi, eax
jmp 0x411df8
mov ecx, 0xc
call fcn.00404a00
test eax, eax
je 0x411e0c
mov dword [eax], 0
mov dword [eax + 8], 0x42a150
mov esi, eax
mov eax, dword [0x42a150]
test eax, eax
jne 0x411df0
mov ecx, 0x42a150
call fcn.0040ff90
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 1
mov dword [esi + 4], 0
add esi, 4
mov eax, esi
pop esi
ret
mov ecx, 0xc
mov edx, 4
call fcn.004233c0
ud2

Function at 0x411f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x42a148]
test eax, eax
jne 0x411f35
mov ecx, 0x42a148
call fcn.0040ff90
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x411f50
cmp dword [eax], 0
mov edi, eax
je 0x411f50
add edi, 4
jmp 0x411fde
mov eax, dword [0x42a148]
test eax, eax
jne 0x411f63
mov ecx, 0x42a148
call fcn.0040ff90
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411f79
xor edi, edi
mov esi, eax
cmp eax, 1
je 0x411fde
jmp 0x411fb1
mov ecx, 0x10
call fcn.00404a00
test eax, eax
je 0x411fe3
mov dword [eax], 0
mov dword [eax + 0xc], 0x42a148
mov esi, eax
mov eax, dword [0x42a148]
test eax, eax
jne 0x411fa9
mov ecx, 0x42a148
call fcn.0040ff90
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x411fde
test ecx, ecx
je 0x411fde
lock dec dword [ecx]
jne 0x411fde
call fcn.00410130
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x10
mov edx, 4
call fcn.004233c0
ud2
Function at 0x41d2f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4224e0
mov eax, edx
mov edx, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x30]
push eax
call fcn.004145c0
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x41d378
cmp byte [ebp - 0x2c], 3
jne 0x41d374
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x41d368
mov ecx, dword [esi]
mov edx, dword [eax + 8]
call fcn.00404a30
mov ecx, esi
mov edx, 4
call fcn.00404a30
xor eax, eax
jmp 0x41d3a1
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test ebx, ebx
je 0x41d39b
add ebx, ebx
je 0x41d39b
mov ecx, esi
mov edx, 2
call fcn.00404a30
cmp edi, 0xffffffff
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41f2e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx + 0x10], 0
mov edi, edx
jne 0x41f3b3
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x41f30f
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x41f39d
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x41f386
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f344
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x41f363
jmp 0x41f356
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41f35c
cmp eax, 0x6d
jne 0x41f378
mov byte [esi + 1], 0
jmp 0x41f36d
mov ecx, 1
xor eax, eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov byte [esi + 1], 1
xor eax, eax
mov byte [esi], al
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov al, 1
jmp 0x41f36f
mov ecx, ebx
push 1
call fcn.00423750
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x41f316
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00423750
add esp, 4
mov edx, dword [ebx + 4]
jmp 0x41f30f
add edi, 0x10
mov edx, esp
mov dword [esp], 0
mov ecx, edi
call fcn.00423840
ud2
Function at 0x421db0
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov edi, ecx
mov ecx, esp
push dword [esp + 0x20]
call fcn.00416480
add esp, 4
cmp dword [esp], 0
je 0x421ddd
movsd xmm0, qword [esp + 4]
movsd qword [edi], xmm0
add esp, 0x10
pop esi
pop edi
pop ebx
ret
mov esi, dword [esp + 4]
mov ebx, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x421df9
mov byte [edi], 4
test ebx, ebx
jne 0x421e0c
jmp 0x421dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov dword [edi], 0
test ebx, ebx
je 0x421dd6
add ebx, ebx
je 0x421dd6
mov ecx, esi
mov edx, 2
call fcn.00404a30
jmp 0x421dd6

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1039b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1039b1a8
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 0x1039b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1039b06a
add dl, dl
jne 0x1039b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1039b0dc
xor eax, eax
add dl, dl
jne 0x1039b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1039b17d
add dl, dl
jne 0x1039b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1039b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1039b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1039b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1039b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1039b075
mov eax, 1
add dl, dl
jne 0x1039b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1039b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1039b0e1
sub eax, ebx
mov ebx, 1
jne 0x1039b128
mov ecx, 1
add dl, dl
jne 0x1039b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1039b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1039b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1039b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1039b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1039b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1039b136
cmp eax, 0x7d00
jae 0x1039b16d
cmp eax, 0x500
jb 0x1039b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1039b075
cmp eax, 0x7f
ja 0x1039b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1039b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1039b19e
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 0x1039b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440a1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0041fb83
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40199b
push eax
push esi
call fcn.00420ced
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0041fd4a
int3

Function at 0x4025b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440b20
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.00422a31
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00420bef
mov ecx, dword [ebp - 0xc]
add esp, 8
mov dword [esi + 4], eax
mov dword [edi + 0x30], esi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440b20
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00422a31
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00420bef
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0041d5a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440dbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.00422a31
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00420bef
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0041d730
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov edx, dword [edx + 0x20]
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [esi]
mov bl, al
call dword [edx + 8]
test eax, eax
je 0x41d6e1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x41d6fa
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004024d0
cmp byte [ebp + 0xc], 0
je 0x41d709
push edi
call fcn.0042201e
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4208b6
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 0x4208d7
jl 0x4208ce
test edi, edi
jne 0x4208d7
xor eax, eax
xor edx, edx
jmp 0x420998
cmp dword [ebx + 0x38], 0
je 0x4208ec
push eax
push edi
push dword [ebp + 8]
call fcn.0041b5c0
jmp 0x420998
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x420933
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x420933
cmp eax, edi
jb 0x42090d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00423f20
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 0x420939
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x42098d
mov ecx, ebx
call fcn.00420221
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x420978
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0042a12e
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 0x42098d
jmp 0x42094b
test edx, edx
je 0x42098d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042a12e
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 0x423556
Capabilities:
Parse pe header

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

Function at 0x4313e5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446030
push 0x446028
push str.FlsAlloc
push 0x1f
call fcn.004312ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431419
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421a0]
call esi
jmp 0x43141f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431463
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446040
push 0x446038
push str.FlsGetValue
push 0x21
call fcn.004312ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43149a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4314a2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446048
push 0x446040
push str.FlsSetValue
push 0x22
call fcn.004312ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4314dc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4421a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43377f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00423870
mov eax, dword [0x452040]
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.00430cb3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4337c1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43391d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043e170
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 + 0x453be0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00434955
mov ecx, dword [esi*4 + 0x453be0]
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 0x433916
cmp eax, dword [ecx + edi + 0x24]
jne 0x433916
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 0x433916
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00434955
add esp, 0x14
test edx, edx
jl 0x433916
jg 0x43388c
test eax, eax
jb 0x433916
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x433916
jl 0x4338a6
cmp dword [ebp - 0x1008], eax
ja 0x433916
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4338c4
test ebx, ebx
je 0x4338fd
cmp ecx, edi
jae 0x4338fd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4338de
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4338ea
cmp byte [ecx + 1], 0xa
jne 0x4338ea
inc ecx
jmp 0x4338ea
movzx eax, al
movsx eax, byte [eax + 0x452300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4338c4
cmp edx, ebx
jne 0x4338c4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43391b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00422f33
leave
ret
Function at 0x433ded
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 + 0x453be0]
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 0x433e2d
cmp byte [ebx], 0xa
jne 0x433e2d
or byte [edi + eax + 0x28], 4
jmp 0x433e32
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 0x433f31
mov dl, byte [eax]
cmp dl, 0x1a
je 0x433f14
inc eax
cmp dl, 0xd
je 0x433e5e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x433e84
cmp eax, ecx
jae 0x433e92
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 0x433e46
jmp 0x433f31
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 0x433f0f
cmp dword [ebp - 0x10], 0
je 0x433f0f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x453be0]
test byte [eax + edi + 0x28], 0x48
je 0x433ee9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x433ed4
mov byte [esi], dl
jmp 0x433ee5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x453be0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x433f31
cmp byte [ebp - 1], 0xa
jne 0x433ef8
cmp esi, ebx
jne 0x433ef8
mov byte [esi], 0xa
jmp 0x433f30
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00434973
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x433f31
mov byte [esi], 0xd
jmp 0x433f30
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x453be0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x433f2e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x433f31
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret