joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
movzx esi, word [ebp + 8]
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp si, 0xffff
je 0x42f6df
mov edi, ecx
mov word [ebp - 0x1a], si
cmp byte [ecx + 0x2c], 0
je 0x42f6f7
lea eax, [ebp - 0x1a]
push dword [edi + 0x20]
push 1
push 2
push eax
call fcn.0041c199
add esp, 0x10
cmp eax, 1
je 0x42f6e1
xor esi, esi
dec esi
jmp 0x42f6e1
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c5fb
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x1a]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x42f6da
mov ebx, eax
cmp eax, 3
je 0x42f766
cmp ebx, 1
ja 0x42f6da
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c199
add esp, 0x10
cmp eax, esi
jne 0x42f6da
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x42f702
movzx esi, word [ebp + 8]
jmp 0x42f6e1
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0041c199
add esp, 0x10
cmp eax, ebx
jne 0x42f6da
jmp 0x42f75d

Function at 0x42f7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x42f80f
shl eax, 4
movsx esi, byte [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
inc edx
cmp ecx, edx
jne 0x42f7f1
pop esi
pop edi
pop ebp
ret 8

Function at 0x42f870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x42f8a1
shl eax, 4
movzx esi, word [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
add edx, 2
cmp ecx, edx
jne 0x42f881
pop esi
pop edi
pop ebp
ret 8
Function at 0x438b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x90]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x409c60
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x20]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], fcn.0042ecf0
mov dword [esi + 0x14], edx
mov dword [eax + 8], 1
lea eax, [esi + 4]
mov dword [eax], edx
push eax
call fcn.0040a710
mov dword [esi + 0x98], 2
lea ecx, [esi + 4]
push 0x452db0
call fcn.0040aae0
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x14]
lea ecx, [esi + 0x84]
lea edx, [esi + 3]
mov byte [edx], 0
lea edi, [esi + 0x14]
lea ebx, [esi + 8]
movzx eax, al
push ecx
push edi
push ebx
push dword [esi + 0x10]
push edx
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [esi + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.00438030
add esp, 0x2c
test al, al
je 0x438c7e
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x438cea
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
cmp byte [esi + 3], 0
je 0x438c48
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x2d
call dword [eax + 0x1c]
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0040af70
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x30
call dword [eax + 0x1c]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ecx, [edi - 1]
cmp edx, ecx
jae 0x438c6a
cmp byte [edx], al
jne 0x438c6a
inc edx
cmp ecx, edx
jne 0x438c5f
mov edx, ecx
mov dword [esi + 0x98], 2
mov ecx, dword [ebp + 0x20]
push edi
push edx
call fcn.00409320
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.0040a680
mov edi, dword [ebp + 8]
test al, al
je 0x438c97
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [esi + 4]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x438cb0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x438cd2
mov dword [esi + 0x98], 0
push eax
call dword [esi + 0xc]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
jmp 0x438c2c
Function at 0x42e3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x42e402
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e3f8
mov eax, 1
add ebx, ebx
jne 0x42e41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e410
jne 0x42e42c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e410
xor ecx, ecx
sub eax, 3
jb 0x42e440
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e4b2
mov ebp, eax
add ebx, ebx
jne 0x42e44b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e47c
inc ecx
add ebx, ebx
jne 0x42e468
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e45d
jne 0x42e479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e45d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e49c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e48d
jmp 0x42e3fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e49c
add edi, ecx
jmp 0x42e3fe
pop esi
mov edi, esi
mov ecx, 0xa07
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42e4ba
cmp byte [edi], 5
jne 0x42e4ba
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 0x42e4bf
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42e537
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e2c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e3f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e4ec
mov ecx, edi
jns 0x42e51b
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 + 0x2e3f8]
or eax, eax
je 0x42e531
mov dword [ebx], eax
add ebx, 4
jmp 0x42e509
call dword [esi + 0x2e408]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42e568
cmp al, 0xef
ja 0x42e55b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42e53d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42e54a
mov ebp, dword [esi + 0x2e3fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x42e59c
sub esp, 0xffffff80
jmp 0x40fc75
Function at 0x40f060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40f082
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f078
mov eax, 1
add ebx, ebx
jne 0x40f09b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f090
jne 0x40f0ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f090
xor ecx, ecx
sub eax, 3
jb 0x40f0c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f132
mov ebp, eax
add ebx, ebx
jne 0x40f0cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f0fc
inc ecx
add ebx, ebx
jne 0x40f0e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0dd
jne 0x40f0f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f11c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f10d
jmp 0x40f07e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f11c
add edi, ecx
jmp 0x40f07e
pop esi
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f184
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf060]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f139
mov ecx, edi
jns 0x40f168
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 + 0xf118]
or eax, eax
je 0x40f17e
mov dword [ebx], eax
add ebx, 4
jmp 0x40f156
call dword [esi + 0xf120]
mov ebp, dword [esi + 0xf11c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40f1b8
sub esp, 0xffffff80
jmp 0x403428
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x322a178f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x16465664
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x19b69d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x63e000]
push edi
or ebp, 0xffffffff
jmp 0x19b69f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x19b69f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19b69e8
mov eax, 1
add ebx, ebx
jne 0x19b6a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x19b6a00
jne 0x19b6a1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x19b6a00
xor ecx, ecx
sub eax, 3
jb 0x19b6a30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x19b6aa2
mov ebp, eax
add ebx, ebx
jne 0x19b6a3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x19b6a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x19b6a6c
inc ecx
add ebx, ebx
jne 0x19b6a58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x19b6a4d
jne 0x19b6a69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x19b6a4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x19b6a8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x19b6a7d
jmp 0x19b69ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x19b6a8c
add edi, ecx
jmp 0x19b69ee
pop esi
mov edi, esi
mov ecx, 0x2b85b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x19b6aaa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x19b6aaf
lea edi, [esi + 0xab1000]
mov eax, dword [edi]
or eax, eax
je 0x19b6b17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb31774]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb318c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x19b6ad5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb318cc]
or eax, eax
je 0x19b6b11
mov dword [ebx], eax
add ebx, 4
jmp 0x19b6af2
call dword [esi + 0xb318dc]
mov ebp, dword [esi + 0xb318d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x19b6b4b
sub esp, 0xffffff80
jmp 0x1461ec8
Function at 0x402080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4020d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4020d9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4020c8
cmp esi, edx
jae 0x4020d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4020b6
cmp esi, edx
jae 0x4020d9
cmp word [esi], 0
je 0x4020d9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4023e0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431406
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x44606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004021c0
mov ecx, eax
test ecx, ecx
je 0x4025c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov eax, 0x440dd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11c]
test eax, 0xffff0000
jne 0x402451
movzx eax, ax
push eax
call fcn.004098b0
jmp 0x40245d
push 0
push 0x440dd0
call fcn.00409ad0
xor eax, eax
mov dword [ebp - 4], 1
push eax
push 2
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], eax
push ecx
push eax
mov dword [ebp - 0x250], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [ebp - 0x11c]
nop dword [eax]
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40255e
mov eax, dword [ebp - 0x248]
push eax
push 0
push 0x410
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402579
lea eax, [ebp - 0x120]
push eax
push 4
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x40250e
push 0x104
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x124]
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402520
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.00409ad0
mov esi, dword [ebp - 0x11c]
test ebx, ebx
je 0x40255e
cmp dword [esi - 0xc], 0
jl 0x40255e
push ebx
push esi
call fcn.0041c495
add esp, 8
test eax, eax
je 0x40255e
sub eax, esi
jns 0x402579
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4024a0
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4025a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402030
int3
Function at 0x403ad0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431569
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x44606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
cmp dword [esi + 8], 0
jne 0x403b2a
push 0x12d
push str.e:_vcdll
push str.m_hRequest___NULL
call fcn.0041cd2d
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x403c31
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403c45
push eax
call fcn.004137bf
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403c22
push dword [ebp - 0x18]
push 0
push ebx
call fcn.004155b0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_InternetReadFile._n
call fcn.004013b0
add esp, 8
jmp 0x403c07
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x403c04
nop
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x403bf2
mov al, byte [esi + ebx]
mov byte [ecx], al
inc dword [edi + 4]
jmp 0x403bfe
lea eax, [esi + ebx]
push eax
push ecx
mov ecx, edi
call fcn.0040a440
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x403be0
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.00413272
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x403c45
cmp dword [ebp - 0x18], 0
ja 0x403b61
jmp 0x403c45
push str.Out_of_memory_n
call fcn.004013b0
add esp, 4
jmp 0x403c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_InternetQueryDataAvailable._n
call fcn.004013b0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret 4
Function at 0x407510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44606c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0
push dword [esi]
mov edx, dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
push dword [esi]
call fcn.0040a580
add esp, 0x10
test al, al
mov eax, esi
jne 0x4075d2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40805b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40807d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40807f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x408103
jg 0x408094
test esi, esi
je 0x408103
test ecx, ecx
jl 0x4080dd
jg 0x40809e
test eax, eax
je 0x4080dd
cmp edi, ecx
jg 0x4080b2
jl 0x4080a8
cmp esi, eax
jae 0x4080b2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00414a40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4080e0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x408103
jg 0x4080ea
test esi, esi
je 0x408103
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x408103
push eax
push esi
push 1
push edx
call fcn.0041b94b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40814b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40816d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40816f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40820e
jg 0x40818c
test esi, esi
je 0x40820e
test ecx, ecx
jl 0x4081d9
jg 0x408196
test eax, eax
je 0x4081d9
cmp ebx, ecx
jg 0x4081aa
jl 0x4081a0
cmp esi, eax
jae 0x4081aa
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00414a40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4081e0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40820e
jg 0x4081ea
test esi, esi
je 0x40820e
cmp dword [edi + 0x4c], 0
je 0x40820e
mov ecx, edi
call fcn.004094d0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0041c07a
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc