joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d50
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xa54
mov eax, dword [0x442344]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
mov ebx, dword [esp + 0xa60]
lea eax, [esp + 0x254]
push ebp
mov ebp, dword [esp + 0xa60]
push esi
push edi
push ebp
push eax
xor esi, esi
call fcn.00422d43
lea eax, [esp + 0x268]
push 0x4355fc
push eax
call fcn.00422cd2
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402dc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402eb8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x3c]
push 0x435608
push eax
call fcn.00422d03
pop ecx
pop ecx
test eax, eax
je 0x402e97
lea eax, [esp + 0x3c]
push 0x43560c
push eax
call fcn.00422d03
pop ecx
pop ecx
test eax, eax
je 0x402e97
lea eax, [esp + 0x260]
push ebp
push eax
call fcn.00422d43
mov esi, 0x4355f8
lea eax, [esp + 0x268]
push esi
push eax
call fcn.00422cd2
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x274]
push eax
call fcn.00422cd2
lea eax, [esp + 0x678]
push ebx
push eax
call fcn.00422d43
lea eax, [esp + 0x680]
push esi
push eax
call fcn.00422cd2
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x68c]
push eax
call fcn.00422cd2
add esp, 0x30
lea eax, [esp + 0x660]
test byte [esp + 0x10], 0x10
je 0x402e7e
push eax
lea eax, [esp + 0x264]
push eax
call fcn.00402d50
pop ecx
pop ecx
jmp 0x402e91
push 1
push eax
lea eax, [esp + 0x268]
push eax
call fcn.004032e3
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x402eab
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402dc8
test edi, edi
je 0x402eb6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [esp + 0xa60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415048
add esp, 0xa54
ret

Function at 0x402f08
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x442344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push edi
push 0x400
xor edi, edi
push edi
push eax
call fcn.00416780
add esp, 0xc
cmp word [esi + 2], 0x3a
je 0x402f6e
lea eax, [ebp - 0x404]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x402f5b
mov eax, 0xd0000006
jmp 0x402fc9
lea eax, [ebp - 0x404]
push 0x4355f8
push eax
call fcn.00422cd2
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.00422cd2
lea eax, [ebp - 0x404]
pop ecx
pop ecx
cmp word [ebp - 0x404], di
je 0x402fa0
lea eax, [eax + 2]
cmp word [eax], 0x2f
jne 0x402f9b
push 0x5c
pop ecx
mov word [eax], cx
cmp word [eax], di
jne 0x402f8c
lea eax, [ebp - 0x404]
push eax
call fcn.00403368
pop ecx
test eax, eax
je 0x402fc9
push edi
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and eax, 0xd0000006
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00415048
mov esp, ebp
pop ebp
ret
Function at 0x403052
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x658
mov eax, dword [0x442344]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x65c]
mov ecx, dword [esp + 0x660]
push ebx
push ebp
push eax
lea eax, [esp + 0x260]
mov dword [esp + 0xc], ecx
push eax
xor ebp, ebp
call fcn.00422d43
lea eax, [esp + 0x264]
push 0x435614
push eax
call fcn.00422cd2
add esp, 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4030d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4030d2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0xd0000006
jmp 0x40313e
push edi
push 0xc
call fcn.0041ec48
mov edi, eax
pop ecx
cmp ebx, 0xffffffff
je 0x40312c
push esi
push 0x204
call fcn.0041ec48
pop ecx
mov ebp, eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0041f660
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00401bf3
mov esi, eax
push esi
push ebp
call fcn.0041f940
push esi
call fcn.00433893
movzx eax, byte [esp + 0x2c]
add esp, 0x18
shr eax, 4
and eax, 1
mov dword [ebp + 0x200], eax
pop esi
mov eax, dword [esp + 0xc]
and dword [edi + 4], 0
mov dword [edi], ebx
mov dword [edi + 8], ebp
mov dword [eax], edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x65c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00415048
add esp, 0x658
ret

Function at 0x403269
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4032dd
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4032dd
push edi
push 0
push esi
call fcn.0041fad0
pop ecx
push eax
push esi
call fcn.00401c49
add esp, 0xc
mov edi, eax
push 0
push ebx
call fcn.0041fad0
pop ecx
push eax
push ebx
call fcn.00401c49
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4032bc
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x18]
push ebx
push edi
call fcn.004032e3
push edi
mov esi, eax
call fcn.00433893
push ebx
call fcn.00433893
add esp, 0x14
mov eax, esi
pop edi
jmp 0x4032e0
or eax, 0xffffffff
pop esi
pop ebx
ret

Function at 0x4032e3
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403364
push ebx
push esi
push eax
push dword [ebp + 0xc]
call fcn.0041f660
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.00401bf3
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_write_file___s___LastError__d_
push 4
mov ebx, str.File
push ebx
call fcn.00401b4e
push esi
call fcn.00433893
push dword [ebp + 0xc]
call fcn.0041f660
add esp, 0x1c
cmp eax, 0x104
jb 0x40335b
push str.path_too_long
push 3
push ebx
call fcn.00401b4e
add esp, 0xc
pop esi
mov eax, 0xd0000006
pop ebx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4035bb
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x403621
push ebp
mov ebp, dword [esp + 0x18]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, edi
xor cl, byte [esi + ebp]
mov byte [esi], cl
inc esi
sub dword [esp + 0x10], 1
jne 0x4035e1
mov esi, dword [esp + 0x24]
pop edi
pop ebp
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
pop ecx
ret
Function at 0x408082
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push edi
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [esp + 0xc]
cmovae edx, edi
test eax, eax
js 0x4080ce
push ebx
push esi
lea ebx, [esp + 0x14]
xor ecx, ecx
lea ebx, [ebx + 4]
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [ebx]
cmovae esi, ecx
or edi, ecx
or edx, esi
test eax, eax
jns 0x4080aa
pop esi
pop ebx
mov eax, edi
pop edi
ret

Function at 0x40d732
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
push 1
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.0040da17
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.0040da17
add esp, 0x18
not eax
mov dword [esi + 8], eax
pop esi
ret

Function at 0x40d77f
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000040
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40d7a0
xor al, al
jmp 0x40d7c5
push dword [ebp + 8]
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40d79c
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret

Function at 0x40d918
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40d951
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d9c9
push eax
push 5
push dword [ebp + 8]
call fcn.00406e11
add esp, 0x10
xor al, al
jmp 0x40d9c5
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040d8f0
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov byte [esi + 0x10], 1
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x40d9c2
mov byte [esi + 0x11], al
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40d9b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d9c9
push eax
push 5
push dword [ebp + 8]
call fcn.00406e11
add esp, 0x10
xor al, al
jmp 0x40d9c4
mov ecx, dword [ebp - 0x18]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], ecx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a2bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00415110
mov eax, dword [0x442344]
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.00428212
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a2fe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a45a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00415060
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 + 0x443680]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00428f4e
mov ecx, dword [esi*4 + 0x443680]
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 0x41a453
cmp eax, dword [ecx + edi + 0x24]
jne 0x41a453
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 0x41a453
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428f4e
add esp, 0x14
test edx, edx
jl 0x41a453
jg 0x41a3c9
test eax, eax
jb 0x41a453
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a453
jl 0x41a3e3
cmp dword [ebp - 0x1008], eax
ja 0x41a453
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a401
test ebx, ebx
je 0x41a43a
cmp ecx, edi
jae 0x41a43a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a41b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a427
cmp byte [ecx + 1], 0xa
jne 0x41a427
inc ecx
jmp 0x41a427
movzx eax, al
movsx eax, byte [eax + 0x442458]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a401
cmp edx, ebx
jne 0x41a401
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a458
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415048
leave
ret

Function at 0x423187
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x442344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4231ca
call fcn.00420172
mov dword [eax], 0xf
call fcn.00420185
mov dword [eax], 0xd
call fcn.004277ab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415048
leave
ret
test eax, eax
jne 0x4231d1
inc eax
jmp 0x4231be
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4231bc
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4231be
Function at 0x42443b
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 + 0x443680]
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 0x42447b
cmp byte [ebx], 0xa
jne 0x42447b
or byte [edi + eax + 0x28], 4
jmp 0x424480
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 0x42457f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x424562
inc eax
cmp dl, 0xd
je 0x4244ac
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4244d2
cmp eax, ecx
jae 0x4244e0
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 0x424494
jmp 0x42457f
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 0x42455d
cmp dword [ebp - 0x10], 0
je 0x42455d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x443680]
test byte [eax + edi + 0x28], 0x48
je 0x424537
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x424522
mov byte [esi], dl
jmp 0x424533
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x443680]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42457f
cmp byte [ebp - 1], 0xa
jne 0x424546
cmp esi, ebx
jne 0x424546
mov byte [esi], 0xa
jmp 0x42457e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428f6c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42457f
mov byte [esi], 0xd
jmp 0x42457e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x443680]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42457c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42457f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424588
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 + 0x443680]
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 0x4245ce
cmp word [ebx], dx
jne 0x4245ce
or byte [eax + edi + 0x28], 4
jmp 0x4245d3
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 0x424736
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 0x424716
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x424614
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42464a
cmp eax, edx
jae 0x424658
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 0x4245ef
jmp 0x424736
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 0x424711
cmp dword [ebp - 0x18], 0
je 0x424711
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x443680]
test byte [eax + edi + 0x28], 0x48
je 0x4246e7
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 0x4246ab
mov word [esi], cx
jmp 0x4246e2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x443680]
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 + 0x443680]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x443680]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424736
pop eax
cmp word [ebp - 4], ax
jne 0x4246f7
cmp esi, ebx
jne 0x4246f7
mov word [esi], ax
jmp 0x424733
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428f6c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424736
push 0xd
pop eax
jmp 0x4246f2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x443680]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424730
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424736
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 0x426348
Capabilities:
Parse pe header

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

Function at 0x427a63
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x43c9cc
push str.FlsAlloc
push 0x1f
call fcn.00427922
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427a97
push dword [ebp + 8]
mov ecx, esi
call dword [0x435174]
call esi
jmp 0x427a9d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427ae1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x43c9f0
push str.FlsGetValue
push 0x21
call fcn.00427922
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427b18
push dword [ebp + 8]
mov ecx, esi
call dword [0x435174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427b20
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x43ca04
push str.FlsSetValue
push 0x22
call fcn.00427922
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427b5a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x435174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42c2e2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x442344]
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 0x42c32d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042c47d
test al, al
jne 0x42c327
sub edx, 2
cmp edx, edi
jne 0x42c30d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42c34f
lea eax, [edi + 2]
cmp edx, eax
je 0x42c34f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042c22e
add esp, 0x10
jmp 0x42c449
push esi
lea ecx, [ebp - 0x255]
call fcn.0042c47d
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 0x42c392
push dword [ebp - 0x25c]
jmp 0x42c33f
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 0x42c3cf
cmp word [ebp - 0x226], 0
je 0x42c3f0
cmp word [ebp - 0x226], ax
jne 0x42c3cf
cmp word [ebp - 0x224], 0
je 0x42c3f0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042c22e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42c43c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42c3a9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42c424
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42c449
push 0x42c05e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00431670
add esp, 0x10
jmp 0x42c419
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.00415048
leave
ret

Function at 0x42cd46
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42cd57
pop esi
ret
push ebx
push edi
push esi
call fcn.0042cd0f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042743d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42cd7f
push ebx
push esi
push edi
call fcn.00416200
add esp, 0xc
push 0
call fcn.00427403
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42d14f
Capabilities:
Set environment variable

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