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

Disassembly:
mov eax, dword [0x439e70]
push ebx
push ebp
push esi
mov esi, dword [ecx + 6]
push edi
mov edi, edx
mov edx, dword [ecx + 2]
xor edx, eax
mov eax, edx
mov dword [ecx + 2], edx
mov edx, dword [ecx + 0xa]
xor esi, eax
mov eax, dword [esp + 0x14]
xor esi, edx
add esi, eax
xor edx, edx
mov eax, esi
mov ebx, dword [ecx + 6]
mov ebp, dword [eax]
xor ebp, ebx
inc edx
mov dword [eax], ebp
mov ebx, dword [ecx + 0xa]
mov ebp, dword [eax + 4]
add eax, 4
xor ebp, ebx
inc edx
mov dword [eax], ebp
add eax, 4
cmp edx, 0x14
jl 0x42f979
mov ecx, dword [edi]
call fcn.00433450
mov dword [edi], 0
cmp word [0x439f00], 0
je 0x42f9bc
cmp word [0x43629a], 0
je 0x42f9bc
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42fa20
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
mov byte [0x439d34], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x42fa53
mov byte [esp + 0x110], 0x63
mov byte [esp + 0x111], al
push edi
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x42fa95
cmp byte [esp + edx + 0x114], 0x5c
je 0x42fa8d
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x42fa6b
jmp 0x42fa95
mov byte [esp + edx + 0x115], 0
lea ecx, [esp + 0x10]
push 0x104
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x22c]
push 0x104
lea eax, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x42fbee
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call fcn.00433f5e
add esp, 0xc
xor eax, eax
mov dl, 0x38
mov cl, byte [esp + eax + 0x10]
cmp cl, 0x30
jl 0x42faff
cmp cl, 0x39
jg 0x42faff
mov byte [eax + 0x439d2c], cl
jmp 0x42fb05
mov byte [eax + 0x439d2c], dl
inc eax
cmp eax, 8
jl 0x42fae9
mov edi, 0x439d2c
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x19]
mov dl, byte [esp + 0x1b]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x439d2d], al
mov al, byte [esp + 0x17]
mov cl, byte [esp + 0x14]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x439d2e], al
mov al, byte [esp + 0x16]
mov byte [0x439d2f], dl
mov dl, byte [0x439d2e]
xor al, 0x7f
xor dl, 0x7f
xor cl, 0x7f
mov byte [0x439d30], dl
mov dl, byte [0x439d2d]
xor al, 0x7f
xor cl, 0x7f
xor dl, 0x7f
cmp al, 0x30
mov byte [0x439d31], 0
mov byte [0x439d2c], al
mov byte [0x439d2e], cl
mov byte [0x439d2d], dl
pop esi
jne 0x42fba6
mov byte [0x439d2c], 0x31
mov eax, 1
mov dl, 0x35
mov cl, byte [eax + 0x439d2c]
cmp cl, 0x30
jb 0x42fbbd
cmp cl, 0x39
jbe 0x42fbc3
mov byte [eax + 0x439d2c], dl
inc eax
cmp eax, 5
jl 0x42fbad
mov edx, 0x436428
mov ecx, 0x439d2c
call fcn.004338f0
xor ecx, ecx
mov dword [0x439d38], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
add esp, 0x318
ret
mov edx, 0x436420
mov ecx, 0x436408
call fcn.00433460
xor eax, eax
pop edi
add esp, 0x318
ret
Function at 0x430590
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [0x439f04]
mov eax, 0x60000
test eax, ecx
jne 0x4305b8
mov edx, ecx
mov ecx, dword [0x439e70]
or edx, eax
xor ecx, eax
mov dword [0x439f04], edx
mov dword [0x439e70], ecx
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x436258
push SysReAllocStringLen
call esi
test eax, eax
je 0x430638
lea ecx, [esp + 4]
push ecx
push 0x436258
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4305fc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, SysReAllocStringLen
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0x436258
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4305f4
push 0x436258
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, SysReAllocStringLen
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, SysReAllocStringLen
pop esi
pop ecx
ret
Function at 0x431060
Capabilities:
Get common file path

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push 0x104
mov edi, edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x431091
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x4310b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__lopen]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push 0x1a3
push 0x436490
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43111d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
lea ecx, [edi - 0x104]
test ecx, ecx
jle 0x43114f
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
sub edi, 0x104
cmp edi, 0x104
jg 0x431127
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
push ebx
call ebp
lea edx, [esp + 0x118]
mov edi, dword [esp + 0x10]
push 0x200
push edx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4311ce
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
jne 0x431203
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
je 0x4311e2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call ebp
push ebx
call ebp
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x4318f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x439d5c]
sub esp, 0xc
lea eax, [esp + 8]
push ebp
push esi
push eax
push 0x436268
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x43191a
pop esi
mov ax, 2
pop ebp
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x43193e
pop esi
mov ax, 3
pop ebp
add esp, 0xc
ret
mov eax, dword [0x439d5c]
lea edx, [esp + 8]
push edx
push ebp
push 0x436268
push eax
mov dword [esp + 0x18], 0xbb80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x431990
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop esi
pop ebp
add esp, 0xc
ret
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
dec edx
push ecx
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.004335e0
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add eax, 8
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x4319de
mov edi, dword [0x439d3c]
mov ecx, 3
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4319de
mov ecx, dword [esp + 0x10]
add eax, 0xc
inc ebx
cmp ebx, ecx
jl 0x4319bf
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push ebp
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
cmp ebx, eax
pop ebx
je 0x431a36
or byte [0x439d04], 0x20
pop esi
mov ax, 1
pop ebp
add esp, 0xc
ret
pop esi
xor ax, ax
pop ebp
add esp, 0xc
ret
Function at 0x432320
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x439d3c]
push eax
push 0xa
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x439d68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4323c3
mov eax, dword [0x439bf8]
test ah, 0x30
jne 0x43235d
test ah, 1
je 0x432362
mov eax, 1
ret
test ah, 1
jne 0x43238f
test ah, 0x10
mov cl, 8
je 0x432371
test byte [0x439bcc], cl
jne 0x43238f
cmp byte [0x439ce3], 2
jne 0x4323e5
movsx edx, word [0x439ce1]
mov eax, dword [0x439bec]
shl edx, 6
test byte [edx + eax + 0x28], cl
je 0x4323e5
mov ecx, dword [0x439d68]
push 0xa
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 2
jne 0x4323de
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
ret
mov edx, dword [0x439d68]
push 0xa
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
ret
Function at 0x4325d0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
or ecx, 0xffffffff
mov byte [ebp], 0
mov edi, dword [0x439ef4]
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], esi
jne 0x4325fb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov eax, dword [0x439ef4]
push 0x3a
push eax
call fcn.00433fc0
add esp, 8
test eax, eax
mov eax, dword [0x439ef4]
jne 0x432705
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x432630
cmp byte [eax + 1], cl
je 0x432705
cmp cl, 0x2e
jne 0x432640
mov cl, byte [eax + 1]
lea ebx, [eax + 1]
cmp cl, 0x5c
je 0x43266e
push 0x4364dc
push eax
mov ebx, eax
call fcn.00434180
add esp, 8
test eax, eax
je 0x43266e
lea ebx, [eax + 2]
push 0x4364dc
push ebx
inc esi
call fcn.00434180
add esp, 8
test eax, eax
jne 0x432654
mov dword [esp + 0x10], esi
cmp byte [edi], 0x22
jne 0x432674
inc edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test esi, esi
jl 0x4326b2
push 0x5c
push ebp
call fcn.00434230
add esp, 8
test eax, eax
je 0x4325f3
dec esi
mov byte [eax], 0
jns 0x432699
cmp byte [ebx], 0x5c
je 0x4326e1
mov edi, 0x436130
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x43271f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x432740
mov byte [ecx + ebp], 0x5c
mov byte [ecx + ebp + 1], 0
mov ecx, dword [0x439d3c]
mov esi, 0x439f08
add ecx, 9
mov eax, 1
dec esi
mov dl, byte [ecx]
mov byte [esi + eax], dl
inc eax
dec ecx
cmp eax, 8
jl 0x432754
mov byte [eax + 0x439f08], 0
mov edi, 0x439f08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4327a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [0x439ef0]
sub esp, 0x104
test eax, eax
push esi
jne 0x4327bb
xor ax, ax
pop esi
add esp, 0x104
ret
lea ecx, [esp + 4]
call fcn.004325d0
test eax, eax
jne 0x4327d4
mov ax, 1
pop esi
add esp, 0x104
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 4
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x4364d8], eax
jne 0x432862
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00434200
add esp, 4
call fcn.0043420a
cdq
mov ecx, 0x1f4
idiv ecx
cmp dx, 0xc8
jae 0x432826
add edx, 0xc8
and edx, 0xffff
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 4]
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 4
push 0
push 3
push 0xc0000000
push edx
call esi
cmp eax, 0xffffffff
mov dword [0x4364d8], eax
jne 0x432862
mov ax, 1
pop esi
add esp, 0x104
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
je 0x432882
mov ecx, 1
mov dword [0x439f18], ecx
call fcn.004329f0
jmp 0x432892
mov ecx, 0x439f18
call fcn.004329c0
inc dword [0x439f18]
mov eax, dword [0x439f18]
mov ecx, dword [0x439ef0]
cmp eax, ecx
ja 0x4328e7
call fcn.004325b0
mov ecx, dword [0x439f18]
call fcn.004329f0
mov ecx, dword [0x4364d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 4]
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 4
push 0
push 3
push 0xc0000000
push edx
call esi
mov dword [0x4364d8], eax
xor ax, ax
pop esi
add esp, 0x104
ret
mov eax, dword [0x4364d8]
cmp eax, 0xffffffff
je 0x4328f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x439d68]
push 0xa
push 0
push 0
push 6
push eax
mov dword [0x4364d8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ax, 2
pop esi
add esp, 0x104
ret

Function at 0x4329f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov edx, dword [0x4364d8]
lea eax, [esp + 4]
shl ecx, 0x12
xor ecx, 0x20202020
push 0
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x4364d8]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add esp, 8
ret

Function at 0x432a30
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x439d5c]
lea eax, [esp + 4]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x432a53
mov eax, 1
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x439d5c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ecx
ret
Function at 0x4331d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x35c
lea eax, [esp + 0x54]
push edi
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43328a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x160]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x17c]
push 0
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x43328a
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [0x439f1c], ecx
mov ecx, dword [0x439ce4]
mov dword [0x439f24], eax
mov eax, 1
inc ecx
mov dword [0x439f28], eax
mov dword [0x439ce4], ecx
pop edi
add esp, 0x35c
ret
xor eax, eax
pop edi
add esp, 0x35c
ret

Function at 0x433460
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, 0x43657c
or ecx, 0xffffffff
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebx
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4025ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4025db
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00402c2c
jmp 0x4025f9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402540
mov edi, eax
test ebx, ebx
je 0x4025f9
cmp dword [esi], 0
je 0x4025f9
dec ebx
jmp 0x4025e2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403908
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x403934
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
mov esi, dword [0x408608]
movzx ebx, word [esi + ebx*2]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x40390e
pop esi
pop ebx
ret

Function at 0x403940
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x403a28
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.00403b38
mov edx, eax
lea ecx, [ebp - 4]
mov eax, esi
call fcn.00403de4
mov edx, dword [ebp - 4]
mov eax, 0x403a40
call fcn.00402e58
test eax, eax
jg 0x403a0d
jmp 0x40399a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00402e10
cmp dword [ebp - 4], 0
je 0x4039a8
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
je 0x403988
cmp dword [ebp - 4], 0
je 0x403a0d
mov eax, edi
call fcn.00403b38
mov edx, eax
lea ecx, [ebp - 8]
mov eax, edi
call fcn.00403de4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00402cc8
mov eax, dword [ebp - 8]
call fcn.00403e8c
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
call fcn.00402be0
lea eax, [ebp - 8]
mov edx, 0x403a4c
call fcn.00402cc8
mov eax, dword [ebp - 8]
call fcn.00402d90
call fcn.00403cfc
test al, al
je 0x403a0d
mov eax, dword [ebp - 4]
call fcn.00402d90
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a2f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402b6c
ret
Function at 0x403a88
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x408610
lea edi, [ebp - 8]
mov edx, 0x8000
mov eax, dword [esi]
call fcn.00403938
add eax, 2
call fcn.004023c0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x403b27
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jle 0x403b0c
push 0
push edi
mov edx, 0x8000
mov eax, dword [esi]
call fcn.00403938
push eax
mov ebx, dword [ebp - 4]
push ebx
mov eax, dword [0x408614]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [edi]
sub dword [esi], eax
push 0
push edi
mov eax, dword [edi]
push eax
push ebx
mov eax, dword [0x408618]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, 0x40860c
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.00403908
cmp dword [esi], 0
jg 0x403ac3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b2e
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004023d8
ret
Function at 0x404cd4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x7d1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetDlgItem
mov ebx, eax
push 0x7d3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetDlgItem
mov esi, eax
push 0xc010
push 0x7d1
push 0x7d3
mov eax, dword [0x4085d4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DlgDirListA
mov eax, dword [0x4085d4]
push eax
push 0x104
push 0xd
push ebx
call sub.user32.dll_SendMessageA
mov eax, dword [0x4085d4]
push eax
push 0
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0x40707c
push 0
push 0x1a2
push esi
call sub.user32.dll_SendMessageA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404d7c
push 0
push ebx
push 0x182
push esi
call sub.user32.dll_SendMessageA
push 0x40707c
push 0
push 0x181
push esi
call sub.user32.dll_SendMessageA
push esi
call sub.user32.dll_SetFocus
push 0
push 0
push 0x186
push esi
call sub.user32.dll_SendMessageA
pop esi
pop ebx
pop ebp
ret

Function at 0x404d98
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402d80
xor eax, eax
push ebp
push 0x404e19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x160
call fcn.004023c0
mov ebx, eax
push 0x4301
push 0x160
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00402d90
push eax
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x408624], eax
mov eax, edi
lea edx, [ebx + 0xc]
mov ecx, 0x104
call fcn.00402ca8
mov eax, dword [ebx + 4]
mov dword [esi], eax
mov eax, ebx
call fcn.004023d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e20
lea eax, [ebp - 4]
call fcn.00402b4c
ret