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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42115e
cmp dword [ebp + 0x14], edi
je 0x42115e
cmp ecx, edi
jne 0x421165
call fcn.00423526
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00421bd6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x421179
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42119a
cmp ebx, 0xffffffff
je 0x421189
push ebx
push edi
push ecx
call fcn.00420bd0
add esp, 0xc
cmp esi, edi
je 0x421146
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x421146
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4211b6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4211bd
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4212ae
test word [esi + 0xc], 0x10c
je 0x421211
mov eax, dword [esi + 4]
test eax, eax
je 0x421211
jl 0x42130f
cmp ebx, eax
mov edi, ebx
jb 0x4211e2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4212b6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00421d00
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4212a6
cmp ebx, dword [ebp - 0xc]
jb 0x42127e
cmp dword [ebp - 0xc], 0
je 0x42123b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x421230
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x421237
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x421246
mov eax, SysReAllocString
cmp ebx, eax
ja 0x421246
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4212e2
push eax
push dword [ebp - 8]
push esi
call fcn.00426973
pop ecx
push eax
call fcn.00427c88
add esp, 0xc
test eax, eax
je 0x421321
cmp eax, 0xffffffff
je 0x42130f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4212a6
push esi
call fcn.004275a7
cmp eax, 0xffffffff
pop ecx
je 0x421313
cmp dword [ebp - 4], 0
je 0x4212e2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4211c5
mov eax, dword [ebp + 0x14]
jmp 0x421160
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4212cd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00420bd0
add esp, 0xc
call fcn.00423526
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x421156
cmp dword [ebp + 0xc], 0xffffffff
je 0x4212f8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00420bd0
add esp, 0xc
call fcn.00423526
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x421156
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x421160
or dword [esi + 0xc], 0x10
jmp 0x421313
Function at 0x42179f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a650]
jne 0x4217a9
repz ret
jmp fcn.004298bc

Function at 0x42a83e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44ad28]
je 0x42a859
inc edi
cmp edi, 0x17
jb 0x42a84a
cmp edi, 0x17
jae 0x42a9d9
push ebp
push 3
call fcn.00431c8f
cmp eax, 1
pop ecx
je 0x42a9a5
push 3
call fcn.00431c8f
test eax, eax
pop ecx
jne 0x42a88d
cmp dword [0x44a670], 1
je 0x42a9a5
cmp ebx, 0xfc
je 0x42a9d8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44deb8
push ebp
call fcn.004233f6
add esp, 0xc
test eax, eax
je 0x42a8c3
push esi
push esi
push esi
push esi
push esi
call fcn.00421ada
add esp, 0x14
push 0x104
mov esi, 0x44ded1
push esi
push 0
mov byte [0x44dfd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a907
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004233f6
add esp, 0xc
test eax, eax
je 0x42a907
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00421ada
add esp, 0x14
push esi
call fcn.00423460
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a94c
push esi
call fcn.00423460
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44e1cc
push 0x43d11c
sub ecx, eax
push ecx
push eax
call fcn.00424f68
add esp, 0x14
test eax, eax
je 0x42a94c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00421ada
add esp, 0x14
jmp 0x42a94e
xor esi, esi
push 0x43d118
push ebx
push ebp
call fcn.004235f1
add esp, 0xc
test eax, eax
je 0x42a96e
push esi
push esi
push esi
push esi
push esi
call fcn.00421ada
add esp, 0x14
push dword [edi*8 + 0x44ad2c]
push ebx
push ebp
call fcn.004235f1
add esp, 0xc
test eax, eax
je 0x42a990
push esi
push esi
push esi
push esi
push esi
call fcn.00421ada
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00431ad2
add esp, 0xc
jmp 0x42a9d8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42a9d8
cmp ebp, 0xffffffff
je 0x42a9d8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ad2c]
push dword [esi]
call fcn.00423460
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x431ad2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004292eb
xor ebx, ebx
cmp dword [0x44e448], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x431ba8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x431c88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43dac8
push edi
call esi
cmp eax, ebx
je 0x431c88
push eax
call fcn.0042927d
mov dword [esp], 0x43dab8
push edi
mov dword [0x44e448], eax
call esi
push eax
call fcn.0042927d
mov dword [esp], 0x43daa4
push edi
mov dword [0x44e44c], eax
call esi
push eax
call fcn.0042927d
mov dword [0x44e450], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00422ea6
test eax, eax
pop ecx
pop ecx
je 0x431b76
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421ada
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x431ba8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042927d
cmp eax, ebx
pop ecx
mov dword [0x44e458], eax
je 0x431ba8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042927d
pop ecx
mov dword [0x44e454], eax
mov eax, dword [0x44e454]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x431c2d
cmp dword [0x44e458], ecx
je 0x431c2d
push eax
call fcn.004292f4
push dword [0x44e458]
mov esi, eax
call fcn.004292f4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x431c2d
cmp edi, ebx
je 0x431c2d
call esi
cmp eax, ebx
je 0x431bfa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431bfa
test byte [ebp - 0x18], 1
jne 0x431c2d
lea eax, [ebp - 0x10]
push eax
call fcn.00422edd
test eax, eax
pop ecx
je 0x431c15
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421ada
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x431c24
or dword [ebp + 0x10], 0x200000
jmp 0x431c68
or dword [ebp + 0x10], 0x40000
jmp 0x431c68
mov eax, dword [0x44e44c]
cmp eax, dword [ebp - 8]
je 0x431c68
push eax
call fcn.004292f4
cmp eax, ebx
pop ecx
je 0x431c68
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x431c68
mov eax, dword [0x44e450]
cmp eax, dword [ebp - 8]
je 0x431c68
push eax
call fcn.004292f4
cmp eax, ebx
pop ecx
je 0x431c68
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e448]
call fcn.004292f4
cmp eax, ebx
pop ecx
je 0x431c88
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431c8a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4362df
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44a650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00436274
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420bd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43632e
cmp dword [ebp - 0x1c], 5
jb 0x436346
jmp 0x436342
cmp dword [ebp - 0x10], 1
jne 0x436346
cmp dword [ebp - 0x1c], 4
ja 0x436342
jne 0x436346
cmp dword [ebp - 0x18], 0
jbe 0x436346
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43ecb4
call fcn.00436165
test eax, eax
jge 0x436367
mov byte [0x44bb80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042179f
add ebp, 0x78
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x448570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x408916
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
pop eax
sub edx, 1
call fcn.00408936
xor dword [ecx], eax
add edx, ebx
inc ecx
inc edx
and edx, edx
cmp ecx, edi
jne fcn.00408916
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x455963
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x455973
mov esi, eax
jmp 0x455969
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x45598b
sub edi, 0x10000
jmp 0x45597c
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x455999
jmp 0x45597c
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x45599f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x4559be
cmp eax, dword [esp + 0x28]
je 0x4559d5
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4559b5
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8
Function at 0x30001968
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x30001634]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x47c], eax
push 0x105
lea eax, [ebp - 0x260]
xor esi, esi
push eax
mov word [ebp - 0x468], si
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jne 0x300019ab
xor eax, eax
jmp 0x30001a75
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x300019c7
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push edi
mov edi, 0x30001b9c
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
call fcn.300018d4
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x46c], eax
jne 0x30001a0a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [ebp - 0x46c], eax
je 0x30001a46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30001b88
push dword [ebp - 0x46c]
call edi
push 0x30001b68
push dword [ebp - 0x46c]
mov dword [ebp - 0x474], eax
call edi
cmp eax, esi
mov dword [ebp - 0x478], eax
jne 0x30001a4a
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x30001a74
cmp dword [ebp - 0x47c], esi
push ebx
mov ebx, 0x30001620
mov edi, 0x30001b18
je 0x30001aca
cmp dword [ebp - 0x474], esi
jne 0x30001a84
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30001bac
leave
ret 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x47c]
call dword [ebp - 0x474]
cmp eax, esi
jne 0x30001ac3
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x470], 0x104
call dword [ebp - 0x478]
cmp eax, esi
je 0x30001b05
cmp eax, 0x642
je 0x30001b05
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x470], 0x104
call dword [ebp - 0x478]
test eax, eax
je 0x30001b05
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x30001a73
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x30001af2
Function at 0x30001bac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001634]
jne 0x30001bb5
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30003168], eax
mov dword [0x30003164], ecx
mov dword [0x30003160], edx
mov dword [0x3000315c], ebx
mov dword [0x30003158], esi
mov dword [0x30003154], edi
mov word [0x30003180], ss
mov word [0x30003174], cs
mov word [0x30003150], ds
mov word [0x3000314c], es
mov word [0x30003148], fs
mov word [0x30003144], gs
pushfd
pop dword [0x30003178]
mov eax, dword [ebp]
mov dword [0x3000316c], eax
mov eax, dword [ebp + 4]
mov dword [0x30003170], eax
lea eax, [ebp + 8]
mov dword [0x3000317c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300030b8], 0x10001
mov eax, dword [0x30003170]
mov dword [0x3000306c], eax
mov dword [0x30003060], 0xc0000409
mov dword [0x30003064], 1
mov eax, dword [0x30001634]
mov dword [ebp - 0x328], eax
mov eax, dword [section..data]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300030b0], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001cbc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300030b0], 0
jne 0x30001ca5
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x403167
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4031f3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4031de
cmp dword [ebp + 0x10], ebx
jne 0x4031d0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403167
test eax, eax
jne 0x4031de
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x4031a3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x4031f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4035ec
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403619
mov ecx, dword [0x44bab8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4213e4], eax
push dword [0x40a5a8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403717
cmp eax, edi
jl 0x403710
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5a8]
call ebx
test eax, eax
je 0x40370d
cmp dword [ebp - 4], esi
jne 0x40370d
push dword [ebp + 8]
add dword [0x4213e4], esi
call fcn.00403717
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403710
cmp dword [ebp + 0x10], edi
jne 0x4036dc
cmp dword [ebp + 8], edi
jle 0x403708
mov esi, 0x41d3a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40368c
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5a8]
call ebx
test eax, eax
je 0x40370d
cmp edi, dword [ebp - 4]
jne 0x40370d
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036d8
cmp dword [ebp + 0x14], edi
jne 0x4036d8
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4213e4], eax
cmp dword [ebp + 8], 0
jg 0x40367f
jmp 0x403708
push 0xfffffffffffffffe
jmp 0x40370f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4036e7
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5a8]
call ebx
test eax, eax
je 0x40370d
mov eax, dword [ebp - 4]
add dword [0x4213e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403710
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403717
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4213e4]
mov edi, eax
sub esi, dword [0x415314]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x4038e7
push dword [0x4293f0]
call fcn.00403929
push ebp
push ebp
push dword [0x415314]
push dword [0x40a5a8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4293ec], esi
mov dword [0x4213e0], ebp
mov eax, dword [0x4213e8]
mov ebx, 0x4000
sub eax, dword [0x4293f0]
cmp eax, ebx
jg 0x40378a
mov ebx, eax
mov esi, 0x41d3a0
push ebx
push esi
call fcn.004038f7
test eax, eax
je 0x4038a8
add dword [0x4293f0], ebx
mov dword [0x415330], esi
mov dword [0x415334], ebx
cmp dword [0x44ba68], ebp
je 0x40381b
cmp dword [0x44bb00], ebp
jne 0x40381b
cmp dword [esp + 0x10], ebp
je 0x4037e8
mov eax, dword [0x4293ec]
push ebp
sub eax, dword [0x4213e4]
sub eax, dword [esp + 0x20]
add eax, dword [0x415314]
mov dword [0x4213e0], eax
call fcn.00406865
jmp 0x40381b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40381b
mov eax, dword [0x44ba64]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x403244
push ebp
push 0x6f
push dword [0x44ba60]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x415318
mov dword [0x415338], 0x4153a0
mov dword [0x41533c], 0x8000
call fcn.0040693a
test eax, eax
jl 0x4038f2
mov esi, dword [0x415338]
mov eax, 0x4153a0
sub esi, eax
je 0x403882
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4038ad
cmp esi, dword [esp + 0x14]
jne 0x4038ad
add dword [0x415314], esi
cmp dword [0x415334], ebp
jne 0x4037b0
jmp 0x40388e
cmp dword [0x415334], ebp
jne 0x4038f2
cmp ebx, ebp
je 0x4038f2
mov eax, dword [0x4213e4]
mov ecx, eax
sub ecx, dword [0x415314]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4038b1
jmp 0x403774
or eax, 0xffffffff
jmp 0x4038e9
push 0xfffffffffffffffe
jmp 0x4038f4
push ebp
push ebp
push eax
push dword [0x40a5a8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x4038e7
mov eax, dword [0x4293ec]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4213e0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x4038e9
Function at 0x404019
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x47c000
je 0x404038
push edi
call fcn.004063b1
jmp 0x40403e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44baa4]
mov ecx, esi
dec esi
test ecx, ecx
je 0x404092
mov ecx, dword [0x44ba68]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44baa0]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x404079
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x404061
jmp 0x404092
mov edx, dword [ecx + 2]
mov dword [0x447a40], edx
mov edx, dword [ecx + 6]
mov dword [0x44bb08], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x4040a4
cmp bx, 0xffff
jne 0x4040a0
mov ebx, 0x3ff
jmp 0x40403e
xor ebx, ebx
jmp 0x40403e
mov dword [0x447a3c], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.00406398
push 0xfffffffffffffffe
push 0x447a60
call fcn.0040646a
push eax
push dword [0x435408]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba8c]
mov esi, dword [0x44ba88]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4040fe
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x4040f7
push eax
push ebx
call fcn.0040646a
add esi, edi
add ebx, edi
dec ebp
jne 0x4040ea
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405c6b
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43ac30], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405c8f
test al, 0x10
jne 0x405c92
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43ac30
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405cbd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8