joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fbf4
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff8
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0x5c
mov word [esp + 6], 0
push esp
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42fc20
xor eax, eax
pop ecx
pop edx
ret
mov al, 1
pop ecx
pop edx
ret

Function at 0x42fc28
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffddc
mov word [esp + 8], ax
mov word [esp + 0xa], 0x3a
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42fc5b
mov al, 1
jmp 0x42fca0
cmp eax, 2
je 0x42fc9e
cmp eax, 5
je 0x42fc9e
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x42fc9e
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x42fc9e
mov al, 1
jmp 0x42fca0
xor eax, eax
add esp, 0x224
ret

Function at 0x430178
Capabilities:
Set console window title

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
test ebx, ebx
je 0x43024a
mov eax, dword [0x436ab4]
cmp dword [eax], 0
jne 0x43024a
mov eax, dword [0x4369f8]
cmp byte [eax], 0
jne 0x43024a
mov eax, 0x20c
call fcn.00403f2c
mov dword [esp], eax
cmp dword [esp], 0
je 0x43024a
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x43024a
mov eax, ebx
call fcn.0041a704
add eax, esi
add eax, dword [0x44f958]
add eax, 0xa
mov edx, eax
add edx, edx
mov eax, esp
call fcn.00403f60
cmp dword [esp], 0
je 0x43024a
mov eax, dword [0x436b30]
cmp byte [eax], 0
je 0x43020d
mov eax, dword [0x44f958]
add eax, eax
add eax, dword [esp]
mov edx, ebx
call fcn.0041a714
jmp 0x430239
mov edx, 0x430250
mov eax, dword [esp]
call fcn.0041a728
mov eax, dword [esp]
call fcn.0041a704
mov dword [0x44f958], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.0041a728
mov eax, dword [0x436b30]
mov byte [eax], 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_SetConsoleTitleW
mov eax, dword [esp]
call fcn.00403f48
pop edx
pop esi
pop ebx
ret

Function at 0x430348
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x44f95c
mov eax, ebx
mov edx, 8
test al, 1
je 0x430364
shr eax, 1
xor eax, 0xedb88320
jmp 0x430366
shr eax, 1
dec edx
jne 0x430357
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x430350
pop ebx
ret

Function at 0x43037c
Capabilities:
Encode data using xor

Disassembly:
push ebx
not eax
test ecx, ecx
jle 0x43039c
mov ebx, eax
xor bl, byte [edx]
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x44f95c]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x430383
not eax
pop ebx
ret
Function at 0x43083c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], edx
mov dword [esp], eax
mov edi, dword [esp]
movzx edi, word [edi]
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov word [esp + 8], ax
mov eax, dword [esp]
movzx eax, word [eax + 4]
mov word [esp + 0xa], ax
mov ebp, dword [esp]
movzx ebp, word [ebp + 6]
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], 8
movzx edx, word [ebx]
mov eax, edi
call fcn.004307f8
mov edi, eax
add ebx, 2
movzx eax, word [ebx]
add word [esp + 8], ax
add ebx, 2
movzx eax, word [ebx]
add word [esp + 0xa], ax
add ebx, 2
movzx edx, word [ebx]
mov eax, ebp
call fcn.004307f8
mov ebp, eax
add ebx, 2
mov esi, edi
xor si, word [esp + 0xa]
movzx edx, word [ebx]
mov eax, esi
call fcn.004307f8
mov esi, eax
add ebx, 2
movzx eax, word [esp + 8]
xor ax, bp
add ax, si
movzx edx, word [ebx]
call fcn.004307f8
add ebx, 2
add si, ax
xor di, ax
xor bp, si
xor si, word [esp + 8]
xor ax, word [esp + 0xa]
mov word [esp + 8], ax
mov word [esp + 0xa], si
dec dword [esp + 0xc]
jne 0x43087b
movzx edx, word [ebx]
mov eax, edi
call fcn.004307f8
mov edi, eax
add ebx, 2
mov eax, dword [esp]
mov word [eax], di
movzx eax, word [esp + 0xa]
add ax, word [ebx]
mov edx, dword [esp]
mov word [edx + 2], ax
add ebx, 2
movzx eax, word [esp + 8]
add ax, word [ebx]
mov edx, dword [esp]
mov word [edx + 4], ax
add ebx, 2
movzx edx, word [ebx]
mov eax, ebp
call fcn.004307f8
mov ebp, eax
mov eax, dword [esp]
mov word [eax + 6], bp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430c68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x214], edx
mov esi, eax
xor eax, eax
push ebp
push 0x430d6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0xc], 0xff
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x430d7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x430d2e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x430dbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x430cd9
mov bl, 1
jmp 0x430d25
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push 0x430d7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x430d25
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x430dbc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x430d1c
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test bl, bl
je 0x430d55
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x210]
mov ecx, pe_nt_image_headers32
call fcn.00407698
mov eax, dword [ebp - 0x214]
mov edx, esi
call fcn.00414708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430d75
lea eax, [ebp - 0x214]
call fcn.00406f44
ret
Function at 0x430dd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407028
xor eax, eax
push ebp
push 0x430f69
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 5
mov eax, dword [ebp - 4]
call fcn.00407604
push eax
mov eax, dword [0x439c4c]
push eax
call sub.kernel32.dll_FindResourceW
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x430f4b
push esi
mov eax, dword [0x439c4c]
push eax
call sub.kernel32.dll_LoadResource
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x430f4b
lea eax, [ebp - 0xc]
call fcn.00430c68
mov eax, dword [ebp - 0xc]
call fcn.0043073c
call fcn.00430730
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [0x439c4c]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
cmp byte [ebp - 5], 0
je 0x430f20
mov eax, dword [edi + 0x28]
call fcn.00403f2c
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x34]
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
jmp 0x430edf
lea edx, [edi + 0x18]
mov eax, dword [edi + 0x10]
mov ecx, 8
call fcn.004040d0
lea eax, [edi + 0x18]
call fcn.00430958
mov edx, dword [edi + 0x14]
lea eax, [edi + 0x18]
mov ecx, 8
call fcn.004040d0
add dword [edi + 0x20], 8
adc dword [edi + 0x24], 0
add dword [edi + 0x10], 8
add dword [edi + 0x14], 8
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
sbb edx, dword [edi + 0x24]
cmp edx, 0
jne 0x430ef7
cmp eax, 8
jae 0x430ea7
jmp 0x430ef9
jge 0x430ea7
call fcn.004307ec
mov eax, dword [edi + 0x28]
mov ecx, eax
add ecx, dword [edi + 0x34]
dec ecx
mov dword [edi + 0x10], ecx
movzx eax, byte [ecx]
mov byte [edi + 0x30], al
mov bl, 1
movzx eax, al
mov edx, dword [edi + 0x28]
sub edx, eax
dec edx
mov dword [edi + 0x38], edx
jmp 0x430f42
mov eax, dword [edi + 0x28]
call fcn.00403f2c
mov ebx, eax
mov dword [edi + 0x34], ebx
mov edx, ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x28]
call fcn.004040d0
mov bl, 1
mov eax, dword [edi + 0x28]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430f70
lea eax, [ebp - 0xc]
call fcn.00406f44
lea eax, [ebp - 4]
call fcn.00406f44
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x3204cd88
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x3204cd97
pop dword [ebp - 0x3c]
mov eax, 0x82c91b83
sub eax, 0x50c44dec
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc025b8e6
sub dword [ebp - 0x4c], 0x71d3739b
mov dword [ebp - 0x48], 0x682a0b57
add dword [ebp - 0x48], 0xca0940ee
mov dword [ebp - 0x44], 0xc6832362
sub dword [ebp - 0x44], 0x7a36df34
mov dword [ebp - 0x40], 0x7633c933
sub dword [ebp - 0x40], 0x7633c933
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x5d3c91b3
add dword [ebp - 0x4c], 0x1735d7a3
mov dword [ebp - 0x48], 0x9a46b5df
sub dword [ebp - 0x48], 0x58da546a
mov dword [ebp - 0x44], 0xfefc04b
add dword [ebp - 0x44], 0x537fac21
mov dword [ebp - 0x40], 0x6bf5066c
add dword [ebp - 0x40], 0x940af994
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x5b78df00
sub eax, 0x2973ae84
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x4a38d
push 0
call eax
mov ecx, 0x8787f7d2
sub ecx, 0x8787a46d
xor ebx, ebx
add ebx, eax
mov esi, 0x681d0b2b
sub esi, 0x3615692b
add esi, dword [ebp - 0x3c]
mov edi, 0xe86caaa1
add edi, 0x3d3ab790
mov dword [ebp - 0x28], 0x16689227
mov edx, dword [esi]
mov dword [ebp - 0x34], 0xeb0847bf
add edx, edi
xor dword [ebp - 0x10], esi
mov dword [ebx], edx
add dword [ebp - 0xc], 0xae22767e
add ebx, 0x48e09f41
add ebx, 0xb71f60c3
add esi, 0xd80f687b
sub esi, 0xd80f6877
loop 0x3204ceb6
add eax, 0x14067
mov ebx, eax
add eax, 5
mov ecx, 0xb98f89a2
add ecx, 0x7870765e
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4058e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x474004]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [0x476940]
push esi
push edi
push 0x476140
mov edi, dword [eax + 0xa8]
push str._sanims_
add edi, eax
lea eax, [esp + 0x20]
push 0x400
push eax
call fcn.00407220
mov esi, eax
add esp, 0x10
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x405aae
lea eax, [esp + 0x18]
push eax
call fcn.004358fb
add esp, 4
cmp eax, 0xffffffff
jne 0x405973
call fcn.004355c3
cmp dword [eax], 0x11
jne 0x405aae
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405969
test al, 0x10
je 0x405969
mov eax, 1
jmp 0x40596b
xor eax, eax
test eax, eax
je 0x405aae
mov ecx, dword [0x476940]
mov edx, 0x400
push ebx
xor ebx, ebx
sub edx, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
cmp dword [ecx + 0xa4], ebx
jle 0x405a6f
push ebp
mov eax, dword [edi + 0x78]
xor ebp, ebp
test eax, eax
jle 0x405a57
lea ecx, [esp + 0x20]
add ecx, esi
mov dword [esp + 0x18], ecx
nop
lea esi, [ebp + 1]
cmp eax, 1
jne 0x4059ca
push edi
push str._s.smd
push edx
push ecx
call fcn.00407220
add esp, 0x10
jmp 0x4059db
push esi
push edi
push str._s_blend_02i.smd
push edx
push ecx
call fcn.00407220
add esp, 0x14
cmp eax, 0xffffffff
je 0x405aa6
lea eax, [esp + 0x20]
push 0x46e478
push eax
call fcn.004344e7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405a87
push ebx
push str.version_1_n
call fcn.00433985
mov ecx, ebx
call fcn.00404750
push ebp
mov edx, edi
mov ecx, ebx
call fcn.00405330
push ebx
call fcn.004346a6
lea eax, [esp + 0x30]
push eax
push str.Sequence:__s_n
call fcn.00401070
mov eax, dword [edi + 0x78]
mov ebp, esi
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov edx, dword [esp + 0x10]
cmp ebp, eax
jl 0x4059b0
mov ecx, dword [0x476940]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
inc ebx
add edi, 0xb0
mov dword [esp + 0x14], ebx
cmp ebx, dword [ecx + 0xa4]
jl 0x405998
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0040c2d8
add esp, 0x414
ret
lea eax, [esp + 0x20]
push eax
push str.ERROR:_Couldnt_write__s_n
push 2
call fcn.00417c5b
add esp, 4
push eax
call fcn.00401040
add esp, 0xc
jmp 0x405a6e
push edi
push str.ERROR:_Destination_path_is_too_long._Couldnt_write__s.smd_n
jmp 0x405a91
push 2
call fcn.00417c5b
push eax
push str.ERROR:_Destination_path_is_too_long_or_write_permission_denied._Couldnt_create_directory_for_sequences_n
call fcn.00433985
mov ecx, dword [esp + 0x424]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.0040c2d8
add esp, 0x414
ret
Function at 0x406510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x474004]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
push 0x46e9dc
push ecx
mov ebx, edx
call fcn.004344e7
mov esi, eax
add esp, 8
test esi, esi
je 0x406585
push esi
call fcn.0043cf28
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00437a0a
mov eax, dword [esp + 0x2c]
push eax
mov dword [ebx], eax
call fcn.004339b9
mov edi, eax
add esp, 0x10
test edi, edi
je 0x406585
push esi
push 1
push dword [ebx]
push edi
call fcn.00435b71
push esi
call fcn.004346a6
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040c2d8
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c2d8
add esp, 0x34
ret

Function at 0x40cea6
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0045f600
mov eax, dword [0x474004]
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.0043cf28
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x433f2a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x434086
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045f550
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 + 0x475a30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00443c72
mov ecx, dword [esi*4 + 0x475a30]
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 0x43407f
cmp eax, dword [ecx + edi + 0x24]
jne 0x43407f
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 0x43407f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00443c72
add esp, 0x14
test edx, edx
jl 0x43407f
jg 0x433ff5
test eax, eax
jb 0x43407f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43407f
jl 0x43400f
cmp dword [ebp - 0x1008], eax
ja 0x43407f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43402d
test ebx, ebx
je 0x434066
cmp ecx, edi
jae 0x434066
mov al, byte [ecx]
cmp al, 0xd
jne 0x434047
lea eax, [edi - 1]
cmp ecx, eax
jae 0x434053
cmp byte [ecx + 1], 0xa
jne 0x434053
inc ecx
jmp 0x434053
movzx eax, al
movsx eax, byte [eax + 0x474208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43402d
cmp edx, ebx
jne 0x43402d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x434084
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c2d8
leave
ret
Function at 0x4378ea
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x474004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x467688
push esi
call fcn.00447bfd
pop ecx
pop ecx
test eax, eax
jne 0x437918
xor al, al
jmp 0x437995
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00437547
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x437952
push dword [ebp - 0x210]
call fcn.004350c3
xor al, al
jmp 0x437993
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x437958
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x437978
push edx
call fcn.00437821
pop ecx
test al, al
je 0x437943
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x437986
mov bl, 1
push dword [ebp - 0x210]
call fcn.004350c3
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c2d8
leave
ret

Function at 0x43a1e8
Capabilities:
Parse pe header

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

Function at 0x43f7a1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4682bc
push 0x4682b4
push str.FlsAlloc
push 0x1f
call fcn.0043f46f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43f7d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x466178]
call esi
jmp 0x43f7db
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43f81f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4682cc
push 0x4682c4
push str.FlsGetValue
push 0x21
call fcn.0043f46f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43f856
push dword [ebp + 8]
mov ecx, esi
call dword [0x466178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43f85e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4682d4
push 0x4682cc
push str.FlsSetValue
push 0x22
call fcn.0043f46f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43f898
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x466178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x443cee
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 + 0x475a30]
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 0x443d2e
cmp byte [ebx], 0xa
jne 0x443d2e
or byte [edi + eax + 0x28], 4
jmp 0x443d33
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 0x443e32
mov dl, byte [eax]
cmp dl, 0x1a
je 0x443e15
inc eax
cmp dl, 0xd
je 0x443d5f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x443d85
cmp eax, ecx
jae 0x443d93
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 0x443d47
jmp 0x443e32
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 0x443e10
cmp dword [ebp - 0x10], 0
je 0x443e10
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x475a30]
test byte [eax + edi + 0x28], 0x48
je 0x443dea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x443dd5
mov byte [esi], dl
jmp 0x443de6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475a30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x443e32
cmp byte [ebp - 1], 0xa
jne 0x443df9
cmp esi, ebx
jne 0x443df9
mov byte [esi], 0xa
jmp 0x443e31
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00443c90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x443e32
mov byte [esi], 0xd
jmp 0x443e31
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x475a30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x443e2f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x443e32
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret