joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423237
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 0xb
pop edi
call fcn.00423411
mov esi, eax
test esi, esi
je 0x423307
mov eax, dword [esi + 0x28]
push 0xc
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_malloc
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x423307
mov edi, eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp ebx, ecx
mov dword [edi], esi
mov dword [edi + 8], eax
je 0x4232b5
mov eax, dword [ebx]
cmp eax, ecx
je 0x4232b5
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebx]
cmp dword [eax + 0x14], ecx
mov dword [ebp + 0x10], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
jne 0x4232b8
call fcn.00423372
mov eax, dword [eax + 0x28]
mov dword [ebp - 8], eax
xor ecx, ecx
jmp 0x4232b8
mov dword [ebp + 0x10], ecx
push esi
push 4
push edi
push 0x423ae9
push dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
push ecx
mov dword [esi + 0x40], ecx
call sub.MSVCRT.dll__beginthreadex
mov edi, eax
add esp, 0x18
test edi, edi
mov dword [esi + 4], edi
je 0x4232fa
test ebx, ebx
je 0x4232f3
cmp dword [ebx], 0
je 0x4232f3
push dword [ebp - 8]
push 0
push esi
call fcn.00423ea1
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
neg edi
sbb edi, edi
and edi, 0xfffffff5
add edi, 0xb
pop ebx
je 0x42331e
push esi
call fcn.00423c1d
xor esi, esi
cmp dword [ebp - 4], esi
pop ecx
je 0x42331e
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x424102
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push edi
push 0x10
push 1
xor edi, edi
call sub.MSVCRT.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x42411c
push 0xc
pop edi
jmp 0x424146
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x424137
push 0xb
pop edi
push esi
call sub.MSVCRT.dll_free
pop ecx
xor esi, esi
jmp 0x424146
mov eax, dword [esp + 0x10]
test eax, eax
je 0x424146
or dword [esi + 8], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4241d4
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43ef7c]
push esi
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x4241f2
call fcn.00423372
test eax, eax
jne 0x424200
push 2
pop eax
jmp 0x42425b
push eax
call fcn.0042425e
test eax, eax
pop ecx
jne 0x424200
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x424258
test eax, eax
je 0x424246
cmp dword [esi + 4], edi
je 0x424246
cmp dword [ebp + 0xc], edi
je 0x424246
mov ecx, dword [eax + 0x40]
test ecx, ecx
mov dword [ebp + 8], ecx
je 0x424232
cmp dword [ecx + 8], esi
je 0x42422e
mov ecx, dword [ecx + 0xc]
test ecx, ecx
mov dword [ebp + 8], ecx
jne 0x42421f
test ecx, ecx
jne 0x424246
push esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.00423c8d
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x424258
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x424258
push 0xb
pop edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x424291
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x420860
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.00420cd0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x4209b6
add eax, 0x14
jo 0x4209b6
add eax, edx
jo 0x4209b6
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x4209b6
movsx ebp, ax
cmp ebp, ebx
jl 0x4209a7
lea ecx, [esp + 0x14]
push ecx
call fcn.004210b0
push 0x28
push edi
push eax
call fcn.00421000
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x42091e
test eax, 0x40000000
je 0x42090d
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x420943
test eax, 0x40000000
je 0x420936
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004210b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x4209b6
push ecx
call fcn.00420fe0
test eax, eax
je 0x420990
add edi, 0x28
jo 0x4209b6
add ebx, 1
jo 0x4209b6
cmp ebx, ebp
jle 0x4208d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov esi, 4
call dword [sym.imp.KERNEL32.DLL_SetFileApisToANSI]
call dword [sym.imp.KERNEL32.DLL_SetFileApisToOEM]
call dword [sym.imp.USER32.DLL_WaitMessage]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x42c005
Capabilities:
Packed with generic packer

Disassembly:
jmp fcn.0042a8d0
jmp section.42vab535
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
invalid
jno 0x41538d
int 0x61
or al, 0x7a
clc
jmp 0xfe47d94b
outsb dx, byte [esi]
jno 0x4153c7
mov dword [0x2460183e], eax
cmp edi, ecx
imul esi, dword [ebp + 0xf01bb29], 0xd95b10cd
lds eax, [edi]
push ecx
lea edi, [edi - 0x7d6500bb]
clc
xor dword [esi], esp
cmp eax, dword [edx + 5]
push ebp
js 0x4153fe
mov ecx, 0x1b94b25
lea ebp, [ebx + 7]
invalid

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
out 1, eax
mov bl, 0x10
iretd
add ecx, dword [ebx + esi*4]
adc byte [edi + 0x26ef4c55], bl
mov ebp, 0xaad8b906
dec esp
out dx, eax
mov ebp, 0xaad8b906
cmpsd dword [esi], dword es:[edi]
sti
fsub dword [eax + 0x2c]
xchg byte [esi + 0x55], ah
movsb byte es:[edi], byte [esi]
cdq
stosd dword es:[edi], eax
mov bl, 0x6a
out 0x21, eax
dec ecx
pop es
xor eax, dword [edx]
mov bl, 0x10
out dx, al
xchg edi, eax
inc eax
out dx, eax
jb 0x4153be
test eax, 0x2db52229
scasb al, byte es:[edi]
daa
push esp
and al, 0x3f
xor eax, 0xd1854c16
mov ebp, 0xaad95316
sbb al, 7
mov dword [0x9e10b2e8], eax
push ebp
jl 0x4153ac
daa
out dx, eax
dec eax
fbld tbyte [ebp + edx*2 - 0xc]
scasd eax, dword es:[edi]
push edi
adc al, 0x4c
pop es
ja 0x4153b8
mov bl, 0x10
iretd
Function at 0x415a60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
call fcn.00415a80
cdq
sub eax, edx
sar eax, 1
sub esi, eax
mov dword [0x45333c], esi
pop esi
jmp fcn.00415b30

Function at 0x415b30
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [0x695d40]
sub esp, 0x2c
test dl, dl
je 0x415d01
mov eax, dword [0x453608]
push ebx
push esi
push edi
imul edi, eax, 0x420
lea ecx, [eax + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x45333c]
mov dword [ebp - 0x14], 0x695d40
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], edi
nop dword [eax + eax]
movsx eax, dl
xor ebx, ebx
sub eax, 0x20
mov dword [ebp - 8], ebx
lea esi, [eax*8]
sub esi, eax
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x441958]
mov dword [ebp - 0x18], eax
cmp byte [eax], bl
jne 0x415bc4
cmp byte [esi + 0x441959], 0
mov ebx, 1
mov dword [ebp - 8], ebx
jne 0x415bc4
cmp byte [esi + 0x44195a], 0
mov ebx, 2
mov dword [ebp - 8], ebx
jne 0x415bc4
cmp dl, 0x20
mov eax, 3
cmovne ebx, eax
mov dword [ebp - 8], ebx
lea eax, [edi + ecx]
lea edi, [eax*2 + 0x45a731]
add edi, eax
mov dword [ebp - 0x10], edi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x18]
mov edx, 8
mov dword [0x452778], ecx
mov esi, 0x100
movzx ebx, byte [eax + ebx]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
nop dword [eax]
dec edx
ror esi, 1
dec eax
mov dword [ebp - 0x20], edx
lea edi, [edi - 0xc60]
test esi, ebx
je 0x415c98
mov dword [0x4535f0], eax
cmp ecx, 0x41f
jg 0x415c98
cmp eax, 0x271
jg 0x415c98
test ecx, ecx
js 0x415c98
test eax, eax
js 0x415c98
cmp dword [0x695e3c], 5
mov dl, byte [0x4531f7]
mov bl, byte [0x4530c4]
mov cl, byte [0x4531f4]
jl 0x415c55
cmp dword [0x4532f8], 0x4a
jle 0x415c87
add cl, 0xce
sub dl, 0x32
sub bl, 0x32
mov byte [ebp - 1], cl
cmp dl, 0xcc
movzx ecx, dl
mov edx, 0
cmovbe edx, ecx
movzx ecx, bl
cmp bl, 0xcc
mov ebx, 0
cmovbe ebx, ecx
mov cl, byte [ebp - 1]
cmp cl, 0xcc
jbe 0x415c87
xor cl, cl
mov byte [edi - 1], dl
mov edx, dword [ebp - 0x20]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
mov byte [edi + 1], cl
mov ecx, dword [ebp - 0xc]
test edx, edx
jg 0x415c00
mov ebx, dword [ebp - 8]
inc ecx
mov edi, dword [ebp - 0x10]
inc ebx
add edi, 3
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
cmp ebx, 7
jl 0x415be0
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x44195e], 0
jne 0x415cde
dec ecx
cmp byte [eax + 0x44195d], 0
jne 0x415cde
dec ecx
cmp byte [eax + 0x44195c], 0
jne 0x415cde
dec ecx
mov edi, dword [ebp - 0x14]
inc ecx
inc edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
mov dword [0x45333c], ecx
mov al, byte [edi]
mov edi, dword [ebp - 0x2c]
mov dl, al
test al, al
jne 0x415b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x451040]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.mjandfddayucsnuhhifzcqbbfkadsktuh]
mov ax, word [0x441444]
xor edx, edx
push esi
movups xmmword [ebp - 0x40], xmm0
push edi
movups xmm0, xmmword [0x441434]
mov word [ebp - 0x20], ax
lea esi, [edx + 3]
xor edi, edi
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
movzx ecx, byte [edi + 0x695e5a]
lea edi, [edi + 0xa]
movsx eax, byte [ebp + edi - 0x48]
cmp ecx, eax
movzx ecx, byte [edi + 0x695e52]
mov eax, 1
cmovne edx, eax
movsx eax, byte [ebp + edi - 0x46]
cmp ecx, eax
movzx ecx, byte [edi + 0x695e54]
mov eax, 1
cmovne edx, eax
movsx eax, byte [ebp + edi - 0x44]
cmp ecx, eax
movzx ecx, byte [edi + 0x695e56]
mov eax, 1
cmovne edx, eax
movsx eax, byte [ebp + edi - 0x42]
cmp ecx, eax
movzx ecx, byte [edi + 0x695e58]
mov eax, 1
cmovne edx, eax
movsx eax, byte [ebp + edi - 0x40]
cmp ecx, eax
mov eax, 1
cmovne edx, eax
sub esi, eax
jne 0x4198b0
mov esi, eax
test edx, edx
jne 0x419a2c
mov edi, dword [0x4535e8]
mov dword [0x643e88], eax
cmp edi, 0x345
ja 0x419a2c
push 0x3b
lea eax, [edi + 0x659b08]
push 3
push eax
call fcn.00423620
mov edx, edi
add esp, 0xc
shl edx, 5
xor ecx, ecx
add edx, 0x65a048
nop word [eax + eax]
mov al, byte [ecx + 0x446ad0]
mov ah, byte [ecx + 0x441ce8]
cmp al, 0x80
jae 0x419986
mov al, byte [ecx + 0x446ceb]
xor al, ah
inc ecx
mov byte [edx], al
inc edx
cmp ecx, 0x760
jb 0x419970
add edi, 0x3b
mov edx, esi
mov dword [0x4535e8], edi
sub edx, 0x453b78
lea ecx, [edi*2 - 2]
nop dword [eax]
cmp ecx, 0x8ae
jae 0x419a3f
lea eax, [edx + 0x453b78]
mov byte [ecx + 0x453b78], 0
add eax, ecx
cmp eax, 0x8ae
jae 0x419a3f
mov byte [ecx + 0x453b79], 0
inc esi
sub ecx, 2
cmp esi, 0x3c
jl 0x4199b0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x58
call esi
cmp dword [0x453358], 0
mov edi, dword [sym.imp.WINMM.dll_PlaySoundA]
jne 0x419a0b
push 5
push dword [0x695eb8]
push dword [0x648bc8]
call edi
push 0x5a
call esi
cmp dword [0x453358], 0
jne 0x419a28
push 5
push dword [0x695eb8]
push dword [0x4530c0]
call edi
push 0x5a
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421f92
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004220c2
int3
Function at 0x420770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp byte [0x695f00], 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
jne 0x4207f1
push 0x7f00
xorps xmm0, xmm0
mov byte [0x695f00], 1
push 0
mov dword [0x695ed8], 0
mov dword [ebp - 0x44], 0x30
mov dword [ebp - 0x40], 0x808
mov dword [ebp - 0x3c], 0x4213c0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x1c], str.Whiz
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x420963
push 0x218
call fcn.004221a6
mov ebx, eax
add esp, 4
xorps xmm0, xmm0
lea esi, [ebx + 0x28]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
movups xmmword [ebx + 0x10], xmm0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0xf
mov byte [ebx + 0x10], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004221a6
add esp, 4
mov dword [eax + 4], 0
push 0x4209c0
push 0x420970
mov dword [esi], eax
push 0xf
mov dword [eax], esi
lea eax, [ebx + 0x98]
push 0x14
push eax
mov dword [ebx + 0x50], 0
call fcn.0042231c
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x68], eax
call esi
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 8]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
push 8
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
push ecx
lea ecx, [ebx + 0x10]
mov dword [ebx + 0xc], eax
call fcn.00420c10
lea eax, [ebx + 0x70]
push eax
push 0
push ebx
push 0x420ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42095b
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x6c]
push 0xffffffffffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x42095b
mov esi, dword [0x695ec4]
mov ecx, dword [0x695ee0]
lea eax, [esi + 1]
mov dword [0x695ec4], eax
cmp ecx, dword [0x695ee4]
je 0x420932
mov eax, dword [ebx + 0x50]
mov dword [ecx], eax
add dword [0x695ee0], 4
jmp 0x42093c
lea eax, [ebx + 0x50]
push eax
push ecx
call fcn.00420d40
mov dword [0x451b5c], esi
mov eax, esi
mov word [ebx + 0x64], 0x100
mov dword [ebx + 0x8c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, ebx
call fcn.004209d0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422bcf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x422c0e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422c0e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422c0e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x422c0e
cmp dword [ecx + 0x74], 0xe
jbe 0x422c0e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x425873
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00437f20
mov eax, dword [0x451040]
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.00429e7e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4258b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425a11
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00437e70
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 + 0x452320]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042a1d9
mov ecx, dword [esi*4 + 0x452320]
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 0x425a0a
cmp eax, dword [ecx + edi + 0x24]
jne 0x425a0a
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 0x425a0a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a1d9
add esp, 0x14
test edx, edx
jl 0x425a0a
jg 0x425980
test eax, eax
jb 0x425a0a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425a0a
jl 0x42599a
cmp dword [ebp - 0x1008], eax
ja 0x425a0a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4259b8
test ebx, ebx
je 0x4259f1
cmp ecx, edi
jae 0x4259f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4259d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4259de
cmp byte [ecx + 1], 0xa
jne 0x4259de
inc ecx
jmp 0x4259de
movzx eax, al
movsx eax, byte [eax + 0x451248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4259b8
cmp edx, ebx
jne 0x4259b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425a0f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00421f92
leave
ret
Function at 0x42a87e
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 + 0x452320]
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 0x42a8be
cmp byte [ebx], 0xa
jne 0x42a8be
or byte [edi + eax + 0x28], 4
jmp 0x42a8c3
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 0x42a9c2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42a9a5
inc eax
cmp dl, 0xd
je 0x42a8ef
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42a915
cmp eax, ecx
jae 0x42a923
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 0x42a8d7
jmp 0x42a9c2
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 0x42a9a0
cmp dword [ebp - 0x10], 0
je 0x42a9a0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x452320]
test byte [eax + edi + 0x28], 0x48
je 0x42a97a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42a965
mov byte [esi], dl
jmp 0x42a976
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x452320]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42a9c2
cmp byte [ebp - 1], 0xa
jne 0x42a989
cmp esi, ebx
jne 0x42a989
mov byte [esi], 0xa
jmp 0x42a9c1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042a1f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42a9c2
mov byte [esi], 0xd
jmp 0x42a9c1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x452320]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a9bf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a9c2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a9cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x452320]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42aa11
cmp word [ebx], dx
jne 0x42aa11
or byte [eax + edi + 0x28], 4
jmp 0x42aa16
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42ab79
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42ab59
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42aa57
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42aa8d
cmp eax, edx
jae 0x42aa9b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42aa32
jmp 0x42ab79
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ab54
cmp dword [ebp - 0x18], 0
je 0x42ab54
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x452320]
test byte [eax + edi + 0x28], 0x48
je 0x42ab2a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42aaee
mov word [esi], cx
jmp 0x42ab25
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x452320]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x452320]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x452320]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42ab79
pop eax
cmp word [ebp - 4], ax
jne 0x42ab3a
cmp esi, ebx
jne 0x42ab3a
mov word [esi], ax
jmp 0x42ab76
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042a1f7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42ab79
push 0xd
pop eax
jmp 0x42ab35
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x452320]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42ab73
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42ab79
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d78b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cc9c
push 0x43cc94
push str.FlsAlloc
push 0x1f
call fcn.0042d64a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d7bf
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b1ec]
call esi
jmp 0x42d7c5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d809
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ccac
push 0x43cca4
push str.FlsGetValue
push 0x21
call fcn.0042d64a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d840
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b1ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d848
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ccb4
push 0x43ccac
push str.FlsSetValue
push 0x22
call fcn.0042d64a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d882
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43b1ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]