joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x403fd6
jl 0x403fcd
test edi, edi
jne 0x403fd6
xor eax, eax
xor edx, edx
jmp 0x40408b
cmp dword [ecx + 0x38], 0
je 0x403fea
push esi
push edi
push edx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x40408b
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40402a
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x40402a
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x404081
call fcn.00404881
mov edx, ebx
jmp 0x40405e
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x404091
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x40403b
test edx, edx
je 0x404081
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x404083
Function at 0x40431f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x404345
xor eax, eax
jmp 0x404406
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x404367
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x404367
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x404406
cmp dword [esi + 0x4c], 0
je 0x404404
call fcn.00404881
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404393
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x404404
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4043d2
sub eax, 1
je 0x4043d2
dec eax
sub eax, 1
jne 0x404404
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x404384
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x4043f6
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x404404
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x404406
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 4
Function at 0x4048a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x4048fc
cmp byte [esi + 0x3d], bl
je 0x4048fc
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404936
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x40490d
sub eax, 1
je 0x404910
dec eax
sub eax, 1
jne 0x404936
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40492e
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404936
cmp byte [esi + 0x3d], bl
sete al
jmp 0x4048fe
xor al, al
jmp 0x4048fe

Function at 0x40695c
Capabilities:
Delete file
Download url
Query environment variable
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push str.https:__armmf.adobe.com_manifest_arm_manifests_win_DC_acrobat_Logging_killswitch_uc.txt
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [ebp - 0x20c]
push ebx
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x406a32
push str._adnme_ks_uc.txt
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00401748
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4069fb
lea eax, [ebp - 0x20c]
push eax
call edi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
lea ecx, [ebp - 0x20c]
call fcn.00401748
test eax, eax
je 0x406a32
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret
Function at 0x406d16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1c], eax
call fcn.00406bd8
mov ebx, 0x208
mov edi, eax
push ebx
call fcn.0040785f
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], eax
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
call fcn.0040785f
push 0x20a
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
mov dword [ebp - 8], 0x20a
push dword [ebp - 0x14]
push esi
call fcn.00407063
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406de0
lea eax, [ebp - 8]
xor edi, edi
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406de0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x406dbf
sub ecx, edx
sar ecx, 1
cmp ecx, 0x208
jae 0x406de0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004073e6
push ebx
call fcn.004073e6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 0x14

Function at 0x406e08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
call fcn.00406bd8
push 0x208
mov edi, eax
call fcn.0040785f
mov dword [esp], 0x208
push ebx
push eax
mov dword [ebp - 0xc], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
push esi
call fcn.00407063
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406ec1
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push dword [ebp - 0x10]
push 1
push ebx
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
push esi
call fcn.004073e6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 0x10
Function at 0x406edb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x18], eax
call fcn.00406bd8
push 0x208
mov edi, eax
call fcn.0040785f
mov dword [esp], 0x208
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
and dword [ebp - 8], 0
add esp, 0xc
mov dword [ebp - 0xc], 4
push ebx
push esi
call fcn.00407063
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x20019
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f7a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 8], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004073e6
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 0xc

Function at 0x406f9e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.00406bd8
mov edi, 0x208
mov ebx, eax
push edi
call fcn.0040785f
push edi
push 0
push eax
mov dword [ebp - 0xc], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov eax, 0xf003f
cmp dword [ebp + 0x14], 0
mov edi, 0xf013f
cmove edi, eax
push dword [ebp - 0xc]
push esi
call fcn.00407063
xor esi, esi
lea eax, [ebp - 8]
push esi
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [ebp - 0xc]
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407049
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push edi
call fcn.004073e6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 0x10
Function at 0x4070d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.00406bd8
mov ebx, 0x208
mov edi, eax
push ebx
call fcn.0040785f
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebp - 0xc]
push esi
call fcn.00407063
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407149
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
cmove ebx, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004073e6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 0xc

Function at 0x40716c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.00406bd8
mov ebx, 0x208
mov edi, eax
push ebx
call fcn.0040785f
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebp - 0xc]
push esi
call fcn.00407063
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4071e1
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
inc ecx
test eax, eax
cmove ebx, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004073e6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret 8
Function at 0x40146b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
jl 0x4014a4
cmp dword [ebp + 0xc], 5
jg 0x4014a4
mov eax, 1
jmp 0x4014a6
xor eax, eax
test eax, eax
je 0x4014cb
fild dword [ebp + 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x42b2e1]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401444
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4014eb
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
jl 0x401503
cmp dword [ebp + 0xc], 5
jg 0x401503
xor eax, eax
jmp 0x401508
mov eax, 1
test eax, eax
je 0x401517
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WinExec]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40153e
push 6
call fcn.0040db53
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x401557
mov dword [ebp - 0xc], 0
jmp 0x40155e
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
jmp 0x401566
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401c9a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401cce
push 6
call fcn.0040db53
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401ce2
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
jmp 0x401cea
mov esp, ebp
pop ebp
ret 4
Function at 0x404782
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40479d
call fcn.0040480d
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4047c9
push 6
call fcn.0040db53
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4047f3
push 6
call fcn.0040db53
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x404807
mov esp, ebp
pop ebp
ret 8

Function at 0x40a494
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x40a4ad
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40a4cc
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40a4c3
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40a4bb
mov eax, ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x40a514
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x40a520
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x40a56f
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40a55b
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x40a545
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x40e670
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40e6d9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0040ddd0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x410e70
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x410e7d
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x410e8f
pop esi
ret
cmp ecx, 1
jne 0x410e9d
cmp byte [esi], 0x5c
jne 0x410e9d
xor eax, eax
pop esi
ret
push esi
call fcn.00410c20
add esp, 4
test eax, eax
je 0x410eb1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x410ed0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x410f62
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x410f54
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x410f4c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x410f15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x411150
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x41116e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x411163
pop esi
ret

Function at 0x42019e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4201e0
call fcn.004234eb
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4201e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4201d7
xor eax, eax
jmp 0x4201e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004201ee
pop edi
pop esi
pop ebx
ret 4
Function at 0x421179
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x424da8
call fcn.004145b4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004234eb
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4211b8
call fcn.004234eb
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4211c6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4211d4
or eax, 0xffffffff
jmp 0x4212bc
mov ecx, esi
call fcn.004210ef
mov dword [ebp - 0x14], eax
call fcn.0041e7e4
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x42120b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42120b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041e798
push dword [ebp - 0x14]
call fcn.0041e2c9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00420e87
cmp eax, edi
je 0x42127e
test byte [esi + 0x24], 0x10
je 0x42124c
push 4
mov ecx, esi
pop ebx
call fcn.0041dcc9
test ah, 1
je 0x421244
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004202f0
cmp dword [esi + 0x1c], edi
je 0x42127e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041dcfd
jmp 0x42127e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x421292
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4212ab
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4212ab
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00421129
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x423062
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423090
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4230ae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422fc8
jmp 0x4230ae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4230ae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00422fc8
test edi, edi
mov eax, edi
jne 0x423098
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8