joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e57f
call fcn.0040c2c0
mov esi, eax
jmp 0x40e626
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40e598
call fcn.0040c2c0
jmp 0x40e61d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40e5ad
call fcn.0040c2c0
jmp 0x40e61d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40e5c5
mov esi, 0x8007000e
jmp 0x40e61f
push eax
lea ecx, [ebp - 0x408]
call fcn.0040d490
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x40e5e2
mov esi, 0x8007000e
jmp 0x40e61f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40e5fb
call fcn.0040c2c0
jmp 0x40e61d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.0040e260
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x40e640
lea ecx, [ebp - 0x408]
call fcn.0040cc80
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410451
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f280
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
test ecx, ecx
je 0x40f28e
lea edi, [ecx - 0x20]
jmp 0x40f290
xor edi, edi
cmp byte [ecx + 0x1c], 0
mov esi, dword [ebp + 0xc]
je 0x40f2c7
mov eax, dword [edi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x40f2b8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f2cc
test esi, esi
jne 0x40f2c7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f2cc
cmp esi, 1
je 0x40f2e2
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
movsx edx, cx
cwde
push edx
push eax
lea ecx, [edi + 0x20]
call fcn.0040f040
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x40fcc9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x425464], 0
push esi
push edi
jne 0x40fc3f
call fcn.0040fbab
test eax, eax
je 0x40fc84
mov eax, dword [0x425464]
cmp eax, 1
jne 0x40fc60
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40fc84
jmp 0x40fcc6
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40fcc6
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40fc88
xor eax, eax
jmp 0x40fcc6
mov eax, dword [esi]
push dword [0x425464]
call edi
mov edi, eax
test edi, edi
je 0x40fcaa
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40fcc6
lea edi, [esi + 0xff0]
push esi
push dword [0x425464]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40fcb0
mov eax, esi
pop edi
pop esi
ret
jmp 0x40fc2b

Function at 0x410451
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424308]
jne 0x41045b
repz ret
jmp fcn.0041492f
Function at 0x4183dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004158da
and dword [ebp - 0x14], 0
cmp dword [0x42627c], 0
mov dword [ebp - 0x18], eax
jne 0x41848f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418537
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420b14
push ebx
call edi
test eax, eax
je 0x418537
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x420b04
push ebx
mov dword [0x42627c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426280], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426284], eax
call edi
push eax
call esi
mov dword [0x42628c], eax
test eax, eax
je 0x41848f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x426288], eax
mov eax, dword [0x426288]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4184e8
cmp dword [0x42628c], ecx
je 0x4184e8
push eax
call esi
push dword [0x42628c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4184e8
test ebx, ebx
je 0x4184e8
call edi
test eax, eax
je 0x4184df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4184df
test byte [ebp - 8], 1
jne 0x4184e8
or dword [ebp + 0x10], 0x200000
jmp 0x41851b
mov eax, dword [0x426280]
cmp eax, dword [ebp - 0x18]
je 0x41851b
push eax
call esi
test eax, eax
je 0x41851b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41851b
mov eax, dword [0x426284]
cmp eax, dword [ebp - 0x18]
je 0x41851b
push eax
call esi
test eax, eax
je 0x41851b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42627c]
call esi
test eax, eax
je 0x418537
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418539
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410451
leave
ret
Function at 0x68f20101
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x68f55fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x68f6edd8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x68f6edd8]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x240], esi
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push esi
push ecx
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
cmp ebx, esi
jne 0x68f20221
xor eax, eax
cmp dword [esp + 0x10], esi
je 0x68f20196
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], esi
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x10], ecx
jne 0x68f20221
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x24]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
push esi
push ecx
jmp 0x68f201f1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.68f20101
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x68f20261
lea eax, [esp + 0x24]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 0x100
call ebx
test eax, eax
je 0x68f201c0
cmp dword [esp + 0x10], esi
je 0x68f2020f
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], esi
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
or dword [esp + 0x240], 0xffffffff
cmp dword [esp + 0x10], esi
je 0x68f20239
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], esi
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.68f53fd7
mov esp, ebp
pop ebp
ret 4
or dword [esp + 0x240], 0xffffffff
cmp dword [esp + 0x10], esi
je 0x68f20279
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x14]
jmp 0x68f2023b

Function at 0x68f21232
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
lodsd eax, dword [esi]
stc
invalid

Function at 0x68f21cfe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
out 0xff, al
inc dword [ebx - 0x7a76f33c]
sar al, 1
invalid
Function at 0x68f22511
Capabilities:
Access peb ldr_data

Disassembly:
add ebp, 0x24
push esp
call fcn.68f2036f
sal byte [esi - 0x48], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x68f22533
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.68f2036f
cmove ecx, dword [ecx + edx*4]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.68f2036f
out dx, eax
movsd dword es:[edi], dword [esi]
cli
mov al, 0x49
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x68f2255c
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x68f2255c
call fcn.68f2036f
pushal
cmp al, 0x90
das
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi

Function at 0x68f24b2c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, eax
push dword [esi + 0xc]
call fcn.68f41e8b
mov edi, eax
test edi, edi
je 0x68f24bab
push edi
call fcn.68f24bb1
test al, al
je 0x68f24bab
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
add eax, edi
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
mov ecx, dword [esi + 0xc]
sub ecx, edi
test eax, eax
mov dword [ebp - 8], eax
jbe 0x68f24ba7
lea eax, [edx + 0x10]
push ebx
mov edi, dword [eax]
mov ebx, dword [eax - 8]
cmp edi, ebx
mov edx, dword [eax - 4]
ja 0x68f24b80
mov edi, ebx
cmp ecx, edx
jb 0x68f24b8a
add edi, edx
cmp ecx, edi
jbe 0x68f24b9a
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
add eax, 0x28
cmp edx, dword [ebp - 8]
jb 0x68f24b72
jmp 0x68f24ba6
mov eax, dword [ebp - 4]
inc eax
sub ecx, edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
pop ebx
mov al, 1
jmp 0x68f24bad
xor al, al
pop edi
pop esi
leave
ret
Function at 0x68f24c7e
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x68f577ca
call fcn.68f54ccb
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x68f24c9e
mov edi, dword [sym.GrooveUtil.DLL_wchar_t_const__const_raw_GCStr::SAFE_EMPTY_STRING_CBSTR]
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x68f24d2d
call fcn.68f54fb0
mov ebx, esp
push ebx
push esi
push dword [ebp - 0x18]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x68f721ec
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x68f24d3a
mov eax, dword [ebp - 0x1c]
cmp word [eax + 0xc], 0
je 0x68f24d0b
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x14]
push str._hu._02hu._hu._hu
push eax
call sym.GrooveUtil.DLL_public:_long_int___cdecl_GCStr::Format_wchar_t_const__
add esp, 0x18
jmp 0x68f24d3a
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x14]
push str._hu._02hu._hu
push eax
call sym.GrooveUtil.DLL_public:_long_int___cdecl_GCStr::Format_wchar_t_const__
add esp, 0x14
jmp 0x68f24d3a
push str.0.0.0
lea ecx, [ebp - 0x14]
call sym.GrooveUtil.DLL_public:_void___thiscall_GCStr::Set_wchar_t_const__
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.68ef1154
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.68f54d4e
ret 4
Function at 0x68f54c56
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x68fa7ff8], 0
push esi
jne 0x68f54bc9
call fcn.68f54af4
test eax, eax
je 0x68f54c0c
mov eax, dword [0x68fa7ff8]
cmp eax, 1
jne 0x68f54bea
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x68f54c0c
pop esi
ret
push eax
call dword [0x68fa8000]
test eax, eax
jne 0x68f54c54
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x68f54c10
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x68fa7ff8]
call dword [0x68fa8000]
mov edi, eax
test edi, edi
je 0x68f54c37
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x68f54c53
lea edi, [esi + 0xff0]
push esi
push dword [0x68fa7ff8]
call dword [0x68fa7ffc]
add esi, 0x10
cmp esi, edi
jb 0x68f54c3d
mov eax, esi
pop edi
pop esi
ret
jmp 0x68f54bb6

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 0x920]
mov eax, dword [ecx + 8]
push esi
push 0
mov dword [edx + 4], eax
mov edx, dword [ecx + 0x920]
mov eax, dword [ecx + 0xc]
push 0
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x920]
push eax
push 0x403a10
push 0
push 0
mov dword [eax], 0x4041a0
call fcn.004103fc
mov esi, eax
add esp, 0x18
mov eax, 0x4041a0
test eax, eax
jne 0x404197
test esi, esi
je 0x404197
push 0xffffffffffffffff
push esi
call dword [0x41f188]
lea eax, [ebp - 4]
push eax
push esi
call dword [0x41f178]
test eax, eax
je 0x404197
cmp dword [ebp - 4], 0
jne 0x404197
push 0x1f4
call dword [0x41f184]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x42a4e0], ecx
inc eax
cmp eax, 0x100
jb 0x40d353
cmp eax, 0x800
jae 0x40d423
nop
mov edx, dword [eax*4 + 0x42a0e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x42a4e0]
mov dword [eax*4 + 0x42a4e0], edx
inc eax
cmp eax, 0x800
jb 0x40d400
mov dword [0x4293fc], 0x40dfe0
call fcn.0040e170
mov ecx, dword [0x4293fc]
test eax, eax
mov edx, 0x40e080
cmove ecx, edx
mov dword [0x4293fc], ecx
pop ecx
ret
Function at 0x40e680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x40e6a0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x40e6c9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40e6c6
inc esi
cmp esi, edx
jb 0x40e6b7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x40e7d1
cmp ecx, 3
jbe 0x40e6e2
xor eax, eax
jmp 0x40e720
dec ecx
shl eax, cl
and eax, 7
je 0x40e720
movzx ecx, byte [eax + 0x424a94]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x424a8c], 0
mov cl, byte [edx + 4]
je 0x40e70a
test cl, cl
je 0x40e70a
cmp cl, 0xff
jne 0x40e71d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x40e6b0
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x40e742
cmp cl, 0xff
je 0x40e742
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x40e6b0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x40e79e
movzx edx, byte [eax + 0x424a94]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40e78a
cmp dl, 0xff
jne 0x40e79e
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40e760
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x40e6b0
pop esi
pop ebx
cmp ecx, 3
jbe 0x40e7e6
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401990
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x430]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a16
mov ecx, dword [0x404290]
lea eax, [esp + 0x14]
push 0x104
push eax
push 6
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x120]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x118]
push 0x10
push ebp
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401a8d
mov eax, dword [esp + 0x42c]
lea edx, [esp + 0x10]
push 0
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401a3e
cmp dword [esp + 0x10], edi
jne 0x401a3e
mov ebp, 1
jmp 0x401a89
mov edx, dword [0x404290]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push 6
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x118]
push 0x10
push 0
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x401a94
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x414
ret 0xc
Function at 0x401e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401ee2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x401ef0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push edi
xor esi, esi
push ebx
push esi
push esi
push ebp
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x401fee
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00401e80
test eax, eax
jne 0x402000
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00401e80
test eax, eax
jne 0x402000
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call esi
add esp, 8
test eax, eax
jne 0x401fa6
lea edx, [esp + 0x10]
push 0x404260
push edx
call esi
add esp, 8
test eax, eax
jne 0x401fa6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x401fa9
mov byte [eax], 0
lea ecx, [esp + 0x218]
push 0x208
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00402020
lea eax, [esp + 0x218]
push 0x40425c
push eax
call edi
lea ecx, [esp + 0x218]
push ebp
push ecx
call edi
lea edx, [esp + 0x218]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x40200f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret 8
Function at 0x402020
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x808
mov eax, dword [esp + 0x80c]
push ebx
push ebp
xor ebx, ebx
mov cl, byte [eax]
or ebp, 0xffffffff
push esi
push edi
test cl, cl
mov dword [esp + 0x10], eax
je 0x40210b
mov ecx, dword [esp + 0x824]
add ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
cmp ebx, dword [esp + 0x14]
jge 0x402123
mov esi, dword [esp + 0x820]
mov dl, byte [eax]
mov byte [ebx + esi], dl
mov cl, byte [eax]
cmp cl, 0x25
jne 0x4020e2
cmp ebp, 0xffffffff
jne 0x402078
mov ebp, ebx
jmp 0x4020e2
mov eax, ebx
lea esi, [esi + ebp + 1]
sub eax, ebp
lea edi, [esp + 0x18]
dec eax
push 0x400
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x1c], 0
lea eax, [esp + 0x41c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x4020db
mov edx, dword [esp + 0x820]
mov ecx, eax
lea esi, [esp + 0x418]
lea ebx, [eax + ebp - 1]
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
or ebp, 0xffffffff
mov cl, byte [eax + 1]
inc eax
inc ebx
mov dword [esp + 0x10], eax
test cl, cl
jne 0x402052
mov eax, dword [esp + 0x820]
pop edi
pop esi
pop ebp
mov byte [ebx + eax], 0
pop ebx
add esp, 0x808
ret 0xc
mov ecx, dword [esp + 0x820]
pop edi
pop esi
pop ebp
mov byte [ebx + ecx], 0
pop ebx
add esp, 0x808
ret 0xc
mov edx, dword [esp + 0x820]
pop edi
pop esi
pop ebp
mov byte [ebx + edx], 0
pop ebx
add esp, 0x808
ret 0xc