joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x404640
push 0x67
push edi
call esi
push 0x64
push 0x404578
push 0x6d
push edi
call esi
call fcn.00401020
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401330
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x404578
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x404640
push 0x404578
push 0
mov dword [0x404570], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x40129f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401489
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push 0
push eax
call esi
test eax, eax
je 0x401311
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401300
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x4012e0
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
call fcn.00401489
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401cba
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a465
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409702
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040990f
pop ecx
test esi, esi
pop esi
je 0x40a475
mov al, 1
jmp 0x40a477
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a45f
xor al, al
leave
ret 8

Function at 0x40a47b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a4b3
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409702
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040990f
pop ecx
test esi, esi
pop esi
je 0x40a4c0
mov al, 1
jmp 0x40a4c2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a4ad
xor al, al
leave
ret 4

Function at 0x40a4c6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a501
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409702
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040990f
pop ecx
test esi, esi
pop esi
je 0x40a510
mov al, 1
jmp 0x40a512
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a4fb
xor al, al
leave
ret 4

Function at 0x40a534
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040b188
cmp eax, 0xffffffff
je 0x40a55f
test al, 0x10
jne 0x40a55f
test al, 1
je 0x40a55f
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a429
test al, al
je 0x40a597
cmp byte [0x42a988], 0
push esi
jne 0x40a58d
lea eax, [ebp - 0xc]
push eax
call fcn.00409702
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040990f
pop ecx
test esi, esi
je 0x40a597
mov al, 1
jmp 0x40a599
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40a587
xor al, al
pop esi
leave
ret 4

Function at 0x40a5a7
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40a5de
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409702
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040990f
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a5ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x40a931
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x41ff3f
call fcn.00416d7a
xor ebx, ebx
cmp byte [0x42a988], bl
jne 0x40a976
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00409702
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0040990f
pop ecx
cmp esi, ebx
je 0x40a984
mov al, 1
call fcn.00416e52
ret 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a96a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a995
xor al, al
jmp 0x40a96e
lea ecx, [ebp - 0x50]
call fcn.0040b165
lea ecx, [ebp - 0x28]
call fcn.004092c7
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040b22d
test al, al
jne 0x40a9c4
push dword [ebp - 0x28]
call fcn.0040990f
pop ecx
mov al, bl
jmp 0x40a96e
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x40a9b7

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42a988], 0
jne 0x40b1bc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409702
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040990f
pop ecx
mov eax, esi
pop esi
jmp 0x40b1cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b1cc
or eax, eax
leave
ret 4
Function at 0x40b6c5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b6eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b6eb
xor al, al
jmp 0x40b70b
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00418e90
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4117e6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x411806
xor eax, eax
jmp 0x41191f
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x411828
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41182d
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x41181f
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x411908
cmp ecx, 2
jbe 0x411888
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4118a6
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 5
add edi, ecx
cmp dword [ebp + 0x18], 0
je 0x4118b3
add eax, edi
jmp 0x4118b5
shr esi, cl
test esi, esi
je 0x41184a
cmp esi, 4
ja 0x4118a6
cmp esi, 3
je 0x4118a6
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x41184a
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x411817
sub eax, edi
test esi, esi
je 0x4118e6
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x4118e1
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x4118df
add eax, edi
jmp 0x4118e1
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x411817
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret 0x14

Function at 0x4144f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00419309
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004144a4
pop ebp
ret 0xc
Function at 0x416d6b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429a80]
jne 0x416d75
repz ret
jmp fcn.0041b13c

Function at 0x41d5a8
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.00419b8a
and dword [ebp - 4], 0
cmp dword [0x42b2fc], 0
mov ebx, eax
jne 0x41d659
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41d70a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41d70a
push eax
call fcn.00419b18
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b2fc], eax
call esi
push eax
call fcn.00419b18
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b300], eax
call esi
push eax
call fcn.00419b18
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b304], eax
call esi
push eax
call fcn.00419b18
pop ecx
mov dword [0x42b30c], eax
test eax, eax
je 0x41d659
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419b18
pop ecx
mov dword [0x42b308], eax
mov eax, dword [0x42b308]
cmp eax, ebx
je 0x41d6b1
cmp dword [0x42b30c], ebx
je 0x41d6b1
push eax
call fcn.00419b93
push dword [0x42b30c]
mov esi, eax
call fcn.00419b93
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d6b1
test edi, edi
je 0x41d6b1
call esi
test eax, eax
je 0x41d6a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d6a8
test byte [ebp - 0xc], 1
jne 0x41d6b1
or dword [ebp + 0x10], 0x200000
jmp 0x41d6ea
mov eax, dword [0x42b300]
cmp eax, ebx
je 0x41d6ea
push eax
call fcn.00419b93
pop ecx
test eax, eax
je 0x41d6ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41d6ea
mov eax, dword [0x42b304]
cmp eax, ebx
je 0x41d6ea
push eax
call fcn.00419b93
pop ecx
test eax, eax
je 0x41d6ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b2fc]
call fcn.00419b93
pop ecx
test eax, eax
je 0x41d70a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d70c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x41b068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 0x44
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004068e0
add esp, 0xc
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401ded
push dword [ebp - 0x54]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x401df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
xor ecx, ebp
pop edi
pop esi
call fcn.004059e0
mov esp, ebp
pop ebp
ret
Function at 0x405fb5
Capabilities:
Parse pe header

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

Function at 0x40c203
Capabilities:
Set environment variable

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

Function at 0x411e80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411ead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411ead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402c00
add esp, 0x10
call dword [ebp - 4]
push 0x3068
push 0
push eax
call dword [ebp - 8]
push 0x3068
mov esi, eax
push 0
push esi
call fcn.0040f640
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], ecx
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call fcn.00406fd0
push 0
push esi
call fcn.004070f0
push esi
call fcn.00402d90
push esi
call fcn.00405f80
push esi
call fcn.0040fd50
push esi
call fcn.00404c60
add esp, 0x24
test eax, eax
jne 0x401094
push str.____Init_error___config_signature_not_found._n
call fcn.00406020
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00404cc0
add esp, 4
cmp dword [esi + 0x178], 3
je 0x4010b9
push esi
call fcn.00405560
push str.Program_started._n
call fcn.00406070
add esp, 8
push esi
call fcn.00404a10
push esi
call fcn.004049a0
push esi
call fcn.00405220
add esp, 0xc
test eax, eax
jne 0x4010e7
push str.____Error_parsing_and_loading_config___exiting._n
call fcn.00406020
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.___JSON_config_loaded_successfully_n
call fcn.00406020
push esi
call fcn.00404f50
push esi
call fcn.00404d70
add esp, 0xc
cmp dword [esi + 0x188], 0
jne 0x401118
push esi
call fcn.00407290
push esi
call fcn.00407140
add esp, 8
push esi
call fcn.004058d0
push esi
call fcn.00402980
push str.____All_task_finished__locker_exiting._n
call fcn.00406020
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401d10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [ecx + 0xe40]
push ebx
push edi
xor edi, edi
lea eax, [eax + eax*2]
add eax, eax
mov ebx, dword [ecx + eax*8 + 0xe50]
cmp dword [ebx + 8], edi
jle 0x401dde
push esi
lea esi, [ebx + 0xc]
nop dword [eax]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x401d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____error_call_GetDiskFreeSpaceExA__ws___code__d_n
call fcn.00406020
add esp, 0xc
jmp 0x401db9
push 0
push 0x64
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040ec10
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edx
push eax
call fcn.0040ed10
cmp eax, 2
jle 0x401dd2
inc edi
add esi, 0x20a
cmp edi, dword [ebx + 8]
jl 0x401d40
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], 0xffffffff
lea edi, [ebx + 0x14c8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [ebx + 0x1184], esi
jle 0x401e48
lea edi, [ebx + 0x1488]
nop
mov eax, dword [edi]
test eax, eax
je 0x401e75
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401e63
inc esi
add edi, 4
cmp esi, dword [ebx + 0x1184]
jl 0x401e20
lea edi, [ebx + 0x14c8]
mov eax, dword [ebp - 4]
test eax, eax
jns 0x401e82
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401e07
push dword [ebx + esi*4 + 0x1488]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401e42
mov eax, esi
lea edi, [ebx + 0x14c8]
mov dword [ebp - 4], eax
jmp 0x401e4b
mov edx, dword [ebp + 0xc]
lea esi, [eax + eax*2]
add esi, esi
mov ecx, dword [ebx + esi*8 + 0x1194]
add ecx, 0xc
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401e94
push 0
add esi, 0x231
push 0
lea eax, [ebx + esi*8]
push eax
push 0x406ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
push edi
mov dword [ebx + ecx*4 + 0x1488], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x30
call fcn.00406260
mov edi, eax
mov eax, dword [ebp + 8]
push 0x3d38
mov dword [edi], 2
mov dword [edi + 4], eax
call fcn.00406260
mov dword [edi + 0xc], eax
add esp, 8
mov dword [eax + 8], 1
mov eax, dword [edi + 0xc]
mov dword [eax + 4], 1
mov eax, dword [edi + 0xc]
mov dword [eax], 1
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [ebp + 0xc]
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x40293a
mov edx, eax
mov ecx, 0xc
mov eax, dword [edi + 0xc]
lea esi, [esi + 1]
lea ecx, [ecx + 2]
mov word [ecx + eax - 2], dx
movzx edx, word [ebx + esi*2]
test dx, dx
jne 0x402923
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x15a4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x15bc]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push edi
push 0x407060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402c00
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword fs:[0x30]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [eax + 0xc]
push edi
push 1
push 0x1a
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x65006b
mov dword [ebp - 0x20], 0x6e0072
mov dword [ebp - 0x1c], 0x6c0065
mov dword [ebp - 0x18], 0x320033
mov dword [ebp - 0x14], 0x64002e
mov dword [ebp - 0x10], 0x6c006c
mov dword [ebp - 0xc], 0
push dword [esi + 0x30]
call fcn.00407640
add esp, 0x10
test eax, eax
je 0x402c99
nop dword [eax]
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push 1
push 0x1a
push eax
push dword [esi + 0x30]
call fcn.00407640
add esp, 0x10
test eax, eax
jne 0x402c80
mov ecx, dword [esi + 0x18]
xor edi, edi
mov dword [ebp - 0x24], 0x50746547
mov dword [ebp - 0x20], 0x41636f72
mov dword [ebp - 0x1c], 0x65726464
mov dword [ebp - 0x18], 0x7373
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov dword [ebp - 4], eax
mov esi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
add esi, ecx
add ebx, ecx
cmp dword [eax + 0x18], edi
jbe 0x402d7d
nop dword [eax]
mov eax, dword [esi]
push 0
add eax, ecx
lea ecx, [ebp - 0x24]
push 0xf
push ecx
push eax
call fcn.00407640
add esp, 0x10
test eax, eax
je 0x402d12
mov eax, dword [ebp - 4]
inc edi
mov ecx, dword [ebp - 8]
add esi, 4
add ebx, 2
cmp edi, dword [eax + 0x18]
jb 0x402ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx]
test ecx, ecx
js 0x402d7d
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + edi]
lea eax, [ebp - 0x24]
push eax
add esi, edi
mov dword [ebp - 0x24], 0x50746547
push edi
mov dword [ebp - 0x20], 0x65636f72
mov dword [ebp - 0x1c], 0x65487373
mov dword [ebp - 0x18], 0x7061
call esi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x70616548
mov dword [ebp - 0x20], 0x6f6c6c41
mov dword [ebp - 0x1c], 0x63
mov dword [ecx], eax
lea eax, [ebp - 0x24]
push eax
push edi
call esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0x70616548
movups xmmword [ebp - 0x10], xmm0
mov eax, dword [esi + 8]
push dword [esi]
mov dword [ebp - 0x18], 0x6c416552
mov dword [ebp - 0x14], 0x636f6c
call eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
mov eax, dword [esi + 8]
mov dword [ebp - 0x1c], 0x70616548
mov dword [ebp - 0x18], 0x65657246
mov dword [ebp - 0x14], 0
call eax
mov dword [esi + 0x18], eax
mov eax, dword [0x410410]
movq xmm0, qword [str.LoadLibraryA]
mov dword [ebp - 0x14], eax
mov al, byte [0x410414]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 0x1c], eax
mov cx, word [0x410420]
movq xmm0, qword [str.ntdll.dll]
mov word [ebp - 0x14], cx
lea ecx, [ebp - 0x1c]
push ecx
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 4], eax
mov cl, byte [0x41043c]
movups xmm0, xmmword [str.NtQuerySystemInformation]
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x1c]
push ecx
movups xmmword [ebp - 0x1c], xmm0
push eax
movq xmm0, qword [0x410434]
mov eax, dword [esi + 8]
movq qword [ebp - 0xc], xmm0
call eax
mov dword [esi + 0x20], eax
movzx eax, word [0x410450]
movups xmm0, xmmword [str.NtDuplicateObject]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
mov eax, dword [esi + 8]
movups xmmword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 0x24], eax
mov eax, dword [0x41045c]
movq xmm0, qword [str.NtQueryObject]
mov dword [ebp - 0x14], eax
movzx eax, word [0x410460]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
mov eax, dword [esi + 8]
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 0x28], eax
pop esi
mov esp, ebp
pop ebp
ret