joyce8/EMBER2024-capa huggingface dataset:
Function at 0x949f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x949ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x94a035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00949e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x949fc5
mov edi, 0x9648b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x94a035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00949e00
add edi, 4
add esp, 0xc
cmp edi, 0x9648c0
jb 0x94a000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x94a070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00950082
mov esi, eax
add esp, 8
test esi, esi
je 0x94a107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x94a102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0094f946
add esp, 8
test eax, eax
je 0x94a0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x94a0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0094f946
add esp, 8
test eax, eax
jne 0x94a0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x94a102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x94af10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x95f9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x94b002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0094edff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x94b002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009466e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0094f20b
push 0x10
call fcn.0094f1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x94afc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0093b1c0
jmp 0x94afc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0094ab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x94aff0
mov ecx, edi
call fcn.0093b2c0
push edi
call fcn.0094f1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x94b021
inc ebx
cmp ebx, 0x20
jb 0x94af3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x94c250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x960808
push 0x950288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x94c329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x94c329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0094f1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x94c329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x94c329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x94c32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0094c351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x94cd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x94cd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x94cd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x94cd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x94cd94
push eax
push esi
call fcn.0094f20b
add esp, 8
pop esi
ret 0x10

Function at 0x94cda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x94ce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x94ce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x965320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0094edff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x94cdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x94ce30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x94cec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x94ceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x965320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0094edff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x94ceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x94ce6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x94d000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x94d131
push esi
call fcn.00950145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0093f080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x94d131
push 0
push ebp
call fcn.0093f3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0093f260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x94d08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0093f2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x94d121
push 0x965918
push edi
call fcn.0094e3f0
push eax
push ebx
push esi
call fcn.0094cf60
push 0x9658f8
push edi
call fcn.0094e3f0
push eax
push ebx
push esi
call fcn.0094cf60
push 0x9658d8
push edi
call fcn.0094e3f0
push eax
push ebx
push esi
call fcn.0094cf60
push 0x9658c0
push edi
call fcn.0094e3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0094cf60
push 0x9658a0
push edi
call fcn.0094e3f0
push eax
push ebx
push esi
call fcn.0094cf60
push 0x965888
push edi
call fcn.0094e3f0
push eax
push ebx
push esi
call fcn.0094cf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x94e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0094e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0094e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0094e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0094e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x94ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x94ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x96087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x94ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x94ec52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001110
Capabilities:
Create thread

Disassembly:
sub esp, 0x454
mov eax, dword [0x1001203c]
xor eax, esp
mov dword [esp + 0x450], eax
push 0x10013070
push 0x40
push str.5ebaf87635f80abe183d07a2632d4974
push 0x409
lea ecx, [esp + 0x10]
mov edx, 0x10013070
mov dword [esp + 0x10], 0
call fcn.10002130
mov ecx, dword [0x1001346c]
mov eax, dword [0x10013470]
mov edx, dword [0x10013468]
push 0x3f
mov dword [0x100140ac], ecx
mov dword [0x100140a8], eax
mov eax, dword [0x10013474]
lea ecx, [esp + 0x19]
push 0
push ecx
mov dword [0x100140a4], edx
mov dword [0x100140a0], eax
mov byte [esp + 0x20], 0
call fcn.10009150
push 0x3cc
lea edx, [esp + 0x64]
push 0
push edx
call fcn.10009150
add esp, 0x28
push 0x104
lea eax, [esp + 0x4a]
push eax
push 0
mov dword [esp + 0x158], 0x63
mov dword [esp + 0x15c], 5
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x46]
push ecx
lea edx, [esp + 0x158]
push 0x104
push edx
call fcn.10004c45
push str.hello_from_export_func_1_
push 0
push 0x1000fc5c
mov dword [esp + 0x41c], 0x493e0
mov dword [esp + 0x420], 0x1388
call fcn.100022d0
push str.hello_from_export_func_2_
push 0
push 0x1000fc5c
call fcn.100022d0
push 0x3f
lea eax, [esp + 0x439]
push 0
push eax
mov byte [esp + 0x440], 0
call fcn.10009150
add esp, 0x30
xor eax, eax
jmp 0x10001240
mov cl, byte [eax + 0x100133c8]
mov byte [esp + eax + 0x410], cl
inc eax
test cl, cl
jne 0x10001240
xor eax, eax
jmp 0x10001260
mov cl, byte [eax + 0x100133e8]
mov byte [esp + eax + 0x430], cl
inc eax
test cl, cl
jne 0x10001260
mov dword [esp + 0x36c], 3
xor eax, eax
nop
mov cl, byte [eax + 0x10013408]
mov byte [esp + eax + 0x370], cl
inc eax
test cl, cl
jne 0x10001280
xor eax, eax
jmp 0x100012a0
mov cl, byte [eax + 0x10013428]
mov byte [esp + eax + 0x394], cl
inc eax
test cl, cl
jne 0x100012a0
xor eax, eax
jmp 0x100012c0
mov cl, byte [eax + 0x10013448]
mov byte [esp + eax + 0x3b4], cl
inc eax
test cl, cl
jne 0x100012c0
xor eax, eax
jmp 0x100012e0
mov cl, byte [eax + 0x10013070]
mov byte [esp + eax + 0x268], cl
inc eax
test cl, cl
jne 0x100012e0
push ebp
push esi
push edi
push str.hello_from_export_func_3_
push 0
push 0x1000fc5c
call fcn.100022d0
push 0x44c
call fcn.10004b7b
push 0x44c
mov ebp, eax
push 0
push ebp
call fcn.10009150
add esp, 0x1c
mov ecx, 0x10
lea esi, [esp + 0x41c]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push 0x400
lea edi, [ebp + 0x40]
mov ecx, 0x103
lea esi, [esp + 0x14]
push 0x100140b0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0
push 0
push ebp
push 0x10002420
push 0
push 0
call fcn.10004db9
push str.hello_from_export_func_4_
push 0
push 0x1000fc5c
call fcn.100022d0
mov ecx, dword [esp + 0x480]
add esp, 0x24
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10004b1d
add esp, 0x454
ret
Function at 0x10001b50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14c
mov eax, dword [0x1001203c]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
push 0x3e
lea eax, [esp + 0x116]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
call fcn.10009150
add esp, 0xc
push 0xf4
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.10009150
add esp, 0xc
mov esi, ebx
call fcn.10001ab0
test eax, eax
jne 0x10001ba8
xor eax, eax
jmp 0x10001cbd
test ebx, ebx
je 0x10001bbf
push 0x40
lea edx, [esp + 0x114]
push ebx
push edx
call fcn.1000af10
add esp, 0xc
mov eax, dword [esp + 0x14c]
add eax, ebx
je 0x10001bdd
push 0xf8
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.1000af10
add esp, 0xc
push 0x963527e7
push 1
push 0
call fcn.10001480
add esp, 0xc
test eax, eax
je 0x10001ba1
mov edi, dword [esp + 0x68]
push 0x40
push 0x3000
push edi
push 0
call eax
mov esi, eax
test esi, esi
je 0x10001ba1
test edi, edi
jbe 0x10001c18
push edi
push 0
push esi
call fcn.10009150
add esp, 0xc
test ebx, ebx
je 0x10001c3b
mov edi, dword [esp + 0x6c]
test edi, edi
jbe 0x10001c3b
mov ecx, ebx
mov eax, esi
sub ecx, esi
lea ebx, [ebx]
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x10001c30
mov edx, dword [esi + 0x3c]
movzx eax, word [edx + esi + 0x14]
mov ecx, dword [edx + esi + 0x34]
add edx, esi
lea edi, [eax + edx + 0x18]
mov eax, dword [edx + 0x28]
add eax, esi
mov dword [0x100140d8], eax
movzx eax, word [edx + 6]
mov dword [0x100140d0], ecx
test eax, eax
jbe 0x10001ca1
add edi, 0x10
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ecx, dword [edi + 4]
mov eax, dword [edi - 4]
mov ebp, dword [edi]
add ecx, ebx
add eax, esi
je 0x10001c97
test ecx, ecx
je 0x10001c97
test ebp, ebp
jbe 0x10001c97
sub ecx, eax
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
sub ebp, 1
jne 0x10001c88
mov ebx, dword [esp + 0x14]
add edi, 0x28
sub dword [esp + 0x10], 1
jne 0x10001c70
mov ecx, dword [edx + 0xa0]
mov edx, dword [edx + 0xa4]
add ecx, esi
mov dword [0x100140cc], ecx
mov dword [0x100140d4], edx
mov eax, esi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004b1d
add esp, 0x14c
ret

Function at 0x10001e70
Capabilities:
Parse pe header

Disassembly:
push ebx
xor ebx, ebx
cmp esi, 0xffffffff
je 0x10001f10
push str.1_ok_
push ebx
push str.MyGetUniqueProcAddress
call fcn.100022d0
mov eax, 0x5a4d
add esp, 0xc
cmp word [esi], ax
jne 0x10001f10
push edi
push str.2_ok_
push ebx
push str.MyGetUniqueProcAddress
call fcn.100022d0
mov edi, dword [esi + 0x3c]
add edi, esi
add esp, 0xc
cmp dword [edi], 0x4550
jne 0x10001f14
push str.3_ok_
push ebx
push str.MyGetUniqueProcAddress
call fcn.100022d0
mov edi, dword [edi + 0x78]
add edi, esi
add esp, 0xc
cmp edi, esi
je 0x10001f14
push str.4_ok_
push ebx
push str.MyGetUniqueProcAddress
call fcn.100022d0
mov ecx, dword [edi + 0x24]
movzx edx, word [ecx + esi]
mov eax, dword [edi + 0x1c]
push str.5_ok_
lea ecx, [eax + edx*4]
mov edi, dword [ecx + esi]
push ebx
push str.MyGetUniqueProcAddress
add edi, esi
call fcn.100022d0
add esp, 0x18
mov eax, edi
pop edi
pop ebx
ret
mov eax, ebx
pop ebx
ret
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x10002130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001203c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, edx
mov dword [esp + 8], ecx
test edi, edi
je 0x1000223a
test eax, eax
je 0x1000223a
test ebp, ebp
je 0x1000223a
push ebx
mov ebx, dword [esp + 0x120]
push esi
push eax
lea esi, [esp + 0x18]
call fcn.10002260
add esp, 4
test eax, eax
jne 0x100021a5
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10004b1d
add esp, 0x108
ret
mov edx, dword [esp + 0x11c]
xor ecx, ecx
xor esi, esi
test edx, edx
jbe 0x1000222c
mov eax, ebp
sub edi, ebp
mov ebp, edx
lea ebx, [ebx]
inc ecx
and ecx, 0x800000ff
jns 0x100021d1
dec ecx
or ecx, 0xffffff00
inc ecx
movzx edx, byte [esp + ecx + 0x14]
add esi, edx
and esi, 0x800000ff
jns 0x100021e8
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + esi + 0x14]
mov dl, byte [esp + ecx + 0x14]
mov byte [esp + ecx + 0x14], bl
mov byte [esp + esi + 0x14], dl
movzx edx, byte [esp + ecx + 0x14]
movzx ebx, byte [esp + esi + 0x14]
add edx, ebx
and edx, 0x800000ff
jns 0x10002214
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [esp + edx + 0x14]
xor dl, byte [edi + eax]
inc eax
sub ebp, 1
mov byte [eax - 1], dl
jne 0x100021c0
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
or eax, 0xffffffff
jmp 0x1000218c
mov ecx, dword [esp + 0x10c]
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.10004b1d
add esp, 0x108
ret

Function at 0x10002260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x100022c1
test esi, esi
je 0x100022c1
xor eax, eax
nop
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10002270
push edi
xor edi, edi
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
movzx eax, byte [edx + ebp]
movzx edx, byte [ecx + esi]
add eax, edi
add edx, eax
mov edi, edx
and edi, 0x800000ff
jns 0x100022a4
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ecx + esi]
mov dl, byte [edi + esi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, 0x100
mov byte [edi + esi], al
jl 0x10002280
pop edi
mov eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x100146e8]
lea ecx, [esi + 0x21]
push ecx
push 2
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10002732
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ecx, ecx
mov dword [esp + 8], eax
cmp eax, ecx
je 0x1000272c
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
cmp dword [eax], ecx
je 0x10002806
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
lea edi, [esi + 0x11]
mov eax, dword [eax + ecx]
mov ecx, dword [eax]
push ecx
call ebx
mov edx, 2
push eax
mov word [edi], dx
call ebp
mov dword [esi + 0x15], eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esi + 0x13], ax
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esi + 0xd], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0xd]
push 0x10
push edi
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100027fe
mov eax, dword [esi + 0xd]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esi + 0xd], 0xffffffff
lea ecx, [eax*4]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0xc]
cmp dword [eax + ecx], 0
jne 0x10002767
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret