joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d85e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1d892a6b
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x41440fd1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd18
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 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
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 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
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 0x41cd40
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 0x41e558
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1c2da17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
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 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
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 0x1c2da1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x1c2e40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x1c47268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x1c47268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x1c460e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1c2e416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404af0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af08b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ea080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004ac8a0
push 4
mov dword [ebp - 4], 0
call fcn.0048eae1
mov edi, eax
add esp, 4
test edi, edi
je 0x404b6c
call fcn.004ac778
mov dword [edi], eax
call fcn.004ac537
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004ac861
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404b62
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004ac889
jmp 0x404b6e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ea080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0048eae1
add esp, 4
cmp eax, ebx
je 0x408c74
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.0048eae1
add esp, 4
cmp eax, ebx
je 0x408c50
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0048e2c2
push 0x4cdfd8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0048eb61
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0048e2c2
push 0x4cdfd8
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0048eb61
int3

Function at 0x40d560
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af243
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4ea080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x4ed6e8
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], vtable.TiXmlDocument.0
mov dword [edi], 0x4ed6e8
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x4c72f7
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.0040c280
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x40d877
cmp byte [ebx + 0x2c], 0
jne 0x40d86d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d850
sub eax, esi
push edx
lea edi, [ebx + 0x34]
mov esi, eax
call fcn.0040c280
or eax, 0xffffffff
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40d891
mov edi, edi
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
test esi, esi
jne 0x40d880
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
push edi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.00490fc7
push edi
call fcn.00496a90
push 0
mov esi, eax
push 0
push edi
mov dword [ebp - 4], esi
call fcn.00490fc7
add esp, 0x1c
test esi, esi
jg 0x40d8ef
cmp byte [ebx + 0x2c], 0
jne 0x40d86d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xc
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d8e3
jmp 0x40d857
lea eax, [esi + 1]
push eax
call fcn.0048eae1
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edi, eax
push esi
push edi
mov byte [edi], 0
call fcn.00490e04
add esp, 0x14
cmp eax, 1
je 0x40d94c
push edi
call fcn.0048e224
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x40d86d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
jmp 0x40d940
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d940
jmp 0x40d857
mov edx, dword [ebp - 4]
mov byte [edi + edx], 0
cmp byte [edi], 0
mov eax, edi
mov esi, edi
je 0x40d97c
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0xd
jne 0x40d973
mov byte [esi], 0xa
inc eax
inc esi
cmp byte [eax], 0xa
jne 0x40d977
jmp 0x40d976
mov byte [esi], cl
inc esi
inc eax
cmp byte [eax], 0
jne 0x40d960
mov ecx, dword [ebp + 0xc]
push ecx
mov byte [esi], 0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 0
push edi
mov ecx, ebx
call edx
push edi
call fcn.0048e224
add esp, 4
xor eax, eax
cmp byte [ebx + 0x2c], al
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x411ce0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
xor eax, eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov ax, word [ecx]
push 0x4b1934
lea ecx, [ebp - 0xc]
push 4
push ecx
xor esi, esi
mov word [ebp - 0xc], ax
call fcn.0048f473
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop esi
test eax, eax
je 0x411d5a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
xor edx, edx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret

Function at 0x411d70
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x23
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, dword [ebp + 0xc]
push 0x4b1850
push edi
push esi
call fcn.0048efa0
push str.Shouyoudao
push edi
push esi
call fcn.0048efa0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x18
push esi
call ebx
test eax, eax
jne 0x411dc6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.Log
push edi
push esi
call fcn.0048efa0
add esp, 0xc
push esi
call ebx
test eax, eax
jne 0x411de4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.ShouyoudaoLog_
push edi
push esi
call fcn.0048efa0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e02
sub eax, edx
mov edx, eax
mov eax, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e12
movzx ecx, word [ebp - 8]
push ecx
movzx ecx, word [ebp - 0xa]
push ecx
movzx ecx, word [ebp - 0xc]
push ecx
movzx ecx, word [ebp - 0xe]
push ecx
movzx ecx, word [ebp - 0x12]
push ecx
movzx ecx, word [ebp - 0x14]
push ecx
sub eax, ebx
push str._d__02d__02d.log
sub edi, edx
add eax, esi
push edi
push eax
call fcn.0048f16e
mov ecx, dword [ebp - 4]
add esp, 0x24
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
Function at 0x412470
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push edi
lea eax, [ebp - 4]
push eax
push 0x4b4ea0
mov edi, 1
push edi
push 0
push 0x4b4ed0
call esi
cmp eax, 0x800401f0
jne 0x4124a4
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 4]
push ecx
push 0x4b4ea0
push 1
push 0
push 0x4b4ed0
call esi
test eax, eax
jne 0x412554
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x4b4ec0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x412554
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x412515
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4124f2
sub eax, esi
sar eax, 1
je 0x412515
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [ecx + 0x44]
push eax
call edx
test eax, eax
jne 0x412554
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x412554
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
jne 0x41254a
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x100009
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x412582
mov al, 1
pop esi
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x412596
xor al, al
pop esi
pop ebp
ret 4
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
pop esi
pop ebp
ret 4
Function at 0x4125b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x434]
push ebx
push eax
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
call fcn.0048f070
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x412610
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x438]
push ecx
push edi
mov dword [ebp - 0x438], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41270c
push 0x206
lea eax, [ebp - 0x20a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x20c], dx
call fcn.0048f070
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0048f4e8
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0048f71c
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 0x20
jmp 0x412680
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0048f71c
add esp, 8
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4126c6
test dx, dx
je 0x4126c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4126c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4126a0
xor eax, eax
jmp 0x4126cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4126f7
mov ecx, dword [ebp - 0x430]
push ecx
push eax
push 0x410
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x430]
push esi
cmp eax, ecx
jne 0x412730
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x438]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412680
test edi, edi
je 0x412717
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x43c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x43c], ecx
call esi
push edi
call esi
jmp 0x412717
Function at 0x412eb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov edi, ecx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412ec0
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x48]
push edx
mov ecx, esi
call fcn.004110e0
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x412ee9
mov eax, dword [esi]
jmp 0x412eeb
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412f0a
cmp dword [esi + 0x14], ebx
jb 0x412eff
mov eax, dword [esi]
jmp 0x412f01
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [edi + 0x58]
dec eax
cmp dword [esi + 0x10], eax
ja 0x412f1d
push str.invalid_string_position
call fcn.00425ae7
cmp dword [esi + 0x14], ebx
jb 0x412f26
mov ecx, dword [esi]
jmp 0x412f28
mov ecx, esi
cmp word [ecx + eax*2], 0x5c
je 0x412f3d
push 1
push 0x4b1930
mov ecx, esi
call fcn.004111d0
push 0xffffffffffffffff
push 0
add edi, 0xd4
push edi
mov ecx, esi
call fcn.00410ed0
cmp dword [esi + 0x14], ebx
jb 0x412f58
mov eax, dword [esi]
jmp 0x412f5a
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x412f7b
cmp dword [esi + 0x14], ebx
jb 0x412f70
mov eax, dword [esi]
jmp 0x412f72
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], ebx
jb 0x412f84
mov eax, dword [esi]
jmp 0x412f86
mov eax, esi
push eax
call edi
test eax, eax
jne 0x412f9c
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], ebx
jb 0x412f97
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x412fb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov edi, ecx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412fc0
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x64]
push edx
mov ecx, esi
call fcn.004110e0
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x412fe9
mov eax, dword [esi]
jmp 0x412feb
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41300a
cmp dword [esi + 0x14], ebx
jb 0x412fff
mov eax, dword [esi]
jmp 0x413001
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [edi + 0x74]
dec eax
cmp dword [esi + 0x10], eax
ja 0x41301d
push str.invalid_string_position
call fcn.00425ae7
cmp dword [esi + 0x14], ebx
jb 0x413026
mov ecx, dword [esi]
jmp 0x413028
mov ecx, esi
cmp word [ecx + eax*2], 0x5c
je 0x41303d
push 1
push 0x4b1930
mov ecx, esi
call fcn.004111d0
push 0xffffffffffffffff
push 0
add edi, 0xd4
push edi
mov ecx, esi
call fcn.00410ed0
cmp dword [esi + 0x14], ebx
jb 0x413058
mov eax, dword [esi]
jmp 0x41305a
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x41307b
cmp dword [esi + 0x14], ebx
jb 0x413070
mov eax, dword [esi]
jmp 0x413072
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], ebx
jb 0x413084
mov eax, dword [esi]
jmp 0x413086
mov eax, esi
push eax
call edi
test eax, eax
jne 0x41309c
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], ebx
jb 0x413097
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
pop edi
pop esi
pop ebx
pop ebp
ret 4