joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417f85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x417f94
pop dword [ebp - 0x14]
mov eax, 0xdf2e0eee
add eax, 0x211370a6
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xe8fe60b
sub dword [ebp - 0x24], 0xc03da0c0
mov dword [ebp - 0x20], 0x11892acd
add dword [ebp - 0x20], 0x20aa2178
mov dword [ebp - 0x1c], 0xdcbc4038
sub dword [ebp - 0x1c], 0x906ffc0a
mov dword [ebp - 0x18], 0x37b34748
add dword [ebp - 0x18], 0xc84cb8b8
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x6cc02623
add dword [ebp - 0x24], 0x7b24333
mov dword [ebp - 0x20], 0xc78d6717
sub dword [ebp - 0x20], 0x862105a2
mov dword [ebp - 0x1c], 0x4cd23101
sub dword [ebp - 0x1c], 0xe962c495
mov dword [ebp - 0x18], 0x85d03fb3
sub dword [ebp - 0x18], 0x85d03fb3
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xa6079355
sub eax, 0xa5c56231
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3c6e2
push 0
call eax
mov ecx, 0x427f
mov edi, eax
mov edx, 0x434400
add edx, dword [ebp - 0x14]
mov esi, 0xd0a1db6a
add esi, 0xd2e52387
xor dword [ebp - 8], 0xba43cbd
mov ebx, dword [edx]
sub dword [ebp - 0xc], eax
xor ebx, esi
add dword [ebp - 8], esi
mov dword [edi], ebx
sub dword [ebp - 8], ebx
add edi, 4
add edx, 4
loop 0x4180a5
add eax, 0xefb6c7fd
add eax, 0x104a34d2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcf2c0f65
sub ecx, 0xceec0f65
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x436ff3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x437002
pop dword [ebp - 0x10]
mov eax, 0x437002
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xf114a59c
sub dword [ebp - 0x20], 0xa2c26051
mov dword [ebp - 0x1c], 0xb857929f
add dword [ebp - 0x1c], 0x79dbb9a6
mov dword [ebp - 0x18], 0x3679d383
add dword [ebp - 0x18], 0x15d270ab
mov dword [ebp - 0x14], 0x43fbf85e
add dword [ebp - 0x14], 0xbc0407a2
lea eax, [ebp - 0x20]
push eax
mov eax, 0x1ae89a4e
sub eax, 0x1aa4d822
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xc41c5c2a
sub dword [ebp - 0x20], 0x4fa9f2d4
mov dword [ebp - 0x1c], 0x393eef6b
add dword [ebp - 0x1c], 0x82d720a
mov dword [ebp - 0x18], 0x6f9994b4
sub dword [ebp - 0x18], 0xc2a2848
mov dword [ebp - 0x14], 0x8107d266
add dword [ebp - 0x14], 0x7ef82d9a
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xdc89512
add eax, 0xf27b2dde
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x479db
push 0
call eax
mov ecx, 0x4ed8
xor edi, edi
add edi, eax
mov edx, 0xceb84d0a
add edx, 0x318f08f6
add edx, dword [ebp - 0x10]
mov esi, 0xfdd69cea
add esi, 0x424df9b7
sub dword [ebp - 0xc], 0x76ddafff
mov ebx, dword [edx]
mov dword [ebp - 4], 0xa551a0a2
xor ebx, esi
add dword [ebp - 4], 0x465c8de0
mov dword [edi], ebx
xor dword [ebp - 4], eax
add edi, 0xa1a4278c
add edi, 0x5e5bd878
add edx, 4
loop 0x43711b
add eax, 0x8f50c5bd
add eax, 0x70b06876
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9877aa7e
add ecx, 0x67c85582
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0xe
call ebx
add byte [esi + edi], 0x6d
call ebx
xor byte [esi + edi], 1
call ebx
add byte [esi + edi], 0x21
call ebx
add byte [esi + edi], 0x47
call ebx
add byte [esi + edi], 0x2b
call ebx
add byte [esi + edi], 0xca
call ebx
xor byte [esi + edi], 0x59
call ebx
add byte [esi + edi], 0x23
call ebx
add byte [esi + edi], 0x69
call ebx
xor byte [esi + edi], 0x61
call ebx
add byte [esi + edi], 0x66
call ebx
add byte [esi + edi], 0xe0
call ebx
add byte [esi + edi], 0x5f
call ebx
add byte [esi + edi], 0x7f
call ebx
add byte [esi + edi], 0x2a
call ebx
xor byte [esi + edi], 0xf5
call ebx
add byte [esi + edi], 0xe3
call ebx
add byte [esi + edi], 0x7a
call ebx
add byte [esi + edi], 0xac
call ebx
add byte [esi + edi], 0x52
call ebx
add byte [esi + edi], 0x45
call ebx
add byte [esi + edi], 0x9b
call ebx
add byte [esi + edi], 0x15
call ebx
add byte [esi + edi], 0x2f
call ebx
xor byte [esi + edi], 0xbc
call ebx
add byte [esi + edi], 0xec
call ebx
add byte [esi + edi], 0xa5
call ebx
add byte [esi + edi], 0xf5
call ebx
add byte [esi + edi], 0x3e
call ebx
add byte [esi + edi], 0xd0
call ebx
xor byte [esi + edi], 0x94
call ebx
xor byte [esi + edi], 0xc8
call ebx
xor byte [esi + edi], 0xcf
call ebx
add byte [esi + edi], 0xe0
call ebx
add byte [esi + edi], 0xf8
call ebx
xor byte [esi + edi], 0xd7
call ebx
add byte [esi + edi], 0xe8
call ebx
add byte [esi + edi], 0xe3
call ebx
xor byte [esi + edi], 0xb7
call ebx
add byte [esi + edi], 0xfa
call ebx
xor byte [esi + edi], 5
call ebx
add byte [esi + edi], 0x4e
call ebx
xor byte [esi + edi], 0x5b
call ebx
add byte [esi + edi], 0xdd
call ebx
xor byte [esi + edi], 0xb5
call ebx
add byte [esi + edi], 0x68
call ebx
add byte [esi + edi], 0xca
call ebx
add byte [esi + edi], 0xcb
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x4460ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x40699c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406988
add esp, 0x208
pop ebx
ret

Function at 0x408eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404dd4
jmp 0x408ef6
mov eax, ebx
mov edx, esi
call fcn.00404c98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408f22
movzx eax, word [esp]
jmp 0x408f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4096ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094c0
mov esi, eax
mov eax, dword [0x412c58]
cmp byte [eax], 0
je 0x409779
mov eax, dword [0x412b94]
call fcn.0040317c
call fcn.00402f6c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409688]
call fcn.00405ad8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4097b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405b90
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d8
lea eax, [ebp - 4]
mov edx, dword [0x409688]
call fcn.00405ae4
ret
Function at 0x40aa03
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404914
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40aa26
mov eax, edi
add eax, eax
call fcn.00402e04
mov esi, eax
jmp 0x40aa28
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40aa61
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40aa4b
mov eax, esp
cmp esi, eax
je 0x40aa6e
mov eax, esi
call fcn.00402e20
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40aaa8
cmp bl, 0
je 0x40aaa4
cmp bl, 0x41
jl 0x40aa9f
cmp bl, 0x5a
jg 0x40aa9f
or bl, 0x20
xor al, bl
inc esi
jmp 0x40aa83
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a9e8

Function at 0x40b698
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b6de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b62c
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b6e5
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ba0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40baa3
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40ba57
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00404dd4
jmp 0x40ba8d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40ba70
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404cec
jmp 0x40ba83
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b8cc
mov ebx, eax
test esi, esi
je 0x40ba83
dec esi
jmp 0x40ba5e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40baaa
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40bab4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408218
add esp, 0x208
pop ebx
ret

Function at 0x40bae0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408218
add esp, 0x208
pop ebx
ret
Function at 0x40bc44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bd7c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40bd66
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bca1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bd66
cmp dword [ebp - 0x14], 0
jne 0x40bcb8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404c98
mov bl, 1
jmp 0x40bd66
cmp dword [ebp - 0x14], 0x70000000
jb 0x40bcc6
call fcn.00409818
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404dd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004054ac
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40bc6a
test eax, eax
jne 0x40bd66
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bd14
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bd66
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40bd1c
dec esi
test esi, esi
je 0x40bd2b
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40bd1b
cmp dword [ebp - 0x10], 7
jne 0x40bd36
test esi, esi
je 0x40bd36
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404f00
cmp dword [ebp - 0x10], 7
jne 0x40bd59
test esi, esi
je 0x40bd59
lea eax, [ebp - 4]
call fcn.004054ac
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd83
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40c800
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417da0
mov eax, esi
mov edx, 8
test al, 1
je 0x40c81c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c81e
shr eax, 1
dec edx
jne 0x40c80f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c808
pop esi
ret

Function at 0x40c834
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417d9c], 0
jne 0x40c857
call fcn.0040c800
push 1
push 0x417d9c
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40c882
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417da0]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c85d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40e1cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e180
test al, al
jne 0x40e1ed
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e239
xor eax, eax
push ebp
push 0x40e229
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e230
lea eax, [ebp - 0xc]
call fcn.0040e1bc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e478
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e480
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e56d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040bb0c
mov edx, dword [ebp - 8]
mov ecx, 0x40e588
xor eax, eax
call fcn.0040e35c
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e53b
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e49a
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040dfec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407ee8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040c094
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040dfbc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d5c]
call fcn.00409824
call fcn.00403f88
jmp 0x40e49a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e574
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e658
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e6b2
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e67e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e68c
cmp edi, 1
jle 0x40e68c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e1cc
test eax, eax
jne 0x40e6b2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e6b2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e6b2
inc edi
dec esi
jne 0x40e66e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e6bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e6e0
mov eax, dword [ebp - 4]
jmp 0x40e6e3
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x40e6e8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e735
xor ebx, ebx
jmp 0x40e72a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bdc
test eax, eax
jne 0x40e729
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e7df
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e70b
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e741
je 0x40e74a
jmp 0x40e753
call fcn.0040bdc4
mov esi, eax
jmp 0x40e755
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e755
xor esi, esi
test si, si
je 0x40e7df
xor ebx, ebx
jmp 0x40e77b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e77a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e7df
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e762
xor ebx, ebx
jmp 0x40e7d4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e7d3
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e7c8
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e6bc
push eax
mov eax, esi
call fcn.0040e6bc
pop edx
cmp edx, eax
jne 0x40e7d3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e7df
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e78a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40ebcc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eca1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ecbc
push ebx
push 0x40eccc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ec4c
mov al, 0x6a
call fcn.0040e7ec
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eba0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ec55
call fcn.0040eba0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eca8
lea eax, [ebp - 4]
call fcn.00404c88
ret
Function at 0x40ed54
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee1f
jmp 0x40ee13
cmp dword [esi + 0x10], 0x1000
jne 0x40edff
test byte [esi + 0x15], 1
jne 0x40edff
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb0
cmp ebp, 2
je 0x40edb0
cmp ebp, 0x10
je 0x40edb0
cmp ebp, 0x20
jne 0x40edcc
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edcc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40eddd
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed4c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd0
cmp byte [esp + 4], 0
je 0x40edff
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee1f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed85
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret