joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410880
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.0040a7e0
test eax, eax
je 0x41090b
call fcn.0040fba0
test eax, eax
je 0x410903
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x4108f6
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x4108e3
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x4108c4
call fcn.0040fba0
test eax, eax
jne 0x4108b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.0040d9b0
add esp, 0x1c
ret
Function at 0x411a20
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov eax, dword [0x42ad1c]
sub esp, 0x14
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
je 0x411b70
mov ecx, dword [0x42ad20]
mov edx, dword [eax*4 + 0x42ab50]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x411a42
mov eax, dword [0x42ac10]
test eax, eax
je 0x411b70
cmp dword [eax + 8], 1
jne 0x411b70
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x411b70
mov edi, 0x425468
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [0x425358], 0x4086a0
test ecx, ecx
mov dl, 0x2c
lea ebp, [esp + 0x10]
jle 0x411aaf
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x425468]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x411a95
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x411b3c
mov edi, 0x425474
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dl, 0x2c
test ecx, ecx
lea ebp, [esp + 0x10]
jle 0x411afb
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x425474]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x411ae1
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x20], edx
je 0x411b3c
cmp byte [eax], 0xcc
je 0x411b30
call eax
test eax, eax
je 0x411b3c
mov dword [0x42ac60], 1
jmp 0x411b70
mov eax, dword [0x42ac10]
mov dword [0x42535c], 0x409410
test eax, eax
je 0x411b66
cmp dword [eax + 8], 1
jne 0x411b66
mov ecx, dword [eax + 0x14]
mov dword [0x425358], 0x408c40
test ecx, ecx
je 0x411b70
mov dword [0x425358], 0x408ee0
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [0x42ad1c], eax
mov dword [0x42a944], esi
mov ecx, dword [eax*4 + 0x42abd0]
mov dword [0x42a940], esi
cmp ecx, esi
je 0x411ba3
mov edx, dword [ecx]
add ecx, 4
mov dword [0x42a944], edx
mov dword [0x42a940], ecx
mov ecx, dword [eax*4 + 0x42ab90]
mov edx, dword [0x42ad20]
mov dword [0x42ac10], ecx
mov ecx, dword [eax*4 + 0x42ab50]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x411bbd
mov eax, dword [0x42ac10]
cmp eax, esi
je 0x411be5
cmp dword [eax + 8], 1
jne 0x411be5
cmp dword [eax + 0x14], esi
jne 0x411be5
mov dword [0x425358], 0x408c40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x412060
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x412080
push 0x180
push esi
call fcn.00419bac
add esp, 8
mov eax, dword [0x42acbc]
test eax, eax
je 0x4120cb
test esi, esi
jne 0x4120ac
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x4120fe
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x412160
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x425d44
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401140
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x412278
push ebx
push ebp
call fcn.004012c0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402180
add esp, 0xc
test eax, eax
je 0x41226e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x412261
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x412261
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x412230
cmp byte [edx + 1], 0x79
jne 0x412230
cmp byte [edx + 2], 0x7a
jne 0x412230
cmp byte [edx + 3], 0x3d
jne 0x412230
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41223b
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x4121f4
jmp 0x412261
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401260
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.00401200
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
push ebp
call fcn.004013c0
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x419bac
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419bd7
test byte [esp + 8], 0x80
je 0x419bc6
and al, 0xfe
jmp 0x419bc8
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x419be8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b15a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b15a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x419d2e
test byte [esp + 8], 2
je 0x419d2e
mov dword [0x42ad6c], 0xd
mov dword [0x42ad70], 5
jmp 0x419d09
xor eax, eax
ret

Function at 0x41e799
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42a3c0
cmp edx, dword [eax]
je 0x41e7bb
add eax, 8
inc ecx
cmp eax, 0x42a450
jl 0x41e7ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42a3c0]
jne 0x41e8e9
mov eax, dword [0x42adc8]
cmp eax, 1
je 0x41e8c3
test eax, eax
jne 0x41e7ec
cmp dword [0x427e38], 1
je 0x41e8c3
cmp edx, 0xfc
je 0x41e8e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e823
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d3f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41e866
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425888
push edi
call fcn.0041a310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d3f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d400
lea eax, [ebp - 0xa0]
push 0x422bac
push eax
call fcn.0041d400
push dword [esi + 0x42a3c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004200f5
add esp, 0x2c
pop edi
jmp 0x41e8e9
lea eax, [ebp + 8]
lea esi, [esi + 0x42a3c4]
push 0
push eax
push dword [esi]
call fcn.0041d370
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4cd4e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
or ebp, 0xffffffff
jmp 0x4cd502
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cd509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd4f8
mov eax, 1
add ebx, ebx
jne 0x4cd51b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cd52c
jne 0x4cd53c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd53c
dec eax
add ebx, ebx
jne 0x4cd538
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cd510
xor ecx, ecx
sub eax, 3
jb 0x4cd554
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cd5c6
sar eax, 1
mov ebp, eax
jmp 0x4cd55f
add ebx, ebx
jne 0x4cd55f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4cd56c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4cd590
inc ecx
add ebx, ebx
jne 0x4cd57c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cd571
jne 0x4cd58d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cd571
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cd5b0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cd5a1
jmp 0x4cd4fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cd5b0
add edi, ecx
jmp 0x4cd4fe
pop esi
mov edi, esi
mov ecx, 0x3b2b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cd5ce
cmp byte [edi], 0x1d
jne 0x4cd5ce
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4cd5d3
lea edi, [esi + 0xca000]
mov eax, dword [edi]
or eax, eax
je 0x4cd64b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd4840]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd4958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cd600
mov ecx, edi
jns 0x4cd62f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd495c]
or eax, eax
je 0x4cd645
mov dword [ebx], eax
add ebx, 4
jmp 0x4cd61d
call dword [esi + 0xd4960]
popal
jmp 0x44685c
Function at 0x4032cc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040504c
test esi, esi
jne 0x403304
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405188
jmp 0x403322
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031b0
mov edi, eax
test esi, esi
je 0x403322
cmp dword [ebx], 0
je 0x403322
dec esi
jmp 0x40330b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403908
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x415020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403980
xor eax, eax
push ebp
push 0x403979
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4039d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403980
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x415020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x415020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404800
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41604c], 0
je 0x404861
cmp word [0x416328], 0xd7b2
jne 0x404829
cmp dword [0x416330], 0
jbe 0x404829
mov eax, 0x416324
call dword [0x416340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40488c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41502c], 0
jne 0x40487d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4049e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x415030], 0
je 0x404a06
mov edx, esi
mov eax, ebx
call dword [0x415030]
jmp 0x404a15
mov eax, 8
call fcn.00402ef8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x41604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049a8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4066d8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40b99c
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 0x40b9d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405188
jmp 0x40b9de
mov eax, ebx
mov edx, esi
call fcn.0040504c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b9e8
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 0x40ba0a
movzx eax, word [esp]
jmp 0x40ba0c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c170
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040bfa8
mov eax, dword [0x415c3c]
cmp byte [eax], 0
je 0x40c202
mov eax, dword [0x415b50]
call fcn.00403390
call fcn.00403060
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.00408a04
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c250
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c23b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x415b30]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x418b18]
call fcn.00405d70
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x40db14
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.00404ca0
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 0x40dabe
mov eax, edi
add eax, eax
call fcn.00402ef8
mov esi, eax
jmp 0x40dac0
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 0x40daf9
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 0x40dae3
mov eax, esp
cmp esi, eax
je 0x40db06
mov eax, esi
call fcn.00402f14
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 0x40db40
cmp bl, 0
je 0x40db3c
cmp bl, 0x41
jl 0x40db37
cmp bl, 0x5a
jg 0x40db37
or bl, 0x20
xor al, bl
inc esi
jmp 0x40db1b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da80

Function at 0x413298
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00412f9c
dec esi
jne 0x4132ba
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4142b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4142b8
push ebx
push esi
push edi
mov eax, 0x4135e8
call fcn.00406854
xor eax, eax
push ebp
push 0x4144de
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x41ae40], eax
xor eax, eax
push ebp
push 0x414411
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040326c
mov ebx, eax
test ebx, ebx
jl 0x4143a5
inc ebx
xor esi, esi
mov eax, esi
cmp eax, 4
ja case.default.0x41430c
jmp dword [eax*4 + 0x414313]
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004032cc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408914
mov edx, dword [ebp - 0x14]
mov eax, 0x41ae38
call fcn.0040504c
jmp case.default.0x41430c
mov edx, 0x41ae3c
mov eax, 1
call fcn.004032cc
jmp case.default.0x41430c
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.004032cc
mov eax, dword [ebp - 0x1c]
mov edx, 5
call fcn.0040855c
mov dword [0x41ae40], eax
jmp case.default.0x41430c
mov edx, 0x41ae48
mov eax, 3
call fcn.004032cc
jmp case.default.0x41430c
mov edx, 0x41ae4c
mov eax, 4
call fcn.004032cc
inc esi
dec ebx
jne 0x414301
mov eax, 0x41ae44
xor edx, edx
call fcn.0040504c
lea edx, [ebp - 0x20]
mov eax, dword [0x41ae48]
call fcn.00408194
cmp dword [ebp - 0x20], 0
je 0x4143d4
mov eax, 0x41ae44
mov edx, dword [0x41ae48]
call fcn.0040504c
lea edx, [ebp - 0x24]
mov eax, dword [0x41ae4c]
call fcn.00408194
cmp dword [ebp - 0x24], 0
je 0x414407
push dword [0x41ae44]
push 0x4144fc
push dword [0x41ae4c]
mov eax, 0x41ae44
mov edx, 3
call fcn.0040549c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41441b
xor edx, edx
push ebp
push 0x41448d
push dword fs:[edx]
mov dword fs:[edx], esp
imul eax, dword [0x41ae40], 0x3c
imul eax, eax, 0x3e8
mov ecx, eax
mov dl, 1
mov eax, dword [0x4134d0]
call fcn.00413540
mov ebx, eax
mov eax, ebx
call fcn.004132e4
mov eax, ebx
call fcn.00403a88
push 5
mov eax, dword [0x41ae38]
call fcn.004050d8
push eax
mov eax, dword [0x41ae44]
call fcn.004050d8
push eax
mov eax, dword [0x41ae3c]
call fcn.004050d8
push eax
push 0x414500
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4144c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4144e5
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00405044
ret
Function at 0x404ed2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404f11
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404f11
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404f11
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404f11
cmp dword [ecx + 0x74], 0xe
jbe 0x404f11
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406c62
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f998
push 0x40f990
push str.FlsAlloc
push 0x1f
call fcn.00406b7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406c96
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e13c]
call esi
jmp 0x406c9c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406ce0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f9a8
push 0x40f9a0
push str.FlsGetValue
push 0x21
call fcn.00406b7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406d17
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x406d1f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f9b0
push 0x40f9a8
push str.FlsSetValue
push 0x22
call fcn.00406b7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406d59
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e13c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x408341
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4083de
push ebx
push esi
call fcn.0040830a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040829e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40838b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4083dd
push edi
push eax
call fcn.0040585c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4083ab
call fcn.00405822
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4083dc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040829e
add esp, 0x20
test eax, eax
jne 0x4083ca
push edi
call fcn.00405822
jmp 0x4083d2
push ebx
call fcn.00405822
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret