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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort

Function at 0x41ebb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x41ebd6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x41ec6a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x41ec25
cmp eax, 0x40
je 0x41ec25
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x41ebc9
cmp eax, 0x40
je 0x41ebc9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x41ebc9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
Function at 0x41eef0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym.unk_2705
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
je 0x41ef90
movzx edx, byte [ebx]
cmp dl, 9
je 0x41efd4
cmp dl, 0x20
je 0x41efd4
cmp dl, 0x22
je 0x41ef74
cmp dl, 9
mov eax, edx
je 0x41ef88
cmp dl, 0x20
je 0x41efe0
test dl, dl
lea esi, [esi]
jne 0x41ef62
jmp 0x41ef90
cmp al, 0x20
je 0x41efe0
test al, al
nop
je 0x41ef90
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x41ef54
jmp 0x41ef88
cmp al, 0x22
je 0x41ef7e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x41ef70
cmp al, 0x22
jne 0x41ef88
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x41efe0
cmp al, 9
je 0x41efe0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x41ef9f
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x41ef21
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41efe0
cmp al, 0x20
jne 0x41ef90
nop
jmp 0x41efe0

Function at 0x41f34c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [0x48ee64]
test ebx, ebx
je 0x41f3b0
mov esi, dword [0x48ee60]
test esi, esi
je 0x41f3a0
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x41f398
mov dword [esi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x10
pop ebx
pop esi
leave
ret
call sym._GetLastError_0
jmp 0x41f384
call dbg.__shmem_grabber_fc_key
mov esi, eax
mov dword [0x48ee60], eax
jmp 0x41f368
call dbg.__shmem_grabber_use_fc_key
mov ebx, eax
mov dword [0x48ee64], eax
jmp 0x41f35e
Function at 0x41f56c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [esi]
jmp 0x41f5b8
mov eax, dword [0x48ee60]
test eax, eax
je 0x41f6f0
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x41f694
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x41f67c
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, 0xa
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [ebp - 0x1c]
test eax, eax
jne 0x41f6bc
cmp edi, 5
je 0x41f6c1
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x41f646
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
mov edi, eax
cmp eax, 7
je 0x41f6c1
cmp eax, 8
jne 0x41f6bc
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x48ee64]
test eax, eax
je 0x41f6cc
mov eax, dword [eax]
test eax, eax
js 0x41f6a0
mov eax, dword [0x48ee64]
test eax, eax
je 0x41f6b0
mov ecx, dword [eax]
test ecx, ecx
jne 0x41f58c
mov eax, dword [0x48ee5c]
test eax, eax
je 0x41f6dc
mov dword [eax], edi
jmp 0x41f5b2
mov dword [ebp - 0x2c], 0
mov edi, 5
mov eax, 0x1a
jmp 0x41f5cd
call sym._GetLastError_0
jmp 0x41f5b2
call dbg.fc_key_init_once
mov eax, dword [0x48ee64]
test eax, eax
jne 0x41f662
nop
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41f662
mov edi, 2
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41f653
call dbg.__shmem_grabber_fc_static
mov dword [0x48ee5c], eax
mov dword [eax], edi
jmp 0x41f5b2
call dbg.__shmem_grabber_fc_key
mov dword [0x48ee60], eax
jmp 0x41f599
Function at 0x41f978
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fa87
mov edi, dword [eax]
test edi, edi
js 0x41fa7d
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fa96
mov esi, dword [eax]
test esi, esi
je 0x41fa38
mov eax, dword [0x48ee60]
test eax, eax
je 0x41fab6
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push ecx
mov edi, eax
mov dword [esp], esi
call sym.unk_2707
push edx
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x41fa2b
mov eax, edi
lea esi, [ebp - 0x1c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41fa1f
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp], 1
call eax
cmp eax, 6
je 0x41fa48
cmp eax, 8
jne 0x41fa70
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41f9e8
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x48ee5c]
test eax, eax
je 0x41faa5
mov edi, dword [eax]
jmp 0x41f9dc
mov dword [ebx + 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x1c], edi
mov edx, esi
mov eax, ebx
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x41fa30
mov eax, esi
call sym._uw_install_context.clone.1
lea esi, [esi]
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
call dbg.fc_key_init_once
jmp 0x41f99b
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41f991
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41f9a8
call dbg.__shmem_grabber_fc_static
mov dword [0x48ee5c], eax
mov edi, dword [eax]
jmp 0x41f9dc
call dbg.__shmem_grabber_fc_key
mov dword [0x48ee60], eax
jmp 0x41f9bf
Function at 0x41fac8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fb70
mov esi, dword [eax]
test esi, esi
js 0x41fb5c
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fb64
mov ecx, dword [eax]
test ecx, ecx
je 0x41fb4c
mov eax, dword [0x48ee60]
test eax, eax
je 0x41fb90
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push edx
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call sym.unk_2707
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x10], eax
lea esi, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x41fb9f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x48ee5c]
test eax, eax
je 0x41fb80
mov eax, dword [eax]
jmp 0x41fb24
call dbg.fc_key_init_once
jmp 0x41fae7
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41faf0
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41fae1
call dbg.__shmem_grabber_fc_static
mov dword [0x48ee5c], eax
mov eax, dword [eax]
jmp 0x41fb24
call dbg.__shmem_grabber_fc_key
mov dword [0x48ee60], eax
jmp 0x41fb03
mov eax, esi
call sym._uw_install_context.clone.1
nop

Function at 0x41fba8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fc68
mov esi, dword [eax]
test esi, esi
js 0x41fc5c
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fc78
mov ecx, dword [eax]
test ecx, ecx
je 0x41fc2c
mov eax, dword [0x48ee60]
test eax, eax
je 0x41fc98
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push edx
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call sym.unk_2707
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x41fc41
lea esi, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
je 0x41fc52
call sym._abort
mov eax, dword [0x48ee5c]
test eax, eax
je 0x41fc88
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x41fc16
lea esi, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x41fc27
mov eax, esi
call sym._uw_install_context.clone.1
lea esi, [esi]
call dbg.fc_key_init_once
jmp 0x41fbcb
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41fbc1
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41fbd8
call dbg.__shmem_grabber_fc_static
mov dword [0x48ee5c], eax
mov eax, dword [eax]
jmp 0x41fc37
call dbg.__shmem_grabber_fc_key
mov dword [0x48ee60], eax
jmp 0x41fbeb
Function at 0x41fca8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x41fccc
mov dword [esp], ebx
call dbg._Unwind_SjLj_RaiseException
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fd5c
mov esi, dword [eax]
test esi, esi
js 0x41fd4c
mov eax, dword [0x48ee64]
test eax, eax
je 0x41fd6c
mov ecx, dword [eax]
test ecx, ecx
je 0x41fd3c
mov eax, dword [0x48ee60]
test eax, eax
je 0x41fd8c
mov edi, dword [eax]
call sym._GetLastError_0
mov esi, eax
mov dword [esp], edi
call sym._TlsGetValue_4
push edx
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call sym.unk_2707
push edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x41fd54
call sym._abort
lea esi, [esi]
mov eax, dword [0x48ee5c]
test eax, eax
je 0x41fd7c
mov eax, dword [eax]
jmp 0x41fd20
call dbg.fc_key_init_once
jmp 0x41fcdf
mov eax, esi
call sym._uw_install_context.clone.1
nop
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41fcd9
call dbg.__shmem_grabber_use_fc_key
mov dword [0x48ee64], eax
jmp 0x41fcec
call dbg.__shmem_grabber_fc_static
mov dword [0x48ee5c], eax
mov eax, dword [eax]
jmp 0x41fd20
call dbg.__shmem_grabber_fc_key
mov dword [0x48ee60], eax
jmp 0x41fcff
Function at 0x4202e8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0x24], eax
lea eax, [ecx + 0xf]
mov dword [ebp - 0x28], eax
lea eax, [ecx + 0x2f]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 0x4e]
and eax, 0xfffffff0
call fcn.00420254
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov esi, str.gcc_shmem_tdm2
mov ecx, 0xe
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + 0xe], 0x2d
lea eax, [ebx + 0xf]
mov edi, eax
mov esi, edx
mov ecx, dword [ebp - 0x1c]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x28]
lea edx, [ebx + edx]
mov cl, 0x20
mov al, 0x61
mov edi, edx
rep stosb byte es:[edi], al
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], 0
mov eax, dword [ebp - 0x24]
mov byte [ebx + eax], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], 0x2d
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x4203a2
int3
mov dword [esp], ebx
call sym._FindAtomA_4
push edx
test ax, ax
jne 0x420438
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov esi, eax
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ebx + 0x10]
mov ecx, 0x20
lea esi, [esi]
mov edx, esi
shr edx, cl
and edx, 1
je 0x4203dc
mov byte [eax], 0x41
inc eax
dec ecx
jne 0x4203d0
mov dword [esp], ebx
call sym._AddAtomA_4
push edi
test ax, ax
je 0x420434
movzx eax, ax
mov edx, dword [ebp - 0x28]
mov dword [esp], edx
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
call dbg.get_ptr_from_atom
mov ebx, eax
cmp eax, esi
je 0x42044f
mov dword [esp], esi
call sym._free
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._ReleaseMutex_4
push edx
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call sym._CloseHandle_4
push eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
int3
movzx eax, ax
mov edx, dword [ebp - 0x28]
mov dword [esp], edx
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
call dbg.get_ptr_from_atom
mov ebx, eax
jmp 0x42040f
xor eax, eax
mov edi, esi
mov ecx, dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42040f
mov dword [esp], esi
call dword [ebp + 0x10]
jmp 0x42040f
Function at 0x42b4a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._fread
test eax, eax
jle 0x42b4e4
movzx edx, byte [esi + eax - 1]
mov dword [ebx + 0x24], edx
add esp, 0x10
pop ebx
pop esi
leave
ret
mov dword [ebx + 0x24], 0xffffffff
add esp, 0x10
pop ebx
pop esi
leave
ret

Function at 0x42b4f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
leave
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0x3400248f
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x488c40bd
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x782334fe
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7f962793
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
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
mov ebx, 0x40de38
nop
mov ecx, 0x73391148
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x48a575c9
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401ba1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004046a0
push edi
mov byte [ebp - 0x1000], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x80
push 3
push 0
push 0
push closesocket
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1004], eax
cmp dword [ebp - 0x1004], 0xffffffff
jne 0x401bfa
xor eax, eax
jmp 0x401c9a
mov ecx, 1
test ecx, ecx
je 0x401c88
mov dword [ebp - 0x1008], 0
push 0x1000
push 0
lea edx, [ebp - 0x1000]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
mov edx, dword [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1008], 0
jne 0x401c54
jmp 0x401c88
mov eax, dword [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x1000]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
add edx, dword [ebp - 0x1008]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
jmp 0x401bfa
mov ecx, dword [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403aa5
Capabilities:
Create raw socket
Create thread
Create udp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov dword [ebp - 0x150], ecx
push 0
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x150]
mov dword [ecx + 9], eax
mov edx, dword [ebp - 0x150]
cmp dword [edx + 9], 0xffffffff
jne 0x403ae0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403c8f
push 0x100
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x403b06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403c8f
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp + 8]
mov dword [edx + 0xd], eax
mov word [ebp - 0x40], 2
mov ecx, dword [ebp - 0x150]
mov dx, word [ecx + 0xd]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x4c]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x3c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x10
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 9]
push edx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x403b84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403c8f
mov dword [ebp - 0x44], 1
push 4
lea eax, [ebp - 0x44]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 9]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], 1
push 4
lea eax, [ebp - 0x44]
push eax
push 2
push 0
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 9]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x403be0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403c8f
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
push 4
lea edx, [ebp - 0x48]
push edx
push 0x98000001
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 9]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x403c28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403c8f
mov edx, dword [ebp - 0x150]
mov byte [edx + 8], 1
push 0
push 0
mov eax, dword [ebp - 0x150]
push eax
push 0x403a02
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x150]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x150]
cmp dword [edx + 4], 0
jne 0x403c8d
mov eax, dword [ebp - 0x150]
mov byte [eax + 8], 0
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 9]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x150]
mov dword [eax + 9], 0xffffffff
or eax, 0xffffffff
jmp 0x403c8f
xor eax, eax
mov esp, ebp
pop ebp
ret 8