joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d1a0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7d7ce4]
sub esp, 0x9cc
push ebx
push ebp
push esi
mov esi, dword [0x458d34]
shr eax, 3
push edi
test eax, eax
je 0x44d34a
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x44d1d4
mov esi, dword [esp + 0x18]
cmp dword [0x7d7ce4], 0x1c
jne 0x44d1f1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x4522d0]
mov eax, dword [0x4522d4]
mov ecx, dword [0x4522d8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x4522dc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x30]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x7d7c54], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7d7ce4], 0x1be
jne 0x44d27d
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0x7d7ce4], 0x979
mov dword [0x7d7c58], 0xff6b3619
mov dword [0x7d7c5c], 0xffffffff
jne 0x44d2cf
mov edx, dword [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea eax, [esp + 0x1dc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x44d22a
cmp dword [0x7d7ce4], 0x8d4
jne 0x44d307
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x7d7ce4], 0x17
jne 0x44d339
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x44d1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9cc
ret
Function at 0x401000
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 0x10], 0xaa937b77
mov eax, 0xaa937b77
movzx esi, word [esp + 2]
mov ebp, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp eax, 0xf6c5cd5a
jg 0x40105b
cmp eax, 0xd85c26d5
jg 0x401093
cmp eax, 0x895cf966
je 0x40114d
cmp eax, 0xa076448d
je 0x401157
cmp eax, 0xaa937b77
jne 0x401029
mov eax, 0x241b1475
jmp 0x401029
cmp eax, 0x241b1474
jle 0x4010da
cmp eax, 0x241b1475
je 0x40117d
cmp eax, 0x724743a3
je 0x4011e9
cmp eax, 0x7e43d795
jne 0x401029
mov eax, dword [esp + 4]
movzx esi, word [esp + eax*2 + 0x1c]
mov eax, 0xeee9bf99
mov ebp, dword [esp + 4]
jmp 0x401029
cmp eax, 0xeb227f64
jg 0x40110c
cmp eax, 0xdd27e91b
jne 0x4011f3
mov ecx, dword [esp + 0x14]
add ecx, 0x72
imul eax, ecx, 0x318
imul ecx, ecx
imul edx, ecx, 0x3213
dec edx
and eax, 0xffffffe0
mov dword [esp + 0x14], eax
mov eax, 0xf6c5cd5b
cmp edx, ecx
je 0x401029
mov eax, 0x895cf966
jmp 0x401029
cmp eax, 0xf6c5cd5b
je 0x4011a0
cmp eax, 0x845a74
jne 0x401029
mov ecx, dword [esp + 4]
mov eax, 0xd85c26d6
cmp ecx, 4
je 0x401029
mov eax, 0x7e43d795
jmp 0x401029
cmp eax, 0xeee9bf99
jne 0x401200
mov dword [esp + 0x18], ebp
movsx ecx, si
cmp ecx, 0x43e
jle 0x4011b3
cmp ecx, 0x818
jg 0x4011ce
lea ecx, [esi - 0x43f]
cmp cx, 4
ja 0x4011e9
mov edx, 0x13
jmp 0x4011c7
mov eax, 0x845a74
jmp 0x401029
movzx eax, word [esp + 0xa]
mov word [esp + 0x20], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [esp + 0x22], ax
mov eax, 0xeee9bf99
xor ebp, ebp
movzx esi, word [esp + 8]
jmp 0x401029
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esp + 8], ax
call ebx
mov word [esp + 0x1e], ax
call edi
mov word [esp + 0xa], ax
mov eax, 0xa076448d
jmp 0x401029
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 4], eax
mov eax, 0xdd27e91b
jmp 0x401029
lea ecx, [esi - 0x419]
cmp cx, 0x13
ja 0x4011e9
movzx ecx, cx
mov edx, 0xc8401
bt edx, ecx
jae 0x4011e9
jmp 0x40120b
movzx ecx, si
cmp ecx, 0x819
je 0x40120b
cmp ecx, 0x843
je 0x40120b
cmp ecx, 0x82c
je 0x40120b
mov eax, 0xf6c5cd5b
jmp 0x401029
cmp eax, 0xd85c26d6
jne 0x401029
jmp 0x401220
cmp eax, 0xeb227f65
jne 0x401029
mov dword [esp + 0x10], eax
mov word [esp + 2], si
mov dword [esp + 0xc], ebp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x10], eax
mov word [esp + 2], si
mov dword [esp + 0xc], ebp
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4012a8
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x46d2e1
push ecx
call fcn.004580d1
add esp, 8
xor esi, esi
test eax, eax
je 0x401335
mov edi, eax
push 2
push 0
push eax
call fcn.00456509
add esp, 0xc
push edi
call fcn.00456858
add esp, 4
test eax, eax
js 0x40132c
mov ebp, eax
push edi
call fcn.00459e0c
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x47a044]
add esp, 4
test eax, eax
je 0x40132c
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.004594f9
add esp, 0x10
test eax, eax
je 0x40131a
mov ebp, eax
push edi
call fcn.00458e53
add esp, 4
test eax, eax
je 0x40133c
push edi
call fcn.00458cce
add esp, 4
push ebx
call dword [0x47a040]
jmp 0x401332
push edi
call fcn.00458cce
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.00458cce
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x401335

Function at 0x40285f
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x402887
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x40288e
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x40286d
jmp 0x402890
mov eax, 0x1505
jmp 0x402890
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40b38c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x46d6c0
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40b40c
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x40b3b7
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040b4a6
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40b3b3
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x40b440
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x40b424
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x40b478
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040b4a6
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.0040b4a6
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40b492
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4124d8
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4125d7
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4125d0
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x412581
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x412521
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x41259b
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x412589
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x412515
shl ecx, 0x10
or ecx, edi
jmp 0x4125da
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41769c
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x48]
push dword [eax + 0x3c]
call fcn.00456888
add esp, 4
mov ecx, dword [esi + 0x48]
mov edi, dword [ecx + 0x40]
add edi, dword [esp + 0x14]
mov ebx, dword [ecx + 0x44]
adc ebx, dword [esp + 0x18]
js 0x4176df
xor eax, edi
xor edx, ebx
or edx, eax
je 0x4176e6
push 0
push ebx
push edi
push dword [ecx + 0x3c]
call fcn.00456543
add esp, 0x10
test eax, eax
je 0x4176e3
xor eax, eax
jmp 0x4176fb
mov ecx, dword [esi + 0x48]
push dword [ecx + 0x3c]
push dword [esp + 0x24]
push 1
push dword [esp + 0x28]
call fcn.004594f9
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x41c99c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x468
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41caa2
mov esi, dword [ebp + 0xc]
mov eax, 0xfffffff6
cmp dword [ebx + 0x10], esi
jbe 0x41caba
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
test eax, eax
je 0x41caa7
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + esi*4]
lea edi, [eax + ecx]
add edi, 0x2e
movzx edx, word [edi - 0x12]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x41ca03
push eax
mov dword [esp + 8], edx
call fcn.004596fc
mov edx, dword [esp + 8]
add esp, 4
mov dword [ebx + 0x5c], 0
mov ecx, edi
call fcn.0041cac2
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x41caae
lea eax, [esp + 8]
push eax
push esi
push ebx
call fcn.0041836c
add esp, 0xc
test eax, eax
je 0x41cab5
mov dword [ebx + 0x58], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xa0], eax
movzx eax, word [esp + 0x1e]
mov word [ebx + 0xa8], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x4e008], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x4e014], eax
mov dword [ebx + 0x4e010], ecx
xor eax, eax
jmp 0x41caba
xor eax, eax
dec eax
jmp 0x41caba
mov eax, 0xfffffff5
jmp 0x41caba
mov eax, 0xfffffffe
jmp 0x41caba
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4252d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x20]
mov eax, 0xffffffe6
cmp ebx, 0x1000
ja 0x425310
mov edi, edx
mov esi, ecx
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push ecx
call fcn.00456543
add esp, 0x10
mov ebp, 0xffffffe5
test eax, eax
je 0x425315
push esi
call fcn.00458cce
add esp, 4
mov eax, ebp
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push ebx
push 1
push dword [esp + 0x30]
call fcn.004594f9
add esp, 0x10
cmp eax, ebx
jne 0x42535c
push 0
push dword [esp + 0x18]
push edi
push esi
call fcn.00456543
add esp, 0x10
test eax, eax
jne 0x425305
push esi
push ebx
push 1
push dword [esp + 0x30]
call fcn.00459717
add esp, 0x10
mov ecx, eax
mov ebp, 0xffffffe3
mov eax, ebx
cmp ecx, ebx
jne 0x425305
jmp 0x425310
mov eax, ebx
jmp 0x425310

Function at 0x425615
Capabilities:
Create directory

Disassembly:
push edi
push esi
call fcn.00424b7f
mov esi, eax
push eax
call fcn.0045837e
add esp, 4
mov edi, eax
push esi
call fcn.004596fc
add esp, 4
mov eax, edi
pop esi
pop edi
ret
Function at 0x427294
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x46f72c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x427beb
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.00459aa4
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x43519a
Capabilities:
Check http status code
Create process on windows
Decompress data using ucl
Encode data using base64
Get disk information
Parse credit card information
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push eax
call fcn.0040a1c8
mov dword [esp], 0xd84d8ba6
mov eax, 0xd84d8ba6
cmp eax, 0xd84d8ba6
je 0x4351bc
cmp eax, 0xfceca297
jne 0x4351ac
jmp 0x4351c3
mov eax, 0xfceca297
jmp 0x4351ac
mov dword [esp], eax
call fcn.004212f1
pop eax
jmp fcn.0042a5cc
Function at 0x446e19
Capabilities:
Parse pe header

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

Function at 0x4558d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00455b2c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x455a4d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x455a4d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4559fc
jg 0x45592e
test eax, eax
je 0x4559f2
push 1
push 0x1000
call fcn.0045e83d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x455954
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4559e9
push 0x8000
push ebx
call fcn.00457cd8
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x455980
jg 0x45597b
cmp ecx, 0x1000
jb 0x455980
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045fae1
add esp, 0x10
cmp eax, 0xffffffff
je 0x4559c5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x45597b
jl 0x4559ac
test ecx, ecx
jne 0x45596d
push dword [ebp - 0xc]
push ebx
call fcn.00457cd8
push esi
call fcn.0045cdc4
add esp, 0xc
xor edi, edi
jmp 0x455a5e
cmp byte [edi + 0x24], 0
je 0x4559dc
cmp dword [edi + 0x20], 5
jne 0x4559dc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4559e7
mov edi, dword [edi + 0x18]
jmp 0x4559e9
xor edi, edi
push esi
call fcn.0045cdc4
pop ecx
jmp 0x455a5e
test ecx, ecx
jg 0x4559be
jl 0x4559fc
test eax, eax
jae 0x4559be
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004605d7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x455a1f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4559be
jmp 0x455a56
push ebx
call fcn.0045f676
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4559be
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x455a5e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x455a5b
mov edi, dword [edi + 0x18]
jmp 0x455a5e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004605d7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45691a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00446800
mov eax, dword [0x47ca70]
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.004564e2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45695c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x456ab8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00461ee0
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 + 0x47ded0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00460640
mov ecx, dword [esi*4 + 0x47ded0]
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 0x456ab1
cmp eax, dword [edi + ecx + 0x24]
jne 0x456ab1
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 0x456ab1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00460640
add esp, 0x14
test edx, edx
jl 0x456ab1
jg 0x456a27
test eax, eax
jb 0x456ab1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x456ab1
jl 0x456a41
cmp dword [ebp - 0x1008], eax
ja 0x456ab1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x456a5f
test ebx, ebx
je 0x456a98
cmp ecx, edi
jae 0x456a98
mov al, byte [ecx]
cmp al, 0xd
jne 0x456a79
lea eax, [edi - 1]
cmp ecx, eax
jae 0x456a85
cmp byte [ecx + 1], 0xa
jne 0x456a85
inc ecx
jmp 0x456a85
movzx eax, al
movsx eax, byte [eax + 0x47d1f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x456a5f
cmp edx, ebx
jne 0x456a5f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x456ab6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00447268
leave
ret
Function at 0x4586da
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47ca70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4714a4
push esi
call fcn.00460e01
pop ecx
pop ecx
test eax, eax
jne 0x458708
xor al, al
jmp 0x458785
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.0045846b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x458742
push dword [ebp - 0x210]
call fcn.004596fc
xor al, al
jmp 0x458783
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x458748
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x458768
push edx
call fcn.0045862b
pop ecx
test al, al
je 0x458733
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x458776
mov bl, 1
push dword [ebp - 0x210]
call fcn.004596fc
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447268
leave
ret

Function at 0x45b520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45b54d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45b54d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x45b89d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x472474
push str.FlsAlloc
push 0x1e
call fcn.0045bb80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45b8d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x477a0c]
call esi
jmp 0x45b8d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45b91b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x472498
push str.FlsGetValue
push 0x20
call fcn.0045bb80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45b952
push dword [ebp + 8]
mov ecx, esi
call dword [0x477a0c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4616b5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47ca70]
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 0x461700
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046182b
test al, al
jne 0x4616fa
sub edx, 2
cmp edx, edi
jne 0x4616e0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x461722
lea eax, [edi + 2]
cmp edx, eax
je 0x461722
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00461601
add esp, 0x10
jmp 0x46181c
push esi
lea ecx, [ebp - 0x255]
call fcn.0046182b
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 0x461765
push dword [ebp - 0x25c]
jmp 0x461712
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 0x4617a2
cmp word [ebp - 0x226], 0
je 0x4617c3
cmp word [ebp - 0x226], ax
jne 0x4617a2
cmp word [ebp - 0x224], 0
je 0x4617c3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00461601
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46180f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46177c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4617f7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46181c
push 0x46184f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00469f90
add esp, 0x10
jmp 0x4617ec
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.00447268
leave
ret