joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049b0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
push esi
push 0x44e5f0
call fcn.00408140
push eax
call fcn.00430440
mov esi, eax
add esp, 8
test esi, esi
je 0x404a4b
push ebx
push edi
push 2
push 0
push esi
call fcn.00430be5
push esi
call fcn.0043126f
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404a32
push 0
push 0
push esi
call fcn.00430be5
push edi
call fcn.0042f6b1
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x404a3e
push esi
push 1
push edi
push ebx
call fcn.0043079e
push edi
push ebx
push dword [esp + 0x28]
call fcn.004072a0
push ebx
call fcn.0042f6d1
add esp, 0x20
push esi
call fcn.0043058b
add esp, 4
test esi, esi
setne al
pop edi
pop ebx
pop esi
ret
push dword [esp + 0x10]
call fcn.00404410
add esp, 4
push esi
call fcn.0043058b
add esp, 4
test esi, esi
pop edi
pop ebx
setne al
pop esi
ret

Function at 0x405b60
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
push esi
push 0x44e5f0
call fcn.00408140
push eax
call fcn.00430440
mov esi, eax
add esp, 8
test esi, esi
je 0x405bdd
push edi
push 2
push 0
push esi
call fcn.00430be5
push esi
call fcn.0043126f
mov edi, eax
add esp, 0x10
test edi, edi
je 0x405bd1
push ebx
push 0
push 0
push esi
call fcn.00430be5
push edi
call fcn.0042f6b1
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x405bd0
push esi
push 1
push edi
push ebx
call fcn.0043079e
push edi
push ebx
push dword [esp + 0x28]
call fcn.004059a0
push ebx
call fcn.0042f6d1
add esp, 0x20
pop ebx
push esi
call fcn.0043058b
add esp, 4
test esi, esi
pop edi
setne al
pop esi
ret
Function at 0x40ccc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4660c0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov edi, ecx
call fcn.0041e9f0
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00429190
add esp, 0xc
mov dword [esp + 8], 0x114
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0xc]
mov dword [0x466c84], eax
cmp eax, 5
jbe 0x40cdb9
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.uxtheme.dll
call esi
mov dword [0x466c78], eax
test eax, eax
je 0x40cdc3
push str.DWMAPI.DLL
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BeginBufferedPaint
push dword [0x466c78]
mov dword [0x466c7c], eax
call esi
push str.EndBufferedPaint
push dword [0x466c78]
mov dword [0x466c68], eax
call esi
push str.BufferedPaintSetAlpha
push dword [0x466c78]
mov dword [0x466c6c], eax
call esi
push str.DwmIsCompositionEnabled
push dword [0x466c7c]
mov dword [0x466c70], eax
call esi
mov dword [0x466c74], eax
test eax, eax
je 0x40cd97
push 0x466c80
call eax
jmp 0x40cda1
mov dword [0x466c80], 0
push dword [0x466c7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x466c7c], 0
jmp 0x40cdc3
mov dword [0x466c80], 0
mov ecx, dword [0x466e94]
push str.WndProc
call fcn.0041a900
mov ecx, dword [esp + 0x11c]
mov dword [0x466c64], eax
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004277ff
add esp, 0x118
ret

Function at 0x40d290
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40d2a0
sub edx, ecx
je 0x40d2c7
nop dword [eax + eax]
movsx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, esi
shl esi, 7
shr ecx, 0x19
xor esi, ecx
add esi, eax
sub edx, 1
jne 0x40d2b0
pop edi
mov eax, esi
pop esi
ret

Function at 0x40d2d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
push esi
mov esi, dword [ecx + 4]
mov edx, dword [ecx]
test esi, esi
je 0x40d2f8
mov ecx, eax
lea edx, [edx + 2]
shl eax, 7
shr ecx, 0x19
xor ecx, eax
movzx eax, word [edx - 2]
add eax, ecx
sub esi, 1
jne 0x40d2e0
pop esi
ret
Function at 0x40d410
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x204
mov eax, dword [0x4660c0]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
push edi
mov edi, dword [esp + 0x210]
push 4
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x40d444
call esi
xor ecx, ecx
mov word [esp + 8], cx
mov ecx, dword [esp + 0x214]
test ecx, ecx
jne 0x40d46d
test eax, eax
je 0x40d483
push 0xff
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40d483
lea edx, [esp + 8]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40d473
push 0
lea eax, [esp + 0xc]
push eax
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x208]
pop edi
pop esi
xor ecx, esp
call fcn.004277ff
add esp, 0x204
ret

Function at 0x40e990
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x90
mov eax, dword [0x4660c0]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xa4]
push 0xf0000020
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x7f
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40ea61
lea eax, [esp + 8]
push eax
push 0
push 0
push dword [esp + 0xb4]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40ea61
push 0
push dword [esp + 0xa4]
push esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40ea61
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40ea61
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x40ea5e
nop dword [eax]
movzx eax, byte [esp + esi + 0x14]
push eax
push 0x44eb40
push edi
call fcn.00403cb0
inc esi
add esp, 0xc
add edi, 2
cmp esi, dword [esp + 0xc]
jb 0x40ea40
mov byte [edi], 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.004277ff
add esp, 0x90
ret

Function at 0x414980
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00403f30
push 0
push 0
mov dword [esi + 4], eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x4149b8
lea ecx, [edi + edi]
push ecx
call fcn.0042f6b1
add esp, 4
mov dword [esi], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
pop edi
mov eax, esi
pop esi
ret

Function at 0x416910
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
lea eax, [esp + 4]
push eax
mov dword [esi], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, esi
pop esi
add esp, 0x24
ret
Function at 0x41b7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0x3000
push dword [esi + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [esi + 8]
mov dword [esi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x41b807
call fcn.00403f30
mov dword [esi + 0x18], eax
push dword [esi]
push eax
call fcn.00403ff0
add esp, 8
mov dword [esi + 0x10], 0
pop esi
ret
Function at 0x41f420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push edi
push 0x44e5f0
push dword [esp + 0x1c]
call fcn.00430440
mov edi, eax
add esp, 8
test edi, edi
je 0x41f49c
push esi
push 2
push 0
push edi
call fcn.00430be5
push edi
call fcn.0043126f
push 0
push 0
push edi
mov esi, eax
call fcn.00430be5
add esp, 0x1c
lea ecx, [esp + 8]
push esi
call fcn.0041b310
push edi
push 1
push esi
push dword [esp + 0x14]
call fcn.0043079e
push edi
call fcn.0043058b
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x30]
call fcn.0041f3c0
add esp, 0x1c
lea ecx, [esp + 8]
mov esi, eax
call fcn.00407cb0
mov eax, esi
pop esi
pop edi
add esp, 0xc
ret
xor eax, eax
pop edi
add esp, 0xc
ret
Function at 0x421ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 0x2c]
lea edx, [esi + 0x38]
mov eax, dword [esi + 0x2c]
mov ebp, dword [esi + 0x3c]
add eax, 0xfffffefa
sub ebp, dword [esi + 0x74]
add eax, edi
sub ebp, dword [esi + 0x6c]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x6c], eax
jb 0x421b84
mov ecx, dword [edx]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00428c00
mov eax, dword [esi + 0x4c]
add esp, 0xc
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
sub dword [esi + 0x5c], edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x44]
mov esi, dword [esp + 0x14]
lea ebx, [eax + esi*2]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x421b37
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x40]
mov esi, edi
lea ebx, [eax + edi*2]
nop dword [eax]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x421b60
mov esi, dword [esp + 0x20]
add ebp, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x421c69
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
add eax, dword [edx]
push ebp
push eax
push ecx
call fcn.00421f50
mov ebx, dword [esi + 0x74]
add esp, 0xc
add ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x74], ebx
cmp ebx, 3
jb 0x421be5
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
mov ebp, dword [ebp]
movzx edx, byte [eax + ebp]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + ebp + 1]
shl edx, cl
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp ebx, 0x106
jae 0x421bf7
mov edx, dword [esp + 0x10]
jmp 0x421beb
mov edx, dword [esp + 0x10]
mov ebp, dword [edx]
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x421af1
mov ecx, dword [esi + 0x16c0]
mov edi, dword [esi + 0x3c]
cmp ecx, edi
jae 0x421c69
mov ebx, dword [esi + 0x6c]
add ebx, dword [esp + 0x14]
cmp ecx, ebx
jae 0x421c3b
mov eax, 0x102
sub edi, ebx
cmp edi, eax
cmova edi, eax
lea eax, [ebx + ebp]
push edi
push 0
push eax
call fcn.00429190
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 0x16c0], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x421c69
sub ebx, ecx
sub edi, ecx
lea eax, [ebx + 0x102]
cmp eax, edi
cmovbe edi, eax
lea eax, [ecx + ebp]
push edi
push 0
push eax
call fcn.00429190
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x428870
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4288af
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4288af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4288af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4288af
cmp dword [ecx + 0x74], 0xe
jbe 0x4288af
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x431059
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044d0c0
mov eax, dword [0x4660c0]
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.0043d4dc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43109b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4311f7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427750
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 + 0x467748]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043fe45
mov ecx, dword [esi*4 + 0x467748]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4311f0
cmp eax, dword [ecx + edi + 0x24]
jne 0x4311f0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4311f0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043fe45
add esp, 0x14
test edx, edx
jl 0x4311f0
jg 0x431166
test eax, eax
jb 0x4311f0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4311f0
jl 0x431180
cmp dword [ebp - 0x1008], eax
ja 0x4311f0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43119e
test ebx, ebx
je 0x4311d7
cmp ecx, edi
jae 0x4311d7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4311b8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4311c4
cmp byte [ecx + 1], 0xa
jne 0x4311c4
inc ecx
jmp 0x4311c4
movzx eax, al
movsx eax, byte [eax + 0x466320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43119e
cmp edx, ebx
jne 0x43119e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4311f5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004277ff
leave
ret
Function at 0x43f10c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x467748]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43f14c
cmp byte [ebx], 0xa
jne 0x43f14c
or byte [edi + eax + 0x28], 4
jmp 0x43f151
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43f250
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43f233
inc eax
cmp dl, 0xd
je 0x43f17d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43f1a3
cmp eax, ecx
jae 0x43f1b1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43f165
jmp 0x43f250
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f22e
cmp dword [ebp - 0x10], 0
je 0x43f22e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x467748]
test byte [eax + edi + 0x28], 0x48
je 0x43f208
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43f1f3
mov byte [esi], dl
jmp 0x43f204
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x467748]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43f250
cmp byte [ebp - 1], 0xa
jne 0x43f217
cmp esi, ebx
jne 0x43f217
mov byte [esi], 0xa
jmp 0x43f24f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043fe68
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43f250
mov byte [esi], 0xd
jmp 0x43f24f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x467748]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43f24d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43f250
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43f25e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x467748]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43f2a4
cmp word [ebx], dx
jne 0x43f2a4
or byte [eax + edi + 0x28], 4
jmp 0x43f2a9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43f40c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43f3ec
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43f2ea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43f320
cmp eax, edx
jae 0x43f32e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43f2c5
jmp 0x43f40c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f3e7
cmp dword [ebp - 0x18], 0
je 0x43f3e7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x467748]
test byte [eax + edi + 0x28], 0x48
je 0x43f3bd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43f381
mov word [esi], cx
jmp 0x43f3b8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x467748]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x467748]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x467748]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43f40c
pop eax
cmp word [ebp - 4], ax
jne 0x43f3cd
cmp esi, ebx
jne 0x43f3cd
mov word [esi], ax
jmp 0x43f409
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043fe68
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43f40c
push 0xd
pop eax
jmp 0x43f3c8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x467748]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43f406
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43f40c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44220f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45aaa8
push 0x45aaa0
push str.FlsAlloc
push 0x1f
call fcn.004420ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442243
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e218]
call esi
jmp 0x442249
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442297
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45aab8
push 0x45aab0
push str.FlsGetValue
push 0x21
call fcn.004420ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4422ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4422db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45aac0
push 0x45aab8
push str.FlsSetValue
push 0x22
call fcn.004420ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442315
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44e218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44370b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4660c0]
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 0x443756
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004438b0
test al, al
jne 0x443750
sub edx, 2
cmp edx, edi
jne 0x443736
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x443778
lea eax, [edi + 2]
cmp edx, eax
je 0x443778
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00443652
add esp, 0x10
jmp 0x443872
push esi
lea ecx, [ebp - 0x255]
call fcn.004438b0
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 0x4437bb
push dword [ebp - 0x25c]
jmp 0x443768
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 0x4437f8
cmp word [ebp - 0x226], 0
je 0x443819
cmp word [ebp - 0x226], ax
jne 0x4437f8
cmp word [ebp - 0x224], 0
je 0x443819
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00443652
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x443865
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4437d2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44384d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x443872
push 0x443478
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044bf20
add esp, 0x10
jmp 0x443842
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.004277ff
leave
ret

Function at 0x444351
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x444362
pop esi
ret
push ebx
push edi
push esi
call fcn.00444315
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043c2a1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44438a
push ebx
push esi
push edi
call fcn.00428c00
add esp, 0xc
push 0
call fcn.0043c262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x444773
Capabilities:
Set environment variable

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