joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f32e0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4f32ef
jmp dword [ecx*4 + 0x4f3344]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4f34d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5a6900]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004c9e44
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4f3535
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4f3535
lea edx, [esp]
push edx
call dword [0x5a7e38]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004af76a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004af76a
add esp, 0x108
ret
jmp 0x4f34d0

Function at 0x4f3550
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5a6900]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004c9e44
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4f3535
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4f3535
lea edx, [esp]
push edx
call dword [0x5a7e38]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004af76a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004af76a
add esp, 0x108
ret
jmp 0x4f34d0

Function at 0x4f5fc0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4f95c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x544bb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5a6900]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x5ae4b0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x5ae4b0
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x54a619
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004fcb30
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4f9750
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x544c08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a6900]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x4f9792
push edi
push edi
push edi
push 2
call fcn.004fb170
xor al, al
jmp 0x4f992f
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x4f97b1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x4f97a0
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.004b98e5
push ebp
call fcn.004b97ed
push 0
push 0
push ebp
mov edi, eax
call fcn.004b98e5
add esp, 0x1c
test edi, edi
jne 0x4f97f5
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.004fb170
xor al, al
jmp 0x4f992f
mov dword [esp + 0x14], 0x5ae4b0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.004fca90
lea eax, [edi + 1]
push eax
call fcn.0048b8bd
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.004b94c6
add esp, 0x14
cmp eax, 1
je 0x4f9865
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.004fb170
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x5ae4b0
je 0x4f985e
push eax
call fcn.0048b8ec
add esp, 4
xor al, al
jmp 0x4f992f
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x4f98d7
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4f9895
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004fcc20
add esi, 1
mov eax, esi
jmp 0x4f98d2
cmp cl, 0xd
jne 0x4f98cf
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4f98ad
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004fcc20
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.004fcc20
cmp byte [esi + 1], 0xa
jne 0x4f988e
add esi, 2
mov eax, esi
jmp 0x4f98d2
add esi, 1
cmp byte [esi], 0
jne 0x4f9875
sub esi, eax
je 0x4f98e6
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004fcc20
push ebp
call fcn.0048b8ec
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x4f984e
cmp eax, 0x5ae4b0
je 0x4f992d
push eax
call fcn.0048b8ec
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4f9cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x544cb9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a6900]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x5ae4b0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x5ae4b0
lea ebp, [esi + 0x30]
mov dword [ebp], 0x5ae4b0
mov dword [esi + 0x34], 0x5ae4b0
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4f9d50
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.004fcb30
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4f9d70
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.004fcb30
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4f9d90
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.004fcb30
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x513f40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x40]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x28], edi
call fcn.00510700
add esp, 0x14
test eax, eax
jne 0x514096
mov ecx, dword [esi + 0x44]
movzx eax, byte [esi + 8]
add eax, ecx
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 5]
push ebx
movzx ebx, word [edi + 0x1e]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x44]
mov cl, byte [eax + 6]
push ebp
mov dword [esp + 0x10], edx
movzx edx, word [esi + 0xe]
mov ebp, ecx
movzx ecx, word [esi + 0x14]
lea edx, [edx + ecx*2]
movzx ecx, byte [esi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004b58f0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub ebx, ebp
push ebx
lea edx, [ecx + ebp]
push edx
add eax, ebp
push eax
call fcn.004b58f0
push esi
push edi
call fcn.0050eaf0
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x514086
movzx ecx, byte [esi + 2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
lea edx, [esi + 0x18]
push edx
lea eax, [edi + 0x18]
push eax
call fcn.004b58f0
mov al, byte [esi + 2]
add esp, 0xc
test al, al
mov byte [edi + 2], al
je 0x514008
mov word [edi + 0x12], bx
mov ecx, dword [edi + 0x44]
movzx edx, byte [ecx]
and edx, 0xfffffff7
push edx
call fcn.0050ec60
movzx ecx, byte [esi + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push eax
lea eax, [ecx + edx + 8]
push eax
call fcn.00509370
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp byte [ecx + 0x16], 0
je 0x51407b
mov edx, dword [esi + 0x4c]
mov eax, dword [edi + 0x4c]
push edx
mov bl, 5
call fcn.0050e2b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x514086
xor esi, esi
cmp word [edi + 0x14], si
jbe 0x51407b
lea esp, [esp]
mov eax, esi
call fcn.0050e4a0
call fcn.0050e640
test eax, eax
jne 0x514094
movzx eax, word [edi + 0x14]
add esi, 1
cmp esi, eax
jl 0x514060
push edi
call fcn.00513370
add esp, 4
mov ebx, eax
mov ecx, dword [edi + 0x48]
push ecx
call fcn.00521590
add esp, 4
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x524550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [eax + 0x20]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov ebp, dword [edi]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
je 0x524728
lea esp, [esp]
movzx edx, byte [ebx + 8]
mov ecx, dword [esp + 0x68]
cmp edx, ecx
jne 0x52471d
movzx eax, byte [ebx + 9]
cmp eax, dword [esp + 0x70]
jne 0x52471d
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x5245b2
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x2c]
jne 0x52471d
cmp ecx, 0x64
jne 0x5245d3
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x5245d3
mov esi, dword [esp + 0x6c]
push eax
call fcn.00524210
add esp, 4
test eax, eax
je 0x52471d
mov eax, dword [edi + 0x188]
test eax, eax
je 0x5245f0
lea ecx, [ecx]
cmp ebx, dword [eax + 0x1c]
je 0x52471d
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x5245e0
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push str.___TRIGGER__s
push ebp
call fcn.00504450
mov ecx, dword [edi + 0xc]
add esp, 0xc
push eax
push 0
push 0
push 0
push 0x14
push ecx
call fcn.00507050
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x188]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edx
mov dword [edi + 0x188], ecx
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x64], edi
call fcn.00526660
mov ecx, dword [edi + 0xc]
push ecx
call fcn.00504cd0
mov edx, dword [ebx + 0xc]
push edx
push ebp
mov dword [esp + 0x98], eax
call fcn.0052d3e0
add esp, 0x34
cmp byte [ebp + 0x1e], 0
mov esi, eax
jne 0x524754
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.0052df30
add esp, 8
test eax, eax
jne 0x524754
mov ecx, dword [esp + 0x64]
push 8
push ecx
push esi
push edi
call fcn.0052f4b0
push esi
call fcn.0052c980
mov edx, dword [esp + 0x94]
mov eax, dword [ebx + 0x24]
push edx
push eax
call fcn.00524350
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x2c]
push edx
mov dword [edi + 0x188], ecx
call fcn.00526690
mov eax, dword [esp + 0x84]
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.00504d20
add esp, 0x28
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x524580
mov eax, dword [esp + 0x88]
test eax, eax
je 0x524739
mov ecx, dword [esp + 0x28]
or dword [eax], ecx
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x52474a
mov edx, dword [esp + 0x24]
or dword [eax], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x38]
push esi
mov dword [edi + 0x188], edx
call fcn.0052c980
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
Function at 0x52cb50
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x52cb5d
xor eax, eax
pop edi
ret
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x48
push ebp
call fcn.00508290
mov esi, eax
add esp, 8
test esi, esi
jne 0x52cb78
pop esi
pop ebp
pop edi
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
push ebp
call fcn.0052ba70
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
push ebp
call fcn.0052ca20
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebp
call fcn.0052d3e0
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebp
call fcn.0052ba70
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebp
call fcn.0052d3e0
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
push ebp
call fcn.0052ba70
mov dword [esi + 0x1c], eax
movzx ecx, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
push ebp
call fcn.0052cb50
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x2c]
push eax
push ebp
call fcn.0052d3e0
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add esp, 0x40
push ecx
push ebp
call fcn.0052d3e0
mov dword [esi + 0x30], eax
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
movzx ecx, byte [edi + 7]
add esp, 8
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 7], cl
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x28], 0
mov eax, esi
pop esi
pop ebp
pop edi
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x58e70f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421636
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x426a58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], 0x4239c0
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42c1d8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0x42c1d8]
push 0
push 2
push esi
push 0x42c1d8
mov dword [ebp - 4], 0
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
lea esi, [edi + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42c1d8
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [0x42c1d8]
push ecx
push 2
push esi
push 0x42c1d8
mov byte [ebp - 4], 2
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], 0x80000000
mov dword [edi + 0x38], ecx
mov dword [edi + 0x2c], 0xc
mov dword [edi + 0x30], 7
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x28], 0x4239a0
lea eax, [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0x102
mov dword [ecx], 0x42c1dc
mov dword [ecx + 8], 0x102
mov word [eax], dx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000193f
push 0
push 0
push dword [ebp + 0x10]
push 0x10001790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1000bb90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1000bc3f
push esi
call fcn.10021b10
add esp, 4
test al, al
jne 0x1000bc3f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000bbb7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1002af60
add esp, 0xc
test eax, eax
je 0x1000bbeb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1002af60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1000bbed
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x1000bc1e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.1001edd0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x1000bc00
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10018150
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6bb], 0
je 0x100181ed
cmp dword [esi + 0x194], 0
je 0x100181a7
push esi
call fcn.10006a20
push 1
push esi
mov byte [esp + 0x14], al
call fcn.10006ed0
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.10006ed0
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x100181bc
sub eax, 1
je 0x100181bc
sub eax, 1
jne 0x100181ed
push dword [esi + 0x140]
lea eax, [ecx*2 + 0x1005dc84]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret

Function at 0x1001b870
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1001b88a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x1005e360
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
add esp, 8
test eax, eax
je 0x1001b8d2
test ebp, ebp
je 0x1001b8c3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1001b8f8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b8f8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1001b9d2
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b915
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001b9c8
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001b9c8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b956
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b971
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1001b990
test ebp, ebp
je 0x1001b9bf
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1006b004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x1006b004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10021b10
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x1006b400]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10021b58
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10058150
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.10058150
add esp, 0x18
ret

Function at 0x10021cc0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10021cfe
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x10021cef
push 0
call fcn.10021cc0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x114], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x114], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10021d13
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret