joyce8/EMBER2024-capa huggingface dataset:
Function at 0xed11a76
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov dword [esi], 0xed0f750
mov dword [esi + 4], 0xed0f72c
mov dword [esi + 8], 0xed0f708
mov dword [esi + 0xc], 0xed0f6f0
mov dword [esi + 0x10], 0xed0f6dc
mov dword [esi + 0x14], 0xed0f6c8
mov dword [esi + 0x18], 0xed0f6b4
mov dword [esi + 0x1c], 0xed0f69c
mov dword [esi + 0x20], 0xed0f684
mov dword [esi + 0x24], 0xed0f670
mov dword [esi + 0x28], 0xed0f660
mov dword [esi + 0x2c], 0xed0f644
mov dword [esi + 0x30], 0xed0f634
mov dword [esi + 0x34], 0xed0f620
mov dword [esi + 0x38], 0xed0f610
mov dword [esi + 0x3c], 0xed0f600
mov dword [esi + 0x40], 0xc0000001
call fcn.0ed1a481
mov ecx, dword [0xed3e008]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp 0xed197a3
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x134]
movzx eax, word [edi]
test ax, ax
je 0xed197cc
push dword [0xed3e18c]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov word [edi], ax
mov eax, dword [esi + 0x148]
test eax, eax
je 0xed197dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x144]
test eax, eax
je 0xed197ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x138]
call fcn.0ed17d8c
mov eax, dword [esi + 0x128]
test eax, eax
je 0xed19807
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x124]
test eax, eax
je 0xed19817
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x11c]
test eax, eax
je 0xed19827
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0xed19837
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xa4]
test eax, eax
je 0xed19847
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xa0]
test eax, eax
je 0xed19857
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x7c]
test eax, eax
je 0xed19864
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x78]
test eax, eax
je 0xed19871
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0xed1987e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x68]
test eax, eax
je 0xed1988b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x44]
call fcn.0ed23cce
pop edi
mov dword [esi + 8], 0xed0ff2c
mov dword [esi + 4], 0xed0ff2c
pop esi
ret
Function at 0xed11a78
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov dword [esi], 0xed0f750
mov dword [esi + 4], 0xed0f72c
mov dword [esi + 8], 0xed0f708
mov dword [esi + 0xc], 0xed0f6f0
mov dword [esi + 0x10], 0xed0f6dc
mov dword [esi + 0x14], 0xed0f6c8
mov dword [esi + 0x18], 0xed0f6b4
mov dword [esi + 0x1c], 0xed0f69c
mov dword [esi + 0x20], 0xed0f684
mov dword [esi + 0x24], 0xed0f670
mov dword [esi + 0x28], 0xed0f660
mov dword [esi + 0x2c], 0xed0f644
mov dword [esi + 0x30], 0xed0f634
mov dword [esi + 0x34], 0xed0f620
mov dword [esi + 0x38], 0xed0f610
mov dword [esi + 0x3c], 0xed0f600
mov dword [esi + 0x40], 0xc0000001
call fcn.0ed1a481
mov ecx, dword [0xed3e008]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp 0xed197a3
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x134]
movzx eax, word [edi]
test ax, ax
je 0xed197cc
push dword [0xed3e18c]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov word [edi], ax
mov eax, dword [esi + 0x148]
test eax, eax
je 0xed197dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x144]
test eax, eax
je 0xed197ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x138]
call fcn.0ed17d8c
mov eax, dword [esi + 0x128]
test eax, eax
je 0xed19807
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x124]
test eax, eax
je 0xed19817
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x11c]
test eax, eax
je 0xed19827
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0xed19837
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xa4]
test eax, eax
je 0xed19847
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xa0]
test eax, eax
je 0xed19857
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x7c]
test eax, eax
je 0xed19864
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x78]
test eax, eax
je 0xed19871
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0xed1987e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x68]
test eax, eax
je 0xed1988b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x44]
call fcn.0ed23cce
pop edi
mov dword [esi + 8], 0xed0ff2c
mov dword [esi + 4], 0xed0ff2c
pop esi
ret

Function at 0xed13312
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0xed1332d
push 0x80004005
call fcn.0ed10bb3
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0xed1332f
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0xed13969
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0xed3e248]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0ed02875
mov edi, eax
cmp edi, esi
je 0xed139db
lea ecx, [ebp - 0x214]
call fcn.0ed028b1
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0ed01b36
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0xed139f9
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0ed13969
cmp eax, esi
jne 0xed13a44
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0xed139e3
lea ecx, [ebp - 0x214]
call fcn.0ed028b1
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0ed1313c
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0ed028b1
mov eax, esi
jmp 0xed139cb
Function at 0xed169d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0xed3800b
call fcn.0ed18f14
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0xed16a2f
call fcn.0ed1304b
mov esi, eax
jmp 0xed16b38
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0xed16a48
call fcn.0ed1304b
jmp 0xed16b2a
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0xed16a3e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0xed16aae
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0xed16a94
lea ecx, [ebp - 0x418]
call fcn.0ed13908
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0ed112a3
mov eax, esi
call fcn.0ed18f54
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0ed13ff2
mov dword [ebp - 4], 1
jmp 0xed16adc
cmp dword [ebp - 0x418], esi
jne 0xed16aeb
mov esi, 0x8007000e
jmp 0xed16b2c
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0xed16a3e
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0ed161d2
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0xed16a99
lea ecx, [ebp - 0x418]
call fcn.0ed13908
jmp 0xed16a99
Function at 0xed1735a
Capabilities:
Get keyboard layout

Disassembly:
push 0x74
mov eax, 0xed380d5
call fcn.0ed0c3fc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor ebx, ebx
push ebx
mov dword [ebp - 0x70], eax
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0xed17502
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], ebx
cmp dword [ebp + 8], ebx
jne 0xed173b6
lea eax, [ebp - 0x6c]
push eax
push 0xed0fba4
push 0x17
push ebx
push 0xed0fe2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
jmp 0xed17402
mov dword [ebp - 0x74], ebx
lea eax, [ebp - 0x74]
push eax
push 0xed17510
push 0x17
push ebx
push 0xed17520
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0x74]
jl 0xed173f4
cmp eax, ebx
je 0xed173f4
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x6c]
push edx
push dword [ebp + 8]
push eax
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0xed17402
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0xed174db
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
je 0xed17420
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push eax
call dword [ecx + 0x34]
mov esi, eax
mov eax, dword [ebp - 0x6c]
cmp esi, ebx
jl 0xed174db
cmp eax, ebx
je 0xed1743c
mov ecx, dword [eax]
lea edx, [ebp - 0x78]
push edx
push 0xed0fbb4
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0xed174db
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0xed174db
mov ecx, dword [eax]
lea edx, [ebp - 0x68]
push edx
push 0xed0c2b8
push eax
call dword [ecx + 0x28]
cmp eax, ebx
jl 0xed174db
mov eax, 0xc1c7
mov word [ebp - 0x1c], ax
mov eax, 0x11d4
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0xb883ba0
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0xf9
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], 0x80
mov byte [ebp - 0x14], 0xc8
mov byte [ebp - 0x13], 0x82
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x7e
cmp eax, ebx
jne 0xed174c0
push 4
pop ecx
mov edi, 0xed0fdfc
lea esi, [ebp - 0x50]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xed174db
lea eax, [ebp - 0x50]
push eax
call fcn.0ed17111
cmp eax, 0xffffffff
je 0xed174c5
mov dword [ebp - 0x70], eax
jmp 0xed174db
push 4
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x50]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0xed174db
mov dword [ebp - 0x70], 0xe1000404
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0xed174f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0xed17502
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
call fcn.0ed0ccfa
ret 4
Function at 0xed23f7e
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x18], 0x80004005
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0xed23fa1
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x1c], esi
jle 0xed24093
push ebx
xor ecx, ecx
push 0x1c
lea eax, [esi + esi]
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0ed01ed9
mov ebx, eax
pop ecx
mov dword [ebp - 0x20], ebx
cmp ebx, edi
je 0xed24092
cmp esi, edi
mov dword [ebp - 8], edi
jle 0xed24077
neg esi
lea eax, [ebx - 0x1c]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], eax
jmp 0xed24000
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea eax, [eax + ecx*2]
mov dword [ebx], 1
mov cx, word [eax]
mov word [ebx + 4], cx
movzx eax, word [eax]
cmp dword [ebp - 0x10], edi
je 0xed2402b
push dword [ebp - 0x10]
push edi
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
jmp 0xed24033
push edi
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx + 6], ax
mov dword [ebx + 8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [ebp - 4], 0x1c
add eax, esi
mov esi, dword [ebp - 4]
add dword [ebp - 4], 0x1c
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], eax
add ebx, 0x1c
push 7
mov edi, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 8], 2
add ebx, 0x1c
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
xor edi, edi
cmp eax, dword [ebp - 0x1c]
jl 0xed23ffd
mov ebx, dword [ebp - 0x20]
push 0x1c
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendInput]
cmp dword [ebp - 0x14], eax
jne 0xed2408b
mov dword [ebp - 0x18], edi
push ebx
call fcn.0ed01911
pop ecx
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
leave
ret 4

Function at 0xed2c820
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
jne 0xed2c83b
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0xed2c888
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0xed3e060
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esi + 0x14]
push eax
push edi
push esi
push 0xed2c803
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x10], eax
cmp eax, edi
je 0xed2c87c
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
pop edi
pop esi
ret
Function at 0xed32bd5
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
push esi
push edi
cmp dword [ebp + 0xc], ecx
jne 0xed32d02
mov edi, dword [ebp + 0x14]
cmp edi, ecx
je 0xed32d02
cmp dword [ebp + 0x10], 1
jne 0xed32d02
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 0x90]
jne 0xed32c66
mov edi, dword [edi + 0x10]
cmp dword [0xed3ff1c], edi
je 0xed32d02
mov eax, dword [esi + 0x110]
mov dword [0xed3ff1c], edi
cmp eax, ecx
je 0xed32c44
cmp dword [eax + 0x28], ecx
je 0xed32c44
push 1
push ecx
mov ecx, esi
call fcn.0ed31fdc
push 0
mov ecx, esi
call fcn.0ed329ee
mov esi, dword [esi + 0x110]
test esi, esi
je 0xed32d02
cmp dword [esi + 0x24], 0
je 0xed32d02
call fcn.0ed33d3a
jmp 0xed32d02
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
cmp eax, 0x201
je 0xed32c7b
cmp eax, 0x203
jne 0xed32ca9
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call ebx
movsx eax, word [edi + 0xc]
add eax, dword [ebp - 0x10]
mov dword [esi + 0xe4], eax
movsx eax, word [edi + 0xe]
add eax, dword [ebp - 0xc]
mov dword [esi + 0xe8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xf4], eax
mov eax, dword [edi + 4]
cmp eax, 0x202
je 0xed32cba
cmp eax, 0xa2
jne 0xed32d01
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call ebx
movsx eax, word [edi + 0xc]
add eax, dword [ebp - 0x10]
mov dword [esi + 0xec], eax
movsx eax, word [edi + 0xe]
add eax, dword [ebp - 0xc]
mov dword [esi + 0xf0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xf8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0xed3ff18], eax
je 0xed32d01
push 1
push 0
mov ecx, esi
call fcn.0ed31fdc
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x76e0a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29b000]
push edi
jmp 0x76e0ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x76e0c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76e0b0
mov eax, 1
add ebx, ebx
jne 0x76e0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x76e0e4
jne 0x76e103
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76e103
dec eax
add ebx, ebx
jne 0x76e0f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x76e0c8
add ebx, ebx
jne 0x76e0ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x76e155
xor ecx, ecx
sub eax, 3
jb 0x76e11b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x76e18a
sar eax, 1
mov ebp, eax
jmp 0x76e126
add ebx, ebx
jne 0x76e126
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76e0f4
inc ecx
add ebx, ebx
jne 0x76e134
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76e0f4
add ebx, ebx
jne 0x76e141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x76e136
jne 0x76e152
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x76e136
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x76e174
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x76e166
jmp 0x76e0b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x76e174
add edi, ecx
jmp 0x76e0b6
pop esi
mov edi, esi
mov ecx, 0x19bbc1
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x76e1af
cmp byte [edi], 0x1a
jne 0x76e194
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x76e192
lea edi, [esi + 0x36b000]
mov eax, dword [edi]
or eax, eax
je 0x76e200
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3738cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x373a10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x76e1b5
mov ecx, edi
jns 0x76e1e4
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 + 0x373a18]
or eax, eax
je 0x76e1fa
mov dword [ebx], eax
add ebx, 4
jmp 0x76e1d2
call dword [esi + 0x373a14]
mov ebp, dword [esi + 0x373a1c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x76e234
sub esp, 0xffffff80
jmp 0x5aaa02
Function at 0x10003580
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
xor esi, esi
push eax
push 0x202
mov dword [0x10014b34], 0xffffffff
mov dword [0x100b4f40], esi
mov dword [0x100b5014], esi
mov dword [0x100b500c], esi
mov dword [0x100b5010], esi
call sub.WS2_32.dll_WSAStartup
mov eax, 0x100b4d30
call fcn.1000f480
mov eax, 0x100b4c30
call fcn.1000f480
push esi
push 1
mov ecx, 0x100b4cbf
push esi
and ecx, 0xfffffff0
push esi
mov dword [0x100b4d2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov edx, dword [0x100b4d2c]
push 0x14000
push 0x100037b0
push 0x100b4dc0
mov dword [edx], eax
call fcn.1000f170
push 0x100113af
push 0x50494e47
call fcn.10004280
push 0x100114e0
push 0x4f50454e
call fcn.10004280
push str.liiiv262143
push 0x52454144
call fcn.10004280
push 0x100113af
push 0x434f4e4e
call fcn.10004280
mov ecx, dword [ebp - 4]
add esp, 0x20
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.100055da
mov esp, ebp
pop ebp
ret
Function at 0x10003d60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x2169
mov dword [0x100b5018], 1
call sub.WS2_32.dll_htons
mov ecx, dword [ebp + 8]
mov word [0x100b4db2], ax
mov eax, 2
push ecx
mov word [0x100b4db0], ax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10003dc8
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
push 0x100b4db4
call fcn.1000acd0
mov ecx, dword [0x100b4dac]
mov eax, dword [ecx]
add esp, 0xc
test al, 0x20
je 0x10003dd1
mov edx, dword [ecx + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10003ddf
mov eax, 2
mov esp, ebp
pop ebp
ret
test al, 0x40
je 0x10003de5
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x100b4dac]
push esi
xor esi, esi
cmp dword [0x100b5040], esi
jle 0x10003e0d
mov eax, dword [0x100b503c]
mov ecx, dword [eax + esi*8]
push ecx
call sub.mss32.dll__AIL_mem_free_lock_4
inc esi
cmp esi, dword [0x100b5040]
jl 0x10003df0
mov ecx, dword [0x100b4dac]
mov dword [0x100b5040], 0
mov eax, dword [ecx]
test al, 0x20
je 0x10003e29
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10003e37
test al, 0x40
je 0x10003e37
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100b4d2c]
mov ecx, dword [eax]
push 0
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call sub.mss32.dll__AIL_ms_count_0
cmp dword [0x100b500c], 0
mov dword [ebp - 4], eax
jne 0x10003eaa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov esi, eax
call edi
push eax
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x40000000
je 0x10003e90
push esi
call edi
push eax
call ebx
call sub.mss32.dll__AIL_ms_count_0
sub eax, dword [ebp - 4]
cmp eax, 0x7d0
ja 0x10003ea8
cmp dword [0x100b500c], 0
je 0x10003e68
pop edi
pop ebx
xor eax, eax
cmp dword [0x100b500c], 4
pop esi
setne al
mov esp, ebp
pop ebp
ret