joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40166d
Capabilities:
Terminate process

Disassembly:
push edi
push 0x41a4e8
push 0x10
call fcn.00408cb1
pop ecx
xor edi, edi
pop ecx
push eax
push 0x1028
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [0x41a0e0]
cmp eax, edi
mov dword [0x423d20], eax
jne 0x4016a0
push 0xffffffffffffffff
call fcn.0040c443
push edi
push edi
push edi
push 0xf001f
push eax
call dword [0x41a0dc]
cmp eax, edi
mov dword [0x423d24], eax
jne 0x4016bf
push 0xffffffffffffffff
call fcn.0040c443
mov dword [eax], 0x1028
mov eax, dword [0x423d24]
mov dword [eax + 4], 0x1194
call dword [0x41a0cc]
mov ecx, dword [0x423d24]
mov dword [ecx + 8], eax
call dword [0x41a0d8]
mov ecx, dword [0x423d24]
push str.yazb
mov dword [ecx + 0xc], eax
mov eax, dword [0x423d24]
mov dword [eax + 0x10], edi
mov eax, dword [0x423d24]
add eax, 0x101c
push eax
call fcn.0040bb60
mov eax, dword [0x423d24]
add eax, 0x14
push eax
call fcn.0040171f
add esp, 0xc
pop edi
ret

Function at 0x408851
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
not eax
jbe 0x408886
push esi
mov edx, dword [esp + 0xc]
mov esi, eax
and esi, 0xff
movzx edx, byte [ecx + edx]
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x41f230]
xor eax, edx
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x408860
pop esi
not eax
ret

Function at 0x408cb1
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x426a48], 0
push esi
push edi
mov edi, 0x426830
jne 0x408cd3
push edi
call dword [0x41a18c]
mov dword [0x426a48], 1
push edi
call dword [0x41a188]
mov esi, dword [esp + 0x10]
and dword [esp + 8], 0
test esi, esi
jle 0x408d2f
mov eax, dword [0x429268]
push ebx
push ebp
push 0x14
cdq
pop ebx
mov ecx, dword [esp + 0x1c]
idiv ebx
mov edi, esi
sub edi, ecx
shl edx, 9
lea ebx, [edx + 0x426a4c]
lea eax, [edi + ecx]
push 0x20
cdq
pop ebp
idiv ebp
mov al, byte [edx + 0x41b9e8]
mov edx, dword [esp + 0x10]
xor al, byte [ecx]
inc dword [esp + 0x10]
inc ecx
cmp dword [esp + 0x10], esi
mov byte [ebx + edx], al
jl 0x408d05
pop ebp
mov edi, 0x426830
pop ebx
mov eax, dword [0x429268]
push 0x14
cdq
pop ecx
idiv ecx
push edi
shl edx, 9
and byte [edx + esi + 0x426a4c], 0
inc dword [0x429268]
lea esi, [edx + 0x426a4c]
call dword [0x41a184]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x40a4ab
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c068
push 0x40e93c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x40a50b
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46c000
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x46c006
or ebp, 0xffffffff
xor ebx, ebx
pop esi
lea edi, [esi - 0x6b006]
push edi
add word [edi + 0x6ae2c], 0
add esi, 0x1b3
jmp 0x46c02e
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46c039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c028
mov eax, 1
add ebx, ebx
jne 0x46c04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x46c040
jne 0x46c05c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46c040
xor ecx, ecx
sub eax, 3
jb 0x46c0ca
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46c0e6
mov ebp, eax
add ebx, ebx
jne 0x46c07b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46c088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46c0ac
inc ecx
add ebx, ebx
jne 0x46c098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x46c08d
jne 0x46c0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46c08d
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x46c0d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46c0bc
jmp 0x46c02e
mov eax, ebp
jmp 0x46c070
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46c0d0
add edi, ecx
jmp 0x46c02e
pop esi
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x22a8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46c0f6
cmp byte [edi], 0x15
jne 0x46c0f6
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 eax, ebx
loop 0x46c0fb
pop edi
mov eax, dword [edi]
or eax, eax
je 0x46c166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a118]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46c123
push edx
mov ecx, edi
jns 0x46c153
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x6a11c]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x46c140
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46c197
cmp al, 0xef
ja 0x46c18a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46c16c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46c179
popal
jmp 0x447bbc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4e4990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8e000]
push edi
jmp 0x4e49aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e49b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e49a0
mov eax, 1
add ebx, ebx
jne 0x4e49c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e49d4
jne 0x4e49f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e49f3
dec eax
add ebx, ebx
jne 0x4e49e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e49b8
add ebx, ebx
jne 0x4e49ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e4a45
xor ecx, ecx
sub eax, 3
jb 0x4e4a0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e4a7a
sar eax, 1
mov ebp, eax
jmp 0x4e4a16
add ebx, ebx
jne 0x4e4a16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e49e4
inc ecx
add ebx, ebx
jne 0x4e4a24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e49e4
add ebx, ebx
jne 0x4e4a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e4a26
jne 0x4e4a42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e4a26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e4a64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e4a56
jmp 0x4e49a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e4a64
add edi, ecx
jmp 0x4e49a6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e4a82
cmp byte [edi], 0x11
jne 0x4e4a82
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 0x4e4a87
lea edi, [esi + 0xdd000]
mov eax, dword [edi]
or eax, eax
je 0x4e4aff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf04d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf0650]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e4ab4
mov ecx, edi
jns 0x4e4ae3
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 + 0xf0654]
or eax, eax
je 0x4e4af9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e4ad1
call dword [esi + 0xf0664]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e4b30
cmp al, 0xef
ja 0x4e4b23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e4b05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e4b12
mov ebp, dword [esi + 0xf0658]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4e4b64
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4077a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4077b0
pop dword [ebp - 0x50]
mov eax, 0x5b0e5917
sub eax, 0x5acde167
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1f97d591
sub dword [ebp - 0x60], 0xd1459046
mov dword [ebp - 0x5c], 0x247c31e6
sub dword [ebp - 0x5c], 0xf248e5a1
mov dword [ebp - 0x58], 0x14e6cd55
add dword [ebp - 0x58], 0x376576d9
mov dword [ebp - 0x54], 0xb11b604
sub dword [ebp - 0x54], 0xb11b604
lea eax, [ebp - 0x60]
push eax
mov eax, 0x1701acc0
sub eax, 0x16c12c04
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xf9596dd1
add dword [ebp - 0x60], 0x7b18fb85
mov dword [ebp - 0x5c], 0xd5e914b9
add dword [ebp - 0x5c], 0x6b834cbc
mov dword [ebp - 0x58], 0x1b4df8ec
sub dword [ebp - 0x58], 0xb7de8c80
mov dword [ebp - 0x54], 0x86e60baf
sub dword [ebp - 0x54], 0x86e60baf
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xf490bc5d
add eax, 0xbafc3b3
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x337a4
push 0
call eax
mov ecx, 0x36a04757
add ecx, 0xc95ff297
xor edx, edx
add edx, eax
mov ebx, 0xd3242e38
add ebx, 0x2d1cbdc8
add ebx, dword [ebp - 0x50]
mov esi, 0x904525a6
sub esi, 0xef302403
xor dword [ebp - 0x34], 0x266cb1ec
mov edi, dword [ebx]
add dword [ebp - 0x10], ebx
add edi, esi
sub dword [ebp - 0x1c], 0x8e09eced
mov dword [edx], edi
sub dword [ebp - 0x40], 0x8015811f
add edx, 4
add ebx, 0x8b388621
sub ebx, 0x8b38861d
loop 0x4078d4
add eax, 0x205a2cdf
sub eax, 0x20595254
mov ebx, eax
add eax, 0xa5336fd9
sub eax, 0xa5336fd4
mov ecx, 0x6e7cc283
add ecx, 0x91c33d7d
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401443
pop dword [ebp - 0x38]
mov eax, 0xabc8ad26
sub eax, 0xab8898e3
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x9a2c7194
add dword [ebp - 0x48], 0xb425d3b7
mov dword [ebp - 0x44], 0xe09f406d
add dword [ebp - 0x44], 0x51940bd8
mov dword [ebp - 0x40], 0x871875ae
sub dword [ebp - 0x40], 0x3acc3180
mov dword [ebp - 0x3c], 0x38a80665
sub dword [ebp - 0x3c], 0x38a80665
lea eax, [ebp - 0x48]
push eax
mov eax, 0xf5c6ccce
add eax, 0xa79b436
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x5c6bff8a
add dword [ebp - 0x48], 0x180669cc
mov dword [ebp - 0x44], 0xb779cd15
add dword [ebp - 0x44], 0x89f29460
mov dword [ebp - 0x40], 0xdcf77423
add dword [ebp - 0x40], 0x8677f849
mov dword [ebp - 0x3c], 0xe74fce48
sub dword [ebp - 0x3c], 0xe74fce48
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x35966
push 0
call eax
mov ecx, 0x3d30
mov esi, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x38]
mov edx, 0x4c45e5f8
add edx, 0x2c13b449
xor dword [ebp - 0xc], 0x649dcd3c
mov ebx, dword [edi]
sub dword [ebp - 0x30], ebx
sub ebx, edx
mov dword [ebp - 0x10], 0xc5b413a8
mov dword [esi], ebx
add dword [ebp - 4], 0x887a4012
add esi, 4
add edi, 0xb0a6644c
add edi, 0x4f599bb8
loop 0x401554
add eax, 0x20d37203
add eax, 0xdf2d7590
mov ebx, eax
add eax, 5
mov ecx, 0xa2265ff9
add ecx, 0x5e19a007
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4023eb
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41ad26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4236e0]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 8], eax
mov edx, dword [0x4236e0]
lea ecx, [esi + 0x34]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [ecx], edx
push str.127.0.0.1
mov byte [esp + 0x18], 1
mov dword [esi], 0x41c8c8
mov dword [esi + 0x40], 0x3e8
mov dword [esi + 0x38], 0x40
mov dword [esi + 0x3c], edi
call fcn.004127bb
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x10], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ad78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], ecx
mov eax, dword [0x4236e0]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dl, byte [ebx]
and dl, 0xf
movzx si, dl
mov edx, dword [esp + 0x24]
shl esi, 2
and esi, 0xffff
lea eax, [esi + 8]
cmp eax, edx
jle 0x4027e9
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x10]
push str.Too_few_bytes_from__s.
push eax
call fcn.0041066a
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
jmp 0x402833
mov al, byte [esi + ebx]
cmp al, cl
je 0x40280f
and eax, 0xff
lea edx, [esp + 0xc]
push eax
push str.Non_echo_type__d_recvd.
push edx
call fcn.0041066a
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
jmp 0x402833
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp word [esi + ebx + 4], ax
je 0x402861
lea ecx, [esp + 0xc]
push str.Someone_elses_packet.
push ecx
call fcn.0041066a
mov edx, dword [esp + 0x14]
add esp, 8
push edx
mov ecx, edi
call fcn.00402b50
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004126c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 4], 1
call ebp
sub eax, dword [esi + ebx + 8]
mov dword [edi + 0xc], eax
xor eax, eax
mov al, byte [ebx + 8]
push eax
call ebp
mov ecx, dword [esi + ebx + 8]
mov edx, dword [esp + 0x30]
sub eax, ecx
xor ecx, ecx
mov cx, word [esi + ebx + 6]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x24]
push str._d_bytes_from__s:_icmp_seq___d__time:__d_ms__ttl:__d.
push edx
call fcn.0041066a
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov ecx, edi
push eax
call fcn.00402b50
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004126c2
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40833d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4241a0
cmp edx, dword [eax]
je 0x40835f
add eax, 8
inc ecx
cmp eax, 0x424230
jl 0x408350
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4241a0]
jne 0x40848d
mov eax, dword [0x426e18]
cmp eax, 1
je 0x408467
test eax, eax
jne 0x408390
cmp dword [0x423cc4], 1
je 0x408467
cmp edx, 0xfc
je 0x40848d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4083c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40840a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e3a8
push edi
call fcn.0040b590
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004084a0
lea eax, [ebp - 0xa0]
push 0x41e388
push eax
call fcn.004084a0
push dword [esi + 0x4241a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004084a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b507
add esp, 0x2c
pop edi
jmp 0x40848d
lea eax, [ebp + 8]
lea esi, [esi + 0x4241a4]
push 0
push eax
push dword [esi]
call fcn.00408580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414c0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x414c51
call fcn.00419788
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x414c51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x414c48
xor eax, eax
jmp 0x414c59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00414c5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x41801d
Capabilities:
Create http request

Disassembly:
mov eax, 0x41b104
call fcn.00403a50
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x418055
call fcn.00419788
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x41807a
push eax
push dword [esi + 4]
call fcn.00418ae8
jmp 0x418086
push esi
push eax
mov ecx, 0x4269c8
call fcn.00418097
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

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

Disassembly:
mov eax, 0x41b13f
call fcn.00403a50
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00415e91
mov eax, dword [0x4236e0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x4269c8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00418097
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004127bb
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00403068
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0041276b
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004126c2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40523c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
and eax, 0xff
test eax, eax
je 0x40525d
push 0xffffffffffffffff
mov ecx, dword [0x40dd80]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 8]
push edx
mov eax, dword [0x40dd80]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [0x40dd84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40dd80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405000
call dword [0x40dea0]
mov eax, dword [0x40dfb0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x40e0b8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40de98]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [0x40de98]
mov dword [ecx], eax
mov edx, dword [0x40de98]
xor eax, eax
cmp dword [edx], 0
sete al
mov byte [ebp - 4], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x4052e7
push 0x40dd90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dl, byte [ebp - 4]
push edx
call fcn.00405313
add esp, 4
mov eax, dword [0x40de98]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x40dd78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret