joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3a0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
call fcn.0040f623
lea ecx, [esp + 0x10]
push ecx
call fcn.0040fe67
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push edi
push 0
push esi
mov ebx, eax
call fcn.0040d5a0
add esp, 0x14
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x40a418
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a3e1
sub eax, edx
je 0x40a41b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a3f1
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x40a41b
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a404
mov dx, word [0x42af2c]
mov word [edi], dx
jmp 0x40a41b
mov byte [esi], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a420
sub eax, edx
mov edi, eax
call fcn.0040d65f
cdq
mov ecx, 0x19
idiv ecx
add edx, 0x61
push edx
call fcn.0040d65f
cdq
mov ecx, 0x19
idiv ecx
add edx, 0x61
push edx
call fcn.0040d65f
cdq
mov ecx, 0x19
idiv ecx
add edx, 0x61
push edx
call fcn.0040d65f
cdq
mov ecx, 0x19
idiv ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
add edi, esi
add edx, 0x61
push edx
mov edx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x14]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
push str.heroes_report__04d_02d_02d__02d_02d__c_c_c_c_.zip
push edi
call fcn.0040e41b
add esp, 0x2c
pop edi
mov eax, esi
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a4a1
sub eax, edx
add esp, 8
ret
Function at 0x40a500
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
sub esp, 0xc
push 0
push 0
push 0
push 1
push str.Microsoft_Internet_Explorer
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 8], eax
test eax, eax
jne 0x40a52f
xor al, al
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x40a53c
mov edx, 0x15
mov ecx, dword [esp + 0x18]
push esi
movsx esi, byte [ecx]
push 0
neg esi
push 0x8000000
sbb esi, esi
and esi, ecx
mov ecx, dword [esp + 0x20]
push 1
push esi
movsx esi, byte [ecx]
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [esp + 0x24]
push esi
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
jne 0x40a57e
xor al, al
pop esi
add esp, 0xc
ret 0x10
mov ecx, dword [0x43108c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push ebx
push ebp
push edi
call eax
mov ebp, dword [sym.imp.WININET.dll_FtpCreateDirectoryA]
push eax
push esi
call ebp
mov ecx, dword [0x43108c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ebx, dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
push eax
push esi
call ebx
call fcn.0040a4b0
mov edi, eax
push edi
push esi
call ebp
push edi
push esi
call ebx
mov edx, dword [0x4351e8]
test edx, edx
je 0x40a5e9
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a5d0
sub eax, edi
je 0x40a5e9
push edx
push esi
call ebp
mov ecx, dword [0x4351e8]
push ecx
push esi
call ebx
mov edi, dword [esp + 0x14]
add edi, 0x10
push 0x5c
push edi
call fcn.0040d620
add esp, 8
push 0
push 0x4000002
inc eax
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_FtpPutFileA]
mov bl, 1
cmp eax, 1
je 0x40a617
mov bl, byte [esp + 0x13]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
test bl, bl
jne 0x40a640
push 0x7d0
mov dword [0x45522c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret 0x10
Function at 0x40b2b0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x431d70]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x24]
push 0x426c20
push eax
call fcn.0040eef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b2f1
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040d55f
add esp, 0x14
ret 8
or eax, 0xffffffff
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
mov byte [esp + 0xe], al
push esi
push 7
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0040ee0f
add esp, 0x10
xor ecx, ecx
test eax, eax
jle 0x40b331
lea esp, [esp]
mov dl, byte [esp + ecx + 0x10]
xor byte [esp + ecx + 8], dl
inc ecx
cmp ecx, eax
jl 0x40b320
test eax, eax
jg 0x40b301
push esi
call fcn.0040e9c6
add esp, 4
mov byte [edi], 0
xor esi, esi
nop
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b345
movzx ecx, byte [esp + esi + 8]
push ecx
sub eax, edx
add eax, edi
push str._02X
push eax
call fcn.0040e41b
inc esi
add esp, 0xc
cmp esi, 7
jl 0x40b340
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0040d55f
add esp, 0x14
ret 8
Function at 0x40baf0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x2098
call fcn.0040d570
mov eax, dword [0x431d70]
xor eax, esp
mov dword [esp + 0x2094], eax
push esi
mov esi, dword [esp + 0x20a0]
push edi
xor edi, edi
mov dword [esp + 0x18], esi
cmp esi, edi
jne 0x40bb22
xor al, al
jmp 0x40bd2d
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
lea ecx, [esi + 4]
je 0x40bb38
xor edx, edx
mov word [eax], dx
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x20], eax
push 0x426344
push 0x426344
call fcn.00408ff0
push str._ProgramList____Version__n
mov ecx, esi
call fcn.004092e0
lea ecx, [esp + 8]
push ecx
push 8
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd20
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x80
lea edx, [esp + 0x24]
push edx
push edi
push eax
call ebp
cmp eax, 0x103
je 0x40bd1f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov ebx, 0x800
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bcf5
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x40bcf5
xor edx, edx
push 0x17fe
push edx
lea eax, [esp + 0x8ae]
push eax
mov word [esp + 0x8b0], dx
call fcn.0040d5a0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x40bc58
lea edx, [esp + 0xa4]
push edx
push 0x4263e0
push 0xc00
lea eax, [esp + 0x8b0]
push eax
jmp 0x40bc72
lea ecx, [esp + 0xa4]
push ecx
push str._unknown_
push 0xc00
lea edx, [esp + 0x8b0]
push edx
call fcn.0040d541
add esp, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.DisplayVersion
push eax
mov dword [esp + 0x2c], ebx
call esi
lea edx, [esp + 0x8a4]
test eax, eax
jne 0x40bcc9
lea ecx, [esp + 0xa4]
push ecx
push edx
push str._s___s_
mov eax, edx
push 0xc00
push eax
call fcn.0040d541
add esp, 0x14
jmp 0x40bce4
lea ecx, [esp + 0x8a4]
push ecx
push 0x42b2ec
push 0xc00
push edx
call fcn.0040d541
add esp, 0x10
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x8a4]
push eax
call fcn.00401490
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push 0x80
lea edx, [esp + 0x28]
push edx
inc edi
push edi
push eax
call ebp
cmp eax, 0x103
jne 0x40bba7
pop ebx
pop ebp
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x209c]
pop edi
pop esi
xor ecx, esp
call fcn.0040d55f
add esp, 0x2098
ret 4
Function at 0x40bd50
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0xf4
mov eax, dword [0x431d70]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
mov ebx, dword [esp + 0xfc]
push ebp
mov ebp, dword [esp + 0x108]
push esi
mov esi, dword [esp + 0x108]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push str.HardwareDescriptionSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40be80
mov ecx, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.MHz
push ecx
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x40be38
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push 0
push str.VendorIdentifier
push ecx
mov dword [esp + 0x28], 0x40
call edi
test eax, eax
jne 0x40be38
lea eax, [esp + 0x40]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40be05
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x84]
push eax
push 0
push 0
push str.ProcessorNameString
push ecx
mov dword [esp + 0x28], 0x80
call edi
test eax, eax
je 0x40be53
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0040d55f
add esp, 0xf4
ret
lea eax, [esp + 0x80]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40be60
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov dword [ebp], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40be3a
mov ecx, dword [esp + 0xfc]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.0040d55f
add esp, 0xf4
ret

Function at 0x40bea0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push 0
lea eax, [esp + 4]
push 0x20
push eax
call fcn.0040d5a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], eax
mov al, 1
add esp, 0x20
ret

Function at 0x40d55f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431d70]
jne 0x40d569
repz ret
jmp fcn.00411fcc
Function at 0x42060b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041222a
and dword [ebp - 4], 0
cmp dword [0x455e6c], 0
mov ebx, eax
jne 0x4206bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42076d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42076d
push eax
call fcn.004121b8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x455e6c], eax
call esi
push eax
call fcn.004121b8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x455e70], eax
call esi
push eax
call fcn.004121b8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x455e74], eax
call esi
push eax
call fcn.004121b8
pop ecx
mov dword [0x455e7c], eax
test eax, eax
je 0x4206bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004121b8
pop ecx
mov dword [0x455e78], eax
mov eax, dword [0x455e78]
cmp eax, ebx
je 0x420714
cmp dword [0x455e7c], ebx
je 0x420714
push eax
call fcn.00412233
push dword [0x455e7c]
mov esi, eax
call fcn.00412233
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x420714
test edi, edi
je 0x420714
call esi
test eax, eax
je 0x42070b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42070b
test byte [ebp - 0xc], 1
jne 0x420714
or dword [ebp + 0x10], 0x200000
jmp 0x42074d
mov eax, dword [0x455e70]
cmp eax, ebx
je 0x42074d
push eax
call fcn.00412233
pop ecx
test eax, eax
je 0x42074d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42074d
mov eax, dword [0x455e74]
cmp eax, ebx
je 0x42074d
push eax
call fcn.00412233
pop ecx
test eax, eax
je 0x42074d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455e6c]
call fcn.00412233
pop ecx
test eax, eax
je 0x42076d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42076f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4176ee
Capabilities:
Read file on windows

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

Function at 0x4176f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041751f

Function at 0x417af3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408470
mov eax, dword [0x433010]
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.00415e22
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b35
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c91
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004242b0
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 + 0x4603b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418cc3
mov ecx, dword [esi*4 + 0x4603b0]
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 0x417c8a
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8a
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 0x417c8a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418cc3
add esp, 0x14
test edx, edx
jl 0x417c8a
jg 0x417c00
test eax, eax
jb 0x417c8a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8a
jl 0x417c1a
cmp dword [ebp - 0x1008], eax
ja 0x417c8a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c38
test ebx, ebx
je 0x417c71
cmp ecx, edi
jae 0x417c71
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c52
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5e
cmp byte [ecx + 1], 0xa
jne 0x417c5e
inc ecx
jmp 0x417c5e
movzx eax, al
movsx eax, byte [eax + 0x433298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c38
cmp edx, ebx
jne 0x417c38
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c8f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004078dc
leave
ret
Function at 0x418161
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4603b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4181a1
cmp byte [ebx], 0xa
jne 0x4181a1
or byte [eax + edi + 0x28], 4
jmp 0x4181a6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4182a4
mov al, byte [edx]
cmp al, 0x1a
je 0x418286
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4181d5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4181fa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418204
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4181b7
jmp 0x4182a4
push 0
lea eax, [ebp - 0xc]
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 0x418281
cmp dword [ebp - 0xc], 0
je 0x418281
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4603b0]
test byte [eax + edi + 0x28], 0x48
je 0x41825b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418246
mov byte [esi], dl
jmp 0x418257
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4603b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4182a4
cmp byte [ebp - 1], 0xa
jne 0x41826a
cmp esi, ebx
jne 0x41826a
mov byte [esi], 0xa
jmp 0x4182a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418ce1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4182a4
mov byte [esi], 0xd
jmp 0x4182a3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4603b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4182a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4182a4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4182ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4603b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4182f0
cmp word [esi], dx
jne 0x4182f0
or byte [edi + eax + 0x28], 4
jmp 0x4182f5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418448
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x418428
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418337
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41836d
cmp eax, edx
jae 0x418379
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41830f
jmp 0x418448
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418424
cmp dword [ebp - 0x14], 0
je 0x418424
mov eax, dword [ebx*4 + 0x4603b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4183fc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4183c5
mov word [esi], cx
jmp 0x4183f8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4603b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4603b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4603b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418448
pop ebx
cmp word [ebp - 4], bx
jne 0x41840d
cmp esi, dword [ebp + 0xc]
jne 0x41840d
mov word [esi], bx
jmp 0x418445
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418ce1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418448
push 0xd
jmp 0x418441
mov ecx, dword [ebx*4 + 0x4603b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41843f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418448
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4010dc
Capabilities:
Create thread

Disassembly:
mov eax, 0x411538
call fcn.004111a0
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x20]
cmp edi, ebx
je 0x4010fc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x40111d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, esi
call fcn.00401086
test eax, eax
jne 0x401158
lea eax, [esi + 0x18]
mov dword [esi + 0x1c], ebx
push eax
push ebx
push esi
push 0x401184
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x401158
cmp edi, ebx
je 0x401153
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
pop eax
jmp 0x401165
cmp edi, ebx
je 0x401163
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402399
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401edd
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x4023b2
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x4023c2
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x4023fb
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0040216c
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402404
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 4]
and byte [eax + edi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], edi
mov eax, edi
jmp 0x4023fd

Function at 0x402440
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push esi
push edi
mov esi, ecx
push 0
mov ebp, str.Microsoft_Base_Cryptographic_Provider_v1.0
push 1
lea edi, [esi + 0x104]
push ebp
push 0
push edi
mov dword [esi], 0x4135c4
call ebx
test eax, eax
jne 0x40247a
push 8
push 1
push ebp
push eax
push edi
call ebx
test eax, eax
jne 0x40247a
and dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret