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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
je 0x4a465c
mov edi, dword [esp + 0x24]
call fcn.0041a629
test eax, eax
je 0x4a465c
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 1
push 0x42c
mov dword [esp + 0x20], eax
xor esi, esi
call fcn.004aa454
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4a4606
push 0x2010
push ebx
push ebx
push ebx
push dword [esp + 0x34]
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4a45ff
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push ebp
mov dword [edi], 0x28
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4a45f5
push 0x10
push 1
call fcn.004aa454
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4a45f5
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov ax, word [edi + 4]
mov word [esi + 0xc], ax
mov ax, word [edi + 8]
push ebp
mov word [esi + 0xe], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [esi], eax
je 0x4a4599
movsx eax, word [esi + 0xe]
push eax
movsx eax, word [esi + 0xc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4a458d
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi], ebx
jmp 0x4a4599
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 8], eax
cmp dword [esi + 4], ebx
je 0x4a45f5
mov eax, dword [esp + 0x20]
add eax, 0x64
push eax
call fcn.004abb87
cmp eax, ebx
pop ecx
mov dword [esp + 0x20], eax
je 0x4a45f5
push ebx
push edi
push eax
push dword [edi + 8]
push ebx
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4a45eb
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0xcc0020
push ebx
push edi
push dword [esp + 0x2c]
push eax
push ecx
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [esp + 0x20]
call fcn.004aa2a8
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.004aa2a8
pop ecx
push dword [esp + 0x18]
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp esi, ebx
je 0x4a465c
cmp dword [esi + 4], ebx
je 0x4a461e
cmp dword [esi], ebx
jne 0x4a4627
push esi
call fcn.004aa2a8
pop ecx
xor esi, esi
cmp esi, ebx
je 0x4a465c
mov eax, dword [0x618588]
cmp eax, ebx
jne 0x4a463e
call fcn.0046aaee
mov dword [0x618588], eax
push dword [esi]
mov ebx, eax
call fcn.0046aba0
mov ebx, dword [esi]
pop ecx
push esi
push dword [0x618588]
call fcn.0046aee9
mov eax, dword [esi]
pop ecx
pop ecx
jmp 0x4a465e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a5cd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5065d0]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov dword [esp + 0x10], eax
xor esi, esi
lea eax, [esp + 0x35]
push esi
push eax
mov ebx, ecx
mov byte [esp + 0x3c], 0
call fcn.004ab5d0
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esi
stosd dword es:[edi], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], esi
stosd dword es:[edi], eax
lea edi, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x20], esi
mov edx, ebx
stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
call fcn.00476b3a
test eax, eax
jne 0x4a5e4c
mov edx, dword [esp + 0xc]
call fcn.00476b3a
test eax, eax
jne 0x4a5e4c
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0041ad1f
add esp, 0x14
test eax, eax
jne 0x4a5d95
mov edi, ebx
call fcn.0041a629
test eax, eax
je 0x4a5e4c
cmp dword [0x507708], esi
je 0x4a5d9d
mov dword [0x507708], esi
jmp 0x4a5d9d
mov dword [esp + 0x14], 1
push 0x4c91fc
push ebx
call fcn.004a5b6d
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x10], eax
je 0x4a5e4c
push dword [esp + 0xc]
mov edi, 0x104
mov ecx, edi
lea eax, [esp + 0x34]
call fcn.00476b6c
pop ecx
mov esi, eax
call fcn.004776b8
mov edx, esi
call fcn.00476b3a
test eax, eax
jne 0x4a5e06
mov eax, esi
push eax
call fcn.004aa880
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x4a5e06
push ebx
mov ecx, edi
mov eax, esi
call fcn.00476b6c
pop ecx
push dword [esp + 0xc]
call fcn.0047724c
pop ecx
jmp 0x4a5e17
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004ab3bf
test eax, eax
pop ecx
pop ecx
jne 0x4a5e20
lea esi, [esp + 0x30]
call fcn.0047737f
push 0x169
push str..zLib.c
mov edx, 0x4c9338
lea ecx, [esp + 0x38]
call fcn.0041c646
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
jne 0x4a5e63
push dword [esp + 0x10]
call fcn.004a5c0c
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aaeb5
mov esp, ebp
pop ebp
ret
push 0x100002
call fcn.004abb87
mov esi, eax
test esi, esi
pop ecx
mov dword [esp + 0xc], ebx
je 0x4a5eb6
push 0x100000
push esi
push dword [esp + 0x18]
call fcn.004a5b92
add esp, 0xc
test eax, eax
jle 0x4a5ead
push edi
push 1
push eax
push esi
add ebx, eax
call fcn.004aa5f2
add esp, 0x10
test eax, eax
jg 0x4a5e78
inc dword [0x6185bc]
inc dword [esp + 0xc]
jmp 0x4a5e78
push esi
call fcn.004aa2a8
pop ecx
jmp 0x4a5ebe
mov dword [esp + 0xc], 1
mov ecx, edi
call fcn.0041ca73
push dword [esp + 0x10]
call fcn.004a5c0c
cmp dword [esp + 0x18], 0
pop ecx
je 0x4a5eef
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
call fcn.0041ae26
pop ecx
pop ecx
test ebx, ebx
je 0x4a5e4c
cmp dword [esp + 0xc], 0
jne 0x4a5e4c
xor eax, eax
inc eax
jmp 0x4a5e4e
Function at 0x4a5f0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5065d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], 0
call fcn.004ab5d0
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004ab5d0
add esp, 0xc
cmp dword [0x6185c0], ebx
jne 0x4a6152
mov esi, str.zLib.dll
push esi
push 0x4c943c
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004781b1
add esp, 0x10
push esi
push ebx
push ebx
call fcn.0045ac28
pop ecx
pop ecx
push eax
mov ebx, 0x4ca4a0
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004781b1
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.0041a464
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a607e
push esi
push eax
push eax
call fcn.0045aa3a
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004781b1
add esp, 0x14
push esi
push 0
push 0
call fcn.0045ac28
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004781b1
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.0041a464
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a607e
push esi
push eax
push eax
call fcn.0045aa3a
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004781b1
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a607e
lea edi, [ebp - 0x110]
call fcn.0041a629
xor eax, eax
jmp 0x4a6155
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gzopen
push dword [ebp - 0x21c]
call esi
mov ebx, dword [ebp - 0x21c]
push str.gzread
push ebx
mov dword [0x6185a4], eax
call esi
push str.gzwrite
push ebx
mov dword [0x6185a8], eax
call esi
push str.gzclose
push ebx
mov dword [0x6185ac], eax
call esi
push str.gzseek
push ebx
mov dword [0x6185b0], eax
call esi
push str.gzputs
push ebx
mov dword [0x6185b4], eax
call esi
push str.gzgets
push ebx
mov dword [0x51831c], eax
call esi
push str.gzputc
push ebx
mov dword [0x518324], eax
call esi
push str.gzgetc
push ebx
mov dword [0x517a9c], eax
call esi
push str.compress2
push ebx
mov dword [0x518320], eax
call esi
push str.compressBound
push ebx
mov dword [0x518328], eax
call esi
push str.uncompress
push ebx
mov dword [0x518054], eax
call esi
push str.gzprintf
push ebx
mov dword [0x518318], eax
call esi
mov dword [0x6185b8], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
mov eax, 0x6185c8
mov dword [0x6185c0], ebx
call fcn.00476b6c
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aaeb5
leave
ret
Function at 0x4aaeb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5065d0]
jne 0x4aaebf
repz ret
jmp fcn.004b253a
Function at 0x4ab679
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 0x4ab6b6
cmp dword [ebp + 0x14], edi
je 0x4ab6b6
cmp ecx, edi
jne 0x4ab6bd
call fcn.004b061b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b16e8
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ab6d1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ab6f2
cmp ebx, 0xffffffff
je 0x4ab6e1
push ebx
push edi
push ecx
call fcn.004ab5d0
add esp, 0xc
cmp esi, edi
je 0x4ab69e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ab69e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ab70e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ab715
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ab806
test word [esi + 0xc], 0x10c
je 0x4ab769
mov eax, dword [esi + 4]
test eax, eax
je 0x4ab769
jl 0x4ab867
cmp ebx, eax
mov edi, ebx
jb 0x4ab73a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ab80e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b4a08
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 0x4ab7fe
cmp ebx, dword [ebp - 0xc]
jb 0x4ab7d6
cmp dword [ebp - 0xc], 0
je 0x4ab793
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4ab788
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ab78f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ab79e
mov eax, closesocket
cmp ebx, eax
ja 0x4ab79e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ab83a
push eax
push dword [ebp - 8]
push esi
call fcn.004b1f6a
pop ecx
push eax
call fcn.004b490b
add esp, 0xc
test eax, eax
je 0x4ab879
cmp eax, 0xffffffff
je 0x4ab867
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ab7fe
push esi
call fcn.004b241a
cmp eax, 0xffffffff
pop ecx
je 0x4ab86b
cmp dword [ebp - 4], 0
je 0x4ab83a
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 0x4ab71d
mov eax, dword [ebp + 0x14]
jmp 0x4ab6b8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ab825
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ab5d0
add esp, 0xc
call fcn.004b061b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ab6ae
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ab850
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ab5d0
add esp, 0xc
call fcn.004b061b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ab6ae
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ab6b8
or dword [esi + 0xc], 0x10
jmp 0x4ab86b
Function at 0x4b4b48
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 + 0x506d00]
je 0x4b4b63
inc edi
cmp edi, 0x17
jb 0x4b4b54
cmp edi, 0x17
jae 0x4b4ce3
push ebp
push 3
call fcn.004bc57d
cmp eax, 1
pop ecx
je 0x4b4caf
push 3
call fcn.004bc57d
test eax, eax
pop ecx
jne 0x4b4b97
cmp dword [0x5062f0], 1
je 0x4b4caf
cmp ebx, 0xfc
je 0x4b4ce2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x515540
push ebp
call fcn.004bc189
add esp, 0xc
test eax, eax
je 0x4b4bcd
push esi
push esi
push esi
push esi
push esi
call fcn.004b15ec
add esp, 0x14
push 0x104
mov esi, 0x515559
push esi
push 0
mov byte [0x51565d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b4c11
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004bc189
add esp, 0xc
test eax, eax
je 0x4b4c11
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b15ec
add esp, 0x14
push esi
call fcn.004aa880
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b4c56
push esi
call fcn.004aa880
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x515854
push 0x4c51f8
sub ecx, eax
push ecx
push eax
call fcn.004bc0d6
add esp, 0x14
test eax, eax
je 0x4b4c56
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b15ec
add esp, 0x14
jmp 0x4b4c58
xor esi, esi
push 0x4d2cc4
push ebx
push ebp
call fcn.004bc019
add esp, 0xc
test eax, eax
je 0x4b4c78
push esi
push esi
push esi
push esi
push esi
call fcn.004b15ec
add esp, 0x14
push dword [edi*8 + 0x506d04]
push ebx
push ebp
call fcn.004bc019
add esp, 0xc
test eax, eax
je 0x4b4c9a
push esi
push esi
push esi
push esi
push esi
call fcn.004b15ec
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004bc3c0
add esp, 0xc
jmp 0x4b4ce2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b4ce2
cmp ebp, 0xffffffff
je 0x4b4ce2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x506d04]
push dword [esi]
call fcn.004aa880
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 0x4b52c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4b52f6
call fcn.004b062e
mov dword [eax], esi
call fcn.004b061b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b16e8
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4b52d2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b5325
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0641
pop ecx
call fcn.004b061b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4b534c
test al, 1
je 0x4b534c
test byte [esp + 0xc], 2
je 0x4b534c
call fcn.004b062e
mov dword [eax], 5
call fcn.004b061b
mov dword [eax], 0xd
jmp 0x4b531c
xor eax, eax
pop esi
ret
Function at 0x4bc3c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b3259
xor ebx, ebx
cmp dword [0x5159ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4bc496
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bc576
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c9024
push edi
call esi
cmp eax, ebx
je 0x4bc576
push eax
call fcn.004b31eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5159ac], eax
call esi
push eax
call fcn.004b31eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5159b0], eax
call esi
push eax
call fcn.004b31eb
mov dword [0x5159b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004adc32
test eax, eax
pop ecx
pop ecx
je 0x4bc464
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b15ec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4bc496
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004b31eb
cmp eax, ebx
pop ecx
mov dword [0x5159bc], eax
je 0x4bc496
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b31eb
pop ecx
mov dword [0x5159b8], eax
mov eax, dword [0x5159b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bc51b
cmp dword [0x5159bc], ecx
je 0x4bc51b
push eax
call fcn.004b3262
push dword [0x5159bc]
mov esi, eax
call fcn.004b3262
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4bc51b
cmp edi, ebx
je 0x4bc51b
call esi
cmp eax, ebx
je 0x4bc4e8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bc4e8
test byte [ebp - 0x18], 1
jne 0x4bc51b
lea eax, [ebp - 0x10]
push eax
call fcn.004adca5
test eax, eax
pop ecx
je 0x4bc503
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b15ec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4bc512
or dword [ebp + 0x10], 0x200000
jmp 0x4bc556
or dword [ebp + 0x10], 0x40000
jmp 0x4bc556
mov eax, dword [0x5159b0]
cmp eax, dword [ebp - 8]
je 0x4bc556
push eax
call fcn.004b3262
cmp eax, ebx
pop ecx
je 0x4bc556
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4bc556
mov eax, dword [0x5159b4]
cmp eax, dword [ebp - 8]
je 0x4bc556
push eax
call fcn.004b3262
cmp eax, ebx
pop ecx
je 0x4bc556
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5159ac]
call fcn.004b3262
cmp eax, ebx
pop ecx
je 0x4bc576
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bc578
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40af10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6a8]
jne 0x40af1a
repz ret
jmp fcn.0041203c

Function at 0x420f20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f7d4
and dword [ebp - 0x14], 0
cmp dword [0x44e28c], 0
mov dword [ebp - 0x18], eax
jne 0x420fd3
push 0x404348
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42107b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40433c
push ebx
call edi
test eax, eax
je 0x42107b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40432c
push ebx
mov dword [0x44e28c], eax
call edi
push eax
call esi
push 0x404318
push ebx
mov dword [0x44e290], eax
call edi
push eax
call esi
push 0x4042fc
push ebx
mov dword [0x44e294], eax
call edi
push eax
call esi
mov dword [0x44e29c], eax
test eax, eax
je 0x420fd3
push 0x4042e4
push ebx
call edi
push eax
call esi
mov dword [0x44e298], eax
mov eax, dword [0x44e298]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42102c
cmp dword [0x44e29c], ecx
je 0x42102c
push eax
call esi
push dword [0x44e29c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42102c
test ebx, ebx
je 0x42102c
call edi
test eax, eax
je 0x421023
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421023
test byte [ebp - 8], 1
jne 0x42102c
or dword [ebp + 0x10], 0x200000
jmp 0x42105f
mov eax, dword [0x44e290]
cmp eax, dword [ebp - 0x18]
je 0x42105f
push eax
call esi
test eax, eax
je 0x42105f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42105f
mov eax, dword [0x44e294]
cmp eax, dword [ebp - 0x18]
je 0x42105f
push eax
call esi
test eax, eax
je 0x42105f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44e28c]
call esi
test eax, eax
je 0x42107b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42107d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af10
leave
ret
Function at 0x422c80
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1804
call fcn.00421d50
cmp dword [0x7eefa0], 0x37
jne 0x422d4a
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404520
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x404550
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x4045b8
push 0
lea ecx, [esp + 0x80c]
push ecx
push 0x4045d8
push 0x404600
push 0x404620
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 0x1008]
push eax
push 0x404658
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x7eefa4]
mov eax, dword [0x7eb410]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1804
ret
Function at 0x402acf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b30
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b2b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b2b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b27
sub eax, 1
jne 0x402b2b
mov ecx, esi
call fcn.004029da
test eax, eax
jne 0x402b30
xor eax, eax
jmp 0x402b30
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402f00
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403510
call fcn.00403288
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d28
cmp eax, esi
jne 0x402d1b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d2b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cff
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d3d
push 0x1f
call fcn.00495000
pop ecx
jmp 0x402d77
cmp dword [0x4043c4], ebx
jne 0x402d71
mov dword [0x4043c4], esi
push 0x4011a0
push 0x401194
call fcn.00402e5c
pop ecx
pop ecx
test eax, eax
je 0x402d77
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e4c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d9a
push 0x401190
push 0x401184
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402da7
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dd3
push 0x4043c8
call fcn.004030e0
pop ecx
test eax, eax
je 0x402dd3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e31
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e45
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004031d5
jmp 0x402ce3