joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4410
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b4630
sub esp, 0x4c
mov eax, dword [esp + 0x54]
movzx ecx, word [eax + 2]
movzx edx, word [eax + 8]
movzx ebx, word [eax + 0xa]
movzx ebp, word [eax + 0xc]
mov esi, dword [esp + 0x50]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
mov ecx, dword [0xc7ffe8]
mov dword [esp + 0x1c], ecx
call fcn.004b23f0
lea esi, [esp + 0x20]
mov dword [esp + 0x34], esi
lea edi, [esp + 0x38]
call fcn.0045a12e
mov edi, esp
mov esi, dword [esp + 0x34]
call fcn.0045a12e
call fcn.004aee40
mov eax, dword [esp + 0x14]
add eax, 0x15180
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call fcn.00454730
mov eax, dword [esp + 0x54]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
lea eax, [ebp + edx]
sar eax, 0x10
sar ebp, 0x1f
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x4b4612
lea edx, [ecx + 7]
movzx ebp, word [ebx + 6]
lea esi, [ebp - 1]
cmp esi, 4
jge 0x4b458b
lea ecx, [ebp + ebp*2]
lea ecx, [ebp + ecx*2]
lea ecx, [edx + ecx - 6]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
test edx, 0x80000000
je 0x4b4581
shl edx, 1
mov ebp, ebx
shr ebx, 0x1f
or ebx, edx
shl ebp, 1
shr ebp, 0x1f
mov edx, ebx
shl ebx, 1
or ebx, ebp
mov ebp, ebx
add ebx, 0xd7b17f80
shr edx, 0x1f
add ebp, 0xd7b17f80
adc edx, 0xd
lea eax, [ecx - 1]
mov ecx, 0x15180
mov ebp, edx
mov esi, eax
mul ecx
mov ecx, eax
add eax, ebx
mov edi, eax
add eax, 0x886e0900
mov dword [esp + 0x58], eax
sar esi, 0x1f
imul esi, esi, 0x15180
add edx, esi
add ecx, ebx
adc edx, ebp
add edi, 0x886e0900
adc edx, 0xfffffff1
mov dword [esp + 0x5c], edx
add esp, 0x4c
ret
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
jmp 0x4b4544
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x4b460c
mov ebx, dword [esp + 0x50]
test ebx, 3
jne 0x4b4606
mov ecx, eax
mov eax, 0x51eb851f
mov ebp, edx
imul ebx
mov esi, ebx
sar ebx, 0x1f
mov edi, edx
sar edx, 5
sub edx, ebx
imul edx, edx, 0x64
cmp esi, edx
je 0x4b45d6
mov eax, 0x1d
lea ecx, [ebp + 0x1d]
cmp ecx, eax
jle 0x4b450c
lea ecx, [ebp + 0x16]
jmp 0x4b450c
sar edi, 7
sub edi, ebx
imul edx, edi, 0x190
cmp edx, esi
je 0x4b45be
cmp ecx, 0xd
jae 0x4b4623
lea edx, [0xa20840]
mov edx, dword [edx + ecx*4]
lea eax, [ecx - 1]
cmp eax, 0xd
jae 0x4b4619
sub edx, dword [ecx*4 + 0xa2083c]
mov eax, edx
jmp 0x4b45c3
mov ecx, eax
mov ebp, edx
jmp 0x4b45e5
mov ecx, eax
mov ebp, edx
jmp 0x4b45e5
mov edx, ecx
jmp 0x4b44f0
mov ecx, 0xd
call fcn.00459a30
mov eax, ecx
mov ecx, 0xd
call fcn.00459a30
nop
call fcn.00458170
jmp fcn.004b4410
Function at 0x58c1c0
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58c37e
movzx eax, byte [esp + 4]
cmp al, 0x61
jb 0x58c1eb
cmp al, 0x7a
ja 0x58c1eb
mov byte [esp + 0xc], 0
ret
cmp al, 0x41
jb 0x58c1f5
cmp al, 0x5a
jbe 0x58c1e5
cmp al, 0x30
jb 0x58c1ff
cmp al, 0x39
jbe 0x58c1e5
mov ecx, dword [esp + 8]
cmp ecx, 3
jne 0x58c370
cmp al, 0x2c
ja 0x58c34d
lea edx, [eax - 0x21]
cmp dl, 1
ja 0x58c223
mov byte [esp + 0xc], 0
ret
cmp al, 0x24
je 0x58c21d
lea edx, [eax - 0x26]
cmp dl, 6
jbe 0x58c21d
cmp al, 0x2f
ja 0x58c313
cmp al, 0x26
ja 0x58c2eb
cmp al, 0x24
jne 0x58c2e0
cmp ecx, 2
jg 0x58c2a4
cmp ecx, 1
je 0x58c299
cmp ecx, 2
jne 0x58c27b
cmp al, 0x2f
jne 0x58c269
mov eax, 1
mov byte [esp + 0xc], al
ret
cmp al, 0x3b
je 0x58c25f
cmp al, 0x2c
je 0x58c25f
cmp al, 0x3f
sete al
jmp 0x58c264
cmp ecx, 7
jne 0x58c293
cmp al, 0x21
jne 0x58c28b
mov byte [esp + 0xc], 0
ret
add eax, 0xffffffd8
cmp al, 2
jbe 0x58c285
mov byte [esp + 0xc], 1
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x58c2ca
cmp al, 0x40
jne 0x58c2b8
mov eax, 1
mov byte [esp + 0xc], al
ret
cmp al, 0x2f
je 0x58c2ae
cmp al, 0x3f
je 0x58c2ae
cmp al, 0x3a
sete al
jmp 0x58c2b3
cmp ecx, 6
je 0x58c2da
cmp ecx, 7
jne 0x58c27b
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x26
je 0x58c24b
jmp 0x58c27b
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x58c24b
lea edx, [eax - 0x2d]
cmp dl, 1
ja 0x58c305
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
je 0x58c24b
jmp 0x58c27b
cmp al, 0x3d
ja 0x58c332
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x58c24b
cmp al, 0x3d
je 0x58c24b
jmp 0x58c27b
lea edx, [eax - 0x3f]
cmp dl, 1
jbe 0x58c24b
cmp al, 0x5f
je 0x58c2ff
cmp al, 0x7e
je 0x58c2ff
jmp 0x58c27b
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x58c21d
cmp al, 0x5b
je 0x58c21d
cmp al, 0x5d
je 0x58c21d
jmp 0x58c230
cmp ecx, 4
je 0x58c20c
jmp 0x58c230
call fcn.00458170
jmp fcn.0058c1c0
Function at 0x62b350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x62b569
sub esp, 0x70
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x62b552
lea edi, [esp + 0x40]
xor eax, eax
call fcn.00459c44
lea ecx, [0x76b5e0]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
lea ebx, [esp + 0x40]
mov dword [esp + 8], ebx
call fcn.0040c930
xor eax, eax
jmp 0x62b3c3
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x40]
mov dword [esp], ecx
call fcn.0040cba0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x62b3a2
lea ecx, [0x7269c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004436c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
lea ebx, [0x76b5e0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call fcn.0040b750
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
lea edi, [esp + 0x40]
xor eax, eax
call fcn.00459c44
lea eax, [0x76b5e0]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 8], ecx
call fcn.0040c930
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
jmp 0x62b472
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0040cba0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub ecx, eax
mov edx, ecx
neg ecx
shl eax, 3
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x38]
add eax, ecx
mov ecx, edx
mov edx, dword [esp + 0x40]
test edx, edx
je 0x62b546
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x44]
mov ebp, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, dword [edx]
mov dword [esp + 0x30], edi
mov ebx, dword [ebx]
mov edx, dword [edx + 4]
mov dword [esp + 0x2c], edx
lea edx, [0x7269c0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
call fcn.00410d50
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
cmp edx, ebx
ja 0x62b563
mov dword [esp + 0x28], edx
lea eax, [0x76b5e0]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
call fcn.00410020
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, dword [0xc98a20]
test ecx, ecx
jne 0x62b52b
mov edx, dword [esp + 0x38]
mov dword [edi], edx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jbe 0x62b448
jmp 0x62b55e
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.004599b0
mov ebx, dword [esp + 0x24]
cmp ecx, ebx
mov eax, ecx
mov ecx, ebx
mov edx, dword [esp + 0x38]
jmp 0x62b523
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
add esp, 0x70
ret
mov dword [esp + 0x78], 0
add esp, 0x70
ret
call fcn.00459a90
call fcn.00459ad0
nop
call fcn.00458170
jmp fcn.0062b350
Function at 0x663000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x663135
sub esp, 0x1c
mov eax, dword [esp + 0x24]
test eax, eax
je 0x66312c
xor ecx, ecx
jmp 0x663031
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x663123
mov edx, dword [esp + 0x20]
movzx ebx, byte [edx + ecx]
cmp ebx, 0x80
jge 0x663106
inc ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
lea eax, [0x7838ad]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
mov dword [esp + 8], ebx
call fcn.004ee5f0
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x663029
mov eax, dword [esp + 0x14]
cmp eax, 0xff
ja 0x6630e3
movzx ecx, al
lea edx, [0xa24260]
movzx ecx, byte [edx + ecx]
test cl, 0x60
setne cl
test cl, cl
je 0x6630a9
xor eax, eax
test al, al
je 0x663029
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
cmp eax, 0xff
jg 0x6630c4
cmp eax, 0x30
jl 0x6630c0
cmp eax, 0x39
setle al
xor eax, 1
jmp 0x66309c
xor eax, eax
jmp 0x6630bb
mov ecx, dword [0xc8008c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00474280
movzx eax, byte [esp + 8]
lea edx, [0xa24260]
jmp 0x6630bb
mov ecx, dword [0xc80144]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00474280
movzx ecx, byte [esp + 8]
mov eax, dword [esp + 0x14]
lea edx, [0xa24260]
jmp 0x663096
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00454000
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x66304e
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
call fcn.00458170
jmp fcn.00663000
Function at 0x406e86
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420988]
jne 0x406e90
repz ret
jmp fcn.0040b42c

Function at 0x4151fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420988]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aed1
and dword [ebp - 0x14], 0
cmp dword [0x5346fc], 0
mov dword [ebp - 0x18], eax
jne 0x4152b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415359
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x415359
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5346fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x534700], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x534704], eax
call edi
push eax
call esi
mov dword [0x53470c], eax
test eax, eax
je 0x4152b1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x534708], eax
mov eax, dword [0x534708]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41530a
cmp dword [0x53470c], ecx
je 0x41530a
push eax
call esi
push dword [0x53470c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41530a
test ebx, ebx
je 0x41530a
call edi
test eax, eax
je 0x415301
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415301
test byte [ebp - 8], 1
jne 0x41530a
or dword [ebp + 0x10], 0x200000
jmp 0x41533d
mov eax, dword [0x534700]
cmp eax, dword [ebp - 0x18]
je 0x41533d
push eax
call esi
test eax, eax
je 0x41533d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41533d
mov eax, dword [0x534704]
cmp eax, dword [ebp - 0x18]
je 0x41533d
push eax
call esi
test eax, eax
je 0x41533d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5346fc]
call esi
test eax, eax
je 0x415359
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41535b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e86
leave
ret

Function at 0x480428
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x480447
cmp eax, dword [esp + 0x28]
je 0x48045e
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x48043e
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
mov dword [esp + 0x1c], edx
popal
ret 8
Function at 0x404714
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x633128], 2
push esi
mov esi, ecx
jne 0x404799
push edi
call fcn.00406483
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x404798
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
mov edx, edi
lea ecx, [ebp - 8]
call fcn.004069e2
mov esi, dword [ebp - 8]
add esp, 8
cmp esi, dword [edi + 4]
je 0x404798
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [edi + 4]
lea ecx, [esi + 8]
push esi
call fcn.00406b40
add dword [edi + 4], 0xfffffff8
mov eax, dword [edi + 4]
pop ecx
cmp dword [edi], eax
jne 0x404798
mov ecx, edi
call fcn.0040677c
push 0xc
push edi
call fcn.00541c01
pop ecx
pop ecx
call fcn.00406483
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
leave
ret

Function at 0x404c28
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x633130], 2
push esi
push edi
mov edi, ecx
jne 0x404ca8
call fcn.0040645c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x404ca8
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 4]
push eax
call fcn.00406aec
cmp eax, dword [esi]
je 0x404ca8
cmp dword [eax + 0x14], edi
jne 0x404ca8
push eax
mov ecx, esi
call fcn.00406d88
cmp dword [esi + 4], 0
jne 0x404c8f
push ecx
mov ecx, esi
call fcn.00404cb0
call fcn.0040645c
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [ebp + 8], 0
je 0x404c9a
xor eax, eax
inc eax
jmp 0x404caa
call dword [sym.imp.USER32.dll_ReleaseCapture]
neg eax
sbb eax, eax
neg eax
jmp 0x404caa
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x404cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x633130], 2
push esi
mov dword [ebp - 4], ecx
jne 0x404d08
call fcn.0040645c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x404d08
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00406aec
cmp eax, dword [esi]
je 0x404d08
mov eax, dword [eax + 0x14]
jmp 0x404d0a
xor eax, eax
pop esi
leave
ret

Function at 0x4067a2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov edx, 0x633130
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4067f1
push esi
push 4
call fcn.00415ffa
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4067d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x4067d6
xor esi, esi
mov dword [0x633134], esi
mov dword [0x633130], 2
pop esi
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x633130], 2
jne 0x4067e9
leave
ret
Function at 0x4067fc
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov edx, 0x633128
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x40684b
push esi
push 4
call fcn.00415ffa
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x40682e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x406830
xor esi, esi
mov dword [0x63312c], esi
mov dword [0x633128], 2
pop esi
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x633128], 2
jne 0x406843
leave
ret

Function at 0x40950b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5c
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.00548bf0
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00548bf0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x11c], 6
jne 0x409581
cmp byte [ebp - 6], cl
jne 0x40958e
mov bl, cl
cmp dword [ebp - 0x11c], 6
movzx ebx, bl
cmova ebx, ecx
mov ecx, str.Tahoma
test bl, bl
mov eax, 0x5fb0dc
cmove eax, ecx
push eax
lea eax, [esi + 0x1c]
push 0x20
push eax
call fcn.00567229
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.00542357
leave
ret

Function at 0x40d856
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0040dbfb
test al, al
jne 0x40d86a
mov ecx, esi
pop esi
jmp fcn.00404714
pop esi
ret

Function at 0x411913
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x5fb374
mov esi, edx
mov dword [ebp - 4], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4119b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4119b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4119b5
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4119ae
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4119a7
push ebx
push edi
push eax
call fcn.00547fb0
and dword [ebp + 8], 0
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4119a0
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004112dc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4119ba
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x411a4c
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x411a4b
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x411a44
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
xor edx, edx
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x4119e7
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x4119df
pop esi
pop ebx
pop edi
leave
ret

Function at 0x41239d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je case.default.0x412401
mov edx, dword [ebp + 0x10]
movzx eax, dx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004124ea
mov edi, eax
test edi, edi
jne 0x4123f0
push esi
push 0x4126fd
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x412401
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x412401
jmp dword [eax*4 + 0x412489]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x41246f
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x41246c
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x41246c
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push ebx
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x417b1f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be146
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x62a3b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov dword [esi], vtable.CFilterCoder.10.0
mov dword [esi + 4], vtable.CFilterCoder.9.0
mov dword [esi + 8], vtable.CFilterCoder.8.0
mov dword [esi + 0xc], vtable.CFilterCoder.7.0
mov dword [esi + 0x10], vtable.CFilterCoder.6.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.4.0
mov dword [esi + 0x1c], vtable.CFilterCoder.3.0
mov dword [esi + 0x20], vtable.CFilterCoder.2.0
mov dword [esi + 0x24], vtable.CFilterCoder.1.0
mov dword [esi + 0x28], vtable.CFilterCoder.0
call fcn.0041774d
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x417ba9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x417bbd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x417bd1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x417be5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x417bf9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x417c0d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 6
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x417c21
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 7
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x417c35
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x41a6df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
or esi, edi
mov eax, esi
add ebx, ebx
shr eax, 7
mov ecx, edi
and eax, 1
and ecx, ebx
push eax
mov eax, esi
add ecx, edi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
lea edx, [edx + eax*2]
call fcn.0041a64b
mov edx, dword [ebp - 8]
add esi, esi
mov eax, esi
xor eax, ebx
not eax
and edi, eax
pop ecx
cmp esi, 0x10000
jb 0x41a6fa
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a77d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x41a78f
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret