joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4041f1
mov edx, dword [ebp + 8]
mov dword [ebp - 0x138], edx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dl, byte [ecx]
mov byte [ebp - 0x12d], dl
mov eax, dword [ebp - 0x138]
cmp dl, byte [eax]
jne 0x404167
cmp byte [ebp - 0x12d], 0
je 0x40415b
mov ecx, dword [ebp - 0x134]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x12e], dl
mov eax, dword [ebp - 0x138]
cmp dl, byte [eax + 1]
jne 0x404167
add dword [ebp - 0x134], 2
add dword [ebp - 0x138], 2
cmp byte [ebp - 0x12e], 0
jne 0x404109
mov dword [ebp - 0x144], 0
jmp 0x404172
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x14c], edx
cmp dword [ebp - 0x14c], 0
jne 0x4041d2
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x4041d2
push 9
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [ebp - 0x148], eax
jmp 0x4040e7
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret
Function at 0x404210
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00410b60
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], cl
push 3
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.00403030
push 0x43ca88
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.004030a0
mov dword [ebp - 0x118], 0
jmp 0x404289
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x118], 4
jge 0x4042ba
call fcn.00413e92
cdq
mov ecx, 0x1a
idiv ecx
add edx, 0x61
mov byte [ebp - 0x111], dl
mov edx, dword [ebp - 0x118]
mov al, byte [ebp - 0x111]
mov byte [ebp + edx - 0xc], al
jmp 0x40427a
lea ecx, [ebp - 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.004030a0
push 0x43ca98
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.004030a0
push 1
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
and edx, 2
jne 0x40433e
mov eax, dword [ebp - 0x11c]
or eax, 2
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret

Function at 0x404350
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.XXX5B98_0E3D_4B3B_B724_57DB0D76F78F
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40437e
mov dword [ebp - 0xc], 1
jmp 0x404385
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
mov byte [ebp - 1], al
cmp dword [ebp - 8], 0
je 0x404399
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4043b7
cmp dword [ebp - 8], 0
je 0x4043b3
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4043b9
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4043c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00410b60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x108]
push eax
push 0x43cae8
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.00403110
add esp, 0x14
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403fa0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret
Function at 0x404600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd90
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push 0
lea eax, [ebp - 0x164]
push eax
call fcn.00410b60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [0x43cb10]
mov dword [ebp - 0x164], edx
mov eax, dword [0x43cb14]
mov dword [ebp - 0x160], eax
mov ecx, dword [0x43cb18]
mov dword [ebp - 0x15c], ecx
push 0xb0
lea ecx, [ebp - 0x21c]
call fcn.00402fe0
push 1
lea ecx, [ebp - 0x21c]
call fcn.00406290
mov dword [ebp - 4], 0
push 0x40
push 8
lea edx, [ebp - 0x164]
push edx
lea ecx, [ebp - 0x21c]
call fcn.004061c0
lea eax, [ebp - 0x16c]
push eax
call fcn.00401730
add esp, 4
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00401710
add esp, 4
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
push edx
push 0x43cb1c
push 0x50
lea eax, [ebp - 0x60]
push eax
call fcn.00413e73
add esp, 0x10
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.0040b590
add esp, 8
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.00406360
mov dword [ebp - 0x228], eax
push 0x40b910
mov ecx, dword [ebp - 0x228]
call fcn.00406580
lea ecx, [ebp - 0x21c]
call fcn.00406180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004045d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret
Function at 0x404910
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fdeb
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403950
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x264]
call fcn.00403910
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x288]
call fcn.004039b0
mov dword [ebp - 0x254], 0xffffffff
mov dword [ebp - 0x24c], 0x224
mov byte [ebp - 0x24d], 0
mov ecx, dword [ebp + 8]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x254], eax
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_Module32First]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x404a22
lea ecx, [ebp - 0x28]
call fcn.004069e0
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00417256
add esp, 8
test eax, eax
jne 0x404a06
mov byte [ebp - 0x24d], 1
jmp 0x404a22
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_Module32Next]
mov dword [ebp - 0x258], eax
jmp 0x4049d8
movzx ecx, byte [ebp - 0x24d]
test ecx, ecx
jne 0x404a78
lea edx, [ebp - 0x2a0]
push edx
lea ecx, [ebp + 0xc]
call fcn.00403910
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 4
push 0
mov ecx, dword [ebp - 0x26c]
call fcn.004069e0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404770
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a0]
call fcn.00406a90
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x270], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004039b0
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret
Function at 0x404cf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00410b60
add esp, 0xc
mov dword [ebp - 0x48], 0x44
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43cb84
call fcn.00401160
add esp, 8
jmp 0x404d73
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret

Function at 0x404d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x404dc0
xor eax, eax
jmp 0x404e34
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x404e25
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00417256
add esp, 8
test eax, eax
jne 0x404e0d
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x404e34
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x404de2
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret
Function at 0x404e50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00404350
movzx eax, al
test eax, eax
je 0x404e77
or eax, 0xffffffff
jmp 0x405093
call fcn.00403bb0
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.00410b60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call fcn.00404210
add esp, 4
push 0x104
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00410b60
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0x43cba0
push str.HOOKDLL_64
push 0x6e
call fcn.004043c0
add esp, 0xc
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
push 0x43cbbc
push str.HookDll
push 0x65
call fcn.004043c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x43cbd4
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004030a0
push 0x43cbd8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004030a0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x43cbe8
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.004030a0
push 0x43cbec
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.004030a0
push 0x43cbf8
push 0x43cc04
push 0x67
call fcn.004043c0
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call fcn.00404cf0
add esp, 4
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404fd1
push str.dll_not_found
call fcn.00404450
add esp, 4
xor eax, eax
jmp 0x405093
push str.start......
call fcn.00404450
add esp, 4
push 0x43cc24
call fcn.004040a0
add esp, 4
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00402350
push eax
lea ecx, [ebp - 0x214]
call fcn.0040b950
lea ecx, [ebp - 0x214]
call fcn.00403b00
mov ecx, 1
test ecx, ecx
je 0x405078
push 0
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x238]
call fcn.0040b560
lea eax, [ebp - 0x238]
push eax
call fcn.00404ad0
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.004039b0
push str.MpSvc64.exe
call fcn.00404d90
add esp, 4
test eax, eax
jne 0x40506b
lea ecx, [ebp - 0x108]
push ecx
call fcn.00404cf0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405014
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x214]
call fcn.00403ab0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4054d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x4054fa
jl 0x4054f1
cmp dword [ebp + 0xc], 0
ja 0x4054fa
xor eax, eax
xor edx, edx
jmp 0x40563b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x40551c
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 - 0x10]
call fcn.00405f70
jmp 0x40563b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], 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 - 0x10]
call fcn.004081d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x40558b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00405650
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408330
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00409490
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004082b0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x40562c
mov ecx, dword [ebp - 0x10]
call fcn.00407cd0
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x4055fb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00417adf
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x4055f9
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40563b
jmp 0x4055a7
cmp dword [ebp - 8], 0
jbe 0x40562c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00417adf
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d400
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4304ad
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00402fe0
mov eax, dword [ebp + 8]
push eax
call fcn.00408bd0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040d730
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x40d7a0
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.004017d0
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call fcn.004139e0
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x40d495
lea ecx, [ebp - 0x14]
call fcn.0040d5d0
jmp 0x40d4a6
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call fcn.0040dce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040edd0
mov esp, ebp
pop ebp
ret 4

Function at 0x41b5d3
Capabilities:
Parse pe header

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

Function at 0x41ebad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435384
push 0x43537c
push 0x4321c8
push 0x1f
call fcn.0041e9d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ebe1
push dword [ebp + 8]
mov ecx, esi
call dword [0x431200]
call esi
jmp 0x41ebe7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ec2b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435394
push 0x43538c
push 0x4321dc
push 0x21
call fcn.0041e9d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec62
push dword [ebp + 8]
mov ecx, esi
call dword [0x431200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ec6a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43539c
push 0x435394
push 0x4321e8
push 0x22
call fcn.0041e9d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eca4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x431200]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x421a50
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040fc40
mov eax, dword [0x44104c]
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.0041dc02
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421a92
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421bee
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042f770
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 + 0x442f28]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00423f1b
mov ecx, dword [esi*4 + 0x442f28]
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 0x421be7
cmp eax, dword [ecx + edi + 0x24]
jne 0x421be7
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 0x421be7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423f1b
add esp, 0x14
test edx, edx
jl 0x421be7
jg 0x421b5d
test eax, eax
jb 0x421be7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421be7
jl 0x421b77
cmp dword [ebp - 0x1008], eax
ja 0x421be7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421b95
test ebx, ebx
je 0x421bce
cmp ecx, edi
jae 0x421bce
mov al, byte [ecx]
cmp al, 0xd
jne 0x421baf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421bbb
cmp byte [ecx + 1], 0xa
jne 0x421bbb
inc ecx
jmp 0x421bbb
movzx eax, al
movsx eax, byte [eax + 0x441488]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421b95
cmp edx, ebx
jne 0x421b95
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421bec
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040edd0
leave
ret
Function at 0x4233b3
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 + 0x442f28]
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 0x4233f3
cmp byte [ebx], 0xa
jne 0x4233f3
or byte [edi + eax + 0x28], 4
jmp 0x4233f8
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 0x4234f7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4234da
inc eax
cmp dl, 0xd
je 0x423424
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42344a
cmp eax, ecx
jae 0x423458
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 0x42340c
jmp 0x4234f7
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 0x4234d5
cmp dword [ebp - 0x10], 0
je 0x4234d5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x442f28]
test byte [eax + edi + 0x28], 0x48
je 0x4234af
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42349a
mov byte [esi], dl
jmp 0x4234ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442f28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4234f7
cmp byte [ebp - 1], 0xa
jne 0x4234be
cmp esi, ebx
jne 0x4234be
mov byte [esi], 0xa
jmp 0x4234f6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00423f39
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4234f7
mov byte [esi], 0xd
jmp 0x4234f6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x442f28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4234f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4234f7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret