joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b099c
Capabilities:
Read file via mapping

Disassembly:
push 0x864
mov eax, 0x1010fa7b
call fcn.10062882
mov esi, ecx
mov dword [ebp - 0x86c], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x870], esi
mov dword [esi], 0x10005124
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov eax, edi
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x14], 0xffffffff
mov dword [esi], 0x1000520c
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp dword [edi + 0x14], 8
jb 0x100b09e8
mov eax, dword [edi]
push eax
push ebx
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x100b0a4a
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x100b0a40
push 0x10033418
lea ecx, [ebp - 0x40]
call fcn.1004abd7
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.1004abd7
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.1006a8f0
push ecx
push ecx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x15
jmp 0x100b0a7c
mov eax, esi
call fcn.1006281a
ret 8
push 0x10033540
lea ecx, [ebp - 0x28]
call fcn.1004abd7
push edi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1004abd7
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1006a8f0
push ecx
push ecx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push 0x16
lea ecx, [ebp - 0x868]
call fcn.1004abd7
push 0x1011c248
lea eax, [ebp - 0x868]
push eax
call fcn.1004abd7
int3
Function at 0x100be18a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebx
push esi
lea ebx, [ecx + 4]
mov esi, edx
push edi
test ebx, ebx
je 0x100be1c2
lea edi, [esi + 4]
test edi, edi
je 0x100be1c2
call fcn.100be39d
test al, al
je 0x100be1c2
mov ecx, esi
call fcn.100be39d
test al, al
je 0x100be1c2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x100be1c4
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x100bf31b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x464
mov eax, 0x10111e76
call fcn.10062882
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x444], eax
xor eax, eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 4], ebx
mov edi, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100bf43d
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.1004abd7
mov dword [ebp - 0x440], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
jb 0x100bf3b3
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp - 0x444]
push eax
call fcn.1004abd7
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
jb 0x100bf3e5
mov eax, dword [ebp - 0x438]
push ebx
push eax
push dword [esi]
lea ecx, [ebp - 0x43c]
call fcn.1004abd7
test al, al
je 0x100bf466
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x43c]
call fcn.100bf31b
cmp dword [ebp - 0x43c], 0
je 0x100bf41f
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x440], 0
je 0x100bf437
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x100bf355
mov edi, dword [ebp - 0x444]
jmp 0x100bf446
inc ebx
push edi
push ebx
mov ecx, esi
call fcn.100bf489
test al, al
jne 0x100bf445
lea ecx, [ebp - 0x438]
call fcn.1006ab66
call fcn.1006281a
ret 4
lea ecx, [ebp - 0x470]
call fcn.1004abd7
push 0x1011bfb8
lea eax, [ebp - 0x470]
push eax
call fcn.1004abd7
int3
Function at 0x100d15ec
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x101148c2
call fcn.10062882
mov edi, edx
mov dword [ebp - 0x30], edi
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
and dword [ebp - 4], edx
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.100d4be1
push eax
push edi
push ebx
mov ecx, esi
call dword [0x1013e49c]
call esi
mov edi, eax
test edi, edi
jne 0x100d166d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x100d166d
call fcn.1006c216
mov ecx, eax
call fcn.1008d647
cmp eax, 1
jne 0x100d166d
push dword [ebp - 0x2c]
mov ecx, esi
push dword [ebp - 0x30]
push ebx
call dword [0x1013e49c]
call esi
mov esi, eax
jmp 0x100d166f
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.1006ab66
mov eax, esi
call fcn.1006281a
ret 0xc
Function at 0x100da334
Capabilities:
Resume thread

Disassembly:
push 0x9c
mov eax, 0x10115884
call fcn.10062882
mov edi, ecx
mov dword [ebp - 0x98], edi
xor ebx, ebx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push ebx
mov esi, dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x100da50d
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
mov edi, dword [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, dword [ebp - 0x98]
call esi
mov edx, edi
mov ecx, eax
call fcn.1004abd7
mov edi, dword [ebp - 0x98]
cmp eax, 3
sete byte [ebp - 0x9c]
push dword [ebp - 0x9c]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
lea ecx, [ebp - 0x28]
mov edx, dword [eax + 8]
call fcn.100758a6
mov dword [ebp - 0xa8], eax
mov eax, ebx
mov dword [ebp - 0xa4], edx
and edx, 0x80
or eax, edx
jne 0x100da4d8
push 0x1003b424
lea ecx, [ebp - 0x74]
call fcn.1004abd7
mov dword [ebp - 0x5c], 0x2e6
mov byte [ebp - 4], 1
call fcn.1006c112
xor eax, eax
mov dword [ebp - 0x48], ebx
push 0x1003b398
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1004abd7
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.1004abd7
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.100810bd
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.100cf175
mov esi, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x1001df4c
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.1004abd7
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
push 1
lea ecx, [ebp - 0x74]
call fcn.10080cf0
lea ecx, [ebp - 0x40]
call fcn.1006ab66
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x94], 0x10002e5c
call fcn.1006ab66
lea ecx, [ebp - 0x58]
call fcn.1006ab66
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.1006b464
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
test al, al
jne 0x100da507
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ebx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x28]
call fcn.1006ab66
mov eax, ebx
call fcn.1006281a
ret
Function at 0x100daa92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x1010b266
call fcn.10062882
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100dab15
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100daafd
cmp eax, dword [esi + 0x10]
jne 0x100daac9
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1008073a
test al, al
jne 0x100daafd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x100daad5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100daafd
cmp eax, 0x10
je 0x100daafd
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1004abd7
lea ecx, [ebp - 0x28]
call fcn.1006ab66
mov al, 1
jmp 0x100dab07
lea ecx, [ebp - 0x28]
call fcn.1006ab66
xor al, al
call fcn.1006281a
ret 4
Function at 0x100e06b0
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0x38
mov eax, 0x10116468
call fcn.10062882
mov edi, ecx
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov esi, ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x10005b80
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call fcn.1007f0f7
test al, al
jne 0x100e0721
call fcn.1004abd7
lea ecx, [ebp - 0x34]
cmp eax, 0x602
jb 0x100e0708
mov byte [ebp - 0x2c], 1
call fcn.1004abd7
jmp 0x100e0710
mov byte [ebp - 0x2c], bl
call fcn.100df60e
test al, al
jne 0x100e071b
mov edi, ebx
jmp 0x100e0891
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
push ecx
push ecx
push esi
push dword [ebp - 0x2c]
mov ecx, edi
sub esp, 0xc
call fcn.1004abd7
mov edi, edx
mov ecx, ebx
mov esi, edi
and esi, 0x80
or ecx, esi
jne 0x100e0748
mov ebx, eax
jmp 0x100e0891
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x14], 8
jb 0x100e0753
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 8
jb 0x100e075e
mov ecx, dword [ecx]
push dword [ebp - 0x38]
push ecx
push ecx
push eax
call fcn.1004abd7
mov esi, eax
test esi, esi
je 0x100e0787
call fcn.100df953
mov edi, edx
or eax, esi
or edi, ebx
or ebx, eax
or edi, 0xf25
jmp 0x100e0891
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004abd7
push 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.1004abd7
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006ab66
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
jne 0x100e07d0
mov ebx, esi
jmp 0x100e0891
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004abd7
push 9
lea eax, [ebp - 0x28]
push eax
call fcn.1004abd7
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006ab66
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
je 0x100e07c9
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004abd7
push 0xa
lea eax, [ebp - 0x28]
push eax
call fcn.1004abd7
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006ab66
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
je 0x100e07c9
mov eax, dword [ebp - 0x44]
push 1
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
cmp esi, 0x6b1
je 0x100e088c
test esi, esi
je 0x100e088c
call fcn.100df953
mov edi, edx
or eax, esi
or edi, ebx
or ebx, eax
or edi, 0x2225
jmp 0x100e0891
mov edi, 0x80
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10005b80
call fcn.1004abd7
mov eax, ebx
mov edx, edi
call fcn.1006281a
ret 0x24
Function at 0x100e2a0a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2a2e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2a33
mov ebx, 0xfff80000
jmp 0x100e2a39
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013cddc]
mov eax, dword [0x1013cde4]
test edx, edx
jne 0x100e2a54
test eax, eax
je 0x100e2a67
mov edx, eax
mov dword [0x1013cddc], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2a67
cmp ecx, edi
jb 0x100e2a67
cmp ecx, ebx
jbe 0x100e2aeb
mov edx, eax
test eax, eax
jmp 0x100e2a85
test edx, edx
je 0x100e2a80
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2a80
cmp eax, edi
jb 0x100e2a80
cmp eax, ebx
jbe 0x100e2aeb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013cddc], edx
jne 0x100e2a6d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.1004abd7
mov edx, eax
test edx, edx
jne 0x100e2ab1
mov edx, ebx
mov ecx, esi
call fcn.1004abd7
mov edx, eax
test edx, edx
je 0x100e2b10
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013cde4]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013cddc], edx
mov dword [0x1013cde4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2adb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2b10
cmp esi, ebx
ja 0x100e2b10
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10063540
add esp, 0xc
mov eax, esi
jmp 0x100e2b12
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100e2a0d
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2a2e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2a33
mov ebx, 0xfff80000
jmp 0x100e2a39
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013cddc]
mov eax, dword [0x1013cde4]
test edx, edx
jne 0x100e2a54
test eax, eax
je 0x100e2a67
mov edx, eax
mov dword [0x1013cddc], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2a67
cmp ecx, edi
jb 0x100e2a67
cmp ecx, ebx
jbe 0x100e2aeb
mov edx, eax
test eax, eax
jmp 0x100e2a85
test edx, edx
je 0x100e2a80
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2a80
cmp eax, edi
jb 0x100e2a80
cmp eax, ebx
jbe 0x100e2aeb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013cddc], edx
jne 0x100e2a6d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.1004abd7
mov edx, eax
test edx, edx
jne 0x100e2ab1
mov edx, ebx
mov ecx, esi
call fcn.1004abd7
mov edx, eax
test edx, edx
je 0x100e2b10
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013cde4]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013cddc], edx
mov dword [0x1013cde4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2adb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2b10
cmp esi, ebx
ja 0x100e2b10
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10063540
add esp, 0xc
mov eax, esi
jmp 0x100e2b12
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x100e2da4
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10128a80
call fcn.10061f30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100e2e1a
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100e2e1a
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100e2e1a
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100e2e1a
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100e2e23
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100e367a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1013cde8]
push esi
mov esi, ecx
test eax, eax
jne 0x100e36dc
call dword [sym.imp.kernel32.dll_GetCurrentThread]
cmp esi, eax
jne 0x100e368f
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.1004abd7
pop ecx
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100e36c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.1004abd7
and dword [0x1013cdd8], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x1013cde8], esi
jmp 0x100e36db
mov eax, dword [0x1013cdd0]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1013cdd0], edi
pop edi
pop esi
ret
Function at 0x4046d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00417f09

Function at 0x404c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c25
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404c64
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404c60
lea ebx, [ebx]
cmp esi, edx
jae 0x404c64
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404c50
cmp esi, edx
jb 0x404c69
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4059b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov edx, esi
mov dword [ebp - 4], 0
push edi
lea ecx, [edx + 2]
jmp 0x4059d0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4059d0
sub edx, ecx
sar edx, 1
lea eax, [edx + edx*2]
lea eax, [eax*2 + 1]
push eax
call fcn.0040c02f
mov edi, eax
add esp, 4
test edi, edi
je 0x405a99
mov al, byte [ebx + 0x21c]
mov ecx, edi
cmp al, 1
jne 0x405a38
xor eax, eax
sub ecx, esi
mov word [edi], ax
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x405a10
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a25
sub ecx, edx
sar ecx, 1
add ecx, ecx
jmp 0x405a69
mov edx, esi
cmp al, 2
jne 0x405a51
call fcn.00405750
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a48
jmp 0x405a67
call fcn.00405700
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x405a60
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a60
sub ecx, edx
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x405a84
push 0
lea eax, [ebp + 0xc]
push eax
push ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
push edi
call fcn.0040c05c
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405d60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi + 0xc], 0
je 0x405dae
cmp word [edi + 0x10], 0
lea eax, [edi + 0x10]
jne 0x405d89
test esi, esi
je 0x405da0
cmp dword [edi + 0x218], 0
jne 0x405dae
push esi
push eax
call fcn.0052b58c
add esp, 8
test eax, eax
jne 0x405dae
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [edi + 0x218], 0
cmp dword [ebp + 0x10], eax
push 0
push 0x80
setne al
mov dword [ebp + 8], 0
add eax, 3
push eax
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
test eax, eax
je 0x405e6a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [edi + 0x10]
mov edx, eax
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x405e00
cmp edx, 0xffffffff
mov eax, 0x100000
cmove edx, eax
mov dword [ebp + 8], edx
lea eax, [edx + 1]
push eax
call fcn.0040c02f
mov esi, eax
add esp, 4
test esi, esi
je 0x405e63
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e5a
mov eax, dword [ebp + 8]
mov ecx, edi
mov byte [esi + eax], 0
push dword [ebp + 8]
push esi
call fcn.00405ef0
mov dword [ebp - 4], eax
push esi
call fcn.0040c05c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408fd0
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5a61b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x40900e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ace1
mov esp, ebp
pop ebp
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x408ffd
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 1
push eax
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10f
call fcn.0040c02f
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x408ffd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 4]
mov word [esi + 0xc], ax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0052ace1
mov esp, ebp
pop ebp
ret
Function at 0x409070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a61b0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
push 0x10f
push 0
mov dword [ebp - 0x20], esi
mov ebx, dword [esi + 0x10]
push ebx
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], ebx
call fcn.0052cef0
mov ax, word [esi + 0xc]
add esp, 0xc
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
push 0x100
call esi
push 1
mov word [ebx + 2], ax
call esi
mov word [ebx + 4], ax
xor eax, eax
push 1
mov dword [ebx + 6], eax
mov word [ebx + 0xa], ax
call esi
movzx eax, ax
push 1
mov dword [ebp - 0x24], eax
call esi
mov ecx, edi
movzx eax, ax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4090f0
sub ecx, edx
movzx esi, cx
lea eax, [esi + 2]
push eax
call fcn.0040c02f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409123
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esi + 2]
push eax
push ebx
push edi
call fcn.004095e0
test eax, eax
je 0x40910e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409137
sub ecx, edx
lea eax, [ecx + 1]
movzx edi, ax
mov eax, dword [ebp - 0x18]
mov esi, edi
push esi
add eax, 0xc
push ebx
push eax
mov dword [ebp - 0x18], eax
call fcn.0052f8d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push ebx
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x1c]
mov word [eax + esi + 2], cx
call fcn.0040c05c
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
lea eax, [edi + 0x10]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x10]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 0x14