joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x427918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x434708]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor ebx, ebx
mov ecx, 0x446778
push ebx
push 0x3f
push 1
push ebx
mov dword [esp + 0x54], ebx
call fcn.00426c91
mov ecx, 0x4467c0
mov esi, eax
call fcn.0041a741
cmp esi, ebx
je 0x40361d
push 0x37
mov ecx, 0x446778
call fcn.00426e88
mov ecx, dword [0x446760]
push 0x17
push ecx
mov ecx, 0x446778
call fcn.00426de9
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [0x446780], ebx
jne 0x403492
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
lea ebp, [eax + 0xbb8]
call edi
cmp eax, ebp
jae 0x403531
push 1
push ebx
push ebx
lea edx, [esp + 0x2c]
push ebx
push edx
call esi
test eax, eax
je 0x40348a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x446780], ebx
je 0x40345a
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x434298
lea edx, [esp + 0x18]
push 0x446754
push edx
call fcn.0041a9e5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.0041a8ef
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.0041a7b6
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Password:
call fcn.0041a824
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x54], 2
call fcn.0041a52b
mov ecx, 0x446778
mov byte [esp + 0x50], bl
call fcn.00402fc0
cmp eax, ebx
jne 0x403566
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041a7b6
mov eax, 0xffffffeb
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
cmp dword [0x446780], ebx
jne 0x403492
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041a7b6
mov eax, 0xffffffe9
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0x10]
call fcn.0041a741
push 0x434298
lea ecx, [esp + 0x18]
push 0x446750
push ecx
call fcn.0041a9e5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.0041a8ef
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.0041a7b6
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x434458
call fcn.0041a824
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x54], 4
call fcn.0041a52b
mov ecx, 0x446778
mov byte [esp + 0x50], bl
call fcn.00402fc0
cmp eax, ebx
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x10]
jne 0x403603
call fcn.0041a7b6
mov eax, 0xffffffea
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
call fcn.0041a7b6
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041a7b6
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 0xffffffe8
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
Function at 0x410985
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4359e8
cmp edx, dword [eax]
je 0x4109a7
add eax, 8
inc ecx
cmp eax, 0x435a78
jl 0x410998
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4359e8]
jne 0x410ad5
mov eax, dword [0x44883c]
cmp eax, 1
je 0x410aaf
test eax, eax
jne 0x4109d8
cmp dword [0x43551c], 1
je 0x410aaf
cmp edx, 0xfc
je 0x410ad5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410a0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411e20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410b40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410a52
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410b40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c454
push edi
call fcn.00413930
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411e20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411e30
lea eax, [ebp - 0xa0]
push 0x42c434
push eax
call fcn.00411e30
push dword [esi + 0x4359ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411e30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041389c
add esp, 0x2c
pop edi
jmp 0x410ad5
lea eax, [ebp + 8]
lea esi, [esi + 0x4359ec]
push 0
push eax
push dword [esi]
call fcn.00410b40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4188d0
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.0040bd70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41899b
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 0x41899b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41894e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418959
or bh, 8
and edi, 0x8000000
je 0x418974
mov eax, dword [0x449fdc]
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 0x41899b
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 0x418d70
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 0x418d9b
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 0x418dbf
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 0x418dda
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 0x41ec12
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 0x41ec54
call fcn.00423e60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ec54
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ec4b
xor eax, eax
jmp 0x41ec5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ec62
pop edi
pop esi
pop ebx
ret 4

Function at 0x4223b0
Capabilities:
Create http request

Disassembly:
mov eax, 0x427b50
call fcn.0040c218
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4223e8
call fcn.00423e60
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x42240d
push eax
push dword [esi + 4]
call fcn.0042310e
jmp 0x422419
push esi
push eax
mov ecx, 0x4469b0
call fcn.0042242a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42258a
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x427b8b
call fcn.0040c218
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041fa1c
mov eax, dword [0x434708]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x4469b0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0042242a
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0041a93f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00403ea6
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0041a8ef
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0041a7b6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x424675
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 0x4246a3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4246c1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004245db
jmp 0x4246c1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4246c1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004245db
test edi, edi
mov eax, edi
jne 0x4246ab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x47b5d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x50000]
push edi
or ebp, 0xffffffff
jmp 0x47b5f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47b5f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b5e8
mov eax, 1
add ebx, ebx
jne 0x47b60b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47b61c
jne 0x47b63b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b63b
dec eax
add ebx, ebx
jne 0x47b628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47b600
add ebx, ebx
jne 0x47b637
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47b68d
xor ecx, ecx
sub eax, 3
jb 0x47b653
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47b6c2
sar eax, 1
mov ebp, eax
jmp 0x47b65e
add ebx, ebx
jne 0x47b65e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b62c
inc ecx
add ebx, ebx
jne 0x47b66c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b62c
add ebx, ebx
jne 0x47b679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47b66e
jne 0x47b68a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47b66e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47b6ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47b69e
jmp 0x47b5ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47b6ac
add edi, ecx
jmp 0x47b5ee
pop esi
mov edi, esi
mov ecx, 0x2aee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47b6ca
cmp byte [edi], 0x26
jne 0x47b6ca
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 al, bl
loop 0x47b6cf
lea edi, [esi + 0x78000]
mov eax, dword [edi]
or eax, eax
je 0x47b747
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81e0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x81f24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47b6fc
mov ecx, edi
jns 0x47b72b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x81f28]
or eax, eax
je 0x47b741
mov dword [ebx], eax
add ebx, 4
jmp 0x47b719
call dword [esi + 0x81f30]
mov ebp, dword [esi + 0x81f2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47b77b
sub esp, 0xffffff80
jmp 0x4422e4
Function at 0x69d1cd
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0069d24c
jae 0x69d1d9
xor ecx, ecx
call fcn.0069d24c
jae 0x69d203
xor eax, eax
call fcn.0069d24c
jae 0x69d214
mov al, 0x10
call fcn.0069d24c
adc al, al
jae 0x69d1f5
jne 0x69d241
stosb byte es:[edi], al
jmp 0x69d1da
call fcn.0069d258
dec ecx
loop 0x69d220
mov eax, ebp
call fcn.0069d256
jmp 0x69d242
lodsb al, byte [esi]
shr eax, 1
je 0x69d268
adc ecx, 2
mov ebp, eax
jmp 0x69d242
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0069d256
cmp eax, 0x7d00
jae 0x69d240
cmp eax, 0x500
jae 0x69d241
cmp eax, 0x7f
ja 0x69d242
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x69d1da
pop ebp
ret 8
Function at 0x402cfd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x402d0c
pop dword [ebp - 0x20]
mov eax, 0x70840a4b
add eax, 0x8fbc22c1
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x4e84c
push 0
mov eax, 0xeb65022d
add eax, 0x14e165ab
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xdb983997
add ecx, 0x24681135
mov esi, eax
mov edi, 0x48e000
add edi, dword [ebp - 0x20]
mov ebx, 0x1af6f925
xor dword [ebp - 0x14], ecx
mov edx, dword [edi]
sub dword [ebp - 8], 0xd9458154
add edx, ebx
add dword [ebp - 0x1c], 0xf75f2c43
mov dword [esi], edx
add dword [ebp - 0x18], esi
add esi, 0xb95ab879
add esi, 0x46a5478b
add edi, 4
loop 0x402d5f
add eax, 0x7f9a9e59
add eax, 0x80667faa
xor ebx, ebx
add ebx, eax
add eax, 0x7f5e6d04
sub eax, 0x7f5e6cff
mov ecx, 0x44cf866
sub ecx, 0x40cf866
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x404cfa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x404d40
call fcn.0040d671
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404d40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x404d83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x404d6c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404d6c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404d80
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a8a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a8ea
call fcn.0040d671
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a8ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a905
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040a45e
test ebx, ebx
mov esi, eax
je 0x40a903
test edi, edi
je 0x40a903
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f719
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 0x40f747
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f765
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f683
jmp 0x40f765
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f765
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f683
test edi, edi
mov eax, edi
jne 0x40f74f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4464d8]
test ecx, ecx
je 0x40f828
jmp 0x40f718
ret 8

Function at 0x41d81a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443504]
jne 0x41d824
repz ret
jmp fcn.0042316c
Function at 0x42b16a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00422bb5
xor ebx, ebx
cmp dword [0x44727c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42b23f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42b1aa
xor eax, eax
jmp 0x42b303
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438fdc
push edi
call esi
cmp eax, ebx
je 0x42b1a3
push eax
call fcn.00422b52
mov dword [esp], 0x438fcc
push edi
mov dword [0x44727c], eax
call esi
push eax
call fcn.00422b52
mov dword [esp], 0x438fb8
push edi
mov dword [0x447280], eax
call esi
push eax
call fcn.00422b52
mov dword [0x447284], eax
lea eax, [ebp - 8]
push eax
call fcn.0041e996
test eax, eax
pop ecx
pop ecx
je 0x42b20d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423f07
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42b23f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00422b52
cmp eax, ebx
pop ecx
mov dword [0x44728c], eax
je 0x42b23f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422b52
pop ecx
mov dword [0x447288], eax
mov eax, dword [0x447288]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42b2b8
cmp dword [0x44728c], esi
je 0x42b2b8
push eax
call fcn.00422bbe
pop ecx
call eax
cmp eax, ebx
je 0x42b285
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44728c]
call fcn.00422bbe
pop ecx
call eax
test eax, eax
je 0x42b285
test byte [ebp - 0x18], 1
jne 0x42b2b8
lea eax, [ebp - 0xc]
push eax
call fcn.0041e9cd
test eax, eax
pop ecx
je 0x42b2a0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423f07
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42b2af
or dword [ebp + 0x10], 0x200000
jmp 0x42b2e9
or dword [ebp + 0x10], 0x40000
jmp 0x42b2e9
mov eax, dword [0x447280]
cmp eax, esi
je 0x42b2e9
push eax
call fcn.00422bbe
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42b2e9
mov eax, dword [0x447284]
cmp eax, esi
je 0x42b2e9
push dword [ebp - 4]
push eax
call fcn.00422bbe
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44727c]
call fcn.00422bbe
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430980
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x443504]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00430915
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041d9f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4309cf
cmp dword [ebp - 0x1c], 5
jb 0x4309e7
jmp 0x4309e3
cmp dword [ebp - 0x10], 1
jne 0x4309e7
cmp dword [ebp - 0x1c], 4
ja 0x4309e3
jne 0x4309e7
cmp dword [ebp - 0x18], 0
jbe 0x4309e7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x439860
call fcn.004307e9
test eax, eax
jge 0x430a08
mov byte [0x4449a8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d81a
add ebp, 0x78
leave
ret