joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100158c2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10025080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10011d78
and dword [ebp - 0x14], 0
cmp dword [0x1012c494], 0
mov dword [ebp - 0x18], eax
jne 0x10015975
push 0x1001d624
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10015a1d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10015a1d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1012c494], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1012c498], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1012c49c], eax
call edi
push eax
call esi
mov dword [0x1012c4a4], eax
test eax, eax
je 0x10015975
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1012c4a0], eax
mov eax, dword [0x1012c4a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100159ce
cmp dword [0x1012c4a4], ecx
je 0x100159ce
push eax
call esi
push dword [0x1012c4a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100159ce
test ebx, ebx
je 0x100159ce
call edi
test eax, eax
je 0x100159c5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100159c5
test byte [ebp - 8], 1
jne 0x100159ce
or dword [ebp + 0x10], 0x200000
jmp 0x10015a01
mov eax, dword [0x1012c498]
cmp eax, dword [ebp - 0x18]
je 0x10015a01
push eax
call esi
test eax, eax
je 0x10015a01
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10015a01
mov eax, dword [0x1012c49c]
cmp eax, dword [ebp - 0x18]
je 0x10015a01
push eax
call esi
test eax, eax
je 0x10015a01
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1012c494]
call esi
test eax, eax
je 0x10015a1d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10015a1f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e223
leave
ret
Function at 0x4738c8
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4735cc
add eax, eax
call fcn.00473906
mov eax, eax
add edx, 0x82eef8e6
sub eax, eax
xor dword [esi], edi
sub edx, eax
add esi, 2
or edx, eax
add eax, edx
sub eax, eax
cmp esi, ecx
jl fcn.004738c8
sub eax, 1
mov eax, 0xf919d0ea
ret
Function at 0x40199f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 1
test byte [0x667aa4], cl
jne 0x4940bb
or dword [0x667aa4], ecx
jmp 0x41e00e
xor eax, eax
jmp 0x41e015
lea edx, [eax + 1]
imul edx, edx, 0x1d8b
xor dx, word [eax*2 + 0x55a248]
mov word [ebp + eax*2 - 0x108], dx
add eax, ecx
cmp eax, 0xa
jl 0x41e015
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x4c32
xor dx, word [eax*2 + 0x55a260]
mov word [ebp + eax*2 - 0x208], dx
add eax, ecx
cmp eax, 7
jl 0x41e03b
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x208]
jmp 0x4940a8
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x667aa0], eax
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [0x667aa0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c5147
mov esp, ebp
pop ebp
ret

Function at 0x447269
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
call esi
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x54], 1
mov word [ebp - 0x58], dx
mov edx, ecx
sub edx, dword [ebp - 0x58]
mov word [ebp - 0x56], dx
call esi
and eax, 0x800000ff
jns 0x40b82b
dec eax
or eax, 0xffffff00
inc eax
cmp byte [ebp - 0x54], 0
mov byte [ebp - 0x53], al
je 0x4d45e8
mov cl, al
xor eax, eax
jmp dword [0x40b844]
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.msvcrt.dll_rand]
push edi
mov edi, dword [0x66353c]
jmp 0x40b7ee
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c5147
mov esp, ebp
pop ebp
ret
push 0
push 0x50
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp byte [ebp - 0x54], 0
je 0x46dde6
mov cl, byte [ebp - 0x53]
xor eax, eax
xor byte [ebp + eax - 0x52], cl
inc eax
cmp eax, 0x4a
jl 0x4d4606
push 0x46dde6
ret

Function at 0x4598ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
test edi, edi
jle 0x459900
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, eax
sub esi, eax
lea ebx, [ecx + 1]
imul ebx, dword [ebp + 8]
xor bx, word [esi + edx]
inc ecx
mov word [edx], bx
add edx, 2
cmp ecx, edi
jl 0x4598e4
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46ddf6
Capabilities:
Send data
Send data on socket

Disassembly:
call dword [sym.imp.msvcrt.dll_rand]
mov ecx, 0xbb8
cdq
idiv ecx
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0xc], edi
mov byte [ebp - 0x54], 1
mov byte [ebp - 0x53], bl
mov word [ebp - 0x58], dx
mov edx, ecx
sub edx, dword [ebp - 0x58]
xor ecx, ecx
mov word [ebp - 0x56], dx
lea ebx, [ebx]
mov eax, ecx
and eax, 0x80000001
jns 0x4250fc
dec eax
or eax, 0xfffffffe
inc eax
je 0x4c39ed
mov al, bl
jmp dword [0x42510e]
inc eax
je 0x4545fe
mov al, dl
not al
imul cl
jmp 0x45460b
mov al, cl
imul dl
mov bl, al
add bl, bl
add al, bl
mov bl, byte [ebp + 0xc]
xor byte [ebp + ecx - 0x52], al
inc ecx
cmp ecx, 0x4a
jl 0x4c3a2d
test esi, esi
je 0x500e1c
jmp 0x500e00
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [0x66353c]
push ebx
mov bl, byte [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x5c], eax
je 0x454619
jmp 0x4250b6
mov al, cl
imul bl
mov dl, al
add dl, dl
add al, dl
xor byte [ebp + ecx - 0x52], al
inc ecx
cmp ecx, 0x4a
jl 0x4250ea
mov ecx, dword [ebp - 0x5c]
push 0
push 0x50
lea eax, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp byte [ebp - 0x54], 0
je 0x454619
mov dl, byte [ebp - 0x53]
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
and eax, 0x80000001
jns 0x4545ed
dec eax
or eax, 0xfffffffe
jmp 0x4545ec
mov dl, bl
call fcn.004d7703
mov ecx, dword [ebp - 0x5c]
push 0
push edi
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dl, bl
call fcn.004d7703
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c5147
mov esp, ebp
pop ebp
ret

Function at 0x473459
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
jmp 0x48046a
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x47f883
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c5147
mov esp, ebp
pop ebp
ret
push esi
call eax
jmp 0x4abee2
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x6279
xor cx, word [eax*2 + 0x55a188]
inc eax
mov word [ebp + eax*2 - 0x10a], cx
cmp eax, 7
jl 0x480476
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x4593
xor dx, word [eax*2 + str.Evm]
inc eax
mov word [ebp + eax*2 - 0x20a], dx
cmp eax, 5
jl 0x48049b
lea eax, [ebp - 0x108]
jmp 0x47f858
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c5147
mov esp, ebp
pop ebp
ret
Function at 0x484405
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x3a3a
xor cx, word [eax*2 + 0x55a790]
inc eax
mov word [ebp + eax*2 - 0x20e], cx
cmp eax, 4
jl 0x4762b0
movzx edx, dl
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x10c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4762f6
jmp 0x491602
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x484425
push 0x4000
sub eax, edx
push 0
push 0x663a88
mov dword [ebp - 0x214], eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x53ea28
mov edi, 0x663a88
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49160c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
cmp byte [ebp - 0x20d], 0
rep movsb byte es:[edi], byte [esi]
je 0x53ea37
jmp 0x51f740
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c5147
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov byte [0x663a88], 0
mov byte [ebp - 0x20d], bl
mov cl, byte [ebx + 0x61df20]
test cl, cl
jne 0x53ea4c
mov byte [ebp - 0x20d], 1
mov eax, ebx
cdq
idiv dword [ebp - 0x214]
mov eax, dword [ebp + 8]
mov dl, byte [edx + eax]
xor dl, cl
mov byte [ebx + 0x61df20], dl
xor eax, eax
jmp 0x4762ac
Function at 0x48efa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x31c], 0
test eax, eax
je 0x498786
lea ecx, [ebx + 0x218]
mov dword [ebp - 0x330], ecx
jmp dword [0x411b2d]
lea edx, [eax + 1]
imul edx, edx, 0x6210
xor dx, word [eax*2 + 0x55a450]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xd
jl 0x42e3f8
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
jmp 0x464ddc
mov dword [ebp - 0x318], eax
mov eax, dword [edi + 0x260]
mov dword [ebp - 0x324], ecx
mov ecx, dword [edi + 0x1e0]
xor ebx, ebx
mov dword [ebp - 0x310], ecx
mov dword [edi + 0x40298], 2
test eax, eax
je 0x444571
mov ebx, dword [eax + 0x28]
add ebx, eax
test ecx, ecx
je 0x4585b8
mov edx, dword [ebp - 0x310]
mov esi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x314], esi
jmp 0x446b0c
cmp dword [esi + 0x14], ecx
jle 0x509c90
mov ecx, dword [ebp - 0x318]
mov dword [edi + 0x40298], 3
mov eax, dword [esi]
push eax
call fcn.00495333
mov ecx, eax
add esp, 4
mov dword [edi + 0x40298], 4
test ecx, ecx
jmp 0x509c6e
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c5147
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x42e3f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c5147
mov esp, ebp
pop ebp
ret 4
jne 0x51f850
sub eax, dword [ebp - 0x320]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x4670a2
cmp dword [esi + 0x14], 0
jle 0x4670a2
add ebx, dword [ebx]
mov edx, dword [ebp - 0x310]
jmp dword [0x4670b1]
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
jmp 0x44453a
test ebx, ebx
je 0x51f82a
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x31c], eax
je 0x51f82a
test eax, eax
jle 0x51f82a
xor eax, eax
lea ebx, [ebx]
lea edx, [eax + 1]
imul edx, edx, 0x1ab
xor dx, word [eax*2 + 0x55a48c]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
jmp 0x51f80e
jne 0x509c90
mov ecx, dword [esi]
push eax
push ecx
mov ecx, dword [ebp - 0x318]
call fcn.0049886e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4585d0
test ebx, ebx
je 0x411afc
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x411afc
cdq
push 0x100
mov dword [ebx + 0x14], edx
lea edx, [ebx + 0x18]
push edx
push 0x100
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], ecx
jmp dword [0x509cc5]
cmp eax, 0xa
jl 0x4987ad
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x46708e
cmp byte [eax + 0x14], 0
je 0x46708e
mov edx, dword [esi + 4]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x320], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jmp 0x467076
Function at 0x4abef0
Capabilities:
Encode data using xor

Disassembly:
lea ecx, [eax + 1]
imul ecx, ecx, 0x4f5a
xor cx, word [eax*2 + 0x55a1a4]
inc eax
mov word [ebp + eax*2 - 0x30a], cx
cmp eax, 5
jl 0x4051bc
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [eax + 0x3c]
mov edx, dword [0x6632fc]
add esi, eax
movzx eax, word [esi + 0x40]
mov ecx, eax
cmp edx, ecx
je 0x48f2c6
cmp eax, 0xa
jne 0x48f2b2
xor eax, eax
lea esp, [esp]
lea ebx, [eax + 1]
jmp dword [0x40521e]
push 0x10043a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x114
push 0
push 0x6632f8
mov dword [0x663410], eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x6632f8
mov dword [0x6632f8], 0x114
call fcn.00473459
mov edi, eax
xor eax, eax
jmp 0x4051bc
imul ecx, ecx, 0x57be
xor cx, word [eax*2 + 0x55a1d0]
inc eax
mov word [ebp + eax*2 - 0x20a], cx
cmp eax, 0xe
jl 0x48f2c8
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x6ad3
xor dx, word [eax*2 + 0x55a1f0]
inc eax
mov word [ebp + eax*2 - 0x10a], dx
cmp eax, 5
jl 0x487466
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x108]
jmp dword [0x48749f]
movzx ecx, word [esi + 0x40]
mov dword [0x6632fc], ecx
movzx edx, word [esi + 0x42]
mov dword [0x663300], edx
xor eax, eax
lea ecx, [eax + 1]
jmp 0x487444
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
jmp 0x455536

Function at 0x4cdff4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x430430
push edi
mov eax, dword [ebp + 0xc]
sub eax, esi
cmp eax, 0x100000
jle 0x419154
mov eax, 0x100000
push 0
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
jmp dword [0x41916b]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [0x66353c]
jmp 0x419132
Function at 0x4ff072
Capabilities:
Delete file
Encode data using xor

Disassembly:
add esp, 8
push 0x100
lea ecx, [esp + 0x60674]
push ecx
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x60670]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x462692
sub eax, edx
dec eax
cmp eax, ebx
jl 0x4964de
cmp byte [esp + eax + 0x60670], 0x5c
je 0x4626c2
dec eax
jns 0x4626a8
jmp 0x4964de
mov byte [esp + eax + 0x60671], bl
jmp dword [0x4626d1]
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x4cd1
xor cx, word [eax*2 + 0x55ab54]
inc eax
mov word [esp + eax*2 + 0x1e], cx
cmp eax, 2
jl 0x4782de
lea edx, [esp + 0x1f]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.msvcrt.dll_scanf]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp 0x46266e
xor eax, esp
mov dword [esp + 0x60968], eax
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x6f9f
xor cx, word [eax*2 + str.WDg_]
inc eax
mov word [esp + eax*2 + 0x1e], cx
cmp eax, 0xa
jl 0x479d7a
lea edx, [esp + 0x20]
push edx
call fcn.004cdfdc
add esp, 4
jmp 0x4782dc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x60670]
mov byte [eax + 0x61e4e8], cl
inc eax
cmp cl, bl
jne 0x4964e4
call fcn.004abef0
push ebx
call esi
mov edx, dword [eax + 0x3c]
add edx, eax
push 0x100
mov dword [0x663528], eax
mov dword [0x66352c], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
xor eax, eax
mov edi, edi
lea ecx, [eax + 1]
imul ecx, ecx, 0x639d
jmp 0x508f8e
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x6096c
call fcn.0044069a
mov eax, dword [section..data]
jmp 0x479d6a
xor cx, word [eax*2 + str.lJu_]
inc eax
mov word [esp + eax*2 + 0x1e], cx
cmp eax, 6
jl 0x496528
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.msvcrt.dll_remove]
add esp, 4
xor eax, eax
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x45fd
xor cx, word [eax*2 + 0x55ab6c]
inc eax
mov word [esp + eax*2 + 0x1e], cx
cmp eax, 6
jl 0x508fb9
lea edx, [esp + 0x20]
push edx
call fcn.004cdfdc
add esp, 4
lea eax, [esp + 0x220]
jmp dword [0x508ff6]

Function at 0x500e2d
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0xa
jl 0x4a1fac
push ebx
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x30c]
push eax
call esi
add esp, 0xc
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp dword [0x41e9f9]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
push ebx
lea eax, [ebp - 0x434]
push eax
push ecx
call esi
add esp, 0xc
xor eax, eax
jmp 0x4a1fac
lea ecx, [eax + 1]
imul ecx, ecx, 0x76b6
xor cx, word [eax*2 + str.Rm]
inc eax
mov word [ebp + eax*2 - 0x436], cx
jmp 0x41e9b6
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
jmp 0x537310
push ebx
push esi
push edi
mov dword [ebp - 0x538], ecx
xor eax, eax
mov edi, edi
lea edx, [eax + 1]
imul edx, edx, 0x22de
xor dx, word [eax*2 + 0x55a6c8]
inc eax
mov word [ebp + eax*2 - 0x436], dx
cmp eax, 8
jl 0x53731d
jmp 0x4a1f8e
Function at 0x512709
Capabilities:
Encode data using xor

Disassembly:
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x33d6
xor cx, word [eax*2 + 0x55a220]
inc eax
mov word [ebp + eax*2 - 0x10a], cx
cmp eax, 0xc
jl 0x471be3
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x5ec5
xor dx, word [eax*2 + 0x55a23c]
inc eax
mov word [ebp + eax*2 - 0x20a], dx
cmp eax, 5
jl 0x471c08
push 0x401968
ret
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
jmp 0x471bdc

Function at 0x51d0cd
Capabilities:
Enumerate pe sections

Disassembly:
inc edx
add eax, 0x28
cmp edx, esi
jb 0x544c70
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
jmp 0x544c54
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x42c09c
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x42c090
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x42c09e
jmp 0x42c090
Function at 0x5469a5
Capabilities:
Terminate process

Disassembly:
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x8316e0], ebx
je 0x4159dd
push 0x8316e0
call fcn.0042c0a3
pop ecx
test eax, eax
je 0x4159dd
push ebx
push 2
push ebx
call dword [0x8316e0]
push dword [0x61e054]
push dword [0x61e058]
push dword [0x61e050]
call fcn.004ff072
add esp, 0xc
mov dword [0x61e068], eax
cmp dword [0x61e05c], ebx
jne 0x45655b
jmp 0x4030be
jne 0x44c137
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x44c14a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4505d7
xor esi, esi
inc esi
mov eax, dword [0x8316d8]
cmp eax, esi
jne 0x518aab
jmp dword [0x44c161]
push 0x10
push 0x55ac88
call fcn.00415a87
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x8316dc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x44c147
cmp eax, esi
jmp 0x44c126
mov eax, 0xff
jmp 0x456579
mov dword [0x61e06c], esi
mov eax, dword [0x8316d8]
cmp eax, esi
jne 0x4508fc
push 0x55a168
push 0x55a160
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x8316d8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x4159b4
jmp 0x4159ac
cmp dword [0x61e06c], ebx
jne 0x45656d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x61e068]
call fcn.0053dbad
ret
jmp 0x4505b5
mov eax, dword [0x8316d8]
test eax, eax
jne 0x4508ce
mov dword [0x8316d8], esi
push 0x55a178
push 0x55a16c
call fcn.004c515b
pop ecx
pop ecx
test eax, eax
je 0x4508d4
mov dword [ebp - 4], 0xfffffffe
jmp 0x4508c4
push 0x40100a
call fcn.00401000
call fcn.004bda57
jmp 0x4a4966
Function at 0x40b990
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e904c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4e9044]
sub esp, 4
test ebx, ebx
je 0x40b9db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40b9d4
test esi, esi
je 0x40b9d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b9b0
mov dword [esp], 0x4e904c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40bbc0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40bc10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40bce8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40bc4e
cmp eax, 4
jne 0x40bc70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40bc5e
cmp edx, 4
je 0x40bc5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040bbc0

Function at 0x40c260
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40c290
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40c2b4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sub.KERNEL32.dll_GetLastError