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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x5ec328
push eax
call fcn.005f3661
push 2
call fcn.005f35f0
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005a3bb0
add esp, 0xc
pop edi
pop esi
ret

Function at 0x5ec799
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.005f3601
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 8], esi
je 0x5ec7f1
push esi
call fcn.005ec761
push 0
push esi
call fcn.005fc208
add esp, 0xc
test eax, eax
je 0x5ec7f8
mov edi, dword [ebp - 8]
push dword [edi + 0xac]
lea esi, [edi + 0xac]
push edi
call fcn.005f371b
and dword [esi], 0
push edi
call fcn.005f3661
add esp, 0xc
xor eax, eax
jmp 0x5ec956
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.005f3788
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005f35d6
mov ecx, dword [ebp + 8]
mov edi, 0x638e10
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, 0x20000
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + eax]
cmp bl, byte [eax]
je 0x5ec83e
or dword [esi + 0x6c], edx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x5ec831
test dword [esi + 0x6c], edx
je 0x5ec8bc
test ecx, ecx
je 0x5ec891
mov al, byte [ecx]
cmp al, byte [0x638e10]
jne 0x5ec871
cmp al, 0x31
jne 0x5ec867
mov dl, byte [ecx + 2]
cmp dl, byte [0x638e12]
jne 0x5ec871
cmp al, 0x30
jne 0x5ec8bc
cmp byte [ecx + 2], 0x39
jge 0x5ec8bc
test ecx, ecx
je 0x5ec891
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.0059e1a7
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005f33d1
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.0059e1a7
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005f33d1
and dword [esi + 0x6c], 0
push str.Incompatible_libpng_version_in_application_and_library
push esi
call fcn.005f3345
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.005f36a8
mov dword [esi + 0xac], eax
push 0x38
lea eax, [esi + 0x74]
mov dword [esi + 0x94], fcn.005ec209
push str.1.1.4
mov dword [esi + 0x98], fcn.005ec25f
push eax
mov dword [esi + 0x9c], esi
call fcn.004ebeb0
add esp, 0x14
cmp eax, 0xfffffffa
je 0x5ec922
cmp eax, 0xfffffffc
je 0x5ec91b
cmp eax, 0xfffffffe
je 0x5ec91b
test eax, eax
je 0x5ec92f
push str.Unknown_zlib_error
jmp 0x5ec927
push str.zlib_memory_error
jmp 0x5ec927
push str.zlib_version_error
push esi
call fcn.005f3345
pop ecx
pop ecx
mov eax, dword [esi + 0xac]
push 0
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xb0]
push 0
push esi
mov dword [esi + 0x84], eax
call fcn.005f37d3
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f1b14
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.005f3601
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 8], esi
je 0x5f1b6c
push esi
call fcn.005ec761
push 0
push esi
call fcn.005fc208
add esp, 0xc
test eax, eax
je 0x5f1b73
mov edi, dword [ebp - 8]
push dword [edi + 0xac]
lea esi, [edi + 0xac]
push edi
call fcn.005f371b
and dword [esi], 0
push edi
call fcn.005f3661
add esp, 0xc
xor eax, eax
jmp 0x5f1c6d
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.005f3788
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005f35d6
mov ecx, dword [ebp + 8]
mov edi, 0x638e10
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, 0x20000
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + eax]
cmp bl, byte [eax]
je 0x5f1bb9
or dword [esi + 0x6c], edx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x5f1bac
test dword [esi + 0x6c], edx
je 0x5f1c3a
xor ebx, ebx
cmp ecx, ebx
je 0x5f1c0e
mov al, byte [ecx]
cmp al, byte [0x638e10]
jne 0x5f1bee
cmp al, 0x31
jne 0x5f1be4
mov dl, byte [ecx + 2]
cmp dl, byte [0x638e12]
jne 0x5f1bee
cmp al, 0x30
jne 0x5f1c3c
cmp byte [ecx + 2], 0x39
jge 0x5f1c3c
cmp ecx, ebx
je 0x5f1c0e
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.0059e1a7
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005f33d1
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.0059e1a7
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005f33d1
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], ebx
call fcn.005f3345
add esp, 0x1c
jmp 0x5f1c3c
xor ebx, ebx
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.005f36a8
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.005f8922
push ebx
push ebx
push 1
push ebx
push esi
call fcn.005f20f9
add esp, 0x2c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f9874
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x5f989e
test ecx, ecx
jne 0x5f98a8
test edx, edx
jne 0x5f98a8
mov eax, edi
jmp 0x5f9914
cmp eax, 0xffffffff
jne 0x5f98a8
push 0xfffffffffffffffe
pop eax
jmp 0x5f9914
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x5f9914
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.005a34c0
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x5f98d9
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x5f98f8
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x5f996f
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.005f9974
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x5f995b
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x5f996f
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x5f9880
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100023dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100023eb
pop dword [ebp - 0x14]
mov eax, 0x515c3fc7
add eax, 0xbea3e424
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xd5ea4023
sub dword [ebp - 0x24], 0x8797fad8
mov dword [ebp - 0x20], 0xeb5db6d9
add dword [ebp - 0x20], 0x46d5956c
mov dword [ebp - 0x1c], 0x55639beb
sub dword [ebp - 0x1c], 0x91757bd
mov dword [ebp - 0x18], 0x2bcd6f48
sub dword [ebp - 0x18], 0x2bcd6f48
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x449e1bb8
add dword [ebp - 0x24], 0x2fd44d9e
mov dword [ebp - 0x20], 0x8776b174
add dword [ebp - 0x20], 0xb9f5b001
mov dword [ebp - 0x1c], 0xb35e0436
add dword [ebp - 0x1c], 0xb0116836
mov dword [ebp - 0x18], 0xfa13a644
add dword [ebp - 0x18], 0x5ec59bc
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xe2a3ffd7
sub eax, 0xd2a35fcf
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x39f87
push 0
call eax
mov ecx, 0x639392d7
add ecx, 0x9c6cc2a1
xor edi, edi
add edi, eax
mov ebx, 0xb4d8eb93
sub ebx, 0xa4d7f393
add ebx, dword [ebp - 0x14]
mov edx, 0xeb99ec39
sub edx, 0xa7a23ae4
sub dword [ebp - 0x10], ebx
mov esi, dword [ebx]
add dword [ebp - 4], 0x7aa16ce4
add esi, edx
add dword [ebp - 4], 0xf06ad43b
mov dword [edi], esi
xor dword [ebp - 8], 0x78c1e272
add edi, 0xed85bd6
sub edi, 0xed85bd2
add ebx, 0x4740b702
sub ebx, 0x4740b6fe
loop 0x1000250a
add eax, 0x148b3
xor ebx, ebx
add ebx, eax
add eax, 0x4756174e
add eax, 0xb8a9e8b7
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x42b3f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x42b412
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b408
mov eax, 1
add ebx, ebx
jne 0x42b42b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x42b420
jne 0x42b43c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b420
xor ecx, ecx
sub eax, 3
jb 0x42b450
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b4c2
mov ebp, eax
add ebx, ebx
jne 0x42b45b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b468
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b48c
inc ecx
add ebx, ebx
jne 0x42b478
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x42b46d
jne 0x42b489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b46d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jle 0x42b4ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b49d
jmp 0x42b40e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b4ac
add edi, ecx
jmp 0x42b40e
pop esi
sub edi, dword [edi - 4]
push edi
mov edi, esi
mov ecx, 0xb0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b4ce
cmp byte [edi], 1
jne 0x42b4ce
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42b4d3
pop edi
mov eax, dword [edi]
or eax, eax
je 0x42b544
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b064]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b4fb
push edx
mov ecx, edi
jns 0x42b52b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x2b068]
pop edx
or eax, eax
je 0x42b542
mov dword [ebx], eax
add ebx, 4
jmp 0x42b518
popal
ret
popal
jmp 0x40a7c0
Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call fcn.1000106f

Function at 0x78b6b360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x78b6b36f
pop dword [ebp - 0x40]
mov eax, 0x726e78b7
add eax, 0x6483ab8
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x9eda55c
add dword [ebp - 0x50], 0x44649fef
mov dword [ebp - 0x4c], 0x42084d24
sub dword [ebp - 0x4c], 0xfd500df
mov dword [ebp - 0x48], 0x22a7442
sub dword [ebp - 0x48], 0xb5de3014
mov dword [ebp - 0x44], 0xccc7846b
add dword [ebp - 0x44], 0x33387b95
lea eax, [ebp - 0x50]
push eax
mov eax, 0xc8ad6fcc
add eax, 0xb007a14c
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xe5c5d8a5
add dword [ebp - 0x50], 0x8eac90b1
mov dword [ebp - 0x4c], 0x5bf07a4
add dword [ebp - 0x4c], 0x3bad59d1
mov dword [ebp - 0x48], 0x72ca01c9
sub dword [ebp - 0x48], 0xf5a955d
mov dword [ebp - 0x44], 0x5adf3bb0
add dword [ebp - 0x44], 0xa520c450
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x877be38a
sub eax, 0xec6d31a
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3ee4a
push 0
call eax
mov ecx, 0x2dbdc1f3
sub ecx, 0x2dbd78e7
xor edi, edi
add edi, eax
mov esi, 0x9d5390ab
sub esi, 0x249b70ab
add esi, dword [ebp - 0x40]
mov ebx, 0x3e4c9460
add ebx, 0xb05873d3
mov edx, dword [esi]
sub dword [ebp - 0x30], edx
xor edx, ebx
sub dword [ebp - 0x38], 0x4d645382
mov dword [edi], edx
xor dword [ebp - 4], ecx
add edi, 0x3320e3b
add edi, 0xfccdf1c9
add esi, 0xd1169bcc
sub esi, 0xd1169bc8
loop 0x78b6b493
add eax, 0x11703
mov ebx, eax
add eax, 0xf061a163
sub eax, 0xf061a15e
mov ecx, 0xba669a09
add ecx, 0xbe4e65f7
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x78b6d35d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b7b310]
jne 0x78b6d367
repz ret
jmp fcn.78b6ed18
Function at 0x401250
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebx
push esi
push edi
call fcn.00401200
test eax, eax
jne 0x401363
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0
test esi, esi
jne 0x40128d
push 0x41a214
push str.Couldnt_open_service_manager
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 0
push 0x41a194
push 1
push 2
push 1
push 0xf01ff
push 0x41a214
push 0x41a214
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x4012db
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
push 0x41a214
push str.Couldnt_create_service
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xf01ff
push 0x41a214
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x401316
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push ebx
push 0x41a214
push str.Couldnt_open_service
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401354
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push ebx
call esi
push 0
push 0x41a214
push str.Couldnt_start_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40b00d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x411adc
call fcn.0040294c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041062a
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40b04c
call fcn.0041062a
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b05a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b068
or eax, 0xffffffff
jmp 0x40b150
mov ecx, esi
call fcn.0040af83
mov dword [ebp - 0x14], eax
call fcn.0040bdbf
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40b09f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b09f
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0040bd73
push dword [ebp - 0x14]
call fcn.0040b8a5
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040ad1b
cmp eax, edi
je 0x40b112
test byte [esi + 0x24], 0x10
je 0x40b0e0
push 4
mov ecx, esi
pop ebx
call fcn.0040de64
test ah, 1
je 0x40b0d8
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040d8c6
cmp dword [esi + 0x1c], edi
je 0x40b112
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040de98
jmp 0x40b112
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40b126
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40b13f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40b13f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040afbd
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40d774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40d7b6
call fcn.0041062a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40d7b6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40d7ad
xor eax, eax
jmp 0x40d7be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040d7c4
pop edi
pop esi
pop ebx
ret 4
Function at 0x410e26
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410e54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410e72
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00410d8c
jmp 0x410e72
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410e72
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00410d8c
test edi, edi
mov eax, edi
jne 0x410e5c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402f72
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x403027
mov edx, dword [ebp - 8]
sub edx, 0x61c88647
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 5
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x402fc1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40303c
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x4030f0
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 8]
xor ecx, edx
mov eax, dword [ebp - 0x20]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, 0x61c88647
mov dword [ebp - 8], eax
jmp 0x40308b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40330b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x4033c0
mov edx, dword [ebp - 8]
sub edx, 0x61c88647
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 5
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x40335a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret