joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eca08
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4eca11
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4eca2b
add esp, 0xfffffff0
call fcn.00402a90
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4ecbb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, edi
xor edx, edx
mov eax, ebx
call fcn.00415db0
mov dword [ebx + 0x18], esi
mov dl, 1
mov eax, dword [0x40f76c]
call fcn.00402978
mov esi, eax
mov dword [ebx + 0xc], esi
push 1
lea eax, [esi + 0xc]
mov ecx, 1
mov edx, dword [0x40f744]
call fcn.00404644
add esp, 4
push 0
lea eax, [esi + 0x10]
mov ecx, 1
mov edx, dword [0x40f758]
call fcn.00404644
add esp, 4
mov dl, 1
mov eax, dword [0x413614]
call fcn.00402978
mov dword [ebx + 0x10], eax
mov dl, 1
mov eax, dword [0x41684c]
call fcn.00402978
mov esi, eax
mov dword [ebx + 0x14], esi
mov byte [esi + 4], 0
lea eax, [ebp - 0x24]
mov edx, 0x4ecbdc
call fcn.00403464
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040ef88
lea edx, [ebp - 0x20]
lea eax, [esi + 0x24]
mov ecx, dword [0x40e37c]
call fcn.00403c78
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [eax + 8], ebx
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x14]
push eax
push 0x4168c0
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.0040e564
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x30]
mov dword [eax], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 8], edx
push esi
push 0x40f7e0
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.0040e564
mov edi, dword [ebx + 0x10]
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x34], eax
push edi
push 0x41367c
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.0040e564
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x5c], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x60], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x64], edx
mov eax, dword [ebx + 0xc]
push eax
push 0x40f7f8
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.0040e564
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x50], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x54], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x58], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecbba
lea eax, [ebp - 0x24]
call fcn.00403340
lea eax, [ebp - 0x20]
mov edx, dword [0x40e37c]
call fcn.00403a68
ret
Function at 0x54dad4
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.0040e7ac
mov edi, eax
test edi, edi
je 0x54dba8
push edi
call sub.user32.dll_GetWindowDC
mov ebp, eax
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
mov eax, ebx
call fcn.0054cea8
push eax
mov eax, ebx
call fcn.0054ceb4
push eax
push ebp
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [esp], eax
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x30]
call fcn.0040bf50
call fcn.00406b48
push eax
mov eax, ebx
call fcn.0054cea8
push eax
mov eax, ebx
call fcn.0054ceb4
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
push 0
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.0054ce14
push 0xcc0020
push 0
push 0
push esi
mov eax, ebx
call fcn.0054cea8
push eax
mov eax, ebx
call fcn.0054ceb4
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push eax
push ebp
call sub.gdi32.dll_BitBlt
push esi
call sub.gdi32.dll_DeleteDC
mov eax, dword [esp]
push eax
call sub.gdi32.dll_DeleteObject
push ebp
push edi
call sub.user32.dll_ReleaseDC
lea eax, [ebx + 0xc8]
call fcn.0040ef20
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x551d08
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
test dl, dl
je 0x551d37
add esp, 0xfffffff0
call fcn.00402a90
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x553784
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, edi
xor edx, edx
mov eax, ebx
call fcn.00415db0
mov dword [ebx + 0xd8], esi
mov dl, 1
mov eax, dword [0x40f76c]
call fcn.00402978
mov dword [ebx + 0xc], eax
mov esi, dword [ebx + 0xc]
push 1
lea eax, [esi + 0xc]
mov ecx, 1
mov edx, dword [0x40f744]
call fcn.00404644
add esp, 4
push 0
lea eax, [esi + 0x10]
mov ecx, 1
mov edx, dword [0x40f758]
call fcn.00404644
add esp, 4
mov dl, 1
mov eax, dword [0x412168]
call fcn.00402978
mov dword [ebx + 0x10], eax
mov dl, 1
mov eax, dword [0x41631c]
call fcn.00402978
mov dword [ebx + 0x14], eax
mov esi, dword [ebx + 0x14]
mov edx, 2
mov eax, esi
call fcn.004163a0
lea eax, [esi + 0x14]
mov edx, 0x5537b0
call fcn.00403464
mov dl, 1
mov eax, dword [0x415010]
call fcn.00402978
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 0x18]
lea eax, [esi + 0x14]
xor edx, edx
call fcn.00403464
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 0xffffffff
mov byte [esi + 0x1d], 0
mov byte [esi + 0x1c], 0
mov dl, 1
mov eax, dword [0x4494e8]
call fcn.00402978
mov dword [ebx + 0x1c], eax
mov dl, 1
mov eax, dword [0x4147fc]
call fcn.00414870
mov dword [ebx + 0x20], eax
mov esi, dword [ebx + 0x20]
lea eax, [esi + 0x14]
xor edx, edx
call fcn.00403464
mov byte [esi + 0x18], 0
lea eax, [ebp - 0x54]
mov edx, 0x5537b8
call fcn.00403464
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.004148f4
mov dl, 1
mov eax, dword [0x414ea4]
call fcn.00402978
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x24]
mov edx, 0x21
call fcn.00414f1c
mov dl, 1
mov eax, dword [0x413614]
call fcn.00402978
mov dword [ebx + 0x28], eax
mov esi, dword [ebx + 0x28]
lea edx, [ebp - 0x70]
mov eax, 6
call fcn.0040ef80
lea edx, [ebp - 0x70]
lea eax, [esi + 4]
mov ecx, dword [0x40e37c]
call fcn.00403c78
mov dl, 1
mov eax, dword [0x413614]
call fcn.00402978
mov dword [ebx + 0x2c], eax
mov esi, dword [ebx + 0x2c]
lea edx, [ebp - 0x70]
mov eax, 7
call fcn.0040ef80
lea edx, [ebp - 0x70]
lea eax, [esi + 4]
mov ecx, dword [0x40e37c]
call fcn.00403c78
Function at 0x401260
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [edi], 0
jne 0x40128c
mov dword [edi], 1
pop edi
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
jne 0x4012a3
mov dword [edi], 2
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4012cc
mov dword [edi], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10000
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4012e7
mov dword [edi], 4
jmp 0x4012f8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401301
mov dword [edi], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40130e
push esi
call edi
push ebx
call edi
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401320
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41234c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00403430
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x210]
push 0x104
push ecx
mov dword [ebp - 0x214], ebx
mov dword [edi], ebx
call fcn.004033ac
push esi
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00403332
add esp, 0x24
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x210]
push ecx
push 0x80000002
call ebx
test eax, eax
jne 0x4013dc
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4013dc
push str.Parameters
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call edi
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.004033ac
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x401452
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x401452
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
push str.SYSTEMCurrentControlSetServices_
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.004033ac
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00403332
add esp, 0x18
lea ecx, [ebp - 0x210]
push ecx
push 0x80000002
call edi
push esi
push str.SYSTEMCurrentControlSetEnumRootLEGACY__s_
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00403316
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call edi
lea ecx, [ebp - 0x214]
push ecx
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push 0x80000002
call ebx
mov edi, eax
test edi, edi
jne 0x4014fb
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4014fb
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x214]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403418
mov esp, ebp
pop ebp
ret
Function at 0x401ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41234c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x400
lea ecx, [ebp - 0x406]
push 0
push ecx
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x40c], 0
mov word [ebp - 0x408], 0
call fcn.00403430
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
push 0x20019
push 0
push str.SoftWareTencentQQPCMgr
push 0x80000002
mov dword [ebp - 0x410], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c05
mov edx, dword [ebp - 0x40c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0
push str.InstallDir
push edx
call ebx
test eax, eax
jne 0x401b7e
lea eax, [ebp - 0x408]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x408]
push eax
mov ecx, esi
call fcn.004028b0
push 0x201
lea ecx, [ebp - 0x408]
push 0
push ecx
call fcn.00403430
mov ecx, dword [ebp - 0x40c]
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push str.Version
push ecx
call ebx
test eax, eax
pop ebx
jne 0x401be4
lea eax, [ebp - 0x408]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401bc2
mov ecx, dword [ebp - 0x414]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004028b0
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403418
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00403418
mov esp, ebp
pop ebp
ret
Function at 0x403418
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41234c]
jne 0x403422
repz ret
jmp fcn.00404be1

Function at 0x4040cd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4040fa
call fcn.00404a33
mov dword [eax], esi
call fcn.00404a20
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004049c1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4040d6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404129
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404a46
pop ecx
call fcn.00404a20
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x404150
test al, 1
je 0x404150
test byte [esp + 0xc], 2
je 0x404150
call fcn.00404a33
mov dword [eax], 5
call fcn.00404a20
mov dword [eax], 0xd
jmp 0x404120
xor eax, eax
pop esi
ret

Function at 0x408aec
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x412c98]
je 0x408b07
inc edi
cmp edi, 0x17
jb 0x408af8
cmp edi, 0x17
jae 0x408c87
push ebp
push 3
call fcn.0040c5e6
cmp eax, 1
pop ecx
je 0x408c53
push 3
call fcn.0040c5e6
test eax, eax
pop ecx
jne 0x408b3b
cmp dword [0x412384], 1
je 0x408c53
cmp ebx, 0xfc
je 0x408c86
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x413890
push ebp
call fcn.004072b5
add esp, 0xc
test eax, eax
je 0x408b71
push esi
push esi
push esi
push esi
push esi
call fcn.004048c5
add esp, 0x14
push 0x104
mov esi, 0x4138a9
push esi
push 0
mov byte [0x4139ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408bb5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004072b5
add esp, 0xc
test eax, eax
je 0x408bb5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004048c5
add esp, 0x14
push esi
call fcn.004043c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408bfa
push esi
call fcn.004043c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x413ba4
push 0x40eacc
sub ecx, eax
push ecx
push eax
call fcn.0040bb56
add esp, 0x14
test eax, eax
je 0x408bfa
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004048c5
add esp, 0x14
jmp 0x408bfc
xor esi, esi
push 0x40eac8
push ebx
push ebp
call fcn.0040ba90
add esp, 0xc
test eax, eax
je 0x408c1c
push esi
push esi
push esi
push esi
push esi
call fcn.004048c5
add esp, 0x14
push dword [edi*8 + 0x412c9c]
push ebx
push ebp
call fcn.0040ba90
add esp, 0xc
test eax, eax
je 0x408c3e
push esi
push esi
push esi
push esi
push esi
call fcn.004048c5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040c429
add esp, 0xc
jmp 0x408c86
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408c86
cmp ebp, 0xffffffff
je 0x408c86
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x412c9c]
push dword [esi]
call fcn.004043c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40c429
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406632
xor ebx, ebx
cmp dword [0x413e3c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40c4ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c5df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c5df
push eax
call fcn.004065c4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413e3c], eax
call esi
push eax
call fcn.004065c4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413e40], eax
call esi
push eax
call fcn.004065c4
mov dword [0x413e44], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408879
test eax, eax
pop ecx
pop ecx
je 0x40c4cd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004048c5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40c4ff
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004065c4
cmp eax, ebx
pop ecx
mov dword [0x413e4c], eax
je 0x40c4ff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004065c4
pop ecx
mov dword [0x413e48], eax
mov eax, dword [0x413e48]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40c584
cmp dword [0x413e4c], ecx
je 0x40c584
push eax
call fcn.0040663b
push dword [0x413e4c]
mov esi, eax
call fcn.0040663b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40c584
cmp edi, ebx
je 0x40c584
call esi
cmp eax, ebx
je 0x40c551
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c551
test byte [ebp - 0x18], 1
jne 0x40c584
lea eax, [ebp - 0x10]
push eax
call fcn.004088b0
test eax, eax
pop ecx
je 0x40c56c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004048c5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40c57b
or dword [ebp + 0x10], 0x200000
jmp 0x40c5bf
or dword [ebp + 0x10], 0x40000
jmp 0x40c5bf
mov eax, dword [0x413e40]
cmp eax, dword [ebp - 8]
je 0x40c5bf
push eax
call fcn.0040663b
cmp eax, ebx
pop ecx
je 0x40c5bf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c5bf
mov eax, dword [0x413e44]
cmp eax, dword [ebp - 8]
je 0x40c5bf
push eax
call fcn.0040663b
cmp eax, ebx
pop ecx
je 0x40c5bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413e3c]
call fcn.0040663b
cmp eax, ebx
pop ecx
je 0x40c5df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c5e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ef2
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov byte [eax], 1
xor ecx, ecx
mov esi, 0x100
mov dl, cl
inc dl
mov byte [eax + ecx + 1], dl
inc ecx
cmp ecx, esi
jb 0x403efe
xor ecx, ecx
mov edi, dword [esp + 0xc]
mov edx, ecx
and edx, 0x1f
mov dl, byte [edx + edi]
add dl, 0x20
xor byte [eax + ecx + 1], dl
inc ecx
cmp ecx, esi
jb 0x403f0d
pop edi
pop esi
ret 4

Function at 0x403fae
Capabilities:
Terminate process

Disassembly:
push 0x30
push str.Error
push dword [esp + 0xc]
push 0
call dword [0x40a38c]
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
int3

Function at 0x403fe2
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp byte [ecx], al
jne 0x403ff8
xor byte [eax + str._r.___r_3_38], 0x41
inc eax
cmp eax, 0xd
jl 0x403fe8
mov byte [ecx], 1
mov eax, str._r.___r_3_38
ret

Function at 0x404068
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp + 0x10], eax
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov dword [ebp - 0xc], eax
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 0x10], eax
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
cmp dword [ebp + 0x10], 0xffffffff
jne 0x404105
push str._nERROR_while_setting_file_position_
call fcn.00403fae
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
mov esi, dword [ebp - 0xc]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404130
push str._nERROR_while_reading_info_from_file__n
jmp 0x404100
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [ebp - 4], ebx
popal
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40468e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
pushal
xor eax, eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
call fcn.00404021
nop
nop
popal
and dword [ebp - 8], 0
pushal
xor eax, eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
call fcn.00404021
nop
nop
popal
pushal
xor eax, eax
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
and dword [ebp - 4], 0
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
test eax, eax
jle 0x4046fa
mov edx, dword [ecx + 0xc]
cmp dword [ebp + 8], edx
jb 0x4046ef
mov esi, dword [ecx + 8]
add esi, edx
cmp esi, dword [ebp + 8]
jbe 0x4046ef
mov dword [ebp - 8], ecx
inc dword [ebp - 4]
add ecx, 0x28
cmp dword [ebp - 4], eax
jl 0x4046da
pushal
xor eax, eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
call fcn.00404021
nop
nop
popal
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c8a
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push ebx
push esi
push edi
push eax
xor eax, eax
inc eax
dec eax
mov eax, dword fs:[0x30]
not eax
mov dword [ebp - 8], eax
not dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push eax
xor eax, eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
nop
nop
pop eax
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], 0
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
push eax
xor eax, eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
nop
nop
pop eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
pushal
xor eax, eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
call fcn.00404021
nop
nop
popal
lea ecx, [ebp - 1]
call fcn.00403fe2
push eax
push dword [ebp - 0xc]
call dword [0x40a3b8]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x404d11
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], ecx
jne 0x404cc6
jmp 0x404d27
push eax
xor eax, eax
inc eax
dec eax
mov eax, dword [ebp - 0xc]
not eax
mov dword [0x40a3b4], eax
not dword [0x40a3b4]
pop eax
pop edi
pop esi
pop ebx
leave
ret