joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c769
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop cx
push edi
shl ecx, cl
jmp 0x52c814
push word [esp + 3]
mov edx, ebp
mov dx, word [esp + 4]
jmp 0x52c835
mov dx, word [esp + 4]
jmp 0x52c835
jbe 0x52c7bc
push word [esp + 3]
mov edx, ebp
jmp 0x52c7fe
mov cx, dx
jmp 0x52c86e
lea esp, [esp + 8]
add esi, 0x1ac3e5d5
rdtsc
setne al
pushal
jmp 0x52c81f
lea esp, [esp + 0x20]
add esi, 0x76a367b6
rdtsc
lea eax, [ebx - 1]
inc ah
jmp 0x52c8df
lea eax, [eax*4]
mov al, 0x33
mov dh, ah
inc ax
jmp 0x52c904
bsf dx, sp
pushal
jmp 0x52c95b
mov cx, si
lea edx, [eax + 0x9e]
call fcn.0052c8e8
jmp 0x52c950
jle 0x52c951
bsf edx, eax
bswap edx
jmp 0x52c8ba
jl 0x52c8c4
mov cx, si
lea edx, [eax + 0x9e]
jmp 0x52c8cd
sahf
bsf edx, eax
bswap edx
bsf dx, sp
pushal
lea esp, [esp + 0x20]
neg esi
jmp 0x52c8a4

Function at 0x52c8e8
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x52c927
mov ah, byte [esp]
jmp 0x52c911
mov ecx, esp
rdtsc
push cx
jmp 0x52caf2
lea esp, [esp + 4]
xor esi, 0x68fd88e4
ror ax, 4
je 0x52c8ea
mov ah, byte [esp]
mov ecx, esp
rdtsc
push cx
lea esp, [esp + 2]
jmp 0x52caf6
rdtsc
add esi, dword [edi]
call fcn.0052c9c1
neg eax
jae 0x52ca07
rdtsc
jmp 0x52ca09
lea esp, [esp + 2]
add esi, 0x5c104ca5
mov dx, word [esp]
not eax
jmp 0x52ca6d

Function at 0x669d87
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov dword [esp], ebp
mov dword [esp + 0x1c], ebp
call 0x669d87
ror dword [ecx - reloc.SHLWAPI.dll_SHDeleteValueA], cl
jl 0x669db2
sbb cl, ch
movsd dword es:[edi], dword [esi]
add byte [eax], al
add byte [eax - 0x38], cl
pop esi
cmp eax, ecx
sub esp, esi
cmc
pushfd
outsd dx, dword [esi]
lcall 0x7b18, 0x392e8714
aaa
movsb byte es:[edi], byte [esi]
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402c00
pop dword [ebp - 0x40]
mov eax, 0x402c00
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xc7b107f
add dword [ebp - 0x50], 0x41d734cc
mov dword [ebp - 0x4c], 0x84ceea5d
sub dword [ebp - 0x4c], 0x529b9e18
mov dword [ebp - 0x48], 0x62f4cc98
add dword [ebp - 0x48], 0xe9577796
mov dword [ebp - 0x44], 0x972d6f4e
sub dword [ebp - 0x44], 0x972d6f4e
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x87b392e4
add dword [ebp - 0x50], 0xecbed672
mov dword [ebp - 0x4c], 0x9b101fb4
sub dword [ebp - 0x4c], 0x59a3be3f
mov dword [ebp - 0x48], 0x9fd7e883
sub dword [ebp - 0x48], 0x3c687c17
mov dword [ebp - 0x44], 0x38746211
add dword [ebp - 0x44], 0xc78b9def
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x417ea0c1
sub eax, 0x413e1fed
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3122a
push 0
call eax
mov ecx, 0x4a12bc48
add ecx, 0xb5ed7581
mov edi, eax
mov esi, 0xce5e5ed0
add esi, 0x31e2b130
add esi, dword [ebp - 0x40]
mov ebx, 0xc57b75e7
add ebx, 0xc96f5259
xor dword [ebp - 0x24], eax
mov edx, dword [esi]
sub edx, ebx
mov dword [edi], edx
mov dword [ebp - 4], 0xc6236b32
add edi, 4
add esi, 0x799cdf61
sub esi, 0x799cdf5d
loop 0x402d18
add eax, 0x59c3dc46
add eax, 0xa63cddb1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7506391a
add ecx, 0x8b39c6e6
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x401910
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401824
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401810
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401937
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401917
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4018a0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4018b0
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40182e
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x401e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x401ea5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e9e
test eax, eax
jne 0x401e9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e80
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401c66
pop dword [ebp - 0x44]
mov eax, 0x59e59d4f
sub eax, 0x59a580e9
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x269b068c
add dword [ebp - 0x54], 0x27b73ebf
mov dword [ebp - 0x50], 0xd440a07
add dword [ebp - 0x50], 0x24ef423e
mov dword [ebp - 0x4c], 0x9a7c4557
sub dword [ebp - 0x4c], 0x4e300129
mov dword [ebp - 0x48], 0x57be87d0
sub dword [ebp - 0x48], 0x57be87d0
lea eax, [ebp - 0x54]
push eax
mov eax, 0x82eaa75f
sub eax, 0x82aa770b
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc495dabe
sub dword [ebp - 0x54], 0x50237168
mov dword [ebp - 0x50], 0xda682349
add dword [ebp - 0x50], 0x67043e2c
mov dword [ebp - 0x4c], 0xca9623fc
sub dword [ebp - 0x4c], 0x6726b790
mov dword [ebp - 0x48], 0x71018eca
add dword [ebp - 0x48], 0x8efe7136
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xf4c506f1
add eax, 0xb7b293b
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3b7da
push 0
call eax
mov ecx, 0xe6b459c0
add ecx, 0x194c024a
xor esi, esi
add esi, eax
mov edx, 0x407000
add edx, dword [ebp - 0x44]
mov edi, 0xea33b5c6
mov dword [ebp - 0x34], 0xcb74b93a
mov ebx, dword [edx]
xor dword [ebp - 0x10], esi
sub ebx, edi
mov dword [ebp - 0x1c], 0xa38adeb0
mov dword [esi], ebx
sub dword [ebp - 0x34], 0xada57e20
add esi, 0x4519a86f
sub esi, 0x4519a86b
add edx, 0xa046fc59
sub edx, 0xa046fc55
loop 0x401d7e
add eax, 0x1d91fd27
sub eax, 0x1d909a2c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb24aeccd
sub ecx, 0xb20aeccd
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x408a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x408a60
pop dword [ebp - 0x48]
mov eax, 0xd20b125d
sub eax, 0xd1ca87fd
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x21f59b36
sub dword [ebp - 0x58], 0xd3a355eb
mov dword [ebp - 0x54], 0x61cc71e
sub dword [ebp - 0x54], 0xd3e97ad9
mov dword [ebp - 0x50], 0x5f25790
sub dword [ebp - 0x50], 0xb9a61362
mov dword [ebp - 0x4c], 0x51f7791d
sub dword [ebp - 0x4c], 0x51f7791d
lea eax, [ebp - 0x58]
push eax
mov eax, 0xdb07cdcf
add eax, 0x25390285
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x6b232800
sub dword [ebp - 0x58], 0xf6b0beaa
mov dword [ebp - 0x54], 0xd522f228
sub dword [ebp - 0x54], 0x93b690b3
mov dword [ebp - 0x50], 0x1ff643e3
add dword [ebp - 0x50], 0x43792889
mov dword [ebp - 0x4c], 0x1fd9c51f
sub dword [ebp - 0x4c], 0x1fd9c51f
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x322d7
push 0
call eax
mov ecx, 0x6a97de7f
add ecx, 0x95684c28
xor ebx, ebx
add ebx, eax
mov edx, 0xb1861379
sub edx, 0xb1446379
add edx, dword [ebp - 0x48]
mov edi, 0xbfdd1a80
sub dword [ebp - 0x3c], esi
mov esi, dword [edx]
add dword [ebp - 0x38], esi
xor esi, edi
mov dword [ebp - 4], 0x434d6cfd
mov dword [ebx], esi
add dword [ebp - 0x38], esi
add ebx, 0x1b394f90
sub ebx, 0x1b394f8c
add edx, 0x37b9f431
sub edx, 0x37b9f42d
loop 0x408b79
add eax, 0xc079c19d
sub eax, 0xc079242e
mov ebx, eax
add eax, 0x4f791572
add eax, 0xb086ea93
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x411730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
test eax, eax
jg 0x41175b
jl 0x411752
test ebx, ebx
jne 0x41175b
xor eax, eax
xor edx, edx
jmp 0x41181c
cmp dword [esi + 0x38], 0
je 0x411770
push eax
push ebx
push dword [ebp + 8]
call fcn.00411fc0
jmp 0x41181c
mov eax, dword [esi + 0x1c]
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4117b4
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x4117b4
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.004084ac
mov ecx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x4117bb
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x4c], 0
je 0x411812
mov ecx, esi
call fcn.004125f1
mov ecx, dword [esp + 0x10]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4117fd
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00434347
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x411812
jmp 0x4117ce
test edx, edx
je 0x411812
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00434347
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420d15
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
or dword [ecx + 0x1384], 0xffffffff
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jb 0x420d31
pop edi
pop esi
mov dword [ecx], ebx
mov eax, ecx
pop ebx
ret 4

Function at 0x421193
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x4211db
lea edx, [esi + 8]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4211a3
jmp 0x4211e8
cmp dword [esi], 0x4e0
jb 0x4211e8
call fcn.00421222
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x421222
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x421235
lea edi, [esi + 0xd50]
mov ebp, 0x18c
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x42127c
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], ebp
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret
Function at 0x424a04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x424a2b
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x424a2e
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004249e0
pop esi
leave
ret 8

Function at 0x42665b
Capabilities:
Parse pe header

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

Function at 0x43ba65
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b9e7
Function at 0x43d80e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456f6c
push 0x456f64
push str.FlsAlloc
push 0x1f
call fcn.0043d5f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d842
push dword [ebp + 8]
mov ecx, esi
call dword [0x452170]
call esi
jmp 0x43d848
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43d88c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456f7c
push 0x456f74
push str.FlsGetValue
push 0x21
call fcn.0043d5f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d8c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x452170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43d8cb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456f84
push 0x456f7c
push str.FlsSetValue
push 0x22
call fcn.0043d5f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d905
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x452170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43e1bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00426870
mov eax, dword [0x46d080]
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.0043a6ea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43e1fe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43e35a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044a920
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 + 0x46eda0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043efbd
mov ecx, dword [esi*4 + 0x46eda0]
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 0x43e353
cmp eax, dword [ecx + edi + 0x24]
jne 0x43e353
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 0x43e353
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043efbd
add esp, 0x14
test edx, edx
jl 0x43e353
jg 0x43e2c9
test eax, eax
jb 0x43e353
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43e353
jl 0x43e2e3
cmp dword [ebp - 0x1008], eax
ja 0x43e353
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43e301
test ebx, ebx
je 0x43e33a
cmp ecx, edi
jae 0x43e33a
mov al, byte [ecx]
cmp al, 0xd
jne 0x43e31b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43e327
cmp byte [ecx + 1], 0xa
jne 0x43e327
inc ecx
jmp 0x43e327
movzx eax, al
movsx eax, byte [eax + 0x46d340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43e301
cmp edx, ebx
jne 0x43e301
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43e358
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00425735
leave
ret
Function at 0x43e455
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 + 0x46eda0]
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 0x43e495
cmp byte [ebx], 0xa
jne 0x43e495
or byte [edi + eax + 0x28], 4
jmp 0x43e49a
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 0x43e599
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43e57c
inc eax
cmp dl, 0xd
je 0x43e4c6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43e4ec
cmp eax, ecx
jae 0x43e4fa
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 0x43e4ae
jmp 0x43e599
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 0x43e577
cmp dword [ebp - 0x10], 0
je 0x43e577
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46eda0]
test byte [eax + edi + 0x28], 0x48
je 0x43e551
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43e53c
mov byte [esi], dl
jmp 0x43e54d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46eda0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43e599
cmp byte [ebp - 1], 0xa
jne 0x43e560
cmp esi, ebx
jne 0x43e560
mov byte [esi], 0xa
jmp 0x43e598
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043efdb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43e599
mov byte [esi], 0xd
jmp 0x43e598
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46eda0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e596
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e599
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret