joyce8/EMBER2024-capa huggingface dataset:
Function at 0x177eced
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop ecx
inc ebp
mov ecx, ebp
dec ebx
mov eax, dword [esi + ebx*4 - 0x32450870]
push esi
dec esi
mov ebp, dword [eax + ebx*4 - 0x32450870]
dec eax
ror ebp, 0x61
inc edx
ror byte [esp + ebx - 0xc914216], cl
inc cx
outsb dx, byte [esi]
inc cx
dec edi
mov dword [esi + ebx - 0xc91421c], ebp
call fcn.0121286c
dec ecx
mov ecx, esi
dec ecx
sub esi, 2
inc cx
mov dword [esi], ecx
mov eax, 0xf617c7ab
dec esp
lea eax, [eax + eax - 0x5e46cef5]
inc ecx
mov ebp, dword [esp]
mov edx, eax
dec eax
lea ebx, [eax + edx*8 + 0x68a38a28]
dec ecx
add esp, 4
pushfd
shr byte [eax], 1
mov ah, byte [ebx - 0x3b7eb698]
add al, 0
add byte [eax], al
movsx ecx, dl
push ecx
xor ebp, edi
movzx esi, bx
inc ebp
call fcn.013812db
loopne 0x177ed0d
jl 0x177ed82
and eax, 0xace0ffc0
sar bh, 0xe0
lodsb al, byte [esi]
outsd dx, dword [esi]
scasd eax, dword es:[di]
jb 0x177ed96
js 0x177edb6
and byte [ebx], ah
jb 0x177ed7c
adc byte [esi + 0x20], bl
and esi, dword [edx]
or byte [ebx + 0x92b9286], ah
aam 0x2d
insb byte es:[edi], dx
or dword [ebp - 0x2c], esp
sub eax, 0x9472da6c
fidiv dword [edx - 0x6c]
or ch, ch
sub al, 0x7b
lea edx, [edx - 0x201b84dc]
jnp 0x177ed77
lea edx, [edx - 0x201b84dc]
xchg edx, eax
and al, 0x7b
in al, 0xdf
jp 0x177ed5b
and cl, ah
pop esi
push ebx
imul eax, dword [ebp + eax*8 + 0x37], 0x53ce176a
into
push ebx
inc ecx
sahf
sbb eax, 0x2afdcb29
ja 0x177ed5c
sub ebx, ecx
std
sub dh, byte [edi - 0x45]
sub al, 0x39
or eax, 0x49e5fa79
and al, 0xcf
xchg edx, eax
pop ds
loope 0x177ee1f
nop dword [ecx + eax*4]
jae 0x177ed42
xor eax, dword [edx + 0x5d4ade54]
push esp
fimul word [edx + 0x5d]
mov eax, 0x447b271f
pop ds
daa
jnp 0x177ee03
lcall 0x478e, 0xce52ee1f
clc
dec edi
loop 0x177edbb
test eax, 0x75de870a
fstp xword [edi + 0x1f045195]
int 0x99
aad 0xa1
loop 0x177ed9b
sti
dec dword [eax - 0xb]
mov ah, 0xe0
loopne 0x177ee2c
mov esi, 0xc2b64dfe
dec ecx
dec ebp
jp 0x177ed85
pop ds
mov ah, al
add al, 0x1f
push ebp
xor al, 0x78
mov ds, word [edx + 0x37]
pop edi
fisub word [ebx]
call 0xcfc60db2
dec edi
lcall 0xf2e7, 0xce595b76
pop ecx
into
out 0xf2, eax
dec edi
rcl dword [edi + 0x5e], cl
sub dword [edx - 0x2df3f6b4], 0x72fbda17
dec edi
adc ch, byte [edx]
int3
jle 0x177ee6c
sbb dword [esi + 0x3d35f4ec], ebp
and al, 0x8f
and eax, 0x46df9178
dec edi
xchg ecx, eax
fild word [esi + 0x4f]
iretd
fbld tbyte [ebx]
jecxz 0x177eee2
mov dl, 0xbd
push 0x37060d1b
jnp 0x177eee9
dec ebx
imul ebx, dword [edi - 0x72], 0xcf33bc22
add al, 0xf
cmp dword [ebp + 0x31], eax
push cs
cmp esp, dword [edi]
inc esi
cmp dword [ebp - 0x15], esp
dec esp
add eax, 0x70418aef
mov word [0x44ac9840], gs
int1
jge 0x177eeab
fst qword [ebp - 0x767cc7f6]
aas
mov cs, word [ecx]
sbb eax, 0x9c06bb9d
in eax, 0xa2
aad 0x23
jg 0x177ee6e
mov byte [0xbe7f23d5], al
lds eax, [ebp + 8]
mov dword [ebx - 0x512628fe], ebx
pop ss
dec ebx
cmpsd dword [esi], dword es:[edi]
jmp 0x177ef10
int3
int3
jl 0x177ef5d
jns 0x177ef56
pop edi
invalid
mov ebp, 0xdb2e358e
push ecx
dec edi
cwde
popfd
invalid
Function at 0x178536c
Capabilities:
Encode data using xor

Disassembly:
inc bp
mov dword [esi + esi - 0x6f960e01], ecx
dec esi
lea ecx, [edx*2 + 0x1d9f4316]
inc ecx
movsx ebp, bp
inc ebp
mov edx, dword [esp + esi - 0x6f960e01]
inc ecx
sbb ecx, 0xeb9dc9ac
rol bp, 0x21
dec eax
shr ecx, 0x3a
dec esi
lea esp, [ebx + 4]
inc esp
xor edx, edi
inc ecx
neg edx
inc ecx
push eax
inc esp
or ebp, esi
dec edx
mov dword [esp + ebp - 0x6f960e01], 0xa3a8ef26
inc edi
lea edx, [ebp + edx + 0x191cda5]
dec edx
mov dword [esp + ebp - 0x6f960df9], ebp
inc ecx
push ebp
inc esp
xadd ebp, ecx
inc ecx
neg edx
dec eax
mov dword [esp + esi - 0x6f960de1], esi
inc sp
and ebp, dword [esp + esi - 0x6f960df7]
inc ecx
not edx
inc dx
sbb dword [esp + ebp - 0x6f9601f4], 0x894870a0
jl 0x178538c
lodsb al, byte [esi]
leave
popfd
jmp 0x17853f7
sub byte [esi - 0x3f], ah
int1
or al, byte [ecx - 0x3f]
leave
mov ah, 0x46
xor dword [esp + ebp - 0x6f9601d8], edx
or dword [esp + ebx + 0x20], 0xf21ccf81
inc edx
and byte [esp + ebp - 0x6f9601f6], 0x25
dec eax
mov edi, dword [esp + ebx*4 + 0x28]
setge byte [esp + esi - 0x6f960e01]
dec ebp
arpl dx, dx
call fcn.01215cf4

Function at 0x1788ef9
Capabilities:
Authenticate hmac
Encode data using base64

Disassembly:
mov edx, dword [esi - 4]
mov eax, 0x522681ac
add eax, eax
xor edx, ebx
sar eax, 0x56
mov ecx, eax
inc ax
dec edx
rol edx, 1
dec eax
bswap edx
shl cx, 0xef
lea edx, [edx + eax - 0x78d3f9dd]
not al
xchg cx, ax
xor ebx, edx
shl eax, 0x16
rol ecx, 0x54
add edi, edx
dec ax
jle 0x134de57
jmp 0x1212e1c
mov ax, word [ebp + eax*4 - 0x3fffc]
movzx edx, cx
jl 0x17a9aa8
dec edx
mov dword [esp + ebx*4 + 0x30800310], edi
sub edx, eax
inc ebp
adc bl, dl
inc edx
xor dword [esp + ebx + 0xc200098], ecx
inc ecx
dec ebx
push esi
dec eax
mov edi, dword [esp + edx - 0x4c2073b9]
call fcn.0124bbb3
jmp 0x126062f
dec cl
movzx edx, byte [esi + edx*2 - 0x20003]
call 0x13b4f88
mov dh, 0x6a
jl 0x17a9a55
push esp
adc eax, 0xafcf73ca
cld
adc eax, 0xffef73ca
lodsb al, byte [esi]
adc eax, 0x776f73ca
and al, 0x15
retf 0xf773
Function at 0x178ee4e
Capabilities:
Encode data using base64

Disassembly:
ror ecx, 1
call fcn.01794a06
dec edx
bswap edx
ror edx, 3
inc edx
sal byte [esp + ecx - 0x90], 3
inc esp
movsx edx, dh
dec edx
mov dword [esp + ecx - 0x92], edi
inc ecx
mov edi, edx
inc edx
xor dword [esp + ecx*2 - 0x124], edx
dec ecx
sub edx, 0x8c0db70e
jp 0x1785313
sar bx, 0x63
dec esp
adc edi, edx
inc ebx
mov esi, dword [esi + ecx - 0x92]
inc edi
movzx eax, byte [esp + ecx - 0x8e]
dec edx
mov dword [esp + ecx*4 - 0x240], 0xb9b455b5
not bl
inc esp
xor al, bh
inc edx
xchg dword [esp + ecx - 0x91], ebx
inc ecx
neg al
dec ecx
lea ecx, [ecx + ebx*8 - 0x745b184d]
inc esi
xadd dword [esp + ecx - 0x86], edx
inc ecx
pop ebx
inc ecx
xor al, 0x8b
inc ecx
ror al, 1
inc ebp
xor al, dl
dec edx
lea edx, [ebx*2 - 0x62c06ac9]
inc ecx
dec al
inc cx
add ecx, 0xf766c099
rol byte [ecx + 0x32], cl
clc
jmp fcn.01282b20
inc ecx
push edx
dec edx
mov edi, dword [esp + ecx - 0x8a]
dec ecx
lea ebx, [edx + 0x7e100892]
shl bx, 0x2f
dec eax
arpl dx, dx
ja 0x13699de
jmp fcn.01262aec
dec edx
mov dword [esp + ecx - 0x102d1b02], edx
inc esp
xor ebp, edi
inc ecx
and eax, 0xd9373c8c
inc ebp
movzx ebx, cl
inc ecx
not ebp
dec ecx
rol ebx, cl
inc ecx
dec ebp
dec edx
shl dword [esp + ecx*2 - 0x205a3604], 0xba
dec edx
mov dword [esp + eax*2], 0x5a3e6711
ror cl, 0x85
inc ecx
bswap ebp
inc ecx
ror ebp, 3
inc esp
sub eax, esi
dec si
inc dx
not dword [esp + ecx - 0x102d1b00]
dec edx
mov dword [esp + ecx*2 - 0x205a3604], edi
inc esi
xor dword [esp + eax - 0x1350c928], ebp
inc esp
xadd ch, dl
ja 0x1337369
pop edi
inc ecx
push eax
inc ecx
setl al
dec ebp
arpl bp, bp
inc eax
setne ch
and bp, 0x1014
dec ebp
adc edi, ebp
sal edx, 0x74
dec esp
mov dword [esp + edx - 0xf500000], edi
ret
Function at 0x1792060
Capabilities:
Encode data using base64

Disassembly:
je 0x122da26
xor ebx, ecx
call fcn.01241925
and eax, 0x4eafce87
adc edi, edx
jmp 0x139ebf3
lea ebp, [ebp + edx - 0x801e]
mov eax, edx
dec ax
lea esi, [esi + eax - 0x8020]
setg al
movzx edx, byte [esi + edx - 0x8020]
xor ax, 0xeb0d
xor dl, bl
shr ax, 0xc4
add dl, 0xa0
ror dl, 1
bswap eax
add dl, 6
xor dl, 0x81
xor eax, eax
ror dl, 1
dec dl
xor bl, dl
bswap eax
sal eax, 0x31
adc edx, esp
sal eax, 0xfa
jns 0x1385832
jnp 0x17a32c8
mov byte [edx + eax], cl
lea esi, [esi + eax - 4]
jp 0x17906a5
dec ecx
mov ebx, dword [esi]
inc ebp
movzx ecx, byte [esp]
inc ecx
mov eax, 0x18808aaf
inc ebp
movzx ebp, al
inc esp
xor cl, bh
dec ecx
ror ebp, 0x5f
inc ecx
dec cl
inc ecx
neg cl
inc ecx
movzx ecx, bp
movzx eax, cx
ror eax, 0xaf
inc ecx
not cl
inc ecx
xor cl, 0x29
inc ecx
add cl, al
inc esp
mov ebx, eax
inc ecx
xor bh, cl
call fcn.0125710c
shl dword [esp], 0x96
neg ecx
mov edx, dword [esp]
or dl, 0x25
not ecx
inc edx
sar edx, 0xd8
bswap ecx
ja 0x1228e1f
lea edx, [eax + eax*2 + 0x5d37f0ac]
mov ecx, edx
mov edx, dword [esi + eax]
xor edx, ebx
dec edx
shl eax, 0x56
rol edx, 1
bswap edx
bswap ecx
dec ax
rol ax, 0xaa
lea edx, [edx + ecx - 0x25c432a9]
or ecx, ecx
xadd eax, ecx
xor ebx, edx
xor ax, ax
lea ecx, [ecx + eax*8 - 0x37efde7c]
adc edi, edx
add eax, 0x8680b987
jmp edi
lea esi, [esi + edx - 0x13b28b8a]
mov dword [esp + edx*2 - 0x27651708], ecx
mov edx, dword [esi + edx - 0x13b28b86]
jb 0x1790328
lea eax, [ecx + ecx*2 + 0x609832b5]
xor edx, ebx
sub edx, 0xaeae3810
ror edx, 1
shl eax, 0xce
neg dword [esp + ecx - 0x72d65d3b]
xor edx, 0x3929082f
mov dword [esp + ecx - 0x72d65d40], eax
call fcn.01227d82
mov ecx, 0xf8a08020
movzx edx, cx
mov cx, word [ebp + edx*8 - 0x40100]
jmp 0x1282507

Function at 0x1796425
Capabilities:
Encode data using base64

Disassembly:
neg eax
bswap eax
ror edx, cl
shr dword [esp + ecx*4 - 0x3c0], 0xf5
setbe dl
inc eax
xchg dword [esp + ecx - 0xf0], ecx
ror eax, 3
xor ecx, 0xda039fa0
not dword [esp]
dec dword [esp]
xor ebx, eax
add edi, eax
mov edx, dword [ebp - 4]
push ecx
mov eax, dword [ebp]
and edx, eax
movsx eax, cx
sal dword [esp + 4], cl
call fcn.01215c08
invalid
sub ecx, eax
seta cl
add edi, edx
sar eax, 0x1d
jae 0x124eb25
mov dword [esp + eax + 4], eax
mov dword [esp + eax + 4], edi
ret 0xc

Function at 0x17ab4d5
Capabilities:
Encode data using xor

Disassembly:
inc esi
xor byte [esp + eax*2 + 0x12], dl
dec edi
lea esi, [esi + eax*8 - 2]
dec ecx
ror ebx, 0xf4
inc ecx
movzx eax, ax
dec edx
lea ecx, [esi + ecx*2 + 0x1f895a08]
inc di
mov dword [esi + eax*4], ebp
inc cx
not eax
pop ecx
inc ecx
pop ebx
inc ecx
pop ebx
jne fcn.0136d40d

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 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 0x46e170
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x66000]
push edi
or ebp, 0xffffffff
jmp 0x46e192
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46e199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e188
mov eax, 1
add ebx, ebx
jne 0x46e1ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46e1a0
jne 0x46e1bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46e1a0
xor ecx, ecx
sub eax, 3
jb 0x46e1d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46e242
mov ebp, eax
add ebx, ebx
jne 0x46e1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46e1e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46e20c
inc ecx
add ebx, ebx
jne 0x46e1f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46e1ed
jne 0x46e209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46e1ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46e22c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46e21d
jmp 0x46e18e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46e22c
add edi, ecx
jmp 0x46e18e
pop esi
mov edi, esi
mov ecx, 0x128
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46e24a
cmp byte [edi], 1
jne 0x46e24a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46e24f
lea edi, [esi + 0x6c000]
mov eax, dword [edi]
or eax, eax
je 0x46e2c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8ff60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x90018]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46e27c
mov ecx, edi
jns 0x46e2ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x90020]
or eax, eax
je 0x46e2c1
mov dword [ebx], eax
add ebx, 4
jmp 0x46e299
call dword [esi + 0x9001c]
mov ebp, dword [esi + 0x90024]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46e2fb
sub esp, 0xffffff80
jmp 0x40759a
Function at 0x402fd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x407318
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x40c3f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
push 0x408d00
lea ecx, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x408d00
lea ecx, [esi + 0xc]
mov dword [esp + 0x1c], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x408d00
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x408d00
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [esi + 0x24]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x408d00
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40b1dc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x422bd8
push esi
call fcn.00411455
pop ecx
pop ecx
test eax, eax
jne 0x40b20a
xor al, al
jmp 0x40b287
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0040af0e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40b244
push dword [ebp - 0x210]
call fcn.0040b60c
xor al, al
jmp 0x40b285
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b24a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x40b26a
push edx
call fcn.0040b113
pop ecx
test al, al
je 0x40b235
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40b278
mov bl, 1
push dword [ebp - 0x210]
call fcn.0040b60c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406970
leave
ret

Function at 0x40e219
Capabilities:
Parse pe header

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

Function at 0x412145
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423e90
push 0x423e88
push str.FlsAlloc
push 0x1f
call fcn.00411fb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412179
push dword [ebp + 8]
mov ecx, esi
call dword [0x421188]
call esi
jmp 0x41217f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4121c3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423ea0
push 0x423e98
push str.FlsGetValue
push 0x21
call fcn.00411fb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4121fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x421188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412202
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423ea8
push 0x423ea0
push str.FlsSetValue
push 0x22
call fcn.00411fb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41223c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x421188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414133
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407710
mov eax, dword [0x42f014]
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.00412d7a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414175
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4142d1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041fa40
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 + 0x430938]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00415130
mov ecx, dword [esi*4 + 0x430938]
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 0x4142ca
cmp eax, dword [ecx + edi + 0x24]
jne 0x4142ca
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 0x4142ca
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415130
add esp, 0x14
test edx, edx
jl 0x4142ca
jg 0x414240
test eax, eax
jb 0x4142ca
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4142ca
jl 0x41425a
cmp dword [ebp - 0x1008], eax
ja 0x4142ca
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414278
test ebx, ebx
je 0x4142b1
cmp ecx, edi
jae 0x4142b1
mov al, byte [ecx]
cmp al, 0xd
jne 0x414292
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41429e
cmp byte [ecx + 1], 0xa
jne 0x41429e
inc ecx
jmp 0x41429e
movzx eax, al
movsx eax, byte [eax + 0x42f298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414278
cmp edx, ebx
jne 0x414278
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4142cf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406970
leave
ret
Function at 0x4145c8
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 + 0x430938]
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 0x414608
cmp byte [ebx], 0xa
jne 0x414608
or byte [edi + eax + 0x28], 4
jmp 0x41460d
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 0x41470c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4146ef
inc eax
cmp dl, 0xd
je 0x414639
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41465f
cmp eax, ecx
jae 0x41466d
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 0x414621
jmp 0x41470c
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 0x4146ea
cmp dword [ebp - 0x10], 0
je 0x4146ea
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x430938]
test byte [eax + edi + 0x28], 0x48
je 0x4146c4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4146af
mov byte [esi], dl
jmp 0x4146c0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430938]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41470c
cmp byte [ebp - 1], 0xa
jne 0x4146d3
cmp esi, ebx
jne 0x4146d3
mov byte [esi], 0xa
jmp 0x41470b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041514e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41470c
mov byte [esi], 0xd
jmp 0x41470b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x430938]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414709
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41470c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414715
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 + 0x430938]
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 0x41475b
cmp word [ebx], dx
jne 0x41475b
or byte [eax + edi + 0x28], 4
jmp 0x414760
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 0x4148c3
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 0x4148a3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4147a1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4147d7
cmp eax, edx
jae 0x4147e5
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 0x41477c
jmp 0x4148c3
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 0x41489e
cmp dword [ebp - 0x18], 0
je 0x41489e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x430938]
test byte [eax + edi + 0x28], 0x48
je 0x414874
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 0x414838
mov word [esi], cx
jmp 0x41486f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x430938]
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 + 0x430938]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x430938]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4148c3
pop eax
cmp word [ebp - 4], ax
jne 0x414884
cmp esi, ebx
jne 0x414884
mov word [esi], ax
jmp 0x4148c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041514e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4148c3
push 0xd
pop eax
jmp 0x41487f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x430938]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4148bd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4148c3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret