joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fd2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406410
call fcn.0040235c
mov edi, 0x94
mov eax, edi
call fcn.00401f70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408410], ecx
mov eax, dword [esi + 4]
mov dword [0x40841c], eax
mov edx, dword [esi + 8]
mov dword [0x408420], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408414], esi
cmp ecx, 2
je 0x402032
or esi, 0x8000
mov dword [0x408414], esi
shl eax, 8
add eax, edx
mov dword [0x408418], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40206d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40206d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402085
cmp eax, 0x20b
je 0x402072
mov dword [ebp - 0x1c], esi
jmp 0x402099
cmp dword [ecx + 0x84], 0xe
jbe 0x40206d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402093
cmp dword [ecx + 0x74], 0xe
jbe 0x40206d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004030ca
pop ecx
test eax, eax
jne 0x4020c5
cmp dword [0x4083fc], 1
jne 0x4020b2
call fcn.0040287f
push 0x1c
call fcn.00402708
push 0xff
call fcn.0040256d
pop ecx
pop ecx
call fcn.00403028
mov dword [ebp - 4], esi
call fcn.00402e7d
test eax, eax
jge 0x4020de
push 0x1b
call fcn.00401fad
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408994], eax
call fcn.00402d5b
mov dword [0x4083f4], eax
call fcn.00402cb9
test eax, eax
jge 0x402104
push 8
call fcn.00401fad
pop ecx
call fcn.00402a86
test eax, eax
jge 0x402115
push 9
call fcn.00401fad
pop ecx
push 1
call fcn.0040259d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40212b
push eax
call fcn.00401fad
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402a29
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40214c
movzx eax, word [ebp - 0x40]
jmp 0x40214f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401e60
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40216d
push edi
call fcn.004026c8
call fcn.004026ea
jmp 0x40219f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402397
ret
Function at 0x402607
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408450], esi
push edi
jne 0x402627
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40844c], esi
mov byte [0x408448], al
jne 0x40268d
mov ecx, dword [0x408988]
test ecx, ecx
je 0x40266e
mov eax, dword [0x408984]
sub eax, 4
cmp eax, ecx
jmp 0x402667
mov eax, dword [eax]
test eax, eax
je 0x402659
call eax
mov eax, dword [0x408984]
sub eax, 4
cmp eax, dword [0x408988]
mov dword [0x408984], eax
jae 0x402651
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x40268d
mov eax, dword [edi]
test eax, eax
je 0x402686
call eax
add edi, 4
cmp edi, esi
jb 0x40267e
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4026ac
mov eax, dword [edi]
test eax, eax
je 0x4026a5
call eax
add edi, 4
cmp edi, esi
jb 0x40269d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4026c6
push dword [ebp + 8]
mov dword [0x408450], 1
call fcn.0040256d
pop ebp
ret

Function at 0x402708
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408098]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4080a8]
je 0x40273d
inc eax
cmp eax, 0x13
jb 0x40272e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4080a8]
jne 0x402863
mov eax, dword [0x4083fc]
cmp eax, 1
je 0x40283b
cmp eax, edx
jne 0x40276d
cmp dword [0x4080a4], 1
je 0x40283b
cmp ecx, 0xfc
je 0x402863
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4027a3
lea eax, [ebp - 0x80]
push 0x406458
push eax
call fcn.00403220
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403450
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4027d7
mov eax, edi
push eax
call fcn.00403450
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x406454
push edi
call fcn.00403320
add esp, 0x10
push edi
call fcn.00403450
push dword [esi + 0x4080ac]
mov ebx, eax
call fcn.00403450
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f70
mov ebx, esp
push 0x4069d8
push ebx
call fcn.00403220
push edi
push ebx
call fcn.00403230
push 0x406450
push ebx
call fcn.00403230
push dword [esi + 0x4080ac]
push ebx
call fcn.00403230
push 0x12010
push 0x40641c
push ebx
call fcn.0040311b
add esp, 0x2c
jmp 0x402863
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4080ac]
push dword [esi]
call fcn.00403450
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401f42
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40311b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40856c], ebx
push esi
push edi
jne 0x40319b
push 0x406a78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4031d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406a6c
push edi
call esi
test eax, eax
mov dword [0x40856c], eax
je 0x4031d6
push 0x406a5c
push edi
call esi
push 0x406a48
push edi
mov dword [0x408570], eax
call esi
cmp dword [0x408410], 2
mov dword [0x408574], eax
jne 0x40319b
push 0x406a2c
push edi
call esi
test eax, eax
mov dword [0x40857c], eax
je 0x40319b
push 0x406a14
push edi
call esi
mov dword [0x408578], eax
mov eax, dword [0x408578]
test eax, eax
je 0x4031e0
call eax
test eax, eax
je 0x4031c7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40857c]
test eax, eax
je 0x4031c7
test byte [ebp - 8], 1
jne 0x4031e0
cmp dword [0x40841c], 4
jb 0x4031da
or byte [ebp + 0x12], 0x20
jmp 0x4031ff
xor eax, eax
jmp 0x40320f
or byte [ebp + 0x12], 4
jmp 0x4031ff
mov eax, dword [0x408570]
test eax, eax
je 0x4031ff
call eax
mov ebx, eax
test ebx, ebx
je 0x4031ff
mov eax, dword [0x408574]
test eax, eax
je 0x4031ff
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40856c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4035f8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4035ff
cmp ebx, dword [eax + 4]
jae 0x4035ff
xor eax, eax
jmp 0x4037ef
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403610
xor eax, eax
inc eax
jmp 0x4037ee
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403626
cmp ecx, edx
jae 0x40376b
cmp dword [eax + 4], 0
je 0x40362f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403617
cmp dword [ebp + 8], 0
je 0x403651
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40376b
cmp eax, esi
jae 0x40376b
mov eax, dword [0x408580]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403676
cmp dword [esi*4 + 0x408588], edi
je 0x40376f
inc esi
cmp esi, eax
jl 0x403664
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4037eb
cmp dword [ebp - 8], 0x1000000
jne 0x4037eb
test byte [ebp - 0xc], 0xcc
je 0x4036f4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4037eb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4037eb
cmp word [eax + 0x18], 0x10b
jne 0x4037eb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4037eb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4036f4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4036f4
test byte [ecx + 0x27], 0x80
jne 0x40376b
push 1
push 0x4085c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403608
mov ecx, dword [0x408580]
test ecx, ecx
mov edx, ecx
jle 0x403728
lea eax, [ecx*4 + 0x408584]
cmp dword [eax], edi
je 0x403728
dec edx
sub eax, 4
test edx, edx
jg 0x40371c
test edx, edx
jne 0x403759
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403735
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40374d
lea eax, [edx*4 + 0x408588]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40373b
cmp ecx, 0x10
jge 0x403759
inc ecx
mov dword [0x408580], ecx
push 0
push 0x4085c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403608
xor eax, eax
jmp 0x4037ee
test esi, esi
jle 0x403608
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4085c8
call ebx
test eax, eax
jne 0x403608
cmp dword [esi*4 + 0x408588], edi
je 0x4037c5
mov eax, dword [0x408580]
lea esi, [eax - 1]
test esi, esi
jl 0x4037b3
cmp dword [esi*4 + 0x408588], edi
je 0x4037af
dec esi
jns 0x4037a3
test esi, esi
jge 0x4037c3
cmp eax, 0x10
jge 0x4037be
inc eax
mov dword [0x408580], eax
lea esi, [eax - 1]
jmp 0x4037c5
je 0x4037dd
xor ecx, ecx
test esi, esi
jl 0x4037dd
lea eax, [ecx*4 + 0x408588]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4037cb
push 0
push 0x4085c8
call ebx
jmp 0x403608
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40581c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401f70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4058b7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x408410]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4058b7
cmp eax, 1
je 0x4058d8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4058b7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405884
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4058b3
xor eax, eax
inc eax
jmp 0x4058f7
cmp edi, eax
jae 0x4058bb
xor eax, eax
jmp 0x4058f7
cmp eax, esi
jae 0x4058c2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408410]
jmp 0x4058db
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x403e59
pop dword [ebp - 0x34]
mov eax, 0xd415ff48
add eax, 0x2c2a3f11
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xac63f573
add dword [ebp - 0x44], 0xa1ee4fd8
mov dword [ebp - 0x40], 0x3023f8fa
add dword [ebp - 0x40], 0x20f534b
mov dword [ebp - 0x3c], 0x54aeff0f
sub dword [ebp - 0x3c], 0x862bae1
mov dword [ebp - 0x38], 0xebd67c31
sub dword [ebp - 0x38], 0xebd67c31
lea eax, [ebp - 0x44]
push eax
mov eax, 0x34388566
sub eax, 0x33f81502
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xbc18903
add dword [ebp - 0x44], 0x68b0e053
mov dword [ebp - 0x40], 0x4796708c
add dword [ebp - 0x40], 0xf9d5f0e9
mov dword [ebp - 0x3c], 0x88d1787d
add dword [ebp - 0x3c], 0xda9df3ef
mov dword [ebp - 0x38], 0xd0298e7c
add dword [ebp - 0x38], 0x2fd67184
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xa2cc2b82
sub eax, 0xa28bbada
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39d85
push 0
call eax
mov ecx, 0xbb51bfe9
sub ecx, 0xbb516b85
mov edi, eax
mov ebx, 0x9708cbdf
add ebx, 0x69383421
add ebx, dword [ebp - 0x34]
mov esi, 0x5ebcbac2
add esi, 0xc57dfd42
sub dword [ebp - 0x1c], 0x1f003458
mov edx, dword [ebx]
add dword [ebp - 0x20], ecx
xor edx, esi
xor dword [ebp - 0x10], 0x2b8ba9f6
mov dword [edi], edx
sub dword [ebp - 0x24], edi
add edi, 4
add ebx, 4
loop 0x403f7b
add eax, 0xee5de711
sub eax, 0xee5ca2ae
mov ebx, eax
add eax, 0xe735b907
add eax, 0x18ca46fe
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40154f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, eax
lea eax, [ebp - 0x1c]
mov ebx, edx
mov dword [esp + 0x10], eax
mov eax, dword [0x425c78]
or eax, 8
mov dword [ebp - 0x12c], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
lea edi, [ebp - 0x121]
sub esp, 0x14
test eax, eax
je 0x4015ca
jmp 0x401651
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x1c]
je 0x4015bd
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
push edx
jmp 0x401651
xor ecx, ecx
mov edx, edi
call fcn.0040154f
test eax, eax
jne 0x4015f0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyA
sub esp, 0x10
test eax, eax
je 0x40159e
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov dword [esp], 2
call fcn.004072a6
test eax, eax
push edi
je 0x40162d
mov edx, dword [0x425c78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call eax
sub esp, 0x10
jmp 0x401651
mov eax, 1
cmp dword [0x425c78], 0
jne 0x401651
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
setne al
push ebx
push ebx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403611
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
lea eax, [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
mov edx, eax
sub esp, 0x14
xor eax, eax
test edx, edx
je 0x403655
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 8

Function at 0x40365c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
je 0x40368a
mov eax, dword [0x415c60]
test eax, eax
je 0x40367b
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
push ecx
mov dword [0x415c60], 0
jmp 0x403764
cmp dword [0x415c60], 0
je 0x4036a5
mov dword [esp], 0
call fcn.0040725d
push edx
jmp 0x403764
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x425cf8]
jbe 0x403764
cmp dword [0x425d48], 0
je 0x40371d
test byte [0x425c7c], 1
je 0x403764
mov edx, dword [0x415cb0]
mov eax, dword [0x415cc0]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x64
cmp eax, edx
jle 0x4036e9
mov eax, edx
mov dword [esp], eax
call sub.KERNEL32.dll_MulDiv
sub esp, 0xc
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00404690
jmp 0x403762
mov eax, dword [0x425d58]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403ec2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call sub.USER32.dll_CreateDialogParamA
sub esp, 0x14
mov dword [0x415c60], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, eax
mov ebx, dword [0x415c80]
add ebx, eax
sub ebx, dword [0x415c70]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x1f4
test ebx, ebx
mov dword [0x425cf8], eax
jle 0x40392e
mov eax, dword [0x415c90]
lea edi, [ebp - 0x1c]
mov dword [esp], eax
call fcn.004035e0
mov eax, dword [0x415c70]
push ecx
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x415cb0], ebx
sub esp, 0x10
mov dword [0x415cc0], 0
mov ebx, dword [0x415ca0]
sub ebx, dword [0x415c90]
cmp ebx, 0x4000
jle 0x4037fc
mov ebx, 0x4000
mov dword [esp + 4], ebx
mov dword [esp], 0x415d60
call fcn.00403611
test eax, eax
push edx
push edx
jne 0x40381a
or eax, 0xffffffff
jmp 0x40394a
add dword [0x415c90], ebx
mov dword [0x415ce8], 0x415d60
mov dword [0x415cec], ebx
cmp dword [0x425ca8], 0
je 0x403866
cmp dword [0x425c68], 0
jne 0x403866
mov eax, dword [0x415c70]
mov dword [esp], 0
add eax, dword [0x415cb0]
sub eax, dword [0x415c80]
sub eax, esi
mov dword [0x415cc0], eax
call fcn.0040365c
mov ecx, 0x415cd0
mov dword [0x415cf0], 0x419d60
mov dword [0x415cf4], 0x8000
call fcn.0040823e
test eax, eax
js 0x40393e
mov edx, dword [0x415cf0]
sub edx, 0x419d60
je 0x4038e6
mov eax, dword [0x40a014]
mov dword [esp + 8], edx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x419d60
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x403945
cmp edx, dword [ebp - 0x1c]
jne 0x403945
add dword [0x415c70], edx
cmp dword [0x415cec], 0
jne 0x403830
jmp 0x4038f3
test ebx, ebx
je 0x40393e
cmp dword [0x415cec], 0
jne 0x40393e
mov eax, dword [0x415c80]
mov edx, eax
sub edx, dword [0x415c70]
add edx, esi
test edx, edx
jg 0x4037e3
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [esp], 1
call fcn.0040365c
xor eax, eax
jmp 0x40394a
mov eax, 0xfffffffd
jmp 0x40394a
mov eax, 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403952
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test eax, eax
js 0x403994
add eax, dword [0x425cf0]
mov dword [esp + 0xc], 0
mov dword [0x415c80], eax
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov eax, 4
call fcn.00403769
mov ebx, eax
test eax, eax
js 0x403af1
lea eax, [ebp - 0x20]
lea esi, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403ae5
cmp dword [ebp - 0x1c], 4
jne 0x403ae5
mov eax, dword [ebp - 0x20]
add dword [0x415c80], 4
call fcn.00403769
mov ebx, eax
test eax, eax
js 0x403af1
test edi, edi
je 0x403a96
jmp 0x403aa6
cmp esi, 0x4000
jle 0x403a1b
mov esi, 0x4000
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x40a014]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x415d60
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403ae5
cmp esi, dword [ebp - 0x1c]
jne 0x403ae5
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x415d60
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x403aec
cmp dword [ebp - 0x24], esi
jne 0x403aec
mov eax, dword [ebp - 0x1c]
add ebx, eax
sub dword [ebp - 0x20], eax
add dword [0x415c80], eax
jmp 0x403a99
lea edi, [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test esi, esi
jg 0x403a0e
jmp 0x403af1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
cmp eax, edx
jle 0x403abe
mov eax, edx
mov dword [esp + 8], eax
mov eax, dword [0x40a014]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403ae5
mov ebx, dword [ebp - 0x1c]
add dword [0x415c80], ebx
jmp 0x403af1
mov ebx, 0xfffffffd
jmp 0x403af1
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407575
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 0xc]
mov byte [ebx], 0
mov dword [esp + 0x10], edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
mov dword [esp + 8], 0
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x407614
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4075fe
mov eax, dword [ebp - 0x14]
dec eax
cmp eax, 1
jbe 0x407601
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14