joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a250
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45ce92
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x14], esi
mov word [esp + 0x18], ax
call fcn.00444db0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00406e00
mov dword [esp + 0x428], 0
mov dword [esp + 4], 1
mov eax, esi
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00442851
add esp, 0x428
ret

Function at 0x42a3d0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45e3e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00406fc0
mov dword [esp + 0x20], 0
lea esi, [esp + 0x14]
call fcn.0042a250
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
call fcn.0042a7f0
add esp, 4
mov byte [esp + 0x20], 2
push eax
lea ecx, [esp + 0x10]
call fcn.00406800
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x10]
call fcn.00406ed0
mov byte [esp + 0x20], 0
mov ecx, esi
call fcn.00406ed0
lea esi, [esp + 0x10]
call fcn.0042a310
mov byte [esp + 0x20], 3
push str..ini
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x20], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00406510
mov byte [esp + 0x20], 3
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x20], 0
mov ecx, esi
call fcn.00406ed0
lea ecx, [esp + 0xc]
call fcn.0042a520
test al, al
jne 0x42a4ce
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00406ed0
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [0x4957c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x4957c0]
mov edx, dword [esp + 0xc]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00406ed0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x42bb40
Capabilities:
Hash data via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
push edi
lea edi, [eax + 2]
jmp 0x42bb50
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42bb50
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx]
sub eax, edi
sar eax, 1
push edx
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop edi
pop esi
test eax, eax
jne 0x42bb7f
call fcn.00412090
ret 8
xor eax, eax
ret 8
Function at 0x42bb90
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
cmp dword [ebp], esi
jae 0x42bbad
pop esi
pop ebp
mov eax, 0xea
pop ebx
ret 0x14
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push esi
push eax
push esi
push edi
call fcn.00442860
push eax
call fcn.00406950
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
push edi
push 0
push 1
push eax
mov eax, dword [ebx]
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
pop edi
test eax, eax
jne 0x42bbf6
call fcn.00412090
pop esi
pop ebp
pop ebx
ret 0x14
mov ecx, dword [esp + 0x14]
pop esi
mov dword [ebp], ecx
pop ebp
xor eax, eax
pop ebx
ret 0x14

Function at 0x42bfe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45a591
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00406fc0
mov dword [esp + 0x1c], 0
mov ebx, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call fcn.00406fc0
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
push str.0x_x
push ecx
call fcn.004066b0
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push 0x462aec
push eax
call fcn.00406220
add esp, 0x18
mov byte [esp + 0x1c], 2
push eax
mov ecx, esi
call fcn.00406800
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x2c]
call fcn.00406ed0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push str._nHRESULT:
push edx
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x1c], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00406510
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xc]
call fcn.00406ed0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x42c790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x42c9d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45a742
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov dword [esp + 0x22c], 0
mov esi, dword [esp + 0x234]
mov eax, dword [esp + 0x238]
push eax
mov ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
call fcn.00406730
mov dword [esp + 0x22c], 0
mov ecx, esi
mov dword [esp + 0x10], 1
call fcn.0040ccc0
call fcn.0042c760
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
je 0x42cad3
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x42cad3
push edi
push eax
call fcn.0044298b
add esp, 8
test eax, eax
je 0x42cad3
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x42cad3
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00444db0
add esp, 0xc
call fcn.0042f665
test eax, eax
je 0x42cab1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x42cab5
xor eax, eax
jmp 0x42cab8
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x23
push eax
call ebp
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, esi
call fcn.0040faa0
call fcn.0042c770
mov edi, eax
test edi, edi
je 0x42cb4f
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x42cb4f
push edi
push eax
call fcn.0044298b
add esp, 8
test eax, eax
je 0x42cb4f
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x42cb4f
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00444db0
add esp, 0xc
call fcn.0042f665
test eax, eax
je 0x42cb2d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x42cb31
xor eax, eax
jmp 0x42cb34
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x1a
push eax
call ebp
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, esi
call fcn.0040faa0
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00442851
add esp, 0x220
ret
Function at 0x42cc90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x194
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x190], eax
mov ecx, dword [ecx]
mov eax, dword [esp + 0x198]
mov eax, dword [eax]
push esi
mov esi, dword [esp + 0x1a0]
push ecx
push 0xc8
lea ecx, [esp + 0xc]
push ecx
push 0x4698d0
push eax
push str.MANDANTEN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x42ccf1
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00442851
add esp, 0x194
ret 8
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x42cd00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cd00
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00406cd0
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
mov al, 1
call fcn.00442851
add esp, 0x194
ret 8

Function at 0x42ce80
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x45a849
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], 0
call fcn.00406730
mov ebx, 1
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x14]
call fcn.0040ccc0
call fcn.0042c780
push eax
lea ecx, [esp + 0x1c]
call fcn.00406e00
mov byte [esp + 0x54], 2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x42cf70
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x42cf70
push ecx
push eax
call fcn.0044298b
add esp, 8
test eax, eax
je 0x42cf70
sub eax, dword [esi]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x42cf70
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
lea ecx, [esp + 0x18]
call fcn.00406800
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0040f9e0
lea eax, [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0042a720
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00406730
jmp 0x42cf78
push esi
mov ecx, ebp
call fcn.00406730
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov eax, ebp
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00442851
add esp, 0x44
ret
Function at 0x42cfc0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x45a8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
mov esi, dword [esp + 0x240]
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call fcn.00406730
mov ebx, 1
mov dword [esp + 0x238], ebx
call fcn.0042c770
push eax
lea ecx, [esp + 0x1c]
call fcn.00406e00
mov byte [esp + 0x238], 2
lea ecx, [esp + 0x14]
call fcn.0040ccc0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42d0c9
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x42d0c9
push eax
push ecx
call fcn.0044298b
add esp, 8
test eax, eax
je 0x42d0c9
sub eax, dword [esp + 0x14]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x42d0c9
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push ebp
lea ecx, [esp + 0x18]
call fcn.00406800
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0040f9e0
lea eax, [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0042a720
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00406730
jmp 0x42d0d1
push ebp
mov ecx, esi
call fcn.00406730
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x238], bl
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x238], 0
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00442851
add esp, 0x228
ret
Function at 0x430d64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x430d88
cmp dword [edi + 0x54], 0
jne 0x430d88
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042ea20
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00430d25
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4372b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4372f8
call fcn.0042ea20
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4372f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x437314
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00436e29
mov esi, eax
test edi, edi
je 0x437312
test ebx, ebx
je 0x437312
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43a0ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x43a0c3
mov edi, dword [esi + 0xc]
jmp 0x43a103
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43a0dc
call fcn.0043c225
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43a0f1
call fcn.0043c225
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43a103
call fcn.0043c225
call fcn.0042ea20
cmp dword [eax + 0x3c], 0
je 0x43a118
push edi
mov ecx, ebx
call fcn.00438ef0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00439fd1
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x43a136
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x43a142
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x442851
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x491104]
jne 0x44285b
repz ret
jmp fcn.00449ade
Function at 0x453934
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00449442
and dword [ebp - 4], 0
cmp dword [0x4956d4], 0
mov ebx, eax
jne 0x4539e5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x453a96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x453a96
push eax
call fcn.004493d0
mov dword [esp], 0x4676b0
push edi
mov dword [0x4956d4], eax
call esi
push eax
call fcn.004493d0
mov dword [esp], 0x46769c
push edi
mov dword [0x4956d8], eax
call esi
push eax
call fcn.004493d0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4956dc], eax
call esi
push eax
call fcn.004493d0
pop ecx
mov dword [0x4956e4], eax
test eax, eax
je 0x4539e5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004493d0
pop ecx
mov dword [0x4956e0], eax
mov eax, dword [0x4956e0]
cmp eax, ebx
je 0x453a3d
cmp dword [0x4956e4], ebx
je 0x453a3d
push eax
call fcn.0044944b
push dword [0x4956e4]
mov esi, eax
call fcn.0044944b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x453a3d
test edi, edi
je 0x453a3d
call esi
test eax, eax
je 0x453a34
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453a34
test byte [ebp - 0xc], 1
jne 0x453a3d
or dword [ebp + 0x10], 0x200000
jmp 0x453a76
mov eax, dword [0x4956d8]
cmp eax, ebx
je 0x453a76
push eax
call fcn.0044944b
pop ecx
test eax, eax
je 0x453a76
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x453a76
mov eax, dword [0x4956dc]
cmp eax, ebx
je 0x453a76
push eax
call fcn.0044944b
pop ecx
test eax, eax
je 0x453a76
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4956d4]
call fcn.0044944b
pop ecx
test eax, eax
je 0x453a96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453a98
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414f10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a3a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x414fdb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x414fdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x414f8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x414f99
or bh, 8
and edi, 0x8000000
je 0x414fb4
mov eax, dword [0x432afc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x414fdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4153b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4153db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4153ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41541a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4196c7
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 0x419709
call fcn.0041dea9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419709
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419700
xor eax, eax
jmp 0x419711
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419717
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e597
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 0x41e5c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e5e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e4fd
jmp 0x41e5e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e5e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e4fd
test edi, edi
mov eax, edi
jne 0x41e5cd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x63190510
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x529150d4
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x45d32c99
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4c154819
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219