joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c669
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100118c
push eax
mov ebx, 0x10012d8
push ebx
mov dword [ebp - 0x41c], eax
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x418], 0x80004005
call fcn.0101c5a9
push 0x10011a8
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push ebx
push edi
push eax
call fcn.0101c5a9
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [esi + 4], eax
lea eax, [ebp - 0x414]
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x101c7db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10012c8
push eax
call edi
push 0x10012b8
push dword [esi]
mov dword [esi + 0x124], eax
call edi
push 0x10012a8
push dword [esi]
mov dword [esi + 0x228], eax
call edi
push 0x1001298
push dword [esi]
mov dword [esi + 0x128], eax
call edi
push 0x1001288
push dword [esi]
mov dword [esi + 0xe8], eax
call edi
mov ebx, 0x1001278
push ebx
push dword [esi]
mov dword [esi + 0xf4], eax
call edi
push 0x1001264
push dword [esi]
mov dword [esi + 0x4c], eax
call edi
push 0x100124c
push dword [esi]
mov dword [esi + 0x1dc], eax
call edi
push 0x1001234
push dword [esi]
mov dword [esi + 0x1e0], eax
call edi
push 0x1001220
push dword [esi]
mov dword [esi + 0x64], eax
call edi
push 0x100120c
push dword [esi]
mov dword [esi + 0x7c], eax
call edi
push 0x10011f4
push dword [esi]
mov dword [esi + 0x9c], eax
call edi
push 0x10011e4
push dword [esi]
mov dword [esi + 0xa0], eax
call edi
push 0x10011d4
push dword [esi]
mov dword [esi + 0x184], eax
call edi
push 0x10011c0
push dword [esi]
mov dword [esi + 0x140], eax
call edi
push ebx
push dword [esi]
mov dword [esi + 0xf0], eax
call edi
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.0101c52a
pop edi
pop esi
pop ebx
test eax, eax
je 0x101c7f0
and dword [ebp - 0x418], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.0101d51a
leave
ret 4

Function at 0x101cdd0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101d530
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101ce24
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101cdff
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101cd70
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d51a
leave
ret
Function at 0x101ce77
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101d530
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101cecb
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101cea6
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101cd70
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 4
push 0x10019d0
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d51a
leave
ret

Function at 0x101d50b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1020140
call fcn.0101da74
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10219d0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101d320
cmp eax, esi
jne 0x101d313
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x101d323
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101d2fa
xor esi, esi
inc esi
mov eax, dword [0x10219cc]
cmp eax, esi
jne 0x101d336
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101d371
mov eax, dword [0x10219cc]
test eax, eax
jne 0x101d36b
mov dword [0x10219cc], esi
push 0x100116c
push 0x1001160
call fcn.0101d277
pop ecx
pop ecx
test eax, eax
je 0x101d371
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x101d43b
mov dword [0x10215e0], esi
mov eax, dword [0x10219cc]
cmp eax, esi
jne 0x101d395
push 0x100115c
push 0x1001150
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10219cc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101d3a2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10219e0], ebx
je 0x101d3c3
push 0x10219e0
call fcn.0101d9e9
pop ecx
test eax, eax
je 0x101d3c3
push ebx
push 2
push ebx
call dword [0x10219e0]
push dword [0x10215c8]
push dword [0x10215cc]
push dword [0x10215c4]
call fcn.0101d1d5
add esp, 0xc
mov dword [0x10215dc], eax
cmp dword [0x10215d0], ebx
jne 0x101d421
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10215e0], ebx
jne 0x101d42f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10215dc]
call fcn.0101dab9
ret
call fcn.0101dbc1
jmp 0x101d2d8
Function at 0x101f1eb
Capabilities:
Check if file exists
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5601
push edi
push ebx
mov dword [ebp - 0x218], edi
call fcn.0101efdf
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x101f2d0
push esi
mov esi, 0x5610
push esi
push edi
push ebx
call fcn.0101f085
inc esi
cmp esi, 0x5613
jbe 0x101f23a
and dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x5630
mov esi, 0x5631
push dword [ebp - 0x210]
push edi
push ebx
call fcn.0101f18f
test eax, eax
je 0x101f278
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], esi
jbe 0x101f261
cmp dword [ebp - 0x214], 2
jl 0x101f2cf
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x101f2b1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101f2cf
mov edi, 0x5630
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push ebx
call fcn.0101f0dc
inc edi
cmp edi, esi
jbe 0x101f2b6
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101d51a
leave
ret 8

Function at 0x101f44b
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10021d0
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], esi
call fcn.0101ff39
pop ecx
pop ecx
cmp esi, ebx
jne 0x101f489
mov dword [ebp - 0x214], 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push 0x20006
push ebx
push dword [esi + 0x1021320]
mov dword [ebp - 0x210], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f570
test byte [esi + 0x1021328], 1
je 0x101f504
push dword [esi + 0x1021324]
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101f4ef
push dword [esi + 0x1021324]
push 0x1002150
push ebx
call fcn.0101ff39
add esp, 0xc
jmp 0x101f504
push eax
push dword [esi + 0x1021324]
push 0x10020c0
push ebx
call fcn.0101ff39
add esp, 0x10
test byte [esi + 0x1021328], 2
je 0x101f564
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x1021324]
call fcn.010200b4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101f54e
lea eax, [ebp - 0x20c]
push eax
push 0x1002150
push ebx
call fcn.0101ff39
add esp, 0xc
jmp 0x101f564
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10020c0
push ebx
call fcn.0101ff39
add esp, 0x10
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
cmp esi, 0x24
jb 0x101f491
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d51a
leave
ret 4
Function at 0x101f592
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f5f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101f5ea
cmp dword [ebp - 0xc], 4
je 0x101f5ea
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101f636
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101f62d
cmp dword [ebp - 0xc], esi
je 0x101f62d
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x101f645
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f6bd
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101d51a
leave
ret 0xc

Function at 0x101f82b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10022a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f87d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1002284
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101f8c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1021350]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x101f948
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002360
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f937
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002354
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f92e
cmp dword [ebp - 0xc], 4
jne 0x101f92e
cmp dword [ebp - 0x10], eax
je 0x101f92e
mov dword [0x1021350], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1021350]
cmp eax, 0xffffffff
jne 0x101f948
xor eax, eax
mov dword [0x1021350], eax
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0x40
push 0x9ff8f374
push ecx
jb 0x40177d
add cl, 0x33
add byte [ecx - 0x63be9d0b], ah
cmpsb byte [esi], byte es:[edi]
les edx, [ebx - 0x7b]
rcl ah, 0xf
mov dl, 0xe
push esp
inc ebp
inc eax
add bh, bh
sbb ah, byte [ecx + eax*8 + 0x40]
add byte [edi - 0x6e95f73c], dh
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
jl 0x40177f
and dword [0x5000edb8], 0x410278a1
imul eax, dword [ebp + 0x404ca1c0], 0x8174004f
push 0xb03c40
push eax
adc bl, byte [esi + 0x66000040]
stc
pop ebx
je 0x4017b9
inc ecx
add bl, ch
adc al, 0x8b
adc eax, 0x411840
push edx
push eax
call fcn.00405850
mov dx, word [ebx - 0xc]
pop ss
inc ecx
add byte [ebp + 0x411808], bl
mov eax, dword [0x3e0288]
jmp 0x4017cf
popfd
or byte [eax], bl
inc ecx
add byte [ecx + 0x3e0288], ah
push ebx
fisttp word [ebx + 0x40c1fb9f]
add byte [edi - 0x77], ch
or eax, 0x410bb4
test dword [ebp + 0x57], esi
fcomp qword [ebp + 0x12]
mov word [eax], es
sbb byte [ecx], al
push edx
push 0x40915e
mov ecx, 0x278a1d6
inc ecx
push ss
add esp, 8
test dword [edi + 0x74], edi
fisub word [ecx + 0x2c411274]
push eax
push 0x413c40
push 0xbfd434
push dword [ecx]
add esp, 0x10
mov eax, dword [0x40d0ff]
test eax, eax
mov eax, 0x540d480
jne 0x40182f
mov eax, 0x40a37c
pop ebx
push str._be_patient__s
jbe 0x40180d
movsb byte es:[edi], byte [esi]
dec edx
in al, 0x21
inc eax
add byte [ebx - 0x59df3f], al
xor al, 0x54
rol byte [eax], 0x83
les edi, [esp + edx*2 + 0x15]
salc
rcr byte [eax + 0x58358b00], 1
sal dword [ecx + 0x80b6800], 0
add byte [edx - 1], dl
salc
mov dword [0x41ebb0], eax
mov eax, dword [0xda40d010]
push 0x20
movsb byte es:[edi], byte [esi]
jmp [ecx - 0x75]
Function at 0x401bee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x22c
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x23c]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x28], ecx
push edi
mov dword [esp + 0x24], ebx
mov ecx, ebp
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [esp + 0x244]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401c1b
mov edi, ebp
mov esi, ebp
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c63
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401c40
mov edi, ebp
mov dword [esp + 0x10], ebp
mov eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov esi, 0x3e8
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x401ca4
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
jmp 0x401cbb
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004046eb
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esi, 1
jne 0x401c95
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
cmp dword [ebx], ebp
jle 0x401d3e
mov edi, ebp
inc edi
and edi, 0x800000ff
jns 0x401cdf
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x30]
mov edx, dword [esp + 0x10]
movzx esi, cl
add edx, esi
and edx, 0x800000ff
jns 0x401cfc
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x30]
mov byte [esp + edi + 0x30], al
mov eax, ebp
xor eax, 4
mov dword [esp + 0x10], edx
push 0
push eax
mov byte [esp + edx + 0x38], cl
call fcn.004024d3
push eax
call fcn.0040384d
movzx eax, byte [esp + edi + 0x34]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x2c]
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [ebx]
jl 0x401cce
mov edi, dword [esp + 0x14]
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.004041f6
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069e9
add esp, 0x22c
ret
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486340]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040261a
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402edf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069e9
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.0040387f
push eax
call fcn.0040384d
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402edf
jmp 0x401f9b
Function at 0x4077bd
Capabilities:
Parse pe header

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

Function at 0x415e7a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426030
push 0x426028
push str.FlsAlloc
push 0x1e
call fcn.00415d63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415eae
push dword [ebp + 8]
mov ecx, esi
call dword [0x422128]
call esi
jmp 0x415eb4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415ef8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426040
push 0x426038
push str.FlsGetValue
push 0x20
call fcn.00415d63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f2f
push dword [ebp + 8]
mov ecx, esi
call dword [0x422128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416cc4
Capabilities:
Read file on windows

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

Function at 0x416ccf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416af5
Function at 0x41833a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407930
mov eax, dword [0x42c040]
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.00414735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41837c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421750
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 + 0x485f38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418760
mov ecx, dword [esi*4 + 0x485f38]
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 0x4184d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184d1
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 0x4184d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418760
add esp, 0x14
test edx, edx
jl 0x4184d1
jg 0x418447
test eax, eax
jb 0x4184d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184d1
jl 0x418461
cmp dword [ebp - 0x1008], eax
ja 0x4184d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41847f
test ebx, ebx
je 0x4184b8
cmp ecx, edi
jae 0x4184b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418499
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184a5
cmp byte [ecx + 1], 0xa
jne 0x4184a5
inc ecx
jmp 0x4184a5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41847f
cmp edx, ebx
jne 0x41847f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret
Function at 0x4198c3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41990e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419a62
test al, al
jne 0x419908
sub edx, 2
cmp edx, edi
jne 0x4198ee
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419930
lea eax, [edi + 2]
cmp edx, eax
je 0x419930
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041980f
add esp, 0x10
jmp 0x419a2a
push esi
lea ecx, [ebp - 0x255]
call fcn.00419a62
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419973
push dword [ebp - 0x25c]
jmp 0x419920
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4199b0
cmp word [ebp - 0x226], 0
je 0x4199d1
cmp word [ebp - 0x226], ax
jne 0x4199b0
cmp word [ebp - 0x224], 0
je 0x4199d1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041980f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419a1d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41998a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419a05
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419a2a
push 0x41963f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f630
add esp, 0x10
jmp 0x4199fa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret