joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006e38
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x1003d9c0], 0x14f3
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1003d9c4], 0x1ab8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10006ed9
mov eax, 0x37d
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jmp 0x10006f74
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10006f51
jmp 0x10006e79
mov eax, dword [ebp - 0x24]
mov dword [0x1003d9c0], 0xbf9
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x10006f12
jmp 0x10006e79
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff6
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x64
je 0x10006f39
jmp 0x10006e79
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edx
je 0x10006ea0
mov dword [0x1003d9c0], 0x496
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
jl 0x10006ed9
jmp 0x10006ea0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10006e79
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10006ebe
jmp 0x10006e79
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10006e8b
jmp 0x10006e79
mov eax, 0xc37
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x10006e79
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [0x1003d9c0], ecx
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x100072a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1003d9c0], 0x2127
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10007312
lea eax, [ebp - 0x24]
mov ecx, dword [0x1003d9c4]
add ecx, 0xffffde08
mov dword [0x1003d9c0], ecx
mov dword [ebp - 0x34], eax
call fcn.100083d5
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10007122
mov ecx, dword [0x1003d9c4]
add ecx, 0xffffe4f9
mov dword [0x1003d9c0], ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x100073e0
jmp 0x1000733a
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10010245]
mov dl, byte [eax + 0x10010216]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x100072c4
jmp 0x10007312
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10007aa9
xor eax, eax
mov ecx, dword [0x1003d9c4]
add ecx, 0xfffff1f1
mov dword [0x1003d9c4], ecx
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x34], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x54], ecx
mov dword [0x1003d9c0], 0x222f
add ecx, 0x1302
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x100073d7
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100073e8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x1003d9c4], 0x2c6
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10007c1b
lea ecx, [0x10006ce1]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x80], edx
mov dword [esp + 0x60], 0x13a400
mov edx, dword [0x1003d9ac]
mov dword [esp + 0x58], edx
mov edx, dword [0x1003d9b0]
mov dword [esp + 0x38], edx
mov edx, dword [0x1003d9b4]
mov dword [esp + 0x4c], edx
mov edx, dword [0x1003d9b8]
mov dword [esp + 0x40], edx
mov dword [0x1003d9c4], 0x1af5
mov edx, dword [0x1003d9bc]
mov dword [esp + 0x5c], edx
mov dword [0x1003d9c0], 0x138d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10007561
lea eax, [esp + 0x28]
mov dword [0x1003d9c4], 0x2435
add eax, 8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.100072a0
mov dword [0x1003d9c0], 0x79e
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1003d9c0], 0x95
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0xc], ecx
mov byte [esp + 0xb], dl
mov al, byte [esp + 0xb]
test al, 1
jne 0x1000751e
jmp 0x10007500
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x1003d9c4], 0x38b
mov dword [esp + 0x1c], eax
jmp 0x10007561
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov dword [0x1003d9c4], 0xaee
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x78], edx
mov dword [0x1003d9c0], 0x315a
call fcn.10006e38
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x1000747e
jmp 0x100074d5
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x100074dd
jmp 0x10007500
Function at 0x100075e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [0x1003d9c0]
mov edx, ecx
add edx, 0xfffff6de
mov dword [0x1003d9c4], edx
add ecx, 0x20be
mov dword [0x1003d9c0], ecx
mov dword [ebp - 0x10], eax
call fcn.10007f14
xor ecx, ecx
mov edx, eax
mov dword [0x1003d9c4], 0xaee
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1000764f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1003d9c0], 0x37d0
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10007796
jmp 0x100076b2
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x1003d9c4], 0x185
mov dword [ebp - 0x30], edi
jmp 0x10007796
mov eax, 0x37d0
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
jmp 0x100076fc
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
jae 0x10007796
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
xor esi, esi
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + eax*4]
add edx, 0x20be
mov dword [0x1003d9c0], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
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 dword [ebp - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x56], cl
je 0x10007786
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x56]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x5d], ch
mov al, byte [ebp - 0x5d]
test al, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], ecx
jne 0x10007728
jmp 0x10007786
mov al, byte [ebp - 0x56]
test al, 1
jne 0x1000768a
jmp 0x100076ce
mov eax, dword [ebp - 0x30]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100077e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1003d9cc], 0
mov byte [0x1003d9d0], 0
mov dword [0x1003d9c4], 0xcfb
mov dword [0x1003d9c8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100078d3
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1003d9d4], 0
mov dword [0x1003d9c4], 0xdbb
mov edx, dword [0x1003d9cc]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1003d9d4], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1003d9cc], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1003d9d0], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1003d9d0]
mov edx, dword [0x1003d9cc]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1003d9c0], 0x11e3
mov edx, dword [0x1003d9c8]
add edx, 1
mov dword [0x1003d9c8], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1000782a
jmp 0x10007921
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1003d9c0], 0xd68
mov eax, dword [0x1003d9c8]
add eax, 1
mov dword [0x1003d9c8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100078d3
xor eax, eax
mov dword [0x1003d9c0], 0x267c
mov dword [0x1003d9c8], 0
mov dword [ebp - 0x20], eax
jmp 0x1000782a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007929
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1003d9c8], 0
mov dword [0x1003d9cc], 0
mov dword [0x1003d9d8], 0
mov dword [0x1003d9c0], 0x1cad
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x10007aa1
xor eax, eax
mov ecx, dword [0x1003d9c4]
add ecx, 0xffffe8f8
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov edi, 0x100
mov dword [0x1003d9c0], ecx
add edx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv edi
mov dword [0x1003d9c8], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x1003d9cc], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1003d9d0], cl
mov dword [0x1003d9c0], 0x529
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x1003d9d0]
mov edx, dword [0x1003d9cc]
mov byte [edi + edx], cl
mov edx, dword [0x1003d9c8]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1003d9cc]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1003d9d8], ebx
mov edx, dword [0x1003d9c4]
add edx, 0x23cb
mov dword [0x1003d9c0], edx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov dword [0x1003d9c0], 0x2659
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x1003d9c4], 0x1a98
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x10007aa1
mov eax, dword [0x1003d9c8]
mov dword [ebp - 0x3c], eax
mov eax, 0x390
mov ecx, dword [0x1003d9cc]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esi
jmp 0x1000799b
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x641f4ab9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x47ab5a6e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403e8c
Capabilities:
Encode data using xor

Disassembly:
push 0x10
mov eax, 0x589538
call fcn.00455402
lea eax, [ebp - 0xd]
push eax
push 0x29266
lea ecx, [ebp - 0x1c]
call fcn.00403d01
mov edx, dword [ebp - 0x1c]
mov esi, section..data
and dword [ebp - 4], 0
mov ecx, edx
sub esi, edx
mov edi, 0x29265
mov al, byte [esi + ecx]
xor al, 0xd
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x403ebe
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xd]
push eax
lea eax, [edx + 0x29265]
push eax
push edx
call fcn.00403b60
lea ecx, [ebp - 0x1c]
call fcn.00404099
mov eax, dword [ebp + 8]
call fcn.004553cb
ret
Function at 0x4045ad
Capabilities:
Encode data using xor

Disassembly:
push 0x14
mov eax, 0x589576
call fcn.00455402
mov esi, ecx
cmp dword [esi + 0x2c], 0
mov dword [ebp - 0x14], 0x78563412
je 0x40478c
cmp dword [esi + 0x2c], 1
je 0x40478c
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], al
push 4
pop ecx
cmp edi, eax
ja 0x4045fe
cmp ebx, 0x7e
jae 0x4045fe
push 2
pop edx
jmp 0x404600
mov edx, ecx
cmp edi, eax
ja 0x404610
cmp ebx, 0x10000
jae 0x404610
mov ecx, eax
jmp 0x404613
push 6
pop ecx
lea eax, [ebp - 0xd]
push eax
xor eax, eax
cmp byte [esi + 0x30], al
push 4
pop edi
cmovne eax, edi
add eax, edx
add eax, ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.00404d38
mov edx, dword [ebp - 0x20]
xor edi, edi
mov al, byte [ebp + 8]
mov ecx, dword [ebp + 0x10]
or al, 0x80
mov byte [edx], al
cmp ecx, edi
ja 0x404674
jb 0x40464b
push 0x7e
pop eax
cmp ebx, eax
jae 0x404677
cmp byte [esi + 0x30], 0
mov edi, dword [ebp + 0x10]
sete al
dec al
and al, 0x80
or al, bl
mov byte [edx + 1], al
cmp byte [esi + 0x30], 0
je 0x404711
mov dword [edx + 2], 0x78563412
jmp 0x404711
push 0x7e
pop eax
cmp ecx, edi
ja 0x4046b4
jb 0x404685
cmp ebx, 0x10000
jae 0x4046b4
cmp byte [esi + 0x30], 0
mov ecx, 0xfe
mov edi, dword [ebp + 0x10]
cmovne eax, ecx
mov ecx, ebx
mov byte [edx + 1], al
mov eax, edi
shrd ecx, eax, 8
mov byte [edx + 2], cl
mov byte [edx + 3], bl
cmp byte [esi + 0x30], 0
je 0x404711
mov dword [edx + 4], 0x78563412
jmp 0x404711
cmp byte [esi + 0x30], 0
mov edi, 0xff
push 0x7f
pop eax
cmovne eax, edi
mov edi, dword [ebp + 0x10]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x18
mov byte [edx + 2], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ecx
shr eax, 8
mov byte [edx + 4], al
mov eax, edi
mov byte [edx + 5], cl
mov ecx, ebx
shrd ecx, eax, 0x18
mov byte [edx + 6], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov byte [edx + 7], cl
mov ecx, ebx
shrd ecx, eax, 8
mov byte [edx + 8], cl
mov byte [edx + 9], bl
cmp byte [esi + 0x30], 0
je 0x404711
mov dword [edx + 0xa], 0x78563412
push dword [ebp + 8]
lea eax, [esi + 0x10]
push dword [ebp - 0x1c]
mov ecx, eax
mov dword [ebp + 0x10], eax
push edx
push dword [esi + 0x14]
call fcn.0040421f
push dword [ebp + 8]
lea ecx, [esi + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 0x14]
call fcn.0040421f
cmp byte [esi + 0x30], 0
je 0x404784
lea eax, [esi + 0x10]
xor edx, edx
mov esi, dword [eax + 4]
mov ecx, edx
sub esi, dword [eax]
sub esi, ebx
mov dword [ebp + 8], ecx
cmp ebx, edx
jne 0x40475b
cmp edi, edx
je 0x404784
lea edx, [ecx + esi]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
and eax, 3
mov al, byte [ebp + eax - 0x14]
xor byte [edx + ecx], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, ebx
jne 0x40475b
xor eax, eax
cmp eax, edi
mov eax, dword [ebp + 0x10]
jne 0x40475b
lea ecx, [ebp - 0x20]
call fcn.00404099
call fcn.004553cb
ret 0x14
Function at 0x405464
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x646384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push edi
push 0x20
push 0
push eax
or edi, 0xffffffff
call fcn.005128c0
push dword [ebp + 0xc]
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x14]
push 0x59a94c
push 0x10
push eax
mov dword [ebp - 0x30], 1
call fcn.0040456e
add esp, 0x1c
cmp dword [esi + 0x14], 0x10
jb 0x4054b2
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4054ec
push eax
call fcn.004059af
push 2
mov esi, eax
call fcn.005166b3
push esi
push str.getaddrinfo:__s_n
push eax
call fcn.00405996
xor eax, eax
add esp, 0x14
inc eax
jmp 0x405538
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40552f
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x405525
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40552c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4054f3
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004553ba
leave
ret

Function at 0x405afa
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x646384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x405b2e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405b2e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x405be4
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x405b4d
cmp dx, 0x5c
jne 0x405b4f
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x405b41
cmp esi, ebx
je 0x405b97
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00511dc0
add esp, 0xc
cmp esi, 0x208
jae 0x405bf2
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.00405afa
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x405bb4
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0051ef64
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0051ef33
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405be4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004553ba
leave
ret
call fcn.004555ff
int3
Function at 0x40617f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40622b
cmp dword [esi + 4], 0xffffffff
jne 0x40622b
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0051ef86
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4061d2
cmp eax, 0x2f
je 0x4061d2
push 0x59c3f8
push edi
call fcn.0051ef33
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x4061f4
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4061f4
mov eax, 0x2000000
jmp 0x406230
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040894b
add esp, 0x10
test eax, eax
jne 0x406212
mov eax, dword [ebp - 4]
jmp 0x406230
push eax
call fcn.00408ed3
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x406230
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x40635c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x646384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [eax + 0x10], esi
jne 0x406386
mov eax, esi
jmp 0x40638e
cmp dword [eax + 0x14], 0x10
jb 0x40638e
mov eax, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x406396
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00406235
cmp dword [edi + 0x14], 8
mov ebx, eax
pop ecx
pop ecx
mov eax, edi
jb 0x4063ab
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x234]
push eax
push 0xffffffffffffffff
push ebx
call fcn.0040613d
mov eax, dword [ebp - 0x234]
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x238], eax
jb 0x4063d9
mov edi, dword [edi]
push edi
push ebx
call fcn.0040630e
mov edi, dword [ebp - 0x238]
pop ecx
pop ecx
test edi, edi
jle 0x406410
lea eax, [ebp - 0x234]
push eax
push esi
push ebx
call fcn.0040613d
lea eax, [ebp - 0x230]
push eax
push esi
push ebx
call fcn.004067b5
add esp, 0x18
inc esi
cmp esi, edi
jl 0x4063ec
push ebx
call fcn.00405a9c
pop ecx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004553ba
leave
ret