joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10234590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10243628], 0
mov dword [0x1024362c], 0
mov dword [0x10243638], 0
mov edi, dword [0x10243620]
add edi, 0x3c3
mov dword [0x10243620], edi
mov dword [0x10243624], 0x5f1
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x10234604
mov dword [0x10243620], 0xb60
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10234615
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10243624], 0x1cfd
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10243628], edx
mov dword [0x10243620], 0x18db
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1024362c], edx
mov dword [0x10243624], 0x198a
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10243630], cl
mov dword [0x10243620], 0x13a5
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x10243624], 0x1ce8
mov dword [0x10243620], 0x15f
mov cl, byte [0x10243630]
mov edx, dword [0x1024362c]
mov byte [edi + edx], cl
mov edx, dword [0x10243620]
add edx, 0xffffedd6
mov dword [0x10243620], edx
mov edx, dword [0x10243628]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1024362c]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10243638], ebx
mov dword [0x10243620], 0x2cc
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov edx, dword [0x10243624]
mov bl, cl
add bl, byte [0x1024363d]
mov byte [0x1024363c], bl
mov byte [0x1024363d], ch
mov byte [0x1024363e], cl
xor ch, cl
add edx, 0xffffee6e
mov dword [0x10243624], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov byte [edx + esi], ch
mov dword [0x10243620], 0x13c3
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x38], esi
je 0x1023476b
mov eax, dword [0x10243628]
mov ecx, dword [0x1024362c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x10234615
jmp 0x102345f2
Function at 0x10234f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x10243624], 0x1626
mov ecx, dword [0x10243620]
add ecx, 0x31
mov dword [0x10243620], ecx
mov dword [ebp - 0x10], eax
call fcn.10234920
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x10243620], 0xd6b
mov esi, dword [eax + esi + 0x78]
mov dword [0x10243620], 0x12
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x10243624], 0x40a
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x102350e7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x4a], cl
mov byte [ebp - 0x4b], bl
je 0x10235080
mov eax, dword [ebp - 0x48]
add eax, 1
mov cl, byte [ebp - 0x49]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x4a]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x4b], dl
jne 0x10235024
mov al, byte [ebp - 0x4b]
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
jne 0x102350b1
mov eax, dword [ebp - 0x3c]
add eax, 2
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jb 0x1023500a
jmp 0x102350e0
mov eax, dword [ebp - 0x50]
movzx eax, word [eax]
mov dword [0x10243624], 0x182a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x10243620], 0x274
mov dword [ebp - 0x28], esi
jmp 0x102350e7
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x102350e7
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10235100
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [0x10243624]
add eax, 0x1c78
mov dword [0x10243624], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x10243624], 0x19
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x102351ae
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff9
mov dword [0x10243624], 0x153e
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp word [eax], 0x6c
je 0x1023519a
jmp 0x10235258
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov dword [0x10243624], 0x56e
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x102351dd
jmp 0x10235258
mov eax, 1
mov dword [0x10243624], 0x190e
mov dword [ebp - 0x1c], eax
jmp 0x10235171
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
je 0x10235179
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
jl 0x102351ae
jmp 0x10235179
mov dword [0x10243620], 0x582
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10235258
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10235258
mov dword [0x10243620], 0x7df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10235258
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x64
jne 0x10235258
mov dword [0x10243620], 0x91c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10235145
xor eax, eax
mov dword [0x10243620], 0x10e3
mov dword [ebp - 0x1c], eax
jmp 0x10235171
Function at 0x10235ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x10243620], 0x1594
call fcn.10001090
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
jne 0x10235d44
lea eax, [esp + 0x30]
mov dword [0x10243624], 0x1aa1
mov dword [0x10243620], 0x17ad
mov dword [esp + 0x28], eax
call fcn.10235100
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, 0
mov dword [esp + 0x20], eax
jne 0x10235d3c
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.10235350
lea ecx, [esp + 0x30]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x7c], edx
mov dword [0x10243624], 0x1364
add ecx, 0x3c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea eax, [0x10234030]
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0x134000
mov edx, dword [0x1024360c]
mov dword [esp + 0x74], edx
mov edx, dword [0x10243610]
mov dword [esp + 0x34], edx
mov edx, dword [0x10243614]
mov dword [esp + 0x84], edx
mov edx, dword [0x10243618]
mov dword [esp + 0x70], edx
mov edx, dword [0x1024361c]
mov dword [esp + 0x30], edx
mov dword [0x10243620], 0x423
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10235cb7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
je 0x10235ccb
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10235c90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x30]
mov dword [esp + 0x64], eax
mov dword [0x10243624], 0x2099
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x44], eax
mov dword [0x10243620], 0xa15
mov eax, dword [esp + 0x90]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.10234cb0
mov ecx, dword [0x10243620]
add ecx, 0xbd7
mov dword [0x10243620], ecx
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x10243620], 0x1824
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
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 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
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 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
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 0x41e5a4
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 0x59fa63
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 0x41e655
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 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
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 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
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 0x59fa6a
ret
Function at 0x41eec4
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 0x5a0473
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 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x5ba2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x5ba2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x5b910c]
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 0x41f045
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.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
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.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
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.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
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 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a047a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10016270
Capabilities:
Encode data using xor

Disassembly:
cli
invalid
mov ebx, 0x1a279898
or al, 0x33
xor ecx, dword [esi]
xor ecx, dword [esi]
jle 0x1001626a
inc ecx
clc
js 0x1001620c
cmpxchg byte [ecx + 0x5c62edd0], ah
dec ecx
pop esi
push esp
mov ebp, 0xeb9a2d32
and eax, 0x262dd346
cmpsb byte [esi], byte es:[edi]
movsb byte es:[edi], byte [esi]
or al, 0x2b
dec edx
push esi
stosd dword es:[edi], eax
pop es
xchg byte [eax + 0x75ab65f0], dl
ror byte [ebx + 0x7590e5d2], cl
ret

Function at 0xf6e000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xf6e00a
jmp 0xf7000f
jmp fcn.00b0e160
Function at 0x1001ee2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push ebx
mov ebx, ecx
cmp word [ebx + 4], 0
push esi
push edi
jne 0x1001f04
mov esi, 0x81000002
jmp 0x1001fd8
mov ecx, ebx
call fcn.010017eb
mov esi, eax
test esi, esi
jl 0x1001fcb
lea eax, [ebp - 8]
push eax
push 0x100137c
push 1
push 0
push 0x100136c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x1001fcb
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001fd8
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x110]
mov esi, eax
test esi, esi
jl 0x1001fcb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xfc]
mov esi, eax
test esi, esi
jl 0x1001fcb
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebx + 0x418]
push eax
mov word [ebp - 0x18], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x1001fcb
cmp word [ebp - 4], 0xffff
je 0x1001fbe
mov esi, 0x81000004
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [ebx + 0x20c], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001fd8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx + 0x210]
cmp word [eax], 0
je 0x1001fed
push eax
call edi
add ebx, 0x418
cmp word [ebx], 0
je 0x1001ffc
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10029be
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1006040]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x40c]
mov dword [ebp - 4], eax
call fcn.010016d9
push 0x3ea
lea ecx, [ebp - 0x408]
call fcn.010016d9
xor ebx, ebx
cmp dword [ebp - 0x40c], ebx
je 0x1002ad3
cmp dword [ebp - 0x408], ebx
je 0x1002ae7
push 0x80
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebp - 0x40c]
add esp, 0xc
cmp eax, ebx
mov word [ebp - 0x106], bx
mov esi, 0x100119c
jne 0x1002a40
mov eax, esi
lea ecx, [ebp - 0x204]
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp edi, ebx
je 0x1002ab8
cmp edi, 0xffffffff
je 0x1002ab8
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10012f8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1002ad3
cmp dword [ebp - 0x408], ebx
je 0x1002ac6
mov esi, dword [ebp - 0x408]
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0100282d
cmp dword [ebp - 0x408], ebx
je 0x1002ae7
push dword [ebp - 0x408]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x40c], ebx
pop edi
pop esi
pop ebx
je 0x1002afe
push dword [ebp - 0x40c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
call fcn.01004bb2
leave
ret 0xc
Function at 0x1002b0f
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1006040]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
je 0x1002c7b
cmp word [edi], bx
je 0x1002c7b
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x408], esi
mov ebx, 0x100
jne 0x1002bba
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x414], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1002bf0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1002ba5
call esi
mov esi, eax
jmp 0x1002c7e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002c7e
sub esi, edi
sar esi, 1
cmp esi, ebx
jae 0x1002c7b
push esi
lea eax, [ebp - 0x204]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov edi, dword [ebp - 0x408]
and word [ebp + esi*2 - 0x204], 0
add esp, 0xc
add edi, 2
mov dword [ebp - 0x408], edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
call esi
mov edi, eax
mov dword [esp], 0x1001280
call esi
add edi, eax
lea eax, [ebp - 0x204]
push eax
call esi
add edi, eax
cmp edi, ebx
pop ecx
pop ecx
ja 0x1002c7b
push dword [ebp - 0x408]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x1001280
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push 0x100164c
lea eax, [ebp - 0x404]
push eax
call sub.ACTIVEDS.dll_ADsGetObject
mov esi, eax
test esi, esi
jge 0x1002cb4
cmp esi, 0x80005002
je 0x1002c7b
cmp esi, 0x80005004
je 0x1002c7b
cmp esi, 0x80005000
je 0x1002c7b
and eax, 0xffff
cmp eax, 0x8ad
jne 0x1002c7e
xor esi, esi
inc esi
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x1002c8e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x40c], 0
je 0x1002ca3
push dword [ebp - 0x40c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01004bb2
leave
ret 0xc
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jbe 0x1002c7e
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
lea edx, [ebp - 0x40c]
push edx
push eax
call dword [ecx + 0x88]
mov edi, dword [ebp - 0x418]
and word [edi], 0
mov esi, eax
test esi, esi
jne 0x1002c7e
push ebx
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
and word [edi + ebx*2 - 2], si
jmp 0x1002c7e