joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10471ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x104c68c]
jne 0x10471cb
test ecx, 0xffff0000
jne 0x10471cb
ret
jmp fcn.010471d5

Function at 0x1047565
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1048ae0
call fcn.010479e0
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, 0x1059f2c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x104734b
cmp eax, esi
jne 0x104733e
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x104734e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1047325
xor esi, esi
inc esi
mov eax, dword [0x1059f28]
cmp eax, esi
jne 0x1047361
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x104739c
mov eax, dword [0x1059f28]
test eax, eax
jne 0x1047396
mov dword [0x1059f28], esi
push 0x1001538
push 0x1001530
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x104739c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1047473
mov dword [0x1059f00], esi
mov eax, dword [0x1059f28]
cmp eax, esi
jne 0x10473c0
push 0x100152c
push 0x100151c
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x1059f28], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10473cd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1059f38], ebx
je 0x10473ee
push 0x1059f38
call fcn.01047957
pop ecx
test eax, eax
je 0x10473ee
push ebx
push 2
push ebx
call dword [0x1059f38]
mov eax, dword [0x1059ee8]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x1059ee8]
push dword [0x1059eec]
push dword [0x1059ee4]
call fcn.0100d610
add esp, 0xc
mov dword [0x1059efc], eax
cmp dword [0x1059ef0], ebx
jne 0x1047459
push eax
call dword [sym.imp.MSVCR80.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.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1059f00], ebx
jne 0x1047467
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1059efc]
call fcn.01047a25
ret
call fcn.01047147
jmp 0x1047303
Function at 0x1001e9bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1002b60e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1001e9fb
sub eax, 1
je 0x1001e9f6
sub eax, 1
je 0x1001e9f2
xor eax, eax
leave
ret
push 3
jmp 0x1001e9fd
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1002e52f
Capabilities:
Parse pe header

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

Function at 0x10033864
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046ce0
push 0x10046cd8
push str.FlsAlloc
push 0x1f
call fcn.100336cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033898
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004214c]
call esi
jmp 0x1003389e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100338e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046cf0
push 0x10046ce8
push str.FlsGetValue
push 0x21
call fcn.100336cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033919
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004214c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10033921
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046cf8
push 0x10046cf0
push str.FlsSetValue
push 0x22
call fcn.100336cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003395b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004214c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10036853
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100368f0
push ebx
push esi
call fcn.1003681c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10034c87
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003689d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100368ef
push edi
push eax
call fcn.1002fab9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100368bd
call fcn.1002fa7f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100368ee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10034c87
add esp, 0x20
test eax, eax
jne 0x100368dc
push edi
call fcn.1002fa7f
jmp 0x100368e4
push ebx
call fcn.1002fa7f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100368f3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10036904
pop esi
ret
push ebx
push edi
push esi
call fcn.1003681c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1002fab9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003692c
push ebx
push esi
push edi
call fcn.100204c0
add esp, 0xc
push 0
call fcn.1002fa7f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10036cfc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10036941

Function at 0x1003ad35
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10030e9b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003ada4
cmp esi, dword [ebp - 4]
je 0x1003ad9f
cmp dword [ebp + 0xc], 0
je 0x1003ad9f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003ad7c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003a887
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003ada6
xor eax, eax
inc eax
jmp 0x1003ada6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1003ae0b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1004f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10030e9b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10030e9b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1003ae82
cmp word [ecx], dx
je 0x1003ae82
mov eax, dword [0x1004718c]
push edi
dec eax
push eax
push 0x10047078
call fcn.1003adaa
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003aef5
cmp word [eax], dx
je 0x1003aef5
mov eax, dword [edi]
test eax, eax
je 0x1003aea6
cmp word [eax], dx
je 0x1003aea6
lea eax, [ebp - 0x10]
push eax
call fcn.1003a78d
jmp 0x1003aeaf
lea eax, [ebp - 0x10]
push eax
call fcn.1003a828
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003af1f
mov eax, dword [0x10047074]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10046d68
call fcn.1003adaa
add esp, 0xc
test al, al
je 0x1003af1f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003aeea
cmp word [eax], di
je 0x1003aeea
lea eax, [ebp - 0x10]
push eax
call fcn.1003a78d
pop ecx
jmp 0x1003af21
lea eax, [ebp - 0x10]
push eax
call fcn.1003a828
jmp 0x1003aee7
mov eax, dword [edi]
test eax, eax
je 0x1003af0c
cmp word [eax], dx
je 0x1003af0c
lea eax, [ebp - 0x10]
push eax
call fcn.1003a742
pop ecx
jmp 0x1003af1f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1003afea
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003ac2f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003afea
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003afea
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003afea
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003af77
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10033afd
test ebx, ebx
je 0x1003afe5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10033afd
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003afea
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003afea
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003d968
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003afec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ef03
leave
ret
Function at 0x1003f500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003f52d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003f52d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x428890
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push ebx
lea ebx, [eax + edx]
mov edx, 0x1505
jmp 0x4288ad
mov eax, edx
shl eax, 5
add edx, eax
movsx eax, byte [ecx]
inc ecx
xor edx, eax
cmp ecx, ebx
jb 0x4288a0
pop ebx
mov eax, edx
pop ebp
ret
Function at 0x464ee0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x58], 0
mov eax, 1
ret

Function at 0x46de60
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
xor esi, esi
test edx, edx
je 0x46de77
mov al, byte [edx]
test al, al
mov ebx, 0x100
jne 0x46de80
pop ebx
xor eax, eax
pop esi
ret
movsx eax, al
or eax, ebx
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
imul eax, eax
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
add ebx, 0x100
test al, al
jne 0x46de80
mov eax, esi
shr eax, 0x10
pop ebx
xor eax, esi
pop esi
ret
Function at 0x47dbb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xbc]
xor eax, eax
test edi, edi
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb8]
je 0x47dd6f
mov edx, dword [esp + 0xb4]
test edx, edx
mov al, 1
mov dword [ebx], edi
je 0x47dd80
mov esi, dword [edi + 0x40]
cmp esi, 0x80
jg 0x47dd3b
cmp esi, ebp
jl 0x47dcee
cmp ebp, 0x80
ja 0x47dd55
push edx
push ebp
mov edx, dword [esp + 0xbc]
push edx
lea eax, [ebx + 0x38]
push eax
call fcn.004f2dc0
add esp, 0x10
lea ecx, [ebx + 4]
mov edx, ebp
mov dword [ebx + 0x34], ebp
mov dword [esp + 0xc], ecx
cmp edx, 0x80
je 0x47dc51
mov esi, pe_nt_image_headers32
sub esi, edx
push ecx
push esi
push 0
lea ebp, [edx + ebx + 0x38]
push ebp
call fcn.004f2d50
add esp, 0x10
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov al, byte [ebx + edx + 0x38]
xor eax, 0x36
mov byte [esp + edx + 0x10], al
inc edx
cmp edx, 0x7f
jle 0x47dc60
push eax
mov ebp, dword [esp + 0xc4]
push ebp
push edi
lea esi, [ebx + 0x14]
push esi
call fcn.00478120
add esp, 0xc
mov edx, dword [edi + 0x40]
push edx
lea ebp, [esp + 0x18]
push ebp
push esi
call fcn.004782c0
xor edx, edx
add esp, 0x10
nop
lea esi, [esi]
mov cl, byte [ebx + edx + 0x38]
xor ecx, 0x5c
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, 0x7f
jle 0x47dca0
push eax
mov edx, dword [esp + 0xc4]
push edx
push edi
add ebx, 0x24
push ebx
call fcn.00478120
add esp, 0xc
mov eax, dword [edi + 0x40]
push eax
push ebp
push ebx
call fcn.004782c0
add esp, 0x10
sub esp, 8
push esi
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004786c0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
mov eax, dword [esp + 0xc4]
push eax
push edi
lea esi, [ebx + 4]
mov dword [esp + 0x18], esi
push esi
call fcn.00478120
add esp, 0xc
push ebp
mov edx, dword [esp + 0xbc]
push edx
mov ebp, dword [esp + 0x18]
push ebp
call fcn.004782c0
add esp, 0xc
lea ecx, [ebx + 0x34]
push ecx
lea eax, [ebx + 0x38]
push eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004782e0
add esp, 0x10
mov edx, dword [ebx + 0x34]
jmp 0x47dc31
push eax
push 0x51f880
push 0x52
push 0x51f89b
call fcn.0046efa0
add esp, 0x10
jmp 0x47dbfb
push ecx
push 0x51f8b0
push 0x5c
push 0x51f89b
call fcn.0046efa0
add esp, 0x10
jmp 0x47dc0f
mov edx, dword [esp + 0xb4]
test edx, edx
mov edi, dword [ebx]
jne 0x47dbec
lea ecx, [ebx + 4]
test eax, eax
mov dword [esp + 0xc], ecx
lea esi, [ebx + 0x14]
jne 0x47dc51
sub esp, 8
push esi
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004786c0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4015d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4015f9
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x401619
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x40165d
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x40165d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
nop
nop
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x4016a3
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
nop
nop
nop
nop
nop
nop
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x18]
push 4
mov dword [esi + 4], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov eax, dword [ebx + 0x54]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.0060cb00
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call section..text
add esp, 0x18
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x40171c
push eax
mov eax, esi
call fcn.004011e0
add esp, 4
call fcn.00401270
test eax, eax
je 0x40175b
mov ebx, esi
call fcn.004010c0
mov eax, esi
call fcn.004011a0
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401774
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x40176d
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.00401530
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404b0b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404b42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x404b3e
jmp 0x404b30
cmp esi, eax
jae 0x404b42
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404b30
cmp esi, eax
jb 0x404b49
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408800
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 1
jle 0x4088fd
mov eax, 0x34
cdq
idiv esi
add eax, 6
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
movzx edx, byte [eax + esi - 1]
xor edi, edi
lea ecx, [ecx]
sub edi, 0x61c88647
mov ecx, edi
shr ecx, 2
and ecx, 3
mov dword [ebp - 8], ecx
xor ecx, ecx
dec esi
mov dword [ebp - 4], edi
je 0x4088a2
lea esp, [esp]
movzx esi, byte [ecx + eax + 1]
mov eax, edx
shr eax, 5
lea edi, [esi*4]
xor edi, eax
mov eax, esi
xor esi, dword [ebp - 4]
shr eax, 3
mov ebx, edx
shl ebx, 4
xor eax, ebx
mov ebx, dword [ebp + 0x10]
add edi, eax
mov eax, ecx
and eax, 3
xor eax, dword [ebp - 8]
inc ecx
mov eax, dword [ebx + eax*4]
xor eax, edx
add eax, esi
mov esi, dword [ebp + 0xc]
xor edi, eax
mov eax, dword [ebp + 8]
movzx edx, byte [ecx + eax - 1]
add edx, edi
mov byte [ecx + eax - 1], dl
dec esi
movzx edx, dl
cmp ecx, esi
jb 0x408850
movzx esi, byte [eax]
lea ebx, [esi*4]
mov dword [ebp - 0x10], esi
mov edi, edx
shr edi, 5
xor ebx, edi
shr esi, 3
mov edi, edx
and ecx, 3
xor ecx, dword [ebp - 8]
shl edi, 4
xor esi, edi
mov edi, dword [ebp - 4]
add ebx, esi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi + ecx*4]
mov ecx, dword [ebp - 0x10]
xor esi, edx
xor ecx, edi
add esi, ecx
xor ebx, esi
mov esi, dword [ebp + 0xc]
movzx ecx, byte [eax + esi - 1]
add ecx, ebx
dec dword [ebp - 0xc]
mov byte [eax + esi - 1], cl
movzx edx, cl
jne 0x408830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
jge 0x4089e4
neg esi
mov eax, 0x34
cdq
mov ebx, esi
idiv ebx
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
add eax, 6
mov ecx, eax
imul ecx, ecx, 0x9e3779b9
mov dword [ebp - 0xc], eax
movzx eax, byte [edi]
mov dword [ebp - 4], ecx
jmp 0x408933
mov ebx, dword [ebp + 0xc]
shr ecx, 2
and ecx, 3
lea esi, [ebx - 1]
mov dword [ebp - 8], ecx
test esi, esi
je 0x408991
movzx ecx, byte [esi + edi - 1]
mov ebx, ecx
shr ebx, 5
lea edx, [eax*4]
xor edx, ebx
mov ebx, eax
xor eax, dword [ebp - 4]
shr ebx, 3
shl ecx, 4
xor ebx, ecx
add edx, ebx
mov ebx, dword [ebp + 0x10]
mov ecx, esi
and ecx, 3
xor ecx, dword [ebp - 8]
mov ebx, dword [ebx + ecx*4]
movzx ecx, byte [esi + edi - 1]
xor ebx, ecx
add ebx, eax
movzx eax, byte [esi + edi]
xor edx, ebx
sub eax, edx
dec esi
mov byte [esi + edi + 1], al
movzx eax, al
jne 0x408943
mov ebx, dword [ebp + 0xc]
movzx ecx, byte [edi + ebx - 1]
mov bl, cl
shl bl, 4
mov edx, eax
shr edx, 3
xor dl, bl
mov dword [ebp - 0x10], ecx
shr ecx, 5
mov bl, al
add bl, bl
add bl, bl
xor cl, bl
mov bl, byte [ebp - 4]
add dl, cl
mov ecx, dword [ebp + 0x10]
and esi, 3
xor esi, dword [ebp - 8]
xor bl, al
mov cl, byte [ecx + esi*4]
xor cl, byte [ebp - 0x10]
add cl, bl
xor dl, cl
mov ecx, dword [ebp - 4]
sub byte [edi], dl
movzx eax, byte [edi]
add ecx, 0x61c88647
dec dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jne 0x408930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0x5f
idiv ecx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [edx + 0x58]
test esi, esi
je 0x408b4c
mov eax, dword [ebp + 8]
lea ecx, [ecx]
mov dl, byte [eax]
xor dl, cl
add dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x408b40
pop esi
pop ebp
ret
Function at 0x428130
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x428160
push 0x477
push 0x663a48
call fcn.0044f2e0
test eax, eax
je 0x428160
int3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jne 0x4281a6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00432bd0
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00432c00
jmp 0x4281c0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x6c]
mov edx, dword [eax]
mov eax, dword [edx + 0x94]
call eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4281d0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x428200
push 0x48c
push 0x663a48
call fcn.0044f2e0
test eax, eax
je 0x428200
int3
push 0x65b0ec
mov ecx, dword [ebp + 0xc]
call fcn.004040f0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x68], 0
jne 0x428267
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x428265
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00432bd0
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00432c00
jmp 0x428288
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004387c0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x428288
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00428130
mov ecx, dword [ebp + 0xc]
call fcn.00402b40
mov esp, ebp
pop ebp
ret 8