joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410ed0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edi, edi
mov byte [esp + 0x10], cl
jle 0x410f11
mov esi, dword [esp + 0x10]
and esi, 0xff
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x41aed0]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x410eef
mov edx, dword [eax + 0x34]
mov bl, 1
mov byte [eax + edx + 0x58], bl
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x410fbf
dec esi
je 0x410f9e
dec esi
je 0x410f84
mov byte [edx + eax + 0x54], bl
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ebx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc ebx
mov edx, ebx
mov dword [eax + 0x44], ebx
mov byte [esi + edx], cl
mov edi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x24]
inc edi
sub dl, 4
mov ecx, edi
mov dword [eax + 0x44], edi
pop edi
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x410fa7
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
pop edi
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
pop edi
mov byte [edx + esi], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x424dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x42f358]
push esi
mov dword [esp + 4], eax
push 0x42f268
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x43329c], eax
jne 0x401046
push 0x42f24c
jmp 0x40111a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f23c
push eax
call esi
test eax, eax
mov dword [0x433298], eax
jne 0x401067
push 0x42f210
jmp 0x40111a
mov ecx, dword [0x43329c]
push 0x42f200
push ecx
call esi
test eax, eax
mov dword [0x433294], eax
jne 0x401088
push 0x42f1d8
jmp 0x40111a
mov edx, dword [0x43329c]
push 0x42f1c8
push edx
call esi
test eax, eax
mov dword [0x433290], eax
jne 0x4010a6
push 0x42f1a0
jmp 0x40111a
mov eax, dword [0x43329c]
push 0x42f190
push eax
call esi
test eax, eax
mov dword [0x43328c], eax
jne 0x4010c3
push 0x42f168
jmp 0x40111a
mov ecx, dword [0x43329c]
push 0x42f158
push ecx
call esi
test eax, eax
mov dword [0x433288], eax
jne 0x4010e1
push 0x42f130
jmp 0x40111a
mov edx, dword [0x43329c]
push 0x42f120
push edx
call esi
test eax, eax
mov dword [0x433284], eax
jne 0x4010ff
push 0x42f0f8
jmp 0x40111a
mov eax, dword [0x43329c]
push 0x42f0e8
push eax
call esi
test eax, eax
mov dword [0x433280], eax
jne 0x401154
push 0x42f0c0
lea ecx, [esp + 8]
call fcn.00419ed6
mov ecx, dword [esp + 4]
push 0
push 0x40
push ecx
call fcn.00420970
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00419d4d
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00419d4d
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4016b0
Capabilities:
Copy file
Create process on windows
Create process suspended

Disassembly:
mov eax, dword [0x4353d0]
sub esp, 0x25c
cmp eax, 1
push esi
jne 0x4017a0
mov esi, dword [esp + 0x264]
push ebx
push ebp
add ecx, 0xc0
push edi
push ecx
mov ecx, esi
call fcn.00419e86
lea eax, [esp + 0x64]
push str.C:Windows_system32SNGenEx.exe
push eax
call fcn.0040ae69
mov edx, dword [esi]
add esp, 8
lea ecx, [esp + 0x64]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x4000000
push 3
push 0
push 1
lea eax, [esp + 0x78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esi]
mov ebx, eax
push ecx
lea edx, [esp + 0x68]
push ebx
push edx
lea eax, [esp + 0x174]
push str._s__d___s_
push eax
call fcn.0040ae69
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0x14
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
lea eax, [esp + 0x188]
mov dword [esp + 0x40], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x25c
ret 4
mov ecx, dword [0x4353d4]
mov edx, dword [ecx + 4]
push edx
call fcn.0040ad3e
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4353d4]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x268]
call fcn.00419ed6
mov eax, 1
pop esi
add esp, 0x25c
ret 4
Function at 0x4017f0
Capabilities:
Extract resource via kernel32 functions
Timestomp file

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40181a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret 4
push ebp
push 0xa
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4018d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4018d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x4018d8
mov ecx, dword [eax]
mov dword [0x43336c], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x24]
mov dword [0x433368], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2a]
xor ecx, ecx
and edx, 0xffff
mov ch, byte [esp + 0x26]
and eax, 0xff
and ecx, 0xffff
shl edx, 0x10
or ecx, edx
or ecx, eax
mov eax, dword [0x433368]
mov ebp, ecx
cmp ebp, eax
jae 0x4018a8
mov ecx, edi
call fcn.004019d0
test eax, eax
je 0x4018b0
mov dword [esp + 0x10], 1
mov eax, dword [0x43336c]
test eax, eax
je 0x4018cb
cmp dword [0x433368], ebp
jne 0x4018cb
xor ebx, ebx
mov dword [0x433368], ebp
jmp 0x4018dc
mov ebx, 1
mov dword [0x433368], ebp
jmp 0x4018dc
mov ebp, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4019b3
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4019b3
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4019b3
mov ebx, dword [esp + 0x38]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x401984
mov eax, dword [0x43336c]
test eax, eax
jne 0x401954
mov eax, ebp
mov dword [0x43336c], eax
lea ecx, [esp + 0x14]
push 8
push ecx
push 0x804
mov dword [esp + 0x20], eax
mov eax, dword [0x433368]
push 0x82
push 0xa
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push ebx
call edi
mov esi, eax
test esi, esi
je 0x4019b3
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x401b00
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get kernel32 base address
Timestomp file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00421caf
mov esi, dword [eax + 0xc]
mov eax, dword [0x42f358]
xor ebx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
push 0x42f2c8
mov byte [esp + 0x54], 1
mov cx, word [eax*4 + 0x42f274]
lea ebp, [eax*4 + 0x42f274]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x401c96
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401c96
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edx*4 + 0x433370]
lea edx, [esp + 0x10]
push eax
push ecx
push str._s_s
push edx
call fcn.00418ce9
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push eax
call fcn.00401cd0
neg eax
sbb eax, eax
mov ecx, dword [esp + 0x10]
and eax, 4
push 0
inc eax
push 0
push eax
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c96
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b5e7
mov edx, dword [esp + 0x14]
push 0x400
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.00402eb6
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401c8f
sub esp, 0xc
mov dword [esp + 0x64], esp
mov ecx, esp
push 0
push 0
push 8
push 0
call fcn.00402fb5
lea ecx, [esp + 0x38]
call fcn.00401d00
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
call fcn.00402ce5
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0
call fcn.00419d4d
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.00419d4d
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40aedb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cdbc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40aefe
test byte [esp + 8], 2
je 0x40aefe
call fcn.0040ce2f
mov dword [eax], 0xd
call fcn.0040ce38
mov dword [eax], 5
jmp 0x40aed7
xor eax, eax
ret
Function at 0x418260
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b920
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41832b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41832b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4182de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4182e9
or bh, 8
and edi, 0x8000000
je 0x418304
mov eax, dword [0x436b5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41832b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41872b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41874f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41876a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41c596
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41c5ce
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041a067
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041a03f
jmp 0x41c5da
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41db1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41db5c
call fcn.00421caf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41db5c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41db53
xor eax, eax
jmp 0x41db64
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041db6a
pop edi
pop esi
pop ebx
ret 4

Function at 0x422588
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4225b6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4225d4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004224ee
jmp 0x4225d4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4225d4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004224ee
test edi, edi
mov eax, edi
jne 0x4225be
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x4537f2
push 0x14
push 0x474350
call fcn.00453b80
push 1
call fcn.004533d8
pop ecx
test al, al
jne 0x4536a9
push 7
call fcn.00453e6e
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004533a3
mov byte [ebp - 0x24], al
mov eax, dword [0x479f84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4536a2
test eax, eax
jne 0x453713
mov dword [0x479f84], ecx
push 0x465420
push 0x465408
call fcn.004594fb
pop ecx
pop ecx
test eax, eax
je 0x4536f6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4537ec
push 0x465404
push 0x4653b0
call fcn.0045949f
pop ecx
pop ecx
mov dword [0x479f84], 2
jmp 0x453718
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00453532
pop ecx
call fcn.00454166
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x453748
push esi
call fcn.004534a8
pop ecx
test al, al
je 0x453748
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00453b77
call esi
call fcn.0045416c
mov esi, eax
cmp dword [esi], edi
je 0x453766
push esi
call fcn.004534a8
pop ecx
test al, al
je 0x453766
push dword [esi]
call fcn.0045893a
pop ecx
call fcn.00453f89
movzx eax, ax
push eax
call fcn.0045944c
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00453fbc
test al, al
jne 0x453791
push esi
call fcn.00458972
test bl, bl
jne 0x45379a
call fcn.00458915
push edi
push 1
call fcn.0045354f
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4537ec
call fcn.00453bc6
ret
call fcn.00454055
jmp 0x45368a
Function at 0x4044d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x404503
call fcn.004042d0
test eax, eax
je 0x404503
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004042b0
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x404566
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.004042d0
cmp eax, 7
jb 0x404560
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.004042b0
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4047f0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x476044]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x404839
push str.SetDefaultDllDirectories
push 0x4655d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404839
push 0xc00
call eax
test eax, eax
jne 0x4048d7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4048d7
cmp eax, 0x104
ja 0x4048d7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x404877
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4048d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x4048b0
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4048a0
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x404897
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da0
mov esp, ebp
pop ebp
ret
Function at 0x40a870
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00454830
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + eax]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x40a907
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x4655f0]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x40a950
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x40a934
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x40a930
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x40a9a0
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x40a990
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40b140
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x476020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4