joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009ea68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1009eb05
push ebx
push esi
call fcn.1009ea31
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1009d8df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009eab2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009eb04
push edi
push eax
call fcn.100922d6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1009ead2
call fcn.1009206b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009eb03
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1009d8df
add esp, 0x20
test eax, eax
jne 0x1009eaf1
push edi
call fcn.1009206b
jmp 0x1009eaf9
push ebx
call fcn.1009206b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a11bf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1009479b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a122e
cmp esi, dword [ebp - 4]
je 0x100a1229
cmp dword [ebp + 0xc], 0
je 0x100a1229
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100a1206
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100a0d11
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100a1230
xor eax, eax
inc eax
jmp 0x100a1230
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100a1295
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d6084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1009479b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1009479b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100a130c
cmp word [ecx], dx
je 0x100a130c
mov eax, dword [0x100b85f4]
push edi
dec eax
push eax
push 0x100b84e0
call fcn.100a1234
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100a137f
cmp word [eax], dx
je 0x100a137f
mov eax, dword [edi]
test eax, eax
je 0x100a1330
cmp word [eax], dx
je 0x100a1330
lea eax, [ebp - 0x10]
push eax
call fcn.100a0c17
jmp 0x100a1339
lea eax, [ebp - 0x10]
push eax
call fcn.100a0cb2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100a13a9
mov eax, dword [0x100b84dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100b81d0
call fcn.100a1234
add esp, 0xc
test al, al
je 0x100a13a9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100a1374
cmp word [eax], di
je 0x100a1374
lea eax, [ebp - 0x10]
push eax
call fcn.100a0c17
pop ecx
jmp 0x100a13ab
lea eax, [ebp - 0x10]
push eax
call fcn.100a0cb2
jmp 0x100a1371
mov eax, dword [edi]
test eax, eax
je 0x100a1396
cmp word [eax], dx
je 0x100a1396
lea eax, [ebp - 0x10]
push eax
call fcn.100a0bcc
pop ecx
jmp 0x100a13a9
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100a1474
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100a10b9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100a1474
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100a1474
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100a1474
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a1401
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10098eda
test ebx, ebx
je 0x100a146f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10098eda
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a1474
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a1474
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100a5471
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100a1476
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e175
leave
ret
Function at 0x100a5691
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100a560d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100a5800
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100a5800
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100a57b5
jg 0x100a56ed
test eax, eax
je 0x100a57ab
push 1
push 0x1000
call fcn.10091a55
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100a5710
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100a57a2
push 0x8000
push ebx
call fcn.100a553e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100a5739
jg 0x100a5734
cmp ecx, 0x1000
jb 0x100a5739
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10099b50
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a577e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100a5734
jl 0x100a5765
test ecx, ecx
jne 0x100a5726
push dword [ebp - 0xc]
push ebx
call fcn.100a553e
push esi
call fcn.1009206b
add esp, 0xc
xor ebx, ebx
jmp 0x100a580e
cmp byte [edi + 0x24], 0
je 0x100a5795
cmp dword [edi + 0x20], 5
jne 0x100a5795
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100a57a0
mov ebx, dword [edi + 0x18]
jmp 0x100a57a2
xor ebx, ebx
push esi
call fcn.1009206b
pop ecx
jmp 0x100a580e
test ecx, ecx
jg 0x100a5777
jl 0x100a57b5
test eax, eax
jae 0x100a5777
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009b003
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100a57d5
cmp byte [edi + 0x1c], 0
je 0x100a5777
jmp 0x100a5806
push ebx
call fcn.100a2572
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100a5777
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100a580e
cmp byte [edi + 0x1c], 0
je 0x100a580b
mov ebx, dword [edi + 0x18]
jmp 0x100a580e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009b003
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a8b70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af67e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100d6084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100d6b74]
cmp eax, 0xffffffff
jne 0x100a8ba6
xor ebx, ebx
jmp 0x100a8baf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x100a8bf1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x100a8c30
test esi, esi
jne 0x100a8c34
push 0x100a8670
push 0x100daf94
call fcn.100a81e0
mov eax, dword [0x100d6b74]
add esp, 8
cmp eax, 0xffffffff
je 0x100a8bf1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x100a8c1e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x100a8c1e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100a8c76
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100a8c5f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100a8c34
cmp dword [ebx + 0x18], 0
je 0x100a8bc0
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x100a8c9d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100a8c9d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100a8690
cmp dword [ebx + 0x18], 0
jne 0x100a8c80
jmp 0x100a8bc0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x1004919
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10054f8
call fcn.01004d44
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1008470
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100472e
cmp eax, esi
jne 0x1004721
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1004731
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004708
xor esi, esi
inc esi
mov eax, dword [0x100846c]
cmp eax, esi
jne 0x1004744
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100477f
mov eax, dword [0x100846c]
test eax, eax
jne 0x1004779
mov dword [0x100846c], esi
push 0x1001178
push 0x100116c
call fcn.01004685
pop ecx
pop ecx
test eax, eax
je 0x100477f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1004849
mov dword [0x1008138], esi
mov eax, dword [0x100846c]
cmp eax, esi
jne 0x10047a3
push 0x1001168
push 0x1001160
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100846c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10047b0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100847c], ebx
je 0x10047d1
push 0x100847c
call fcn.01004cb9
pop ecx
test eax, eax
je 0x10047d1
push ebx
push 2
push ebx
call dword [0x100847c]
push dword [0x1008120]
push dword [0x1008124]
push dword [0x100811c]
call fcn.010028d9
add esp, 0xc
mov dword [0x1008134], eax
cmp dword [0x1008128], ebx
jne 0x100482f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1008138], ebx
jne 0x100483d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1008134]
call fcn.01004d89
ret
call fcn.01004e91
jmp 0x10046e6

Function at 0xef7df0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef7dfa
pushal
call 0xef7e00
pop ebp
sub ebp, 0x10
sub ebp, 0xaf7df0
jmp 0xef7e16
mov eax, 0xaf7df0
add eax, ebp
add eax, 0x4c
mov ecx, 0x59d
mov edx, 0x1d5554b
xor byte [eax], dl
inc eax
dec ecx
jne 0xef7e2d
jmp 0xef7e40
rol byte [esi + 0x4b77c2c0], 0x4b
dec ebx
retf 0xb38a
Function at 0x10045cb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x34
xor edx, edx
lea eax, [esi + 0x24]
pop edi
mov cx, word [eax]
xor cx, dx
and cx, 0x7fff
xor word [eax], cx
mov ebx, dword [esi + 8]
mov cx, word [eax]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0xc]
and cx, 0x7fff
mov dword [eax + 8], ebx
mov word [eax], cx
inc edx
add eax, 0xc
cmp edx, edi
jl 0x10045da
mov dword [esi + 0x1c], edi
xor edi, edi
push edi
push edi
push 0x1a
push esi
call dword [esi + 4]
push edi
push edi
push 0x15
push esi
call dword [esi + 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x1004fb6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x64], ebx
jle 0x1004fe0
lea esi, [edi + 0x6c]
mov eax, dword [esi]
push 0
push 0
push 3
push eax
call dword [eax + 4]
inc ebx
add esi, 4
cmp ebx, dword [edi + 0x64]
jl 0x1004fcb
mov dword [ebp - 4], 2
lea esi, [edi + 0x74]
and dword [ebp - 8], 0
mov dword [ebp + 8], 0x24
mov ecx, dword [esi]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add dword [ebp + 8], 0xc
add eax, ecx
add edx, 0xfffffffe
shl ebx, 2
or edx, ebx
xor dx, word [eax]
and dx, 0x7fff
xor word [eax], dx
mov ebx, dword [ecx + 8]
mov dx, word [eax]
or dx, 0x8000
inc dword [ebp - 8]
cmp dword [ebp + 8], 0xc0
mov dword [eax + 4], ebx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 8], ecx
mov word [eax], dx
jl 0x1004ff5
mov ecx, dword [esi]
inc dword [ebp - 4]
push 0xd
pop eax
add esi, 4
cmp dword [ebp - 4], 6
mov dword [ecx + 0x1c], eax
jl 0x1004fea
push 0
push 0
push eax
push edi
call dword [edi]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405ed1
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x58
mov eax, 0x4fa278
call fcn.004d6825
mov dword [ebp - 0x54], ecx
mov edi, dword [ebp + 0x14]
and dword [ebp - 4], 0
and dword [edi], 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 4]
sub eax, 0x200
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
cmp eax, 0xe
ja 0x405f36
push 0x10
call esi
mov ecx, 0x8000
test cx, ax
jne 0x405f2a
push 0x11
call esi
mov ecx, 0x8000
test cx, ax
jne 0x405f2a
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
je 0x405f36
xor ebx, ebx
inc ebx
mov dword [edi], ebx
mov eax, ebx
jmp 0x40600f
mov eax, dword [ebx + 4]
sub eax, 0x100
cmp eax, 9
ja 0x406009
push 0x11
call esi
mov ecx, 0x8000
test cx, ax
je 0x405f67
cmp dword [ebx + 8], 0x58
je 0x405f67
cmp dword [ebx + 8], 0x43
je 0x405f67
cmp dword [ebx + 8], 0x56
jne 0x405f2a
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
je 0x405f81
cmp dword [ebx + 8], 0x25
je 0x405f2a
cmp dword [ebx + 8], 0x27
je 0x405f2a
cmp dword [ebx + 4], 0x100
jne 0x406009
mov eax, dword [ebx + 8]
cmp eax, 8
jne 0x405ffa
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x14]
call fcn.0040d972
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x405fac
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov byte [ebp - 4], 2
test esi, esi
je 0x405fdd
mov dl, bl
mov ecx, esi
call fcn.0040da0f
test al, al
je 0x405fdd
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
jmp 0x405ffd
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
test esi, esi
je 0x405f2f
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x405f2f
xor ebx, ebx
inc ebx
add eax, 0xffffff90
cmp eax, 0xb
jbe 0x405f2d
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.004d6772
ret 0x10
Function at 0x406bdf
Capabilities:
Check if file exists

Disassembly:
push 0
mov eax, 0x4fa6ce
call fcn.004d6783
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x406cbf
mov eax, dword [0x576314]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00406d8a
and dword [ebp - 4], 0
mov ecx, 0x576314
push dword [eax]
call fcn.0040703e
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040d635
test esi, esi
jne 0x406c75
mov eax, dword [0x576314]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00406e5b
mov dword [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406cb0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406cb0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040d635
push 1
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00406def
mov dword [ebp - 4], 6
push 0x52ae64
push dword [eax]
call fcn.004de7f0
pop ecx
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040d635
test esi, esi
je 0x406cbf
mov al, 1
jmp 0x406cc1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.0040d635
xor al, al
call fcn.004d674c
ret 4

Function at 0x40d493
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d4e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d4e7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40d4d9
cmp esi, ecx
jae 0x40d4e7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40d4c7
cmp esi, ecx
jae 0x40d4e7
cmp word [esi], 0
je 0x40d4e7
mov eax, esi
jmp 0x40d4e9
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40dac7
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4fba1c
call fcn.004d67b7
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x48], esi
and dword [ebp - 0x44], 0
xor edi, edi
mov eax, dword fs:[0x2c]
inc edi
mov dword [ebp - 0x54], esi
mov ecx, dword [eax]
mov eax, dword [0x5796ac]
cmp eax, dword [ecx + 4]
jg 0x40dc5e
push 0x52b6c8
lea ecx, [ebp - 0x40]
call fcn.00404285
mov dword [ebp - 4], 2
lea edx, [ebp - 0x40]
push edi
lea ecx, [ebp - 0x28]
call fcn.00466c30
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0040569b
push str.html
lea ecx, [ebp - 0x40]
call fcn.00404285
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00466110
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0040569b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00468590
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x40db6b
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x50], 0x52aca8
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.0040569b
cmp edi, 0xffffffff
jne 0x40dbcf
xor ebx, ebx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 4
push edi
mov dword [ebp - 0x50], 0x52aca8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], ebx
jmp 0x40dc4b
mov eax, dword [0x5796b4]
cmp dword [0x5796b8], eax
je 0x40dbf1
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
call fcn.0046a3e0
add dword [0x5796b4], 0x18
pop ecx
jmp 0x40dc00
lea edx, [ebp - 0x28]
mov ecx, 0x5796b0
push edx
push eax
call fcn.0046a4e0
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x40dc0a
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x48]
xor ebx, ebx
add eax, eax
push ebx
push edx
push eax
push ecx
push edi
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [ebp - 0x28]
call fcn.00468590
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], 0x52aca8
test edi, edi
je 0x40dc4b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x28]
call fcn.0040569b
mov eax, esi
call fcn.004d6761
ret
push 0x5796ac
call fcn.004d601f
cmp dword [0x5796ac], 0xffffffff
pop ecx
jne 0x40dafd
mov dword [ebp - 4], edi
mov ecx, 0x5796b0
call fcn.004698a0
push 0x51d74a
call fcn.004d5e44
mov byte [ebp - 4], 0
mov dword [esp], 0x5796ac
call fcn.004d5fd5
pop ecx
jmp 0x40dafd

Function at 0x40ed4e
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
sub esi, edx
push edi
xor edi, edi
cmp edx, dword [esp + 0x10]
cmova esi, eax
test esi, esi
je 0x40ed7e
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x40ed69
jmp 0x40ed80
mov eax, dword [ecx]
pop edi
pop esi
ret 8
Function at 0x410cb2
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea esi, [eax + 1]
push esi
call fcn.0040d74e
push esi
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00410c89
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x41c760
Capabilities:
Parse credit card information

Disassembly:
push 0x2c
mov eax, 0x4fe99a
call fcn.004d67b7
mov ebx, ecx
mov edi, ebx
lea eax, [ebx - 0x218]
neg edi
sbb edi, edi
and edi, eax
cmp dword [ebx + 0x14], 0
je 0x41c8ae
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push eax
push 0x434
push dword [edi + 0x154]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jne 0x41c8aa
mov al, byte [ebp + 8]
cbw
push eax
mov dword [ebp - 0x38], eax
call fcn.004ded22
pop ecx
test eax, eax
je 0x41c8aa
movsx ecx, byte [ebp + 8]
movzx eax, word [ebx]
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
je 0x41c8ae
call fcn.0040d32d
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d156
mov dword [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 4]
call fcn.00410cb2
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
push esi
call fcn.00404285
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebx + 0x14]
jae 0x41c880
add ebx, 4
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x41c81f
mov eax, dword [ebx]
movzx eax, word [eax + ecx*2]
cmp eax, 0x3d
ja 0x41c84e
je 0x41c88c
sub eax, 0x23
je 0x41c83a
dec eax
sub eax, 1
je 0x41c83a
sub eax, 1
jmp 0x41c860
push dword [ebp - 0x38]
call fcn.004ded0f
pop ecx
test eax, eax
jne 0x41c88c
push 0x1056
jmp 0x41c878
cmp eax, 0x3f
jb 0x41c862
cmp eax, 0x40
jbe 0x41c88c
cmp eax, 0x5e
je 0x41c88c
cmp eax, 0x60
je 0x41c88c
cmp dword [ebx + 0x14], 8
jb 0x41c86a
mov ebx, dword [ebx]
movzx eax, word [ebx + ecx*2]
cmp dword [ebp - 0x2c], eax
je 0x41c88c
push 0x1057
push ecx
mov ecx, edi
call fcn.0041c51a
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
xor ebx, ebx
jmp 0x41c88e
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040569b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040d635
mov al, bl
jmp 0x41c8b0
mov al, 1
jmp 0x41c8b0
xor al, al
call fcn.004d6761
ret 4