joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014c2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor esi, esi
mov edi, 0x1f4
lea eax, [ebp - 0x410]
push edi
push esi
push eax
call fcn.00402d30
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x408970
push edi
push eax
push 0x40606c
push str.Group
push str.Shortcuts
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4016c1
lea eax, [ebp - 0x21c]
lea edi, [ebp - 0x21c]
push eax
push 0xf2
call fcn.00401153
add esp, 8
push edi
push esi
push 0x180
push 0x3ed
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
mov dword [ebp - 0xc], eax
push 0x10
push 0x401111
push 0x406064
call sub.USER32.dll_DdeInitializeA
test eax, eax
jne 0x4016c1
push 4
push 0x3000
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4015a5
push 0x10
push str.Error
push str.Cant_alloc_memory_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x406064]
push eax
call sub.USER32.dll_DdeUninitialize
jmp 0x4016c1
lea eax, [ebp - 0x410]
mov byte [ebx], 0
push eax
push str._DeleteGroup__s__
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x3ec
push str.PROGMAN
push dword [0x406064]
call sub.USER32.dll_DdeCreateStringHandleA
mov esi, eax
test esi, esi
je 0x40164b
push 0x406040
mov eax, dword [0x406064]
push esi
push esi
push eax
call sub.USER32.dll_DdeConnect
push 0
mov dword [ebp - 4], eax
push 1
push 0
push 0
push ebx
call fcn.00402d90
add esp, 4
inc eax
push eax
push ebx
push dword [0x406064]
call sub.USER32.dll_DdeCreateDataHandle
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x2710
push 0x4050
push 0
push 0
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp - 8]
call sub.USER32.dll_DdeClientTransaction
push dword [ebp - 8]
call sub.USER32.dll_DdeFreeDataHandle
push esi
push dword [0x406064]
call sub.USER32.dll_DdeFreeStringHandle
push dword [ebp - 4]
call sub.USER32.dll_DdeDisconnect
push 0x8000
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [0x406064]
push eax
call sub.USER32.dll_DdeUninitialize
lea eax, [ebp - 0x410]
push eax
push 0xa1
call fcn.00401153
add esp, 8
lea ecx, [ebp - 0x21c]
mov ebx, 0x3ed
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push dword [ebp - 0xc]
push 0x182
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
push esi
push 0x180
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
push eax
push 0x186
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
xor esi, esi
push 0x1194
mov edi, 0x4070e0
push esi
push edi
call fcn.00402d30
add esp, 0xc
push 0x408970
push 0xfa0
push edi
push 0x40606c
push esi
push str.INI_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b0c
push 0x4083a0
push 0xf0
call fcn.00401153
add esp, 8
lea eax, [0x4083a0]
push eax
push esi
push 0x180
push 0x3ed
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401aac
mov edi, 0x408210
mov ebx, 0x408080
push 0x408970
lea eax, [esi + 0x4070e0]
push 0x100
push edi
push 0x40606c
push eax
push str.INI_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push ebx
push edi
call fcn.00401079
add esp, 0xc
push 1
push 0x4081ac
push edi
call fcn.00401079
add esp, 0xc
push 2
push 0x40833c
push edi
call fcn.00401079
add esp, 0xc
push ebx
call fcn.004010dd
add esp, 4
test eax, eax
je 0x401a85
push ebx
push 0
push 0x40833c
push 0x4081ac
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
push 0x100
push edi
push 0x40606c
push 0
push 0x4081ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x401a85
push ebx
push 0
push 0
push 0x4081ac
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esi + 0x4070e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + esi + 0x4070e1]
lea esi, [eax + esi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4019e3
push 0x4072d4
push 0xa1
xor esi, esi
call fcn.00401153
add esp, 8
mov edi, 0x3ed
push eax
push 0x4083a0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push dword [ebp - 4]
push 0x182
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [0x4083a0]
push eax
push esi
push 0x180
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
push eax
push 0x186
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b13
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401ca4
lea eax, [ebp - 0x344]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x408570
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
lea ecx, [ebp - 0x344]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401ca4
lea eax, [ebp - 0x144]
push eax
push 0x4061b4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x401bfb
mov edi, 0x3ea
test byte [ebp - 0x144], 0x10
jne 0x401bdd
lea eax, [ebp - 4]
lea ecx, [ebp - 0x344]
push eax
lea edx, [ebp - 0x118]
push ecx
lea ebx, [ebp - 0x344]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push ebx
push 0xffffffffffffffff
push 0x1a2
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
jne 0x401bdd
push ebx
push 0
push 0x180
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401b88
cmp esi, 0xffffffff
je 0x401bfb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x144]
push eax
push 0x4061b4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x401ca4
mov edi, 0x100
test byte [ebp - 0x144], 0x10
je 0x401c86
cmp byte [ebp - 0x118], 0x2e
je 0x401c86
lea eax, [ebp - 4]
lea ecx, [ebp - 0x344]
push eax
lea edx, [ebp - 0x118]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [ebp - 0x544]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401c79
push dword [ebp + 0xc]
lea ecx, [ebp - 0x344]
push ecx
call fcn.00401b13
add esp, 8
lea eax, [ebp - 0x544]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c1d
cmp esi, 0xffffffff
je 0x401ca4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cab
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call esi
test eax, eax
je 0x401d0e
push edi
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x200]
push eax
call section..text
add esp, 4
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
je 0x401d67
lea eax, [ebp - 0x200]
push eax
call section..text
add esp, 4
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
jne 0x401cf0
jmp 0x401d67
push dword [ebp + 0xc]
push edi
call fcn.00401b13
add esp, 8
push edi
call esi
test eax, eax
je 0x401d67
push edi
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x200]
push eax
call section..text
add esp, 4
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
je 0x401d67
lea eax, [ebp - 0x200]
push eax
call section..text
add esp, 4
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
jne 0x401d4b
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401d6d
Capabilities:
Delete directory
Delete file
Set file attributes
Terminate process

Disassembly:
cmp dword [esp + 8], 0xffffffff
push ebx
push esi
push edi
push ebp
je 0x401eb1
mov esi, dword [esp + 0x18]
mov ebp, 0x4070e0
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x189
push 0x3ea
push ebx
call edi
push ebp
call fcn.004010dd
add esp, 4
test eax, eax
je 0x401e51
push pe_nt_image_headers32
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401e12
push ebp
mov esi, 0x40720c
push esi
mov ebp, 0x4074c8
push 0xee
call fcn.00401153
add esp, 8
push eax
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x24
push esi
push 0xaa
call fcn.00401153
add esp, 8
push eax
push ebp
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x401e61
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push esi
push 0x182
mov esi, 0x4070e0
push 0x3ea
push ebx
call edi
push esi
call section..text
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x401e61
push esi
call section..text
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401e3b
jmp 0x401e61
push 0
push esi
push 0x182
push 0x3ea
push ebx
call edi
xor esi, esi
push esi
push esi
push 0x18b
push 0x3ea
push ebx
call edi
test eax, eax
jne 0x401ea0
push esi
push 0x3eb
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push 0x3ec
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x401eb1
push 0
push 0
push 0x186
push 0x3ea
push ebx
call edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402ed0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405008
push 0x403ef0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40647c], eax
xor eax, eax
mov al, byte [0x40647d]
mov dword [0x406488], eax
mov eax, dword [0x40647c]
shr dword [0x40647c], 0x10
and eax, 0xff
mov dword [0x406484], eax
shl eax, 8
add eax, dword [0x406488]
mov dword [0x406480], eax
call fcn.00403ed0
mov dword [ebp - 4], 0
call fcn.00403cf0
call fcn.00403ce0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409b9c], eax
call fcn.00403880
mov dword [0x406244], eax
test eax, eax
je 0x402f69
cmp dword [0x409b9c], 0
jne 0x402f73
push 0xffffffffffffffff
call fcn.00403160
add esp, 4
call fcn.00403600
call fcn.00403520
call fcn.00403130
mov esi, dword [0x409b9c]
mov al, byte [esi]
cmp al, 0x22
je 0x402f9a
cmp al, 0x20
jbe 0x402fc7
inc esi
cmp byte [esi], 0x20
ja 0x402f92
jmp 0x402fc7
inc esi
cmp byte [esi], 0x22
je 0x402fc6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x402fc1
xor eax, eax
mov al, bl
push eax
call fcn.004034c0
add esp, 4
test eax, eax
je 0x402fbb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x402fa3
cmp byte [esi], 0x22
jne 0x402fc7
inc esi
cmp byte [esi], 0
je 0x402fd7
cmp byte [esi], 0x20
ja 0x402fd7
inc esi
cmp byte [esi], 0
jne 0x402fcc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x402ffb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403160
jmp 0x40303c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4031a0
Capabilities:
Terminate process

Disassembly:
mov dword [0x4064b4], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4064b0], bl
jne 0x4031fc
cmp dword [0x409b98], 0
je 0x4031ea
mov esi, dword [0x409b90]
sub esi, 4
cmp esi, dword [0x409b98]
jb 0x4031ea
mov eax, dword [esi]
test eax, eax
je 0x4031df
call eax
sub esi, 4
cmp esi, dword [0x409b98]
jae 0x4031d7
push 0x40601c
push 0x406014
call fcn.00403220
add esp, 8
push 0x406024
push 0x406020
call fcn.00403220
add esp, 8
test ebx, ebx
jne 0x40321d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x403880
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x406558], 0
push ebx
push esi
push edi
push ebp
jne 0x4038d0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x4038ae
mov dword [0x406558], 1
mov ebx, dword [esp + 0x10]
jmp 0x4038de
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4038c6
mov dword [0x406558], 2
jmp 0x4038de
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x406558], 1
jne 0x40398d
test edi, edi
jne 0x403901
call esi
mov edi, eax
test edi, edi
jne 0x403901
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40391b
add esi, 2
cmp word [esi], 0
jne 0x403909
add esi, 2
cmp word [esi], 0
jne 0x403909
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40397c
push ebp
call fcn.00404350
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40397c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40396b
push ebx
call fcn.00404330
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406558], 2
jne 0x403a11
test ebx, ebx
jne 0x4039b0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4039b0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4039c5
inc ebp
cmp byte [ebp], 0
jne 0x4039b7
inc ebp
cmp byte [ebp], 0
jne 0x4039b7
sub ebp, ebx
inc ebp
push ebp
call fcn.00404350
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4039ea
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404010
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x4069e8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x404038
add ecx, 8
inc eax
cmp ecx, 0x406a70
jb 0x404028
cmp dword [eax*8 + 0x4069e8], edx
lea ebx, [eax*8]
jne 0x4041f3
cmp dword [0x406250], 1
je 0x4041b8
cmp dword [0x406250], 0
jne 0x40406f
cmp dword [0x406254], 1
je 0x4041b8
cmp edx, 0xfc
je 0x4041f3
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4040ac
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4040f0
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x406abc
push ebp
call fcn.00404470
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
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, 0x406a9c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
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, dword [ebx + 0x4069ec]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004043d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x409a90]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4041cf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4069ec]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4048b0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x409a84], edx
push ebx
push esi
push edi
push ebp
jbe 0x404ab7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x409a90
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x404ab7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x404919
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40492a
push 2
push 0
push edx
call fcn.00404cf0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4049c6
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4049ff
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40498d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40497b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x404962
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4049f5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x40494d
jmp 0x4049ff
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4049f5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4049ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x404aa6
cmp dword [esp + 0x10], 0
je 0x404a58
cmp dword [esp + 0x10], 5
jne 0x404a3b
mov dword [0x406470], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x406474], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00404c80
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x404a82
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x404a82
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x406470], 0x1c
mov dword [0x406474], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x406470], 9
mov dword [0x406474], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x40c800
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c864
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404500
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408250
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c86b
lea eax, [ebp - 0xc]
call fcn.00404290
ret

Function at 0x41ad30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46a884
cmp dword [edi], 0
jne 0x41adac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46a880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x468498
mov ecx, 2
call fcn.00402910
mov edx, 0x41ad08
lea eax, [esi + 5]
call fcn.0041ad28
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ad28
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ad81
mov dword [0x46a880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bfc0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bfc6
ret

Function at 0x41e42c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e47d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e464
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e454
jmp 0x41e47d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e465
pop ebx
mov esp, ebp
pop ebp
ret