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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4de130]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460784
cmp byte [ebx], 0xa
jne 0x460784
or byte [eax + edi + 0x28], 4
jmp 0x460789
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x460887
mov al, byte [edx]
cmp al, 0x1a
je 0x460869
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4607b8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4607dd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4607e7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46079a
jmp 0x460887
push 0
lea eax, [ebp - 0xc]
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 0x460864
cmp dword [ebp - 0xc], 0
je 0x460864
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4de130]
test byte [eax + edi + 0x28], 0x48
je 0x46083e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x460829
mov byte [esi], dl
jmp 0x46083a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4de130]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x460887
cmp byte [ebp - 1], 0xa
jne 0x46084d
cmp esi, ebx
jne 0x46084d
mov byte [esi], 0xa
jmp 0x460886
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401613
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x460887
mov byte [esi], 0xd
jmp 0x460886
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4de130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460883
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460887
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4608e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4de130]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460926
cmp word [esi], dx
jne 0x460926
or byte [edi + eax + 0x28], 4
jmp 0x46092b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x460a7e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x460a5e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46096d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4609a3
cmp eax, edx
jae 0x4609af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x460945
jmp 0x460a7e
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 0x460a5a
cmp dword [ebp - 0x14], 0
je 0x460a5a
mov eax, dword [ebx*4 + 0x4de130]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x460a32
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4609fb
mov word [esi], cx
jmp 0x460a2e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4de130]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4de130]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4de130]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x460a7e
pop ebx
cmp word [ebp - 4], bx
jne 0x460a43
cmp esi, dword [ebp + 0xc]
jne 0x460a43
mov word [esi], bx
jmp 0x460a7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401613
add esp, 0x10
cmp word [ebp - 4], bx
je 0x460a7e
push 0xd
jmp 0x460a77
mov ecx, dword [ebx*4 + 0x4de130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460a75
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460a7e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x409280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40928f
pop dword [ebp - 0x24]
mov eax, 0x40928f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xa08601f
add dword [ebp - 0x34], 0x4449e52c
mov dword [ebp - 0x30], 0x7cd6e93
sub dword [ebp - 0x30], 0xd59a224e
mov dword [ebp - 0x2c], 0x292ec16e
add dword [ebp - 0x2c], 0x231d82c0
mov dword [ebp - 0x28], 0xabe30af3
sub dword [ebp - 0x28], 0xabe30af3
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x7e4d3b25
add dword [ebp - 0x34], 0xf6252e31
mov dword [ebp - 0x30], 0x7b4e79b9
add dword [ebp - 0x30], 0xc61de7bc
mov dword [ebp - 0x2c], 0xe7c950d1
sub dword [ebp - 0x2c], 0x8459e465
mov dword [ebp - 0x28], 0x6b89d98f
sub dword [ebp - 0x28], 0x6b89d98f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3992d
push 0
call eax
mov ecx, 0x7c7c2156
add ecx, 0x838423a0
xor esi, esi
add esi, eax
mov edi, 0x4e34912e
sub edi, 0x4df29d2e
add edi, dword [ebp - 0x24]
mov edx, 0x65fc0700
sub edx, 0x7c3c993d
sub dword [ebp - 0xc], edi
mov ebx, dword [edi]
add dword [ebp - 0x18], 0x155a16b0
xor ebx, edx
mov dword [ebp - 0x10], 0xe0b4de64
mov dword [esi], ebx
add esi, 4
add edi, 0x29f73922
sub edi, 0x29f7391e
loop 0x4093a4
add eax, 0x3a7a4a5c
sub eax, 0x3a7943b1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xeb505764
add ecx, 0x14efa89c
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x5539c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd2000]
push edi
jmp 0x5539da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5539e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5539d0
mov eax, 1
add ebx, ebx
jne 0x5539f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x553a04
jne 0x553a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553a23
dec eax
add ebx, ebx
jne 0x553a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5539e8
add ebx, ebx
jne 0x553a1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x553a75
xor ecx, ecx
sub eax, 3
jb 0x553a3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x553aaa
sar eax, 1
mov ebp, eax
jmp 0x553a46
add ebx, ebx
jne 0x553a46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553a14
inc ecx
add ebx, ebx
jne 0x553a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553a14
add ebx, ebx
jne 0x553a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x553a56
jne 0x553a72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x553a56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x553a94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x553a86
jmp 0x5539d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x553a94
add edi, ecx
jmp 0x5539d6
pop esi
mov edi, esi
mov ecx, 0x5abb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x553ab2
cmp byte [edi], 0x11
jne 0x553ab2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x553ab7
lea edi, [esi + 0x150000]
mov eax, dword [edi]
or eax, eax
je 0x553b2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x160074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1601e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x553ae4
mov ecx, edi
jns 0x553b13
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 + 0x1601ec]
or eax, eax
je 0x553b29
mov dword [ebx], eax
add ebx, 4
jmp 0x553b01
call dword [esi + 0x1601e8]
mov ebp, dword [esi + 0x1601f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x553b63
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40102d
Capabilities:
Access peb ldr_data
Reference cloudflare dns server

Disassembly:
jmp 0x402330
push 0xffffffffffffffff
push 0x47eb51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x49cd18]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x2c]
mov dword [edi], eax
mov edx, dword [0x49cd18]
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov dword [ecx], edx
mov eax, dword [0x49cd18]
lea ebx, [esi + 0x34]
mov dword [ebx], eax
push str.1.0.0.1
mov byte [esp + 0x1c], 2
mov dword [esi], 0x484004
mov dword [esi + 4], 0
call fcn.0044a8ce
push 0x4a30bc
mov ecx, ebx
call fcn.0044a8ce
push 0x4a30bc
mov ecx, edi
call fcn.0044a8ce
mov ecx, 0x19
xor eax, eax
lea edi, [esi + 0x38]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.00401190
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x9c], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40118b
Capabilities:
Copy file
Create directory

Disassembly:
jmp 0x40b070
push 0xffffffffffffffff
push 0x47f4b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x34]
push 0x5c
push edx
call fcn.0041af40
add esp, 8
test eax, eax
je 0x40b29f
push ebx
lea eax, [esp + 0x38]
push 0x5c
push eax
call fcn.0041af40
add esp, 8
lea ecx, [esp + 0x38]
mov byte [eax], 0
push str.img
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x38]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x49cd18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x144], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.00415b0c
add esi, 0x3fc
mov bl, 2
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call fcn.0044a87e
push 0
push 0x49c610
lea ecx, [esp + 0x14]
call 0x43f85a
test eax, eax
je 0x40b268
push 0x5c
lea ecx, [esp + 0x10]
call 0x43f82a
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0043f75c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 3
call fcn.0044a87e
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.0044a745
lea ecx, [esp + 0xc]
push str.img.
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0044a9da
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 4
call fcn.0044a87e
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.0044a745
mov eax, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00415bcf
lea ecx, [esp + 0x1c]
call fcn.00415def
test eax, eax
je 0x40b25f
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1c]
call fcn.00415def
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00415fe7
mov edx, dword [eax]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
mov byte [esp + 0x154], 5
call fcn.0043fbd2
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.0044a745
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.00415ebe
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.0044a745
test esi, esi
jne 0x40b1ed
lea ecx, [esp + 0x1c]
call fcn.00415b85
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.00415b49
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 0
call fcn.0044a745
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call fcn.0044a745
pop ebx
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
Function at 0x4011b3
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x402550
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40261d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BroadCast_Process
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.Call_Process
push eax
call edi
mov ecx, dword [esi + 4]
push str.Get_ObjInfoList
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.RsCommxFree
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push str.Register_Client
push eax
call edi
mov ecx, dword [esi + 4]
push str.UnRegister_Client
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push str.GetSessionID
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push str.SetCallEnterPoint
push eax
call edi
mov ecx, dword [esi + 4]
push str.Get_ActiveObjInfoList
push ecx
mov dword [esi + 0x24], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x28], eax
test ecx, ecx
pop edi
je 0x40261d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40261d
test eax, eax
je 0x40261d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40261d
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401c66
pop dword [ebp - 0x14]
mov eax, 0xb2768860
add eax, 0x4dc99406
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x1bc69c8
add dword [ebp - 0x24], 0x4c95db83
mov dword [ebp - 0x20], 0x105f3ee
sub dword [ebp - 0x20], 0xced2a7a9
mov dword [ebp - 0x1c], 0x7b922b3f
add dword [ebp - 0x1c], 0xd0ba18ef
mov dword [ebp - 0x18], 0xe2295cad
add dword [ebp - 0x18], 0x1dd6a353
lea eax, [ebp - 0x24]
push eax
mov eax, 0xadaf2fde
sub eax, 0xad6eff8a
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xab558576
sub dword [ebp - 0x24], 0x36e31c20
mov dword [ebp - 0x20], 0xab5f00b8
sub dword [ebp - 0x20], 0x69f29f43
mov dword [ebp - 0x1c], 0x5d74a78c
sub dword [ebp - 0x1c], 0xfa053b20
mov dword [ebp - 0x18], 0xf3185c61
sub dword [ebp - 0x18], 0xf3185c61
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xd54e98d1
sub eax, 0xd50e68a5
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x34fe2
push 0
call eax
mov ecx, 0x411b0bb5
add ecx, 0xbee53657
mov edx, eax
mov ebx, 0x407000
add ebx, dword [ebp - 0x14]
mov esi, 0x8a80e199
xor dword [ebp - 0x10], edx
mov edi, dword [ebx]
add dword [ebp - 4], edi
sub edi, esi
mov dword [edx], edi
xor dword [ebp - 0x10], ebx
add edx, 0xdd2255a1
sub edx, 0xdd22559d
add ebx, 4
loop 0x401d7c
add eax, 0x4d522093
sub eax, 0x4d512590
mov ebx, eax
add eax, 0x17625169
sub eax, 0x17625164
mov ecx, 0x9a7d38cf
add ecx, 0x65c2c731
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x1003da2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002c10
call fcn.01003ff8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1003ddf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ddf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003df7
cmp eax, 0x20b
je 0x1003de4
mov dword [ebp - 0x1c], ebx
jmp 0x1003e0b
cmp dword [ecx + 0x84], 0xe
jbe 0x1003ddf
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1003e05
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ddf
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10053f8], 0xffffffff
or dword [0x10053fc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10053f4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10053f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005400], eax
call fcn.01003ff0
cmp dword [0x1005110], ebx
jne 0x1003e66
push fcn.01003ff0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003fd9
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10053ec]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10053e8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1003efc
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1003ed0
cmp al, 0x22
jne 0x1003ec2
cmp byte [esi], 0x22
jne 0x1003ed9
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1003ee3
cmp al, 0x20
jbe 0x1003ed5
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1003f07
movzx eax, word [ebp - 0x50]
jmp 0x1003f0a
cmp byte [esi], 0x20
jbe 0x1003ed9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1003efc
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003f27
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003f5c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004033
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x9fa80a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9fa811
ret