joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40881d
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x43d77e
call fcn.0043c0ef
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x14], edi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], ecx
mov ebx, dword [esi + 0x14]
push 0x5c
pop ecx
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], cx
mov word [ebp - 0x12], cx
mov ecx, esi
push 0x3f
pop eax
mov word [ebp - 0x14], ax
cmp ebx, 8
jb 0x40886d
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x18]
call fcn.0040b48d
pop ecx
test al, al
jne 0x408894
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], ax
mov ecx, esi
cmp ebx, 8
jb 0x40889d
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
push ecx
call fcn.0040b550
add esp, 8
mov ecx, eax
mov eax, esi
cmp ebx, 8
jb 0x4088b5
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov ecx, esi
add eax, 2
cmp ebx, 8
jb 0x4088c4
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040af21
mov ebx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
lea eax, [ebx + 0x20]
push eax
call fcn.004097b0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4088ee
mov eax, dword [ebp - 0x30]
lea eax, [eax + ebx*2]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040879e
push 8
pop ebx
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x40890a
mov ecx, dword [ebp - 0x30]
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x408913
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x408943
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, esi
call fcn.00408226
and dword [edi], 0
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x40894e
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0040435b
cmp dword [ebp - 0x1c], ebx
jb 0x408965
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
call fcn.0043c09e
ret
Function at 0x40cd55
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x456c94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x456c98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x456c9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x456ca0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x456ca4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0x456ca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [ebp + 8]
mov dword [0x456cac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [ebp + 8]
mov dword [0x456cb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryFile
push dword [ebp + 8]
mov dword [0x456cb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [ebp + 8]
mov dword [0x456cb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x456cbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0x456cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x456cc4], eax
mov eax, 0x456c94
pop ebp
ret 4
Function at 0x40d0be
Capabilities:
Create process on windows

Disassembly:
push 0x114
mov eax, 0x43dd99
call fcn.0043c15b
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], ebx
call fcn.00408421
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40d0e8
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
call fcn.00404821
lea ecx, [ebp - 0x74]
call fcn.00404757
push 0x44b4d8
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.00404a12
pop ecx
push 0x44b8c8
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.00404a68
pop ecx
push 0x44b4d0
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00404a68
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00405860
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040435b
push 0x44b4b4
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.00404a68
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.0040794e
lea ecx, [ebp - 0x8c]
call fcn.0040794e
lea ecx, [ebp - 0xa4]
call fcn.0040794e
lea ecx, [ebp - 0xbc]
call fcn.0040794e
push 0x40
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x44
push ebx
push eax
call fcn.00422e80
xor eax, eax
lea edi, [ebp - 0xd4]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x40d1d9
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x40d1e5
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xd4]
push edx
lea edx, [ebp - 0x120]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d21d
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.0040794e
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40d274
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], ecx
cmp eax, 0x1000
jb 0x40d26b
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0xc0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc4]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
call fcn.0043c0ad
ret
Function at 0x411757
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0x33323130
mov ecx, dword [edx]
mov dword [ebp - 0x24], 0x37363534
mov dword [ebp - 0x20], 0x42413938
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
movzx eax, byte [eax]
shr eax, 4
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov eax, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x28], 0x33323130
mov dword [ebp - 0x24], 0x37363534
movzx eax, byte [eax]
and eax, 0xf
mov dword [ebp - 0x20], 0x42413938
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov ecx, dword [ebp - 4]
inc dword [esi]
xor ecx, ebp
pop esi
call fcn.0041ebed
leave
ret
Function at 0x411964
Capabilities:
Parse pe header

Disassembly:
push 0x74
mov eax, 0x43e454
call fcn.0043c0ef
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x64]
push eax
push edx
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x41199e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040c9c3
jmp 0x411ae9
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
and dword [edi + 0x44], 0
mov ebx, 0x104
push edi
push ebx
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [edi + 0x40], eax
call fcn.004116c6
pop ecx
pop ecx
jmp 0x4119d1
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
add ebx, ebx
push edi
push ebx
call fcn.004116c6
pop ecx
pop ecx
mov esi, dword [ebp - 0x60]
mov ecx, esi
call fcn.0040c9c3
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0x4119c0
test esi, esi
je 0x4119ec
mov ecx, esi
jmp 0x411994
mov edx, dword [ebp - 0x64]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x411ae4
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x411ae4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411ae4
mov eax, dword [ecx + 0x50]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0x411ad9
cmp dword [ecx + 0xac], 0x1c
jb 0x411add
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0x411add
mov ebx, dword [eax + edx + 0x14]
add ebx, edx
cmp dword [ebx], 0x53445352
jne 0x411ae4
lea eax, [edi + 0x20]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.0040ce58
push 7
pop ecx
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 4]
lea ecx, [ebp - 0x28]
call fcn.004118ed
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0041181b
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x74]
test ecx, ecx
js 0x411aa5
cmp edx, ecx
jb 0x411aa5
mov edx, ecx
mov ecx, dword [ebp - 0x80]
push 0
push 0
push edx
push eax
lea edx, [ebp - 0x7c]
call fcn.0040e3fa
mov edx, 0x44bec0
lea ecx, [ebp - 0x80]
call fcn.0040db40
add esp, 8
mov ecx, dword [eax]
lea edx, [eax + 4]
push dword [edx + 4]
push dword [ebx + 0x14]
call fcn.0040e4bf
add esp, 0x10
xor eax, eax
jmp 0x411ae9
mov eax, 0x8000005c
jmp 0x411ae9
mov eax, 0x8000005a
call fcn.0043c09e
ret

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

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x416751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040c9c3
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x419253
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
test esi, esi
je 0x4192a7
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x41927b
mov eax, esi
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x4192ae
test ecx, ecx
je 0x4192a7
mov ecx, dword [ebp - 8]
test esi, esi
jne 0x41926c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4192a9

Function at 0x41939b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x4193a3
mov dword [ecx*4 + 0x454770], edx
inc ecx
cmp ecx, 0x100
jb 0x41939e
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x454370]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x454770]
mov dword [edx + 0x454770], ecx
add edx, 4
cmp edx, 0x2000
jb 0x4193ce
mov dword [0x456770], 0x41a230
call fcn.0041a473
test eax, eax
jne 0x41940f
mov dword [0x456770], 0x41a2d0
ret

Function at 0x41cc3e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41cc60
xor eax, eax
jmp 0x41cd61
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x41cc80
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41cc7d
inc edi
cmp edi, edx
jb 0x41cc70
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x41cd4c
cmp ecx, 2
jbe 0x41cd0b
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x41cd3b
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41cceb
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x41cce9
mov eax, pe_nt_image_headers32
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x41cd41
shr esi, cl
test esi, esi
je 0x41cc99
cmp esi, 4
ja 0x41cd30
cmp esi, 3
je 0x41cd30
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x41cc99
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x41cc69
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x41cc69
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x41cd65
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41cdd7
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41cd74
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41cd74
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41cf73
Capabilities:
Create thread

Disassembly:
push 8
push 0x44f888
call fcn.0041fb20
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x41cfda
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x41cfda
push ebx
push ebx
push dword [ebp + 8]
push 0x41d090
push ebx
push ebx
call fcn.0042ac9c
add esp, 0x18
mov dword [esi + 0x34], eax
test eax, eax
je 0x41cfda
mov al, 1
jmp 0x41d014
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x41d012
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41da56
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41daa2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41da90
mov eax, 0x10000
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x40
inc eax
mov dword [0x456c5c], esi
pop esi
leave
ret
Function at 0x41db64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x456c5c]
mov dword [ebp - 0x14], edx
mov esi, dword [edi + 4]
mov dword [ebp - 0xc], esi
jmp 0x41db92
mov eax, dword [esi + 0xc]
shl eax, 2
cmp eax, edx
ja 0x41dca0
mov dword [ebp - 0xc], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x41db7e
lea eax, [edx + 0x10]
xor ecx, ecx
xor edx, edx
div dword [edi + 8]
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [edi + 0xc]
div dword [edi + 8]
cmp ecx, eax
jae 0x41dbb7
mov ecx, eax
jmp 0x41dbb8
inc ecx
mov edx, dword [ebp + 8]
mov esi, 0x80000000
mov dword [ebp - 0x10], ecx
mov eax, esi
imul ecx, dword [edi + 8]
lea ebx, [edx - 0x80000000]
sub eax, ecx
mov dword [ebp - 8], ecx
cmp ebx, eax
jb 0x41dbe1
mov ebx, esi
sub ebx, ecx
jmp 0x41dbe1
mov ecx, dword [ebp - 8]
push edx
mov edx, ecx
mov ecx, ebx
call fcn.0041daa5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41dcfc
push dword [edi]
push 0x3000
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x41dbde
cmp dword [edi + 4], 0
jne 0x41dc1b
mov dword [edi + 4], esi
jmp 0x41dc51
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41dcfc
lea eax, [ebp - 4]
mov dword [ebx + 4], esi
push eax
push 0x20
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41dcfc
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
xor ecx, eax
shr ecx, 8
xor ecx, eax
shl eax, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xff0
lea eax, [ecx + 0x10]
add eax, esi
mov dword [esi + 8], eax
mov eax, edx
sub eax, ecx
sub eax, 0x10
shr eax, 2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41dcfc
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41dcfc
mov eax, dword [ebp - 0x14]
test al, 3
mov ebx, dword [esi + 8]
push 0
pop ecx
setne cl
shr eax, 2
add ecx, eax
sub dword [esi + 0xc], ecx
lea eax, [ebx + ecx*4]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x20
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
je 0x41dcf8
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41dcfc
mov eax, ebx
jmp 0x41dcfe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41de0f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x456c4c], 0
jne 0x41ded3
and dword [ebp - 4], 0
mov eax, dword [0x456c54]
test eax, eax
jne 0x41de4c
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x456c54], eax
test eax, eax
je 0x41deda
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x452b28], eax
cmp eax, 0xffffffff
je 0x41deda
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x452b2c], eax
cmp eax, 0xffffffff
je 0x41deda
push esi
push 0x456c30
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0041da56
push str.ntdll
mov dword [0x456c4c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41ded2
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41ded2
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x43f230]
call esi
test eax, eax
js 0x41ded2
mov eax, dword [ebp - 0x18]
mov dword [0x45679c], eax
pop esi
mov eax, dword [0x456c4c]
leave
ret
xor eax, eax
leave
ret

Function at 0x41dede
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x456c30
mov ebx, edx
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41df2d
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [esi], ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x456c30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41df3f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 0x456c30
xor edi, edi
mov ebx, dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41dfa2
mov ecx, dword [esi + 0x5c]
test ebx, ebx
je 0x41df7d
mov eax, esi
sub eax, dword [esi + 0x60]
mov dword [ecx], eax
jmp 0x41df7f
mov dword [ecx], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x456c50]
xor edi, edi
mov dword [esi + 0x50], eax
inc edi
mov dword [0x456c50], esi
push 0x456c30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e5d2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov dword [0x454348], edi
mov esi, edi
mov dword [ebp - 0x1c], eax
mov edi, ebx
mov ecx, edi
call fcn.0041e7e5
cmp eax, 0xffffffff
je 0x41e614
add esi, eax
add edi, eax
cmp esi, 5
jb 0x41e5ff
cmp esi, 5
mov dword [ebp - 0x10], esi
push 0
sbb esi, esi
not esi
pop edi
and esi, dword [ebp - 0x10]
je 0x41e70c
lea edx, [esi + 0x26]
push ebx
call fcn.0041db64
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x41e70c
lea ecx, [esi + 0x26]
push ecx
mov ecx, eax
call fcn.0041da0f
mov eax, dword [ebp - 0x10]
mov edx, ebx
push esi
lea ecx, [eax + 0x1c]
mov dword [eax], ebx
mov dword [ebp - 0xc], ecx
mov dword [eax + 4], 0x40eed0
mov dword [eax + 0xc], esi
mov dword [eax + 8], ecx
call fcn.0041da35
add esp, 8
test esi, esi
je 0x41e67c
cmp byte [edi + ecx], 0x90
jne 0x41e67c
inc edi
cmp edi, esi
jb 0x41e671
lea eax, [edi + 5]
cmp eax, esi
ja 0x41e696
mov al, byte [edi + ecx]
cmp al, 0xe8
je 0x41e68e
cmp al, 0xe9
jne 0x41e696
mov eax, ebx
sub eax, ecx
add dword [edi + ecx + 1], eax
mov eax, 0x25ff
mov word [ecx + esi], ax
add ecx, 6
add ecx, esi
lea eax, [ebx + esi]
push 5
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov byte [ebp - 0xc], 0xe9
mov dword [eax + esi + 2], ecx
mov eax, 0x40eed0
sub eax, ebx
sub eax, edi
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x20]
push eax
push 0x20
lea eax, [esi + 0x26]
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41e70c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], eax
mov al, byte [ebp - 8]
mov byte [ebx + 4], al
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
xor eax, eax
mov dword [0x454348], esi
inc eax
jmp 0x41e70e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ebed
leave
ret